/* Generated by Cython 3.2.8 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "depends": [
            "cython/inline.h",
            "cython/warnings.h"
        ],
        "include_dirs": [
            "cython"
        ],
        "name": "SnapPy",
        "sources": [
            "cython/SnapPy.pyx"
        ]
    },
    "module_name": "SnapPy"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
  #if !defined(CYTHON_LIMITED_API)
  #define CYTHON_LIMITED_API 1
  #endif
#elif defined(CYTHON_LIMITED_API)
  #ifdef _MSC_VER
  #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
  #else
  #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
  #endif
#endif

#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 < 0x03080000
    #error Cython requires Python 3.8+.
#else
#define __PYX_ABI_VERSION "3_2_8"
#define CYTHON_HEX_VERSION 0x030208F0
#define CYTHON_FUTURE_DIVISION 1
/* CModulePreamble */
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !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
#define __PYX_COMMA ,
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 1
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 1
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #if PY_VERSION_HEX < 0x03090000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00)
  #endif
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_NUM >= 0x07031100)
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 1
  #endif
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #ifdef Py_GIL_DISABLED
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1
  #else
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #endif
  #if PY_VERSION_HEX < 0x030A0000
    #undef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #elif !defined(CYTHON_USE_TYPE_SLOTS)
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLIST_INTERNALS)
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL 0
  #elif !defined(CYTHON_FAST_GIL)
    #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_SYS_MONITORING
    #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000
    #undef CYTHON_IMMORTAL_CONSTANTS
    #define CYTHON_IMMORTAL_CONSTANTS 0  // definitely won't work
  #elif !defined(CYTHON_IMMORTAL_CONSTANTS)
    #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
#endif
#ifndef CYTHON_COMPRESS_STRINGS
  #define CYTHON_COMPRESS_STRINGS 1
#endif
#ifndef CYTHON_FAST_PYCCALL
#define CYTHON_FAST_PYCCALL  CYTHON_FAST_PYCALL
#endif
#ifndef CYTHON_VECTORCALL
#if CYTHON_COMPILING_IN_LIMITED_API
#define CYTHON_VECTORCALL  (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
#else
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL)
#endif
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#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
#ifndef CYTHON_UNUSED
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #endif
#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_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#include <stdint.h>
typedef uintptr_t  __pyx_uintptr_t;
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif
#ifndef Py_UNREACHABLE
  #define Py_UNREACHABLE()  assert(0); abort()
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x03090000)
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))

/* CInitCode */
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

/* PythonCompatibility */
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    #ifndef CO_OPTIMIZED
    static int CO_OPTIMIZED;
    #endif
    #ifndef CO_NEWLOCALS
    static int CO_NEWLOCALS;
    #endif
    #ifndef CO_VARARGS
    static int CO_VARARGS;
    #endif
    #ifndef CO_VARKEYWORDS
    static int CO_VARKEYWORDS;
    #endif
    #ifndef CO_ASYNC_GENERATOR
    static int CO_ASYNC_GENERATOR;
    #endif
    #ifndef CO_GENERATOR
    static int CO_GENERATOR;
    #endif
    #ifndef CO_COROUTINE
    static int CO_COROUTINE;
    #endif
#else
    #ifndef CO_COROUTINE
      #define CO_COROUTINE 0x80
    #endif
    #ifndef CO_ASYNC_GENERATOR
      #define CO_ASYNC_GENERATOR 0x200
    #endif
#endif
static int __Pyx_init_co_variables(void);
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#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
#ifndef Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE 0
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING 0
#endif
#ifndef Py_TPFLAGS_IMMUTABLETYPE
  #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8)
#endif
#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION
  #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7)
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#ifndef METH_FASTCALL
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#if PY_VERSION_HEX >= 0x030900B1
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_CheckExact(func)
#else
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_Check(func)
#endif
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if PY_VERSION_HEX < 0x03090000 || (CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno))
#elif CYTHON_COMPILING_IN_GRAAL
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) _PyFrame_SetLineNumber((frame), (lineno))
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#endif
#if CYTHON_USE_MODULE_STATE
static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o)
#else
#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global)
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype)
#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype)
#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype)
  #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL)
  #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype)
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\
    ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\
     (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\
     __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL)
  #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype)
  #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype)
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
#endif
#define __Pyx_PyObject_GetIterNextFunc(iterator)  __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc)
#if CYTHON_USE_TYPE_SPECS
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#else
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         ((int)PyUnicode_KIND(u))
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
#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
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains)
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#elif CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_TYPE(obj, &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
enum __Pyx_ReferenceSharing {
  __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check
  __Pyx_ReferenceSharing_OwnStrongReference,
  __Pyx_ReferenceSharing_FunctionArgument,
  __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar
};
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\
    (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\
      (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\
      (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0)))
#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1)
#else
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0)
#endif
#if CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
  #else
    #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i)
  #endif
#elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #else
    #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i))
  #endif
#else
  #define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i))
#endif
#if CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !CYTHON_COMPILING_IN_LIMITED_API && CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) (__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
    __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i))
#else
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) __Pyx_PyList_GetItemRef(o, i)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyObject_GetItem(dict, key);
  if (*result == NULL) {
    if (PyErr_ExceptionMatches(PyExc_KeyError)) {
      PyErr_Clear();
      return 0;
    }
    return -1;
  }
  return 1;
}
#else
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyDict_GetItemWithError(dict, key);
  if (*result == NULL) {
    return PyErr_Occurred() ? -1 : 0;
  }
  Py_INCREF(*result);
  return 1;
}
#endif
#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST
  #define __Pyx_VISIT_CONST(obj)  Py_VISIT(obj)
#else
  #define __Pyx_VISIT_CONST(obj)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i)
#endif
#if CYTHON_ASSUME_SAFE_SIZE
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o)
#else
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString)
  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t
#define __Pyx_PyLong_AsHash_t   __Pyx_PyIndex_AsSsize_t
#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    #define __Pyx_PySendResult PySendResult
#else
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } __Pyx_PySendResult;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3
  typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
#else
  #define __Pyx_pyiter_sendfunc sendfunc
#endif
#if !CYTHON_USE_AM_SEND
#define __PYX_HAS_PY_AM_SEND 0
#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#define __PYX_HAS_PY_AM_SEND 1
#else
#define __PYX_HAS_PY_AM_SEND 2  // our own backported implementation
#endif
#if __PYX_HAS_PY_AM_SEND < 2
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
        __Pyx_pyiter_sendfunc am_send;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s))
#endif
#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21)
#else
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (0)
#endif
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyInterpreterState_Get() PyInterpreterState_Get()
#else
#define __Pyx_PyInterpreterState_Get() PyThreadState_Get()->interp
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000
#ifdef __cplusplus
extern "C"
#endif
PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) {
    int value;
    PyObject *py_value = PyObject_GetAttrString(inspect, name);
    if (!py_value) return 0;
    value = (int) PyLong_AsLong(py_value);
    Py_DECREF(py_value);
    *write_to = value;
    return value != -1 || !PyErr_Occurred();
}
static int __Pyx_init_co_variables(void) {
    PyObject *inspect;
    int result;
    inspect = PyImport_ImportModule("inspect");
    result =
#if !defined(CO_OPTIMIZED)
        __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) &&
#endif
#if !defined(CO_NEWLOCALS)
        __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) &&
#endif
#if !defined(CO_VARARGS)
        __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) &&
#endif
#if !defined(CO_VARKEYWORDS)
        __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) &&
#endif
#if !defined(CO_ASYNC_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) &&
#endif
#if !defined(CO_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) &&
#endif
#if !defined(CO_COROUTINE)
        __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) &&
#endif
        1;
    Py_DECREF(inspect);
    return result ? 0 : -1;
}
#else
static int __Pyx_init_co_variables(void) {
    return 0;  // It's a limited API-only feature
}
#endif

/* MathInitCode */
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #ifndef _USE_MATH_DEFINES
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0
#endif
#ifndef CYTHON_CLINE_IN_TRACEBACK
#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#endif
#if CYTHON_CLINE_IN_TRACEBACK
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; __pyx_clineno = __LINE__; (void) __pyx_clineno; }
#else
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; }
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__SnapPy
#define __PYX_HAVE_API__SnapPy
/* Early includes */
#include "warnings.h"
#include "stdlib.h"
#include "string.h"
#include "SnapPea.h"
#include "kernel_typedefs.h"
#include "positioned_tet.h"
#include "triangulation.h"
#include "winged_edge.h"
#include "link_projection.h"
#include "terse_triangulation.h"
#include "tersest_triangulation.h"
#include "unix_file_io.h"
#include "unix_cusped_census.h"
#include "unix_kit.h"
#include "kernel_prototypes.h"
#include "Dirichlet.h"
#include "addl_code.h"
#include "isomorphism_signature.h"
#include "ptolemy_types.h"
#include "change_peripheral_curves_nonorientable.h"
#include "gluing_equations_pgl.h"
#include "ptolemy_equations.h"
#include "inline.h"
#include "double_SnapPy.h"
#include <math.h>
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifdef CYTHON_FREETHREADING_COMPATIBLE
#if CYTHON_FREETHREADING_COMPATIBLE
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 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)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#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)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_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 Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#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 CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AS_STRING(s)
#else
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s)
#endif
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const 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_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef)
    return Py_NewRef(obj);
#else
    Py_INCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef)
    return Py_XNewRef(obj);
#else
    Py_XINCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b);
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x)
#else
#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x)
#endif
#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x))
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_Sign(x)  (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_Sign(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_Sign(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_Sign(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL)
#else
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#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__ */
/* PretendToInitialize */
#ifdef __cplusplus
#if __cplusplus > 201103L
#include <type_traits>
#endif
template <typename T>
static void __Pyx_pretend_to_initialize(T* ptr) {
#if __cplusplus > 201103L
    if ((std::is_trivially_default_constructible<T>::value))
#endif
        *ptr = T();
    (void)ptr;
}
#else
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
#endif


#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * const __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* Header.proto */
#if !defined(CYTHON_CCOMPLEX)
  #if defined(__cplusplus)
    #define CYTHON_CCOMPLEX 1
  #elif (defined(_Complex_I) && !defined(_MSC_VER)) || ((defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_COMPLEX__) && !defined(_MSC_VER))
    #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

/* #### Code section: filename_table ### */

static const char* const __pyx_f[] = {
  "cython/SnapPy.pyx",
  "cython/core/manifold.pyx",
  "cython/core/tail.pyx",
  "cython/core/basic.pyx",
  "cython/core/triangulation.pyx",
  "cython/numbers/double.pyx",
  "cython/core/abelian_group.pyx",
  "(tree fragment)",
  "cython/core/fundamental_group.pyx",
  "cython/core/symmetry_group.pyx",
  "cython/core/dirichlet.pyx",
  "cython/core/cusp_neighborhoods.pyx",
  "cython/core/pickle.pyx",
};
/* #### Code section: utility_code_proto_before_types ### */
/* Atomics.proto (used by UnpackUnboundCMethod) */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __pyx_atomic_int_type int
#define __pyx_nonatomic_int_type int
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__))
    #include <stdatomic.h>
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)))
    #include <atomic>
#endif
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__) &&\
                       ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type atomic_int
    #define __pyx_atomic_ptr_type atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) atomic_load(value)
    #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C atomics"
    #endif
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\
                    ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type std::atomic_int
    #define __pyx_atomic_ptr_type std::atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) std::atomic_load(value)
    #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C++ atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C++ atomics"
    #endif
#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\
                    (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2))))
    #define __pyx_atomic_ptr_type void*
    #define __pyx_nonatomic_ptr_type void*
    #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1)
    #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER)
    #include <intrin.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type long
    #define __pyx_atomic_ptr_type void*
    #undef __pyx_nonatomic_int_type
    #define __pyx_nonatomic_int_type long
    #define __pyx_nonatomic_ptr_type void*
    #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer)
    #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1)
    #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0)
    #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value
    #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif

/* CriticalSectionsDefinition.proto (used by CriticalSections) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection void*
#define __Pyx_PyCriticalSection2 void*
#define __Pyx_PyCriticalSection_End(cs)
#define __Pyx_PyCriticalSection2_End(cs)
#else
#define __Pyx_PyCriticalSection PyCriticalSection
#define __Pyx_PyCriticalSection2 PyCriticalSection2
#define __Pyx_PyCriticalSection_End PyCriticalSection_End
#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End
#endif

/* CriticalSections.proto (used by ParseKeywordsImpl) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs)
#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs)
#else
#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin
#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin
#endif
#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_BEGIN_CRITICAL_SECTION(o) {
#define __Pyx_END_CRITICAL_SECTION() }
#else
#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION
#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION
#endif

/* IncludeStructmemberH.proto (used by FixUpExtensionType) */
#include <structmember.h>

/* #### Code section: numeric_typedefs ### */

/* "SnapPy.pyx":4
 * # cython: embedsignature = False
 * 
 * ctypedef double Real             # <<<<<<<<<<<<<<
 * 
 * include "SnapPy.pxi"
*/
typedef double __pyx_t_6SnapPy_Real;
/* #### Code section: complex_type_declarations ### */
/* Declarations.proto */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
  #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
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);

/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_obj_6SnapPy_Triangulation;
struct __pyx_obj_6SnapPy_Manifold;
struct __pyx_obj_6SnapPy_AbelianGroup;
struct __pyx_obj_6SnapPy_PresentationMatrix;
struct __pyx_obj_6SnapPy_CFundamentalGroup;
struct __pyx_obj_6SnapPy_CHolonomyGroup;
struct __pyx_obj_6SnapPy_SymmetryGroup;
struct __pyx_obj_6SnapPy_CDirichletDomain;
struct __pyx_obj_6SnapPy_CCuspNeighborhood;
struct __pyx_defaults;
struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr;
struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation;
struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr;
struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr;
struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word;
struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr;
struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list;
struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr;
struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr;
struct CuspNeighborhoods;
struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_new_plink;
struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation;
struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation_from_name;
struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_file;
struct __pyx_ctuple_WEPolyhedron__ptr__and_int;
typedef struct __pyx_ctuple_WEPolyhedron__ptr__and_int __pyx_ctuple_WEPolyhedron__ptr__and_int;
struct __pyx_opt_args_6SnapPy_listlike_to_triangulation;
struct __pyx_opt_args_6SnapPy_get_triangulation_from_PythonKLP;

/* "cython/SnapPy.pxi":211
 *         c_TetrahedronData *tetrahedron_data
 * 
 * cdef struct c_CuspNeighborhoods "CuspNeighborhoods":             # <<<<<<<<<<<<<<
 *     c_Triangulation *its_triangulation
 * 
*/
struct CuspNeighborhoods {
  Triangulation *its_triangulation;
};

/* "cython/core/basic.pyx":405
 * 
 * # C type for a function of Real returning an object
 * ctypedef object (*func_real_to_obj)(Real)             # <<<<<<<<<<<<<<
 * 
 * # Convert Real to gen in an appropriate manner for this environment
*/
typedef PyObject *(*__pyx_t_6SnapPy_func_real_to_obj)(__pyx_t_6SnapPy_Real);

/* "cython/core/triangulation.pyx":114
 *             remove_hyperbolic_structures(self.c_triangulation)
 * 
 *     cdef get_from_new_plink(self, file_name=None):             # <<<<<<<<<<<<<<
 *         if LinkEditor is None:
 *             raise RuntimeError('PLink was not imported.')
*/
struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_new_plink {
  int __pyx_n;
  PyObject *file_name;
};

/* "cython/core/triangulation.pyx":126
 *               'link complement.')
 * 
 *     cdef get_triangulation(self, spec, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         # Step -1 Check for an entire-triangulation-file-in-a-string
 *         if isinstance(spec, bytes) and spec.startswith(b'pickle:'):
*/
struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation {
  int __pyx_n;
  PyObject *remove_finite_vertices;
};

/* "cython/core/triangulation.pyx":147
 *         Triangulation.dehn_fill(self, fillings)
 * 
 *     cdef get_triangulation_from_name(self, name, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 * 
 *         # Step 1. The easy databases.
*/
struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation_from_name {
  int __pyx_n;
  PyObject *remove_finite_vertices;
};

/* "cython/core/triangulation.pyx":284
 *         self.c_triangulation = get_triangulation_from_PythonKLP(data, remove_finite_vertices)
 * 
 *     cdef get_from_file(self, name, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         try:
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]
*/
struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_file {
  int __pyx_n;
  PyObject *remove_finite_vertices;
};

/* "cython/core/dirichlet.pyx":3
 * # Dirichlet Domains
 * 
 * cdef (WEPolyhedron*, int) get_generators_from_bytes(data_bytes,             # <<<<<<<<<<<<<<
 *                                                     double vertex_epsilon,
 *                                                     displacement,
*/
struct __pyx_ctuple_WEPolyhedron__ptr__and_int {
  WEPolyhedron *f0;
  int f1;
};

/* "cython/core/pickle.pyx":312
 * 
 * 
 * cdef c_Triangulation* listlike_to_triangulation(listlike,             # <<<<<<<<<<<<<<
 *                                                 num_or_cusps=0,
 *                                                 num_nonor_cusps=0,
*/
struct __pyx_opt_args_6SnapPy_listlike_to_triangulation {
  int __pyx_n;
  PyObject *num_or_cusps;
  PyObject *num_nonor_cusps;
  PyObject *cusp_indices;
  PyObject *peripheral_curves;
};

/* "cython/core/tail.pyx":756
 * signtype = {'R': KLPHalfTwistCL, 'L': KLPHalfTwistCCL}
 * 
 * cdef c_Triangulation* get_triangulation_from_PythonKLP(pythonklp, remove_finite_vertices=True) except *:             # <<<<<<<<<<<<<<
 *     cdef KLPProjection P
 *     cdef c_Triangulation *c_triangulation
*/
struct __pyx_opt_args_6SnapPy_get_triangulation_from_PythonKLP {
  int __pyx_n;
  PyObject *remove_finite_vertices;
};

/* "cython/core/triangulation.pyx":4
 * import low_index
 * 
 * cdef class Triangulation():             # <<<<<<<<<<<<<<
 *     """
 *     A Triangulation object represents a compact 3-manifold with torus
*/
struct __pyx_obj_6SnapPy_Triangulation {
  PyObject_HEAD
  struct __pyx_vtabstruct_6SnapPy_Triangulation *__pyx_vtab;
  Triangulation *c_triangulation;
  PyObject *_DTcode;
  PyObject *_PDcode;
  PyObject *_cover_info;
  PyObject *_cache;
  PyObject *LE;
  PyObject *_link_file_full_path;
  PyObject *hyperbolic_structure_initialized;
};


/* "cython/core/manifold.pyx":3
 * # Manifolds
 * 
 * cdef class Manifold(Triangulation):             # <<<<<<<<<<<<<<
 *     """
 *     A Manifold is a :class:`Triangulation` together with a geometric structure.
*/
struct __pyx_obj_6SnapPy_Manifold {
  struct __pyx_obj_6SnapPy_Triangulation __pyx_base;
};


/* "cython/core/abelian_group.pyx":3
 * # Abelian Groups
 * 
 * cdef class AbelianGroup():             # <<<<<<<<<<<<<<
 *     """
 *     An AbelianGroup object represents a finitely generated abelian group,
*/
struct __pyx_obj_6SnapPy_AbelianGroup {
  PyObject_HEAD
  PyObject *divisors;
  PyObject *coefficients;
};


/* "cython/core/abelian_group.pyx":142
 * 
 * 
 * cdef class PresentationMatrix():             # <<<<<<<<<<<<<<
 *     """
 *     A sparse representation of the presentation matrix of an abelian group.
*/
struct __pyx_obj_6SnapPy_PresentationMatrix {
  PyObject_HEAD
  struct __pyx_vtabstruct_6SnapPy_PresentationMatrix *__pyx_vtab;
  int rows;
  int cols;
  PyObject *_row_support;
  PyObject *_col_support;
  PyObject *_entries;
  PyObject *_units;
  PyObject *dead_columns;
};


/* "cython/core/fundamental_group.pyx":103
 *         for g in int_list)
 * 
 * cdef class CFundamentalGroup():             # <<<<<<<<<<<<<<
 *     cdef c_GroupPresentation *c_group_presentation
 *     cdef c_Triangulation *c_triangulation
*/
struct __pyx_obj_6SnapPy_CFundamentalGroup {
  PyObject_HEAD
  GroupPresentation *c_group_presentation;
  Triangulation *c_triangulation;
  PyObject *num_cusps;
};


/* "cython/core/fundamental_group.pyx":485
 * 
 * # Holonomy Groups
 * cdef class CHolonomyGroup(CFundamentalGroup):             # <<<<<<<<<<<<<<
 *     def _matrix(self, word, group):
 *         """
*/
struct __pyx_obj_6SnapPy_CHolonomyGroup {
  struct __pyx_obj_6SnapPy_CFundamentalGroup __pyx_base;
};


/* "cython/core/symmetry_group.pyx":3
 * #  Symmetry_group
 * 
 * cdef class SymmetryGroup():             # <<<<<<<<<<<<<<
 *     """
 *     A SymmetryGroup is a group of self-isometries of hyperbolic
*/
struct __pyx_obj_6SnapPy_SymmetryGroup {
  PyObject_HEAD
  struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *__pyx_vtab;
  SymmetryGroup *c_symmetry_group;
  PyObject *_is_full_group;
  PyObject *_owns_c_symmetry_group;
};


/* "cython/core/dirichlet.pyx":97
 * 
 * 
 * cdef class CDirichletDomain():             # <<<<<<<<<<<<<<
 *     cdef WEPolyhedron *c_dirichlet_domain
 *     cdef c_Triangulation *c_triangulation
*/
struct __pyx_obj_6SnapPy_CDirichletDomain {
  PyObject_HEAD
  struct __pyx_vtabstruct_6SnapPy_CDirichletDomain *__pyx_vtab;
  WEPolyhedron *c_dirichlet_domain;
  Triangulation *c_triangulation;
  int c_num_generators;
};


/* "cython/core/cusp_neighborhoods.pyx":3
 * # Cusp Neighborhoods
 * 
 * cdef class CCuspNeighborhood():             # <<<<<<<<<<<<<<
 *     cdef c_CuspNeighborhoods *c_cusp_neighborhood
 *     cdef c_Triangulation *c_triangulation
*/
struct __pyx_obj_6SnapPy_CCuspNeighborhood {
  PyObject_HEAD
  struct CuspNeighborhoods *c_cusp_neighborhood;
  Triangulation *c_triangulation;
  int _num_cusps;
  PyObject *original_indices;
};


/* "cython/core/tail.pyx":376
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, length, 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 *         self.Census_Morwen8 = tarfile.open(os.path.join(manifold_path, 'morwen8.tgz'), 'r:*')
*/
struct __pyx_defaults {
  PyObject_HEAD
  PyObject *arg0;
};


/* "cython/core/basic.pyx":551
 * 
 * def _StrLongestLen(l):
 *     return str(max(len(e) for e in l))             # <<<<<<<<<<<<<<
 * 
 * 
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_e;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
};


/* "cython/core/triangulation.pyx":1353
 *         return filled_tri
 * 
 *     def _unsimplified_filled_triangulation(self, method='fold'):             # <<<<<<<<<<<<<<
 *         """
 *         For a Triangulation that describes a closed manifold, returns
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation {
  PyObject_HEAD
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self;
};


/* "cython/core/triangulation.pyx":1393
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
 *         if not all(cusp_is_fillable(self.c_triangulation, c) for c in range(n)):             # <<<<<<<<<<<<<<
 *             raise IndexError('All cusps must be fillable.')
 *         cdef c_Triangulation* c_new_tri = NULL
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr {
  PyObject_HEAD
  struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *__pyx_outer_scope;
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_c;
};


/* "cython/core/triangulation.pyx":2466
 * 
 *             # Not a useful GAP or MAGMA object, so let's try.
 *             elif all(isinstance(p, PermutationGroupElement) for p in permutation_rep):             # <<<<<<<<<<<<<<
 *                 permutation_rep = [[x - 1 for x in perm.domain()]
 *                                    for perm in permutation_rep]
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_p;
};


/* "cython/core/fundamental_group.pyx":98
 *     return word_list
 * 
 * def list_as_word(int_list, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word {
  PyObject_HEAD
  int __pyx_v_num_generators;
  PyObject *__pyx_v_verbose_form;
};


/* "cython/core/fundamental_group.pyx":100
 * def list_as_word(int_list, int num_generators, verbose_form):
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)             # <<<<<<<<<<<<<<
 *         for g in int_list)
 * 
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr {
  PyObject_HEAD
  struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *__pyx_outer_scope;
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_g;
  PyObject *__pyx_t_0;
  Py_ssize_t __pyx_t_1;
  PyObject *(*__pyx_t_2)(PyObject *);
};


/* "cython/core/dirichlet.pyx":380
 *         return result
 * 
 *     def face_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of faces, each represented as a dictionary with
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list {
  PyObject_HEAD
  struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self;
  WEVertex *__pyx_v_vertex;
};


/* "cython/core/dirichlet.pyx":434
 *                 vertex = edge.v[end]
 *                 vertices.append(tuple(
 *                     self._number_(Real2Number(<Real>vertex.x[i]))             # <<<<<<<<<<<<<<
 *                     for i in range(1,4) ))
 *                 vertex_indices.append(
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr {
  PyObject_HEAD
  struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *__pyx_outer_scope;
  long __pyx_v_i;
  long __pyx_t_0;
};


/* "cython/core/dirichlet.pyx":636
 *         for matrix in matrices:
 *             for row in matrix:
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)             # <<<<<<<<<<<<<<
 *             result += '\n'
 *         return result
*/
struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr {
  PyObject_HEAD
  PyObject *__pyx_genexpr_arg_0;
  PyObject *__pyx_v_x;
};



/* "cython/core/triangulation.pyx":4
 * import low_index
 * 
 * cdef class Triangulation():             # <<<<<<<<<<<<<<
 *     """
 *     A Triangulation object represents a compact 3-manifold with torus
*/

struct __pyx_vtabstruct_6SnapPy_Triangulation {
  PyObject *(*get_from_new_plink)(struct __pyx_obj_6SnapPy_Triangulation *, struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_new_plink *__pyx_optional_args);
  PyObject *(*get_triangulation)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *, struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation *__pyx_optional_args);
  PyObject *(*get_triangulation_from_name)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *, struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation_from_name *__pyx_optional_args);
  PyObject *(*get_HT_knot)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *, PyObject *, PyObject *, PyObject *);
  PyObject *(*get_punctured_torus_bundle)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *);
  PyObject *(*get_from_file)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *, struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_file *__pyx_optional_args);
  PyObject *(*set_c_triangulation)(struct __pyx_obj_6SnapPy_Triangulation *, Triangulation *);
  PyObject *(*big_homology)(struct __pyx_obj_6SnapPy_Triangulation *);
  PyObject *(*c_presentation_matrix)(struct __pyx_obj_6SnapPy_Triangulation *);
  PyObject *(*csmall_homology)(struct __pyx_obj_6SnapPy_Triangulation *);
  RepresentationIntoSn *(*build_rep_into_Sn)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *);
};
static struct __pyx_vtabstruct_6SnapPy_Triangulation *__pyx_vtabptr_6SnapPy_Triangulation;


/* "cython/core/manifold.pyx":3
 * # Manifolds
 * 
 * cdef class Manifold(Triangulation):             # <<<<<<<<<<<<<<
 *     """
 *     A Manifold is a :class:`Triangulation` together with a geometric structure.
*/

struct __pyx_vtabstruct_6SnapPy_Manifold {
  struct __pyx_vtabstruct_6SnapPy_Triangulation __pyx_base;
  PyObject *(*_real_volume)(struct __pyx_obj_6SnapPy_Manifold *);
  PyObject *(*_cusped_complex_volume)(struct __pyx_obj_6SnapPy_Manifold *, Complex *, int *);
  PyObject *(*_old_chern_simons)(struct __pyx_obj_6SnapPy_Manifold *);
  PyObject *(*_chern_simons)(struct __pyx_obj_6SnapPy_Manifold *);
};
static struct __pyx_vtabstruct_6SnapPy_Manifold *__pyx_vtabptr_6SnapPy_Manifold;


/* "cython/core/abelian_group.pyx":142
 * 
 * 
 * cdef class PresentationMatrix():             # <<<<<<<<<<<<<<
 *     """
 *     A sparse representation of the presentation matrix of an abelian group.
*/

struct __pyx_vtabstruct_6SnapPy_PresentationMatrix {
  PyObject *(*_set)(struct __pyx_obj_6SnapPy_PresentationMatrix *, PyObject *, PyObject *);
};
static struct __pyx_vtabstruct_6SnapPy_PresentationMatrix *__pyx_vtabptr_6SnapPy_PresentationMatrix;


/* "cython/core/symmetry_group.pyx":3
 * #  Symmetry_group
 * 
 * cdef class SymmetryGroup():             # <<<<<<<<<<<<<<
 *     """
 *     A SymmetryGroup is a group of self-isometries of hyperbolic
*/

struct __pyx_vtabstruct_6SnapPy_SymmetryGroup {
  PyObject *(*_set_c_symmetry_group)(struct __pyx_obj_6SnapPy_SymmetryGroup *, SymmetryGroup *);
};
static struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *__pyx_vtabptr_6SnapPy_SymmetryGroup;


/* "cython/core/dirichlet.pyx":97
 * 
 * 
 * cdef class CDirichletDomain():             # <<<<<<<<<<<<<<
 *     cdef WEPolyhedron *c_dirichlet_domain
 *     cdef c_Triangulation *c_triangulation
*/

struct __pyx_vtabstruct_6SnapPy_CDirichletDomain {
  PyObject *(*triangulate)(struct __pyx_obj_6SnapPy_CDirichletDomain *, PyObject *);
};
static struct __pyx_vtabstruct_6SnapPy_CDirichletDomain *__pyx_vtabptr_6SnapPy_CDirichletDomain;
/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, 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;
  #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__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #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); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #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_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#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)

/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto (used by PyErrFetchRestore) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* PyObjectGetAttrStr.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyObjectGetAttrStrNoError.proto (used by GetBuiltinName) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* PyDictVersioning.proto (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_mstate_global->__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyObjectCall.proto (used by PyObjectFastCall) */
#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

/* PyObjectCallMethO.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs);

/* PyObjectFastCallMethod.proto */
#if CYTHON_VECTORCALL && PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyObject_FastCallMethod(name, args, nargsf) PyObject_VectorcallMethod(name, args, nargsf, NULL)
#else
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf);
#endif

/* TupleAndListFromArray.proto (used by fastcall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
#endif
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* IncludeStringH.proto (used by BytesEquals) */
#include <string.h>

/* BytesEquals.proto (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i))
#else
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i))
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i])
    #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
#else
    #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#if CYTHON_METH_FASTCALL || (CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start)
#else
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* py_dict_items.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);

/* CallCFunction.proto (used by CallUnboundCMethod0) */
#define __Pyx_CallCFunction(cfunc, self, args)\
    ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args)
#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\
    ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs)
#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\
    ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs)
#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\
    ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames)

/* PyObjectCallOneArg.proto (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod0) */
typedef struct {
    PyObject *type;
    PyObject **method_name;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS
    __pyx_atomic_int_type initialized;
#endif
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) {
#if !CYTHON_ATOMICS
    return 1;
#else
    __pyx_nonatomic_int_type expected = 0;
    if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) {
        return 0;
    }
    return expected;
#endif
}
static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) {
#if CYTHON_ATOMICS
    __pyx_atomic_store(&cfunc->initialized, 2);
#endif
}
#else
#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2
#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc)
#endif

/* CallUnboundCMethod0.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* py_dict_values.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* OwnedDictNext.proto (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue);
#else
CYTHON_INLINE
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue);
#endif

/* RaiseDoubleKeywords.proto (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywordsImpl.export */
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name
);
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* CallUnboundCMethod2.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* ParseKeywords.proto */
static CYTHON_INLINE int __Pyx_ParseKeywords(
    PyObject *kwds, PyObject *const *kwvalues, PyObject ** const argnames[],
    PyObject *kwds2, PyObject *values[],
    Py_ssize_t num_pos_args, Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* PyRange_Check.proto */
#if CYTHON_COMPILING_IN_PYPY && !defined(PyRange_Check)
  #define PyRange_Check(obj)  __Pyx_TypeCheck((obj), &PyRange_Type)
#endif

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck, unsafe_shared) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck, int unsafe_shared);

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* GetTopmostException.proto (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* PyIndexError_Check.proto */
#define __Pyx_PyExc_IndexError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_IndexError)

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* RaiseException.export */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* PyObjectDelAttr.proto (used by PyObjectSetAttrStr) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
#define __Pyx_PyObject_DelAttr(o, n) PyObject_SetAttr(o, n, NULL)
#else
#define __Pyx_PyObject_DelAttr(o, n) PyObject_DelAttr(o, n)
#endif

/* PyObjectSetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   __Pyx_PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

/* PyObjectFormatAndDecref.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f);
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f);

/* JoinPyUnicode.export */
static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char);

/* PyObjectVectorCallKwBuilder.proto */
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#if CYTHON_VECTORCALL
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_Vectorcall_CallFromBuilder PyObject_Vectorcall
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder _PyObject_Vectorcall
#endif
#define __Pyx_MakeVectorcallBuilderKwds(n) PyTuple_New(n)
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder __Pyx_PyObject_FastCallDict
#define __Pyx_MakeVectorcallBuilderKwds(n) __Pyx_PyDict_NewPresized(n)
#define __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n) PyDict_SetItem(builder, key, value)
#define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value)
#endif

/* HasAttr.proto */
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_HasAttr(o, n)  PyObject_HasAttrWithError(o, n)
#else
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
#endif

/* PyObjectVectorCallMethodKwBuilder.proto */
#if CYTHON_VECTORCALL && PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_VectorcallMethod_CallFromBuilder PyObject_VectorcallMethod
#else
static PyObject *__Pyx_Object_VectorcallMethod_CallFromBuilder(PyObject *name, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#endif

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* IterFinish.proto */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* UnpackItemEndCheck.proto */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* PyLongCompare.proto */
static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* PyLongCompare.proto */
static CYTHON_INLINE int __Pyx_PyLong_BoolNeObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* SliceObject.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
        PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
        int has_cstart, int has_cstop, int wraparound);

/* dict_setdefault.proto (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value);

/* LimitedApiGetTypeDict.proto (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp);
#endif

/* SetItemOnTypeDict.proto (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v);
#define __Pyx_SetItemOnTypeDict(tp, k, v) __Pyx__SetItemOnTypeDict((PyTypeObject*)tp, k, v)

/* FixUpExtensionType.proto (used by FetchCommonType) */
static CYTHON_INLINE int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);

/* AddModuleRef.proto (used by FetchSharedCythonModule) */
#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING ) ||\
     __PYX_LIMITED_VERSION_HEX < 0x030d0000)
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name);
#else
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#endif

/* FetchSharedCythonModule.proto (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void);

/* FetchCommonType.proto (used by CommonTypesMetaclass) */
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases);

/* CommonTypesMetaclass.proto (used by CythonFunctionShared) */
static int __pyx_CommonTypesMetaclass_init(PyObject *module);
#define __Pyx_CommonTypesMetaclass_USED

/* CallTypeTraverse.proto (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg);
#endif

/* PyMethodNew.proto (used by CythonFunctionShared) */
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ);

/* PyVectorcallFastCallDict.proto (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto (used by CythonFunction) */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_CyFunction_GetClassObj(f)\
      (((__pyx_CyFunctionObject *) (f))->func_classobj)
#else
  #define __Pyx_CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject_HEAD
    PyObject *func;
#elif PY_VERSION_HEX < 0x030900B1
    PyCFunctionObject func;
#else
    PyCMethodObject func;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_METH_FASTCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_dict;
#endif
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    PyObject *defaults;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
    PyObject *func_is_coroutine;
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void));
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func,
                                                         PyTypeObject *defaults_type);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* PyObject_Unicode.proto */
#define __Pyx_PyObject_Unicode(obj)\
    (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj))

/* pybytes_as_double.proto (used by pyobject_as_double) */
static double __Pyx_SlowPyString_AsDouble(PyObject *obj);
static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length);
static CYTHON_INLINE double __Pyx_PyBytes_AsDouble(PyObject *obj) {
    char* as_c_string;
    Py_ssize_t size;
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    as_c_string = PyBytes_AS_STRING(obj);
    size = PyBytes_GET_SIZE(obj);
#else
    if (PyBytes_AsStringAndSize(obj, &as_c_string, &size) < 0) {
        return (double)-1;
    }
#endif
    return __Pyx__PyBytes_AsDouble(obj, as_c_string, size);
}
static CYTHON_INLINE double __Pyx_PyByteArray_AsDouble(PyObject *obj) {
    char* as_c_string;
    Py_ssize_t size;
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    as_c_string = PyByteArray_AS_STRING(obj);
    size = PyByteArray_GET_SIZE(obj);
#else
    as_c_string = PyByteArray_AsString(obj);
    if (as_c_string == NULL) {
        return (double)-1;
    }
    size = PyByteArray_Size(obj);
#endif
    return __Pyx__PyBytes_AsDouble(obj, as_c_string, size);
}

/* pyunicode_as_double.proto (used by pyobject_as_double) */
#if !CYTHON_COMPILING_IN_PYPY && CYTHON_ASSUME_SAFE_MACROS
static const char* __Pyx__PyUnicode_AsDouble_Copy(const void* data, const int kind, char* buffer, Py_ssize_t start, Py_ssize_t end) {
    int last_was_punctuation;
    Py_ssize_t i;
    last_was_punctuation = 1;
    for (i=start; i <= end; i++) {
        Py_UCS4 chr = PyUnicode_READ(kind, data, i);
        int is_punctuation = (chr == '_') | (chr == '.');
        *buffer = (char)chr;
        buffer += (chr != '_');
        if (unlikely(chr > 127)) goto parse_failure;
        if (unlikely(last_was_punctuation & is_punctuation)) goto parse_failure;
        last_was_punctuation = is_punctuation;
    }
    if (unlikely(last_was_punctuation)) goto parse_failure;
    *buffer = '\0';
    return buffer;
parse_failure:
    return NULL;
}
static double __Pyx__PyUnicode_AsDouble_inf_nan(const void* data, int kind, Py_ssize_t start, Py_ssize_t length) {
    int matches = 1;
    Py_UCS4 chr;
    Py_UCS4 sign = PyUnicode_READ(kind, data, start);
    int is_signed = (sign == '-') | (sign == '+');
    start += is_signed;
    length -= is_signed;
    switch (PyUnicode_READ(kind, data, start)) {
        #ifdef Py_NAN
        case 'n':
        case 'N':
            if (unlikely(length != 3)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+1);
            matches &= (chr == 'a') | (chr == 'A');
            chr = PyUnicode_READ(kind, data, start+2);
            matches &= (chr == 'n') | (chr == 'N');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_NAN : Py_NAN;
        #endif
        case 'i':
        case 'I':
            if (unlikely(length < 3)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+1);
            matches &= (chr == 'n') | (chr == 'N');
            chr = PyUnicode_READ(kind, data, start+2);
            matches &= (chr == 'f') | (chr == 'F');
            if (likely(length == 3 && matches))
                return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
            if (unlikely(length != 8)) goto parse_failure;
            chr = PyUnicode_READ(kind, data, start+3);
            matches &= (chr == 'i') | (chr == 'I');
            chr = PyUnicode_READ(kind, data, start+4);
            matches &= (chr == 'n') | (chr == 'N');
            chr = PyUnicode_READ(kind, data, start+5);
            matches &= (chr == 'i') | (chr == 'I');
            chr = PyUnicode_READ(kind, data, start+6);
            matches &= (chr == 't') | (chr == 'T');
            chr = PyUnicode_READ(kind, data, start+7);
            matches &= (chr == 'y') | (chr == 'Y');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
        case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':
            break;
        default:
            goto parse_failure;
    }
    return 0.0;
parse_failure:
    return -1.0;
}
static double __Pyx_PyUnicode_AsDouble_WithSpaces(PyObject *obj) {
    double value;
    const char *last;
    char *end;
    Py_ssize_t start, length = PyUnicode_GET_LENGTH(obj);
    const int kind = PyUnicode_KIND(obj);
    const void* data = PyUnicode_DATA(obj);
    start = 0;
    while (Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, start)))
        start++;
    while (start < length - 1 && Py_UNICODE_ISSPACE(PyUnicode_READ(kind, data, length - 1)))
        length--;
    length -= start;
    if (unlikely(length <= 0)) goto fallback;
    value = __Pyx__PyUnicode_AsDouble_inf_nan(data, kind, start, length);
    if (unlikely(value == -1.0)) goto fallback;
    if (value != 0.0) return value;
    if (length < 40) {
        char number[40];
        last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length);
        if (unlikely(!last)) goto fallback;
        value = PyOS_string_to_double(number, &end, NULL);
    } else {
        char *number = (char*) PyMem_Malloc((length + 1) * sizeof(char));
        if (unlikely(!number)) goto fallback;
        last = __Pyx__PyUnicode_AsDouble_Copy(data, kind, number, start, start + length);
        if (unlikely(!last)) {
            PyMem_Free(number);
            goto fallback;
        }
        value = PyOS_string_to_double(number, &end, NULL);
        PyMem_Free(number);
    }
    if (likely(end == last) || (value == (double)-1 && PyErr_Occurred())) {
        return value;
    }
fallback:
    return __Pyx_SlowPyString_AsDouble(obj);
}
#endif
static CYTHON_INLINE double __Pyx_PyUnicode_AsDouble(PyObject *obj) {
#if !CYTHON_COMPILING_IN_PYPY && CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(__Pyx_PyUnicode_READY(obj) == -1))
        return (double)-1;
    if (likely(PyUnicode_IS_ASCII(obj))) {
        const char *s;
        Py_ssize_t length;
        s = PyUnicode_AsUTF8AndSize(obj, &length);
        return __Pyx__PyBytes_AsDouble(obj, s, length);
    }
    return __Pyx_PyUnicode_AsDouble_WithSpaces(obj);
#else
    return __Pyx_SlowPyString_AsDouble(obj);
#endif
}

/* pyobject_as_double.proto */
static double __Pyx__PyObject_AsDouble(PyObject* obj);
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyObject_AsDouble(obj)\
(likely(PyFloat_CheckExact(obj)) ? PyFloat_AS_DOUBLE(obj) :\
 likely(PyLong_CheckExact(obj)) ?\
 PyFloat_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))
#else
#define __Pyx_PyObject_AsDouble(obj)\
((likely(PyFloat_CheckExact(obj))) ?  __Pyx_PyFloat_AS_DOUBLE(obj) :\
 likely(PyLong_CheckExact(obj)) ?\
 PyLong_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))
#endif

/* FloatExceptionCheck.proto */
#define __PYX_CHECK_FLOAT_EXCEPTION(value, error_value)\
    ((error_value) == (error_value) ?\
     (value) == (error_value) :\
     (value) != (value))

/* PyValueError_Check.proto */
#define __Pyx_PyExc_ValueError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_ValueError)

/* PyTypeError_Check.proto */
#define __Pyx_PyExc_TypeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_TypeError)

/* PyObjectCallNoArg.proto (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

/* PyObjectGetMethod.proto (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
#endif

/* PyObjectCallMethod0.proto (used by dict_iter) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNoneIterError.proto (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto (used by dict_iter) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
    PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple);
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* DictGetItem.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* PyKeyError_Check.proto */
#define __Pyx_PyExc_KeyError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_KeyError)

/* PyAttributeError_Check.proto */
#define __Pyx_PyExc_AttributeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AttributeError)

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* RaiseUnboundLocalError.proto */
static void __Pyx_RaiseUnboundLocalError(const char *varname);

/* pep479.proto */
static void __Pyx_Generator_Replace_StopIteration(int in_async_gen);

/* py_abs.proto */
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject *__Pyx_PyLong_AbsNeg(PyObject *num);
#define __Pyx_PyNumber_Absolute(x)\
    ((likely(PyLong_CheckExact(x))) ?\
         (likely(__Pyx_PyLong_IsNonNeg(x)) ? __Pyx_NewRef(x) : __Pyx_PyLong_AbsNeg(x)) :\
         PyNumber_Absolute(x))
#else
#define __Pyx_PyNumber_Absolute(x)  PyNumber_Absolute(x)
#endif

/* UnicodeConcatInPlace.proto */
# if CYTHON_COMPILING_IN_CPYTHON
    #if CYTHON_REFNANNY
        #define __Pyx_PyUnicode_ConcatInPlace(left, right, unsafe_shared) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, unsafe_shared, __pyx_refnanny)
    #else
        #define __Pyx_PyUnicode_ConcatInPlace(left, right, unsafe_shared) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, unsafe_shared)
    #endif
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_DefinitelyUnique)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_OwnStrongReference)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_DefinitelyUnique)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_SharedReference)
    static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right, int unsafe_shared
        #if CYTHON_REFNANNY
        , void* __pyx_refnanny
        #endif
    );
#else
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace __Pyx_PyUnicode_Concat
#endif
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace(left, right))

/* PyUnicode_Unicode.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj);

/* PyObjectCall2Args.proto (used by CallUnboundCMethod1) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* CallUnboundCMethod1.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#else
#define __Pyx_CallUnboundCMethod1(cfunc, self, arg)  __Pyx__CallUnboundCMethod1(cfunc, self, arg)
#endif

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* PyRuntimeError_Check.proto */
#define __Pyx_PyExc_RuntimeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_RuntimeError)

/* ArgTypeTestFunc.export */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))

/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* PyIOError_Check.proto */
#define __Pyx_PyExc_IOError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_IOError)

/* RejectKeywords.export */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds);

/* pyint_simplify.proto */
static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none);

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_RemainderObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_RemainderObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceRemainder(op1, op2) : PyNumber_Remainder(op1, op2))
#endif

/* PyObjectCallMethod1.proto (used by ByteArrayAppend) */
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

/* ByteArrayAppend.proto */
static CYTHON_INLINE int __Pyx_PyByteArray_Append(PyObject* bytearray, int value);

/* RaiseUnexpectedTypeError.proto */
static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj);

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* PyLongCompare.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_EqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* RaiseClosureNameError.proto */
static void __Pyx_RaiseClosureNameError(const char *varname);

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_SubtractObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_MultiplyCObj(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_MultiplyCObj(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceMultiply(op1, op2) : PyNumber_Multiply(op1, op2))
#endif

/* PyObjectFormatSimple.proto */
#if CYTHON_COMPILING_IN_PYPY
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#elif CYTHON_USE_TYPE_SLOTS
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        likely(PyLong_CheckExact(s)) ? PyLong_Type.tp_repr(s) :\
        likely(PyFloat_CheckExact(s)) ? PyFloat_Type.tp_repr(s) :\
        PyObject_Format(s, f))
#else
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#endif

/* BuildPyUnicode.proto (used by COrdinalToPyUnicode) */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, const char* chars, int clength,
                                                int prepend_sign, char padding_char);

/* COrdinalToPyUnicode.proto (used by CIntToPyUnicode) */
static CYTHON_INLINE int __Pyx_CheckUnicodeValue(int value);
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromOrdinal_Padded(int value, Py_ssize_t width, char padding_char);

/* GCCDiagnostics.proto (used by CIntToPyUnicode) */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* IncludeStdlibH.proto (used by CIntToPyUnicode) */
#include <stdlib.h>

/* CIntToPyUnicode.proto */
#define __Pyx_PyUnicode_From_int(value, width, padding_char, format_char) (\
    ((format_char) == ('c')) ?\
        __Pyx_uchar___Pyx_PyUnicode_From_int(value, width, padding_char) :\
        __Pyx____Pyx_PyUnicode_From_int(value, width, padding_char, format_char)\
    )
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_int(int value, Py_ssize_t width, char padding_char);
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_int(int value, Py_ssize_t width, char padding_char, char format_char);

/* DivInt[Py_ssize_t].proto */
static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t, Py_ssize_t, int b_is_constant);

/* ModInt[Py_ssize_t].proto */
static CYTHON_INLINE Py_ssize_t __Pyx_mod_Py_ssize_t(Py_ssize_t, Py_ssize_t, int b_is_constant);

/* append.proto */
static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x);

/* ImportImpl.export */
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level);

/* Import.proto */
static CYTHON_INLINE PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* AssertionsEnabled.proto */
#if CYTHON_COMPILING_IN_LIMITED_API  ||  PY_VERSION_HEX >= 0x030C0000
  static int __pyx_assertions_enabled_flag;
  #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag)
  #if __clang__ || __GNUC__
  __attribute__((no_sanitize("thread")))
  #endif
  static int __Pyx_init_assertions_enabled(void) {
    PyObject *builtins, *debug, *debug_str;
    int flag;
    builtins = PyEval_GetBuiltins();
    if (!builtins) goto bad;
    debug_str = PyUnicode_FromStringAndSize("__debug__", 9);
    if (!debug_str) goto bad;
    debug = PyObject_GetItem(builtins, debug_str);
    Py_DECREF(debug_str);
    if (!debug) goto bad;
    flag = PyObject_IsTrue(debug);
    Py_DECREF(debug);
    if (flag == -1) goto bad;
    __pyx_assertions_enabled_flag = flag;
    return 0;
  bad:
    __pyx_assertions_enabled_flag = 1;
    return -1;
  }
#else
  #define __Pyx_init_assertions_enabled()  (0)
  #define __pyx_assertions_enabled()  (!Py_OptimizeFlag)
#endif

/* PyAssertionError_Check.proto */
#define __Pyx_PyExc_AssertionError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AssertionError)

/* pyfrozenset_new.proto (used by py_set_discard_unhashable) */
static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it);

/* py_set_remove.proto */
static CYTHON_INLINE int __Pyx_PySet_Remove(PyObject *set, PyObject *key);

/* py_dict_pop.proto */
static CYTHON_INLINE PyObject *__Pyx_PyDict_Pop(PyObject *d, PyObject *key, PyObject *default_value);

/* dict_getitem_default.proto */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value);

/* set_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set,
                                                  Py_ssize_t* p_orig_length, int* p_source_is_set);
static CYTHON_INLINE int __Pyx_set_iter_next(
        PyObject* iter_obj, Py_ssize_t orig_length,
        Py_ssize_t* ppos, PyObject **value,
        int source_is_set);

/* PySetContains.proto */
static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq);

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* pop.proto */
static CYTHON_INLINE PyObject* __Pyx__PyObject_Pop(PyObject* L);
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE PyObject* __Pyx_PyList_Pop(PyObject* L);
#define __Pyx_PyObject_Pop(L) (likely(PyList_CheckExact(L)) ?\
    __Pyx_PyList_Pop(L) : __Pyx__PyObject_Pop(L))
#else
#define __Pyx_PyList_Pop(L)  __Pyx__PyObject_Pop(L)
#define __Pyx_PyObject_Pop(L)  __Pyx__PyObject_Pop(L)
#endif

/* UnicodeAsUCS4.proto (used by object_ord) */
static CYTHON_INLINE Py_UCS4 __Pyx_PyUnicode_AsPy_UCS4(PyObject*);

/* object_ord.proto */
#define __Pyx_PyObject_Ord(c)\
    (likely(PyUnicode_Check(c)) ? (long)__Pyx_PyUnicode_AsPy_UCS4(c) : __Pyx__PyObject_Ord(c))
static long __Pyx__PyObject_Ord(PyObject* c);

/* pop_index.proto */
static PyObject* __Pyx__PyObject_PopNewIndex(PyObject* L, PyObject* py_ix);
static PyObject* __Pyx__PyObject_PopIndex(PyObject* L, PyObject* py_ix);
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t ix);
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    (likely(PyList_CheckExact(L) && __Pyx_fits_Py_ssize_t(ix, type, is_signed))) ?\
        __Pyx__PyList_PopIndex(L, py_ix, ix) : (\
        (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
            __Pyx__PyObject_PopIndex(L, py_ix)))
#define __Pyx_PyList_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    __Pyx_fits_Py_ssize_t(ix, type, is_signed) ?\
        __Pyx__PyList_PopIndex(L, py_ix, ix) : (\
        (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
            __Pyx__PyObject_PopIndex(L, py_ix)))
#else
#define __Pyx_PyList_PopIndex(L, py_ix, ix, is_signed, type, to_py_func)\
    __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func)
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
        __Pyx__PyObject_PopIndex(L, py_ix))
#endif

/* SliceTupleAndList.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice(PyObject* src, Py_ssize_t start, Py_ssize_t stop);
static CYTHON_INLINE PyObject* __Pyx_PyTuple_GetSlice(PyObject* src, Py_ssize_t start, Py_ssize_t stop);
#else
#define __Pyx_PyList_GetSlice(seq, start, stop)   PySequence_GetSlice(seq, start, stop)
#define __Pyx_PyTuple_GetSlice(seq, start, stop)  PySequence_GetSlice(seq, start, stop)
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddCObj(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_AddCObj(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_FloorDivideObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_FloorDivideObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceFloorDivide(op1, op2) : PyNumber_FloorDivide(op1, op2))
#endif

/* PyObjectLookupSpecial.proto */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 0)
#define __Pyx_PyObject_LookupSpecial(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 1)
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error);
#else
#define __Pyx_PyObject_LookupSpecialNoError(o,n) __Pyx_PyObject_GetAttrStrNoError(o,n)
#define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n)
#endif

/* SetStringIndexingError.proto (used by GetItemIntByteArray) */
static void __Pyx_SetStringIndexingError(const char* message, int has_gil);

/* GetItemIntByteArray.proto */
#define __Pyx_GetItemInt_ByteArray(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_ByteArray_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, has_gil, unsafe_shared) :\
    (__Pyx_SetStringIndexingError("bytearray index out of range", has_gil), -1))
static CYTHON_INLINE int __Pyx_GetItemInt_ByteArray_Fast(PyObject* string, Py_ssize_t i,
                                                         int wraparound, int boundscheck, int has_gil, int unsafe_shared);

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_RshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_RshiftObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceRshift(op1, op2) : PyNumber_Rshift(op1, op2))
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_AndObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_AndObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAnd(op1, op2) : PyNumber_And(op1, op2))
#endif

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_LshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_LshiftObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceLshift(op1, op2) : PyNumber_Lshift(op1, op2))
#endif

/* PyNotImplementedError_Check.proto */
#define __Pyx_PyExc_NotImplementedError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_NotImplementedError)

/* PyStopIteration_Check.proto */
#define __Pyx_PyExc_StopIteration_Check(obj)  __Pyx_TypeCheck(obj, PyExc_StopIteration)

/* PySequenceMultiply.proto */
#define __Pyx_PySequence_Multiply_Left(mul, seq)  __Pyx_PySequence_Multiply(seq, mul)
#if !CYTHON_USE_TYPE_SLOTS
#define  __Pyx_PySequence_Multiply PySequence_Repeat
#else
static CYTHON_INLINE PyObject* __Pyx_PySequence_Multiply(PyObject *seq, Py_ssize_t mul);
#endif

/* CIntToPyUnicode.proto */
#define __Pyx_PyUnicode_From_long(value, width, padding_char, format_char) (\
    ((format_char) == ('c')) ?\
        __Pyx_uchar___Pyx_PyUnicode_From_long(value, width, padding_char) :\
        __Pyx____Pyx_PyUnicode_From_long(value, width, padding_char, format_char)\
    )
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_long(long value, Py_ssize_t width, char padding_char);
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_long(long value, Py_ssize_t width, char padding_char, char format_char);

/* AllocateExtensionType.proto */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final);

/* DeallocKeepAlive.proto */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_DeallocKeepAliveBegin(o) do {\
        _Py_atomic_store_uintptr_relaxed(&(o)->ob_tid, _Py_ThreadId());\
        _Py_atomic_store_uint32_relaxed(&(o)->ob_ref_local, 1);\
        _Py_atomic_store_ssize_relaxed(&(o)->ob_ref_shared, 0);\
    } while (0)
#define __Pyx_DeallocKeepAliveEnd(o)\
        _Py_atomic_store_uint32_relaxed(&(o)->ob_ref_local, 0)
#else
#define __Pyx_DeallocKeepAliveBegin(o) __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1)
#define __Pyx_DeallocKeepAliveEnd(o)   __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1)
#endif

/* CheckTypeForFreelists.proto */
#if CYTHON_USE_FREELISTS
#if CYTHON_USE_TYPE_SPECS
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t) == (expected_tp)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  Py_TPFLAGS_IS_ABSTRACT
#else
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t)->tp_basicsize == (expected_size)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)
#endif
#define __PYX_CHECK_TYPE_FOR_FREELISTS(t, expected_tp, expected_size)\
    (__PYX_CHECK_FINAL_TYPE_FOR_FREELISTS((t), (expected_tp), (expected_size)) &\
     (int) (!__Pyx_PyType_HasFeature((t), __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS)))
#endif

/* ValidateBasesTuple.proto (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases);
#endif

/* PyType_Ready.proto */
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);

/* SetVTable.proto */
static int __Pyx_SetVtable(PyTypeObject* typeptr , void* vtable);

/* GetVTable.proto (used by MergeVTables) */
static void* __Pyx_GetVtable(PyTypeObject *type);

/* MergeVTables.proto */
static int __Pyx_MergeVtables(PyTypeObject *type);

/* DelItemOnTypeDict.proto (used by SetupReduce) */
static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k);
#define __Pyx_DelItemOnTypeDict(tp, k) __Pyx__DelItemOnTypeDict((PyTypeObject*)tp, k)

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* Py3UpdateBases.proto */
static PyObject* __Pyx_PEP560_update_bases(PyObject *bases);

/* CalculateMetaclass.proto */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

/* SetNameInClass.proto */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
#elif CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
#else
#define __Pyx_SetNameInClass(ns, name, value)  PyObject_SetItem(ns, name, value)
#endif

/* Py3ClassCreate.proto */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
                                           PyObject *mkw, PyObject *modname, PyObject *doc);
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass);

/* PyImportError_Check.proto */
#define __Pyx_PyExc_ImportError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_ImportError)

/* ListPack.proto */
static PyObject *__Pyx_PyList_Pack(Py_ssize_t n, ...);

/* GetNameInClass.proto */
#define __Pyx_GetNameInClass(var, nmspace, name)  (var) = __Pyx__GetNameInClass(nmspace, name)
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name);

/* ClassMethod.proto */
#if !CYTHON_COMPILING_IN_LIMITED_API
#include "descrobject.h"
#endif
CYTHON_UNUSED static PyObject* __Pyx_Method_ClassMethod(PyObject *method);

/* CLineInTraceback.proto (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#else
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#endif

/* CodeObjectCache.proto (used by AddTraceback) */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject __Pyx_CachedCodeObjectType;
#else
typedef PyCodeObject __Pyx_CachedCodeObjectType;
#endif
typedef struct {
    __Pyx_CachedCodeObjectType* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_int_type accessor_count;
  #endif
};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* RealImag.proto */
#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(__cplusplus) && CYTHON_CCOMPLEX\
        && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
    #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

/* Arithmetic.proto */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
    #define __Pyx_c_eq_double(a, b)   ((a)==(b))
    #define __Pyx_c_sum_double(a, b)  ((a)+(b))
    #define __Pyx_c_diff_double(a, b) ((a)-(b))
    #define __Pyx_c_prod_double(a, b) ((a)*(b))
    #define __Pyx_c_quot_double(a, b) ((a)/(b))
    #define __Pyx_c_neg_double(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
    #define __Pyx_c_conj_double(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs_double(z)     (::std::abs(z))
        #define __Pyx_c_pow_double(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero_double(z) ((z)==0)
    #define __Pyx_c_conj_double(z)    (conj(z))
    #if 1
        #define __Pyx_c_abs_double(z)     (cabs(z))
        #define __Pyx_c_pow_double(a, b)  (cpow(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex);
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
    #endif
#endif

/* CheckUnpickleChecksum.proto */
static CYTHON_INLINE int __Pyx_CheckUnpickleChecksum(long checksum, long checksum1, long checksum2, long checksum3, const char *members);

/* FromPy.proto */
static __pyx_t_double_complex __Pyx_PyComplex_As___pyx_t_double_complex(PyObject*);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_KLPStrandType(KLPStrandType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_KLPCrossingType(KLPCrossingType value);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Boolean(Boolean value);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned int __Pyx_PyLong_As_unsigned_int(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Orientability(Orientability value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_FuncResult(FuncResult value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Permutation(Permutation value);

/* CIntFromPy.proto */
static CYTHON_INLINE Boolean __Pyx_PyLong_As_Boolean(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_CuspTopology(CuspTopology value);

/* CIntFromPy.proto */
static CYTHON_INLINE size_t __Pyx_PyLong_As_size_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE VertexIndex __Pyx_PyLong_As_VertexIndex(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE FaceIndex __Pyx_PyLong_As_FaceIndex(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Orientation(Orientation value);

/* CIntFromPy.proto */
static CYTHON_INLINE Orientation __Pyx_PyLong_As_Orientation(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_MatrixEntry(MatrixEntry value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_CoveringType(CoveringType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_SolutionType(SolutionType value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_MatrixParity(MatrixParity value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Orbifold1(Orbifold1 value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_char(unsigned char value);

/* CIntFromPy.proto */
static CYTHON_INLINE Permutation __Pyx_PyLong_As_Permutation(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE Orientability __Pyx_PyLong_As_Orientability(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE KLPStrandType __Pyx_PyLong_As_KLPStrandType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE KLPCrossingType __Pyx_PyLong_As_KLPCrossingType(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned char __Pyx_PyLong_As_unsigned_char(PyObject *);

/* Globals.proto */
static PyObject* __Pyx_Globals(void);

/* UpdateUnpickledDict.proto */
static int __Pyx_UpdateUnpickledDict(PyObject *obj, PyObject *state, Py_ssize_t index);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
#else
static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp);
#endif
#else  // !LIMITED_API
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) {
    return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2);
}
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
#ifdef PyExceptionInstance_Check
  #define __Pyx_PyBaseException_Check(obj) PyExceptionInstance_Check(obj)
#else
  #define __Pyx_PyBaseException_Check(obj) __Pyx_TypeCheck(obj, PyExc_BaseException)
#endif

/* GetRuntimeVersion.proto */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
static unsigned long __Pyx_cached_runtime_version = 0;
static void __Pyx_init_runtime_version(void);
#else
#define __Pyx_init_runtime_version()
#endif
static unsigned long __Pyx_get_runtime_version(void);

/* IterNextPlain.proto (used by CoroutineBase) */
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator);
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void);
#endif

/* ReturnWithStopIteration.proto (used by CoroutineBase) */
static CYTHON_INLINE void __Pyx_ReturnWithStopIteration(PyObject* value, int async, int iternext);

/* CoroutineBase.proto (used by Generator) */
struct __pyx_CoroutineObject;
typedef PyObject *(*__pyx_coroutine_body_t)(struct __pyx_CoroutineObject *, PyThreadState *, PyObject *);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_ExcInfoStruct  _PyErr_StackItem
#else
typedef struct {
    PyObject *exc_type;
    PyObject *exc_value;
    PyObject *exc_traceback;
} __Pyx_ExcInfoStruct;
#endif
typedef struct __pyx_CoroutineObject {
    PyObject_HEAD
    __pyx_coroutine_body_t body;
    PyObject *closure;
    __Pyx_ExcInfoStruct gi_exc_state;
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *gi_weakreflist;
#endif
    PyObject *classobj;
    PyObject *yieldfrom;
    __Pyx_pyiter_sendfunc yieldfrom_am_send;
    PyObject *gi_name;
    PyObject *gi_qualname;
    PyObject *gi_modulename;
    PyObject *gi_code;
    PyObject *gi_frame;
#if CYTHON_USE_SYS_MONITORING && (CYTHON_PROFILE || CYTHON_TRACE)
    PyMonitoringState __pyx_pymonitoring_state[__Pyx_MonitoringEventTypes_CyGen_count];
    uint64_t __pyx_pymonitoring_version;
#endif
    int resume_label;
    char is_running;
} __pyx_CoroutineObject;
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
    PyTypeObject *type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
    PyObject *name, PyObject *qualname, PyObject *module_name);
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name);
static CYTHON_INLINE void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *self);
static int __Pyx_Coroutine_clear(PyObject *self);
static __Pyx_PySendResult __Pyx_Coroutine_AmSend(PyObject *self, PyObject *value, PyObject **retval);
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value);
static __Pyx_PySendResult __Pyx_Coroutine_Close(PyObject *self, PyObject **retval);
static PyObject *__Pyx_Coroutine_Throw(PyObject *gen, PyObject *args);
#if CYTHON_USE_EXC_INFO_STACK
#define __Pyx_Coroutine_SwapException(self)
#define __Pyx_Coroutine_ResetAndClearException(self)  __Pyx_Coroutine_ExceptionClear(&(self)->gi_exc_state)
#else
#define __Pyx_Coroutine_SwapException(self) {\
    __Pyx_ExceptionSwap(&(self)->gi_exc_state.exc_type, &(self)->gi_exc_state.exc_value, &(self)->gi_exc_state.exc_traceback);\
    __Pyx_Coroutine_ResetFrameBackpointer(&(self)->gi_exc_state);\
    }
#define __Pyx_Coroutine_ResetAndClearException(self) {\
    __Pyx_ExceptionReset((self)->gi_exc_state.exc_type, (self)->gi_exc_state.exc_value, (self)->gi_exc_state.exc_traceback);\
    (self)->gi_exc_state.exc_type = (self)->gi_exc_state.exc_value = (self)->gi_exc_state.exc_traceback = NULL;\
    }
#endif
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__pyx_tstate, pvalue)
#else
#define __Pyx_PyGen_FetchStopIterationValue(pvalue)\
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, pvalue)
#endif
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *tstate, PyObject **pvalue);
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state);
static char __Pyx_Coroutine_test_and_set_is_running(__pyx_CoroutineObject *gen);
static void __Pyx_Coroutine_unset_is_running(__pyx_CoroutineObject *gen);
static char __Pyx_Coroutine_get_is_running(__pyx_CoroutineObject *gen);
static PyObject *__Pyx_Coroutine_get_is_running_getter(PyObject *gen, void *closure);
#if __PYX_HAS_PY_AM_SEND == 2
static void __Pyx_SetBackportTypeAmSend(PyTypeObject *type, __Pyx_PyAsyncMethodsStruct *static_amsend_methods, __Pyx_pyiter_sendfunc am_send);
#endif
static PyObject *__Pyx_Coroutine_fail_reduce_ex(PyObject *self, PyObject *arg);

/* Generator.proto */
#define __Pyx_Generator_USED
#define __Pyx_Generator_CheckExact(obj) __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_GeneratorType)
#define __Pyx_Generator_New(body, code, closure, name, qualname, module_name)\
    __Pyx__Coroutine_New(__pyx_mstate_global->__pyx_GeneratorType, body, code, closure, name, qualname, module_name)
static PyObject *__Pyx_Generator_Next(PyObject *self);
static int __pyx_Generator_init(PyObject *module);
static CYTHON_INLINE PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* DecompressString.proto */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo);

/* MultiPhaseInitModuleState.proto */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
static PyObject *__Pyx_State_FindModule(void*);
static int __Pyx_State_AddModule(PyObject* module, void*);
static int __Pyx_State_RemoveModule(void*);
#elif CYTHON_USE_MODULE_STATE
#define __Pyx_State_FindModule PyState_FindModule
#define __Pyx_State_AddModule PyState_AddModule
#define __Pyx_State_RemoveModule PyState_RemoveModule
#endif

/* #### Code section: module_declarations ### */
/* CythonABIVersion.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
    #if CYTHON_METH_FASTCALL
        #define __PYX_FASTCALL_ABI_SUFFIX  "_fastcall"
    #else
        #define __PYX_FASTCALL_ABI_SUFFIX
    #endif
    #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_FASTCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#else
    #define __PYX_LIMITED_ABI_SUFFIX
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    #define __PYX_AM_SEND_ABI_SUFFIX
#elif __PYX_HAS_PY_AM_SEND == 2
    #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport"
#else
    #define __PYX_AM_SEND_ABI_SUFFIX "noamsend"
#endif
#ifndef __PYX_MONITORING_ABI_SUFFIX
    #define __PYX_MONITORING_ABI_SUFFIX
#endif
#if CYTHON_USE_TP_FINALIZE
    #define __PYX_TP_FINALIZE_ABI_SUFFIX
#else
    #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize"
#endif
#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED)
    #define __PYX_FREELISTS_ABI_SUFFIX
#else
    #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists"
#endif
#define CYTHON_ABI  __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."

static PyObject *__pyx_f_6SnapPy_13Triangulation_get_from_new_plink(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_new_plink *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_get_triangulation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_spec, struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_get_triangulation_from_name(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_name, struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation_from_name *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_get_HT_knot(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_crossings, PyObject *__pyx_v_alternation, PyObject *__pyx_v_index, PyObject *__pyx_v_remove_finite_vertices); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_get_punctured_torus_bundle(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_match); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_get_from_file(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_name, struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_file *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_set_c_triangulation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, Triangulation *__pyx_v_c_triangulation); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_big_homology(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_c_presentation_matrix(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto*/
static PyObject *__pyx_f_6SnapPy_13Triangulation_csmall_homology(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto*/
static RepresentationIntoSn *__pyx_f_6SnapPy_13Triangulation_build_rep_into_Sn(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_perm_list); /* proto*/
static PyObject *__pyx_f_6SnapPy_8Manifold__real_volume(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto*/
static PyObject *__pyx_f_6SnapPy_8Manifold__cusped_complex_volume(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, Complex *__pyx_v_volume, int *__pyx_v_accuracy); /* proto*/
static PyObject *__pyx_f_6SnapPy_8Manifold__old_chern_simons(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto*/
static PyObject *__pyx_f_6SnapPy_8Manifold__chern_simons(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto*/
static PyObject *__pyx_f_6SnapPy_18PresentationMatrix__set(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_ij, PyObject *__pyx_v_value); /* proto*/
static PyObject *__pyx_f_6SnapPy_13SymmetryGroup__set_c_symmetry_group(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self, SymmetryGroup *__pyx_v_c_symmetry_group); /* proto*/
static PyObject *__pyx_f_6SnapPy_16CDirichletDomain_triangulate(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_return_class); /* proto*/

/* Module declarations from "libc.math" */

/* Module declarations from "SnapPy" */
__PYX_EXTERN_C DL_EXPORT(int) SnapPy_test_flag;
__PYX_EXTERN_C DL_EXPORT(Boolean) gLongComputationInProgress;
__PYX_EXTERN_C DL_EXPORT(Boolean) gLongComputationCancelled;
__PYX_EXTERN_C DL_EXPORT(PyObject) *gLongComputationTicker;
static __pyx_t_6SnapPy_func_real_to_obj __pyx_v_6SnapPy_Real2gen;
static PyObject *__pyx_v_6SnapPy_IS_HUGE = 0;
static PyObject *__pyx_v_6SnapPy_IS_BIG = 0;
static PyObject *__pyx_v_6SnapPy_IS_COMPLETE = 0;
static PyObject *__pyx_f_6SnapPy_real_to_string(__pyx_t_6SnapPy_Real); /*proto*/
static PyObject *__pyx_f_6SnapPy_Real2gen_direct(__pyx_t_6SnapPy_Real); /*proto*/
static PyObject *__pyx_f_6SnapPy_Real2gen_string(__pyx_t_6SnapPy_Real); /*proto*/
static PyObject *__pyx_f_6SnapPy_Real2Number(__pyx_t_6SnapPy_Real); /*proto*/
static PyObject *__pyx_f_6SnapPy_Complex2Number(Complex); /*proto*/
__PYX_EXTERN_C void uFatalError(const char*, const char*); /*proto*/
__PYX_EXTERN_C void uLongComputationBegins(const char*, Boolean); /*proto*/
__PYX_EXTERN_C FuncResult uLongComputationContinues(void); /*proto*/
__PYX_EXTERN_C void uLongComputationEnds(void); /*proto*/
__PYX_EXTERN_C void uAcknowledge(const char*); /*proto*/
__PYX_EXTERN_C void uAbortMemoryFull(void); /*proto*/
__PYX_EXTERN_C int uQuery(const char*, const int, const char* *, const int); /*proto*/
static PyObject *__pyx_f_6SnapPy_convert_and_free_identification_of_variables(Identification_of_variables); /*proto*/
static PyObject *__pyx_f_6SnapPy_convert_and_free_integer_matrix(Integer_matrix_with_explanations); /*proto*/
static PyObject *__pyx_f_6SnapPy_Complex2gen(Complex); /*proto*/
static PyObject *__pyx_f_6SnapPy_RealImag2gen(__pyx_t_6SnapPy_Real, __pyx_t_6SnapPy_Real); /*proto*/
static PyObject *__pyx_f_6SnapPy_Complex2complex(Complex); /*proto*/
static PyObject *__pyx_f_6SnapPy_Real2float(__pyx_t_6SnapPy_Real); /*proto*/
static Complex __pyx_f_6SnapPy_complex2Complex(__pyx_t_double_complex); /*proto*/
static __pyx_t_6SnapPy_Real __pyx_f_6SnapPy_Object2Real(PyObject *); /*proto*/
static Complex __pyx_f_6SnapPy_Object2Complex(PyObject *); /*proto*/
static double __pyx_f_6SnapPy_Real2double(__pyx_t_6SnapPy_Real); /*proto*/
static PyObject *__pyx_f_6SnapPy_B2B(Boolean); /*proto*/
static PyObject *__pyx_f_6SnapPy_IsometryListToIsometries(IsometryList *); /*proto*/
static PyObject *__pyx_f_6SnapPy_c_word_as_int_list(int *); /*proto*/
static int *__pyx_f_6SnapPy_c_word_from_list(PyObject *); /*proto*/
static PyObject *__pyx_f_6SnapPy_int_to_gen_string(int, int, PyObject *); /*proto*/
static PyObject *__pyx_f_6SnapPy_c_word_as_string(int *, int, PyObject *); /*proto*/
static __pyx_ctuple_WEPolyhedron__ptr__and_int __pyx_f_6SnapPy_get_generators_from_bytes(PyObject *, double, PyObject *, PyObject *, PyObject *, PyObject *); /*proto*/
static WEPolyhedron *__pyx_f_6SnapPy_dirichlet_from_O31_matrix_list(PyObject *, double, PyObject *, PyObject *, PyObject *, PyObject *); /*proto*/
static PyObject *__pyx_f_6SnapPy_pickle_triangulation(Triangulation *); /*proto*/
static PyObject *__pyx_f_6SnapPy_pickle_tetrahedron_data(TetrahedronData *, int); /*proto*/
static Triangulation *__pyx_f_6SnapPy_unpickle_triangulation(PyObject *); /*proto*/
static int __pyx_f_6SnapPy_unpickle_tetrahedron_data(TetrahedronData *, PyObject *, int, int); /*proto*/
static Triangulation *__pyx_f_6SnapPy_listlike_to_triangulation(PyObject *, struct __pyx_opt_args_6SnapPy_listlike_to_triangulation *__pyx_optional_args); /*proto*/
static Triangulation *__pyx_f_6SnapPy_triangulation_from_bytes(PyObject *); /*proto*/
static int __pyx_f_6SnapPy_set_cusps(Triangulation *, PyObject *); /*proto*/
static Triangulation *__pyx_f_6SnapPy_get_fibered_manifold_associated_to_braid(PyObject *, PyObject *); /*proto*/
static Triangulation *__pyx_f_6SnapPy_get_triangulation_from_PythonKLP(PyObject *, struct __pyx_opt_args_6SnapPy_get_triangulation_from_PythonKLP *__pyx_optional_args); /*proto*/
static PyObject *__pyx_f_6SnapPy___pyx_unpickle_PresentationMatrix__set_state(struct __pyx_obj_6SnapPy_PresentationMatrix *, PyObject *); /*proto*/
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "SnapPy"
extern int __pyx_module_is_main_SnapPy;
int __pyx_module_is_main_SnapPy = 0;

/* Implementation of "SnapPy" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_staticmethod;
static PyObject *__pyx_builtin_sum;
static PyObject *__pyx_builtin_eval;
static PyObject *__pyx_builtin_map;
static PyObject *__pyx_builtin_super;
static PyObject *__pyx_builtin_max;
static PyObject *__pyx_builtin_print;
static PyObject *__pyx_builtin_open;
static PyObject *__pyx_builtin_NotImplemented;
static PyObject *__pyx_builtin_enumerate;
static PyObject *__pyx_builtin_all;
static PyObject *__pyx_builtin_sorted;
/* #### Code section: string_decls ### */
static const char __pyx_k_col_support__entries__row_suppo[] = "_col_support, _entries, _row_support, _units, cols, dead_columns, rows";
/* #### Code section: decls ### */
static PyObject *__pyx_pf_6SnapPy_is_GapElement(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_elt); /* proto */
static PyObject *__pyx_pf_6SnapPy_2is_MagmaElement(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_elt); /* proto */
static PyObject *__pyx_pf_6SnapPy_4valid_index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_i, PyObject *__pyx_v_n, PyObject *__pyx_v_format_str); /* proto */
static PyObject *__pyx_pf_6SnapPy_5MsgIO___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_6to_str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */
static PyObject *__pyx_pf_6SnapPy_8bytearray_to_bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_6SnapPy_10to_byte_str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */
static PyObject *__pyx_pf_6SnapPy_12set_test_flag(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_value); /* proto */
static PyObject *__pyx_pf_6SnapPy_14SnapPea_interrupt(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16cy_eval(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */
static PyObject *__pyx_pf_6SnapPy_18smith_form(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_M); /* proto */
static PyObject *__pyx_pf_6SnapPy_20check_SnapPea_memory(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_22set_rand_seed(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_seed); /* proto */
static PyObject *__pyx_pf_6SnapPy_22MatrixWithExplanations___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mat, PyObject *__pyx_v_explain_rows, PyObject *__pyx_v_explain_columns); /* proto */
static PyObject *__pyx_pf_6SnapPy_22MatrixWithExplanations_8__repr___format_explain_list(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_l); /* proto */
static PyObject *__pyx_pf_6SnapPy_22MatrixWithExplanations_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__type_str); /* proto */
static PyObject *__pyx_pf_6SnapPy_26NeumannZagierTypeEquations___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mat, PyObject *__pyx_v_explain_rows, PyObject *__pyx_v_explain_columns); /* proto */
static PyObject *__pyx_pf_6SnapPy_26NeumannZagierTypeEquations_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_4Info___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_6SnapPy_4Info_2_immutable(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_6SnapPy_4Info_4keys(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8CuspInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13DualCurveInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_14_StrLongestLen_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_6SnapPy_24_StrLongestLen(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_l); /* proto */
static PyObject *__pyx_pf_6SnapPy_18LengthSpectrumInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_9ShapeInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17NormalSurfaceInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_14LengthSpectrum___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_14ListOnePerLine___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_26format_two_by_two(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mat); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Isometry___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cusp_images, PyObject *__pyx_v_cusp_maps, PyObject *__pyx_v_extends_to_link); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Isometry_2cusp_images(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Isometry_4cusp_maps(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Isometry_6extends_to_link(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Isometry_8num_cusps(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Isometry_10__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_28_plink_callback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_LE); /* proto */
static PyObject *__pyx_pf_6SnapPy_30Manifold_from_Triangulation(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_T, PyObject *__pyx_v_recompute, PyObject *__pyx_v_manifold_class); /* proto */
static PyObject *__pyx_pf_6SnapPy_32Triangulation_from_Manifold(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_M); /* proto */
static int __pyx_pf_6SnapPy_13Triangulation___cinit__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_spec, PyObject *__pyx_v_remove_finite_vertices); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_2_get_from_link_data(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_data, PyObject *__pyx_v_remove_finite_vertices); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_4_remove_finite_vertices(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_6cover_info(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_8plink(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_10link(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_12num_cusps(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_cusp_type); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_14_num_fake_cusps(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_16orientation_cover(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_18is_orientable(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_20copy(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_22randomize(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_blowup_multiple, PyObject *__pyx_v_passes_at_fours); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_24simplify(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_passes_at_fours); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_26_two_to_three(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_tet_num, PyObject *__pyx_v_face_index); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_28_three_to_two(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_tet_num, PyObject *__pyx_v_edge_index); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_30with_hyperbolic_structure(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_32_polish_hyperbolic_structures(CYTHON_UNUSED struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_34_empty_save(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_36save(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_file_name); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_38_to_string(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_40_from_string(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_string, PyObject *__pyx_v_remove_finite_vertices); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_42_to_bytes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_44_from_bytes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_bytestring, CYTHON_UNUSED PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_46_from_pickle(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_bytestring, PyObject *__pyx_v_remove_finite_vertices); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_48_from_tetrahedra_gluing_data(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_tetrahedra_data, PyObject *__pyx_v_num_or_cusps, PyObject *__pyx_v_num_nonor_cusps, PyObject *__pyx_v_cusp_indices, PyObject *__pyx_v_peripheral_curves, PyObject *__pyx_v_remove_finite_vertices); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_50_from_isosig(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_isosig, PyObject *__pyx_v_remove_finite_vertices); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_52__reduce__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_54pickle(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_56_reindex_cusps(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_permutation); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_58_get_cusp_indices_and_peripheral_curve_data(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_60_get_tetrahedra_gluing_data(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_62_isomorphisms_to(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_64isomorphisms_to(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_other); /* proto */
static void __pyx_pf_6SnapPy_13Triangulation_66__dealloc__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_68__richcmp__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_other, PyObject *__pyx_v_op); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_70__repr__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_72name(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_74set_name(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_new_name); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_76DT_code(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_alpha, PyObject *__pyx_v_flips); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_78_set_DTcode(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_code, PyObject *__pyx_v_lazy); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_80_set_PDcode(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_code); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_82num_tetrahedra(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_84dehn_fill(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_filling_data, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_86cusp_info(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_data_spec); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_88reverse_orientation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_90filled_triangulation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_cusps_to_fill); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_34_unsimplified_filled_triangulation_genexpr(PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_92_unsimplified_filled_triangulation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_method); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_94_marked_tetrahedra(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_clear_marks); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_96edge_valences(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_98gluing_equations_pgl(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_N, PyObject *__pyx_v_equation_type); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_100_ptolemy_equations_identified_face_classes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_102_ptolemy_equations_identified_coordinates(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_N, PyObject *__pyx_v_obstruction_class); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_104_ptolemy_equations_action_by_decoration_change(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_N); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_106_ptolemy_equations_boundary_map_3(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_108_ptolemy_equations_boundary_map_2(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_110_ptolemy_equations_boundary_map_1(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_112ptolemy_obstruction_classes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_114ptolemy_generalized_obstruction_classes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_N); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_116ptolemy_variety(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_N, PyObject *__pyx_v_obstruction_class, PyObject *__pyx_v_simplify, PyObject *__pyx_v_eliminate_fixed_ptolemys); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_118gluing_equations(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_form); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_120_presentation_matrix(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_pf_6SnapPy_13Triangulation_122homology(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_124fundamental_group(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_simplify_presentation, int __pyx_v_fillings_may_affect_generators, int __pyx_v_minimize_number_of_generators, int __pyx_v_try_hard_to_shorten_relators); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_5cover_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_126cover(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_permutation_rep); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_128covers(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree, PyObject *__pyx_v_method, PyObject *__pyx_v_cover_type); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_17_covers_low_index_index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_subgroup); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_130_covers_low_index(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree, PyObject *__pyx_v_num_threads); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_132_covers_gap(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_134_covers_magma(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_136_covers_snappea(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree, PyObject *__pyx_v_cover_type); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_138set_peripheral_curves(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_peripheral_data, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_return_matrices); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_140has_finite_vertices(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_142triangulation_isosig(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_decorated, int __pyx_v_ignore_cusp_ordering, int __pyx_v_ignore_curves, int __pyx_v_ignore_curve_orientations, int __pyx_v_ignore_filling_orientations, int __pyx_v_ignore_orientation); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_144_undecorated_triangulation_isosig(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_ignore_orientation); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_146_symplectic_form(CYTHON_UNUSED struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_u, PyObject *__pyx_v_v); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_148_is_symplectic(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_M); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_150symplectic_basis(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_verify); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_6_cache___get__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13Triangulation_2LE___get__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self); /* proto */
static int __pyx_pf_6SnapPy_8Manifold___init__(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_spec); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_2_number_(PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_4use_field_conversion(CYTHON_UNUSED PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_func); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_6init_hyperbolic_structure(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_force_recompute); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_8canonize(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_10_canonical_retriangulation(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_opacities, PyObject *__pyx_v_top_level_tries); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_12_canonical_cells_are_tetrahedra(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_14_from_string(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_string, PyObject *__pyx_v_initialize_structure); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_16_from_bytes(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_bytestring, PyObject *__pyx_v_initialize_structure); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_18_from_isosig(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_isosig, PyObject *__pyx_v_initialize_structure); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_20copy(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_22cusp_neighborhood(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_24dirichlet_domain(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_vertex_epsilon, PyObject *__pyx_v_displacement, int __pyx_v_centroid_at_origin, int __pyx_v_maximize_injectivity_radius, int __pyx_v_include_words); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_26browse(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_28filled_triangulation(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_cusps_to_fill); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_30fundamental_group(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, int __pyx_v_simplify_presentation, int __pyx_v_fillings_may_affect_generators, int __pyx_v_minimize_number_of_generators, int __pyx_v_try_hard_to_shorten_relators); /* proto */
static struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_pf_6SnapPy_8Manifold_32symmetry_group(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, int __pyx_v_of_link); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_34symmetric_triangulation(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_36cover(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_permutation_rep); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_38covers(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_degree, PyObject *__pyx_v_method, PyObject *__pyx_v_cover_type); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_40_complex_volume(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_42volume(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_accuracy, PyObject *__pyx_v_verified, PyObject *__pyx_v_bits_prec); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_44chern_simons(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_accuracy); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_46without_hyperbolic_structure(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_48_polish_hyperbolic_structures(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_50tetrahedra_shapes(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_part, PyObject *__pyx_v_fixed_alignment, PyObject *__pyx_v_bits_prec, PyObject *__pyx_v_dec_prec, PyObject *__pyx_v_intervals); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_52_get_tetrahedra_shapes(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_which_solution); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_54set_tetrahedra_shapes(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_filled_shapes, PyObject *__pyx_v_complete_shapes, PyObject *__pyx_v_fillings); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_56solution_type(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_enum); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_58set_target_holonomy(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_target, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_recompute); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_60cusp_info(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_data_spec, PyObject *__pyx_v_verified, PyObject *__pyx_v_bits_prec); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_62dehn_fill(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_filling_data, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_64set_peripheral_curves(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_peripheral_data, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_return_matrices); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_66dual_curves(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_max_segments); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_68length_spectrum(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_cutoff, int __pyx_v_full_rigor, int __pyx_v_grouped, int __pyx_v_include_words); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_70drill(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_which_curve, PyObject *__pyx_v_max_segments); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_72_is_isometric_to(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_other, int __pyx_v_return_isometries); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_74is_isometric_to(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_other, int __pyx_v_return_isometries); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_76is_two_bridge(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_78_choose_generators(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_compute_corners, PyObject *__pyx_v_centroid_at_origin); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_80_choose_generators_info(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_82splitting_surfaces(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_84split(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_which_surface); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_86_identify(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_extends_to_link); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_88_cusp_cross_section_info(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_8Manifold_90_precision(CYTHON_UNUSED struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self); /* proto */
static int __pyx_pf_6SnapPy_12AbelianGroup___init__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self, PyObject *__pyx_v_presentation, PyObject *__pyx_v_elementary_divisors); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_2__repr__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_6SnapPy_12AbelianGroup_4__len__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_6__getitem__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self, PyObject *__pyx_v_i); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_8__reduce__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_10__richcmp__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self, struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_other, PyObject *__pyx_v_op); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_12__call__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_14elementary_divisors(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_16rank(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_18betti_number(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_20order(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_12coefficients___get__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static int __pyx_pf_6SnapPy_12AbelianGroup_12coefficients_2__set__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_6SnapPy_12AbelianGroup_12coefficients_4__del__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self); /* proto */
static int __pyx_pf_6SnapPy_18PresentationMatrix___init__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_rows, PyObject *__pyx_v_cols); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_2get_data(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self); /* proto */
static int __pyx_pf_6SnapPy_18PresentationMatrix_4__setitem__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_ij, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_6__getitem__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_ij); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_8__repr__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_10add_rows(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_12row_op(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_i, PyObject *__pyx_v_j, PyObject *__pyx_v_m); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_14explode(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_16simplify(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_18simplified_matrix(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_20__reduce_cython__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_22__setstate_cython__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_6SnapPy_34inverse_list_word(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_word); /* proto */
static PyObject *__pyx_pf_6SnapPy_36reduce_list_word(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_word); /* proto */
static PyObject *__pyx_pf_6SnapPy_38_letter_seperator(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_verbose_form); /* proto */
static PyObject *__pyx_pf_6SnapPy_40word_as_list(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_word, int __pyx_v_num_generators); /* proto */
static PyObject *__pyx_pf_6SnapPy_12list_as_word_genexpr(PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_6SnapPy_42list_as_word(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_int_list, int __pyx_v_num_generators, PyObject *__pyx_v_verbose_form); /* proto */
static int __pyx_pf_6SnapPy_17CFundamentalGroup___cinit__(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_triangulation, PyObject *__pyx_v_simplify_presentation, PyObject *__pyx_v_fillings_may_affect_generators, PyObject *__pyx_v_minimize_number_of_generators, PyObject *__pyx_v_try_hard_to_shorten_relators); /* proto */
static void __pyx_pf_6SnapPy_17CFundamentalGroup_2__dealloc__(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_4__repr__(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_6num_generators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_8num_relators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_10num_original_generators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_12original_generators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_verbose_form, PyObject *__pyx_v_as_int_list); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_14generators_in_originals(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_verbose_form, PyObject *__pyx_v_raw_form, PyObject *__pyx_v_as_int_list); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_16_word_moves(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_18generators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_20relators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_verbose_form, PyObject *__pyx_v_as_int_list); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_22meridian(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, int __pyx_v_which_cusp, PyObject *__pyx_v_as_int_list); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_24longitude(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, int __pyx_v_which_cusp, PyObject *__pyx_v_as_int_list); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_26peripheral_curves(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_as_int_list); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_28magma_string(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_30gap_string(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_32_gap_init_(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_34_magma_init_(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_magma); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_36sage(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_38character_variety_vars_and_polys(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_as_ideal); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_9num_cusps___get__(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_40__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_42__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup__matrix(struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, PyObject *__pyx_v_word, PyObject *__pyx_v_group); /* proto */
static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_2SL2C(struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, PyObject *__pyx_v_word); /* proto */
static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_4O31(struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, PyObject *__pyx_v_word); /* proto */
static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_6complex_length(struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, PyObject *__pyx_v_word); /* proto */
static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_6SnapPy_13HolonomyGroup__number_(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_n); /* proto */
static int __pyx_pf_6SnapPy_13SymmetryGroup___cinit__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self, PyObject *__pyx_v_is_full_group, PyObject *__pyx_v_owns_c_symmetry_group); /* proto */
static void __pyx_pf_6SnapPy_13SymmetryGroup_2__dealloc__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_4is_full_group(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_6__repr__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_8order(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_10is_abelian(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_12abelian_description(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_14is_dihedral(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_16is_polyhedral(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_18polyhedral_description(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_20is_S5(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_22is_direct_product(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_24direct_product_description(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_26is_amphicheiral(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_28is_invertible_knot(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_30commutator_subgroup(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_32abelianization(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_34center(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_36multiply_elements(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self, PyObject *__pyx_v_i, PyObject *__pyx_v_j); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_38isometries(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_14_is_full_group___get__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_22_owns_c_symmetry_group___get__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_40__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_42__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain__number_(PyObject *__pyx_v_n); /* proto */
static int __pyx_pf_6SnapPy_16CDirichletDomain_2__cinit__(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_manifold, PyObject *__pyx_v_vertex_epsilon, PyObject *__pyx_v_displacement, PyObject *__pyx_v_centroid_at_origin, PyObject *__pyx_v_maximize_injectivity_radius, PyObject *__pyx_v_include_words, PyObject *__pyx_v_generator_file, PyObject *__pyx_v_generator_bytes, PyObject *__pyx_v_O31_generators, PyObject *__pyx_v_manifold_name); /* proto */
static void __pyx_pf_6SnapPy_16CDirichletDomain_4__dealloc__(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_6__repr__(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_8num_vertices(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_10num_finite_vertices(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_12num_ideal_vertices(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_14num_edges(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_16num_faces(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_18in_radius(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_20out_radius(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_22spine_radius(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_24length_spectrum_dicts(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_cutoff_length, PyObject *__pyx_v_full_rigor, PyObject *__pyx_v_multiplicities, PyObject *__pyx_v_user_radius, PyObject *__pyx_v_grouped); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_26vertex_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_details); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_28_vertex_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_30_vertex_data_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_32_vertex_to_index_dict(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_34_edge_to_index_dict(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_9face_list_genexpr(PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_36face_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_38edge_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_40view(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_42manifold(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_44triangulation(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_46volume(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_48pairing_matrices(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_50pairing_words(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_10_to_string_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_52_to_string(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_54__reduce_ex__(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_protocol); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_56save(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_filename); /* proto */
static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_58export_stl(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_filename, PyObject *__pyx_v_model, PyObject *__pyx_v_cutout, PyObject *__pyx_v_num_subdivisions, PyObject *__pyx_v_shrink_factor, PyObject *__pyx_v_cutoff_radius, CYTHON_UNUSED PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_6SnapPy_44_unpickle_dirichlet_domain(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood__number_(PyObject *__pyx_v_n); /* proto */
static int __pyx_pf_6SnapPy_17CCuspNeighborhood_2__cinit__(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_manifold); /* proto */
static void __pyx_pf_6SnapPy_17CCuspNeighborhood_4__dealloc__(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_6__repr__(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_8manifold(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_10original_index(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_12check_index(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_14num_cusps(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_16topology(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_18get_displacement(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_20set_displacement(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_new_displacement, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_22stopping_displacement(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_24stopper(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_26reach(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_28max_reach(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_30get_tie(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_32set_tie(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_new_tie); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_34volume(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_36translations(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_38horoballs(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_cutoff, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_full_list, PyObject *__pyx_v_high_precision); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_40Ford_domain(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_high_precision); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_42triangulation(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_high_precision); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_44view(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_cutoff); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_46__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_48__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_6SnapPy_46bundle_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc); /* proto */
static PyObject *__pyx_pf_6SnapPy_48splitting_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc); /* proto */
static PyObject *__pyx_pf_6SnapPy_50get_triangulation_tester(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_52extract_HT_knot(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_record, PyObject *__pyx_v_crossings, PyObject *__pyx_v_alternation); /* proto */
static PyObject *__pyx_pf_6SnapPy_54get_HT_knot_DT(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_crossings, PyObject *__pyx_v_alternation, PyObject *__pyx_v_index); /* proto */
static PyObject *__pyx_pf_6SnapPy_56get_HT_knot_by_index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_alternation, PyObject *__pyx_v_index, PyObject *__pyx_v_manifold_class); /* proto */
static PyObject *__pyx_pf_6SnapPy_6Census___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_6Census_2__iter__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_6Census_4__contains__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_item); /* proto */
static PyObject *__pyx_pf_6SnapPy_6Census_6next(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_6Census_8__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_6Census_10__getitem__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_62__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_12CuspedCensus___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_12CuspedCensus_2lookup(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_12CuspedCensus_4__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_64__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_28ObsNonorientableCuspedCensus___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_28ObsNonorientableCuspedCensus_2lookup(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_25ObsOrientableClosedCensus___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_25ObsOrientableClosedCensus_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_28ObsNonorientableClosedCensus___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_28ObsNonorientableClosedCensus_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_66__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_13KnotExteriors___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_13KnotExteriors_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_68__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_27NonalternatingKnotExteriors___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_70__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_14ObsCensusKnots___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_14ObsCensusKnots_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_14ObsCensusKnots_4__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_16ObsLinkExteriors___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_components, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_6SnapPy_16ObsLinkExteriors_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6SnapPy_16ObsLinkExteriors_4__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_j); /* proto */
static PyObject *__pyx_pf_6SnapPy_11MorwenLinks___init__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_num_components, CYTHON_UNUSED PyObject *__pyx_v_num_crossings); /* proto */
static PyObject *__pyx_pf_6SnapPy_58left_pad_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_str, PyObject *__pyx_v_length, PyObject *__pyx_v_pad); /* proto */
static PyObject *__pyx_pf_6SnapPy_14ObsMorwenLinks___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_num_components, PyObject *__pyx_v_num_crossings); /* proto */
static PyObject *__pyx_pf_6SnapPy_14ObsMorwenLinks_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n); /* proto */
static PyObject *__pyx_pf_6SnapPy_60__pyx_unpickle_PresentationMatrix(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_6SnapPy_Triangulation(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy_Manifold(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy_AbelianGroup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy_PresentationMatrix(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy_CFundamentalGroup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy_SymmetryGroup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy_CDirichletDomain(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy_CCuspNeighborhood(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_defaults(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct__genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_2_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_3_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_4_list_as_word(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_5_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_6_face_list(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_7_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_8_genexpr(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
/* SmallCodeConfig */
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  PyObject *__pyx_type_6SnapPy_Triangulation;
  PyObject *__pyx_type_6SnapPy_Manifold;
  PyObject *__pyx_type_6SnapPy_AbelianGroup;
  PyObject *__pyx_type_6SnapPy_PresentationMatrix;
  PyObject *__pyx_type_6SnapPy_CFundamentalGroup;
  PyObject *__pyx_type_6SnapPy_CHolonomyGroup;
  PyObject *__pyx_type_6SnapPy_SymmetryGroup;
  PyObject *__pyx_type_6SnapPy_CDirichletDomain;
  PyObject *__pyx_type_6SnapPy_CCuspNeighborhood;
  PyObject *__pyx_type_6SnapPy___pyx_defaults;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct__genexpr;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct_2_genexpr;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct_3_genexpr;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct_5_genexpr;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct_6_face_list;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct_7_genexpr;
  PyObject *__pyx_type_6SnapPy___pyx_scope_struct_8_genexpr;
  PyTypeObject *__pyx_ptype_6SnapPy_Triangulation;
  PyTypeObject *__pyx_ptype_6SnapPy_Manifold;
  PyTypeObject *__pyx_ptype_6SnapPy_AbelianGroup;
  PyTypeObject *__pyx_ptype_6SnapPy_PresentationMatrix;
  PyTypeObject *__pyx_ptype_6SnapPy_CFundamentalGroup;
  PyTypeObject *__pyx_ptype_6SnapPy_CHolonomyGroup;
  PyTypeObject *__pyx_ptype_6SnapPy_SymmetryGroup;
  PyTypeObject *__pyx_ptype_6SnapPy_CDirichletDomain;
  PyTypeObject *__pyx_ptype_6SnapPy_CCuspNeighborhood;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_defaults;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr;
  PyTypeObject *__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_get;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values;
  __Pyx_CachedCFunction __pyx_umethod_PyList_Type_pop;
  __Pyx_CachedCFunction __pyx_umethod_PyBytes_Type__split;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type__update;
  __Pyx_CachedCFunction __pyx_umethod_PyUnicode_Type__ljust;
  __Pyx_CachedCFunction __pyx_umethod_PyUnicode_Type__lower;
  PyObject *__pyx_k__29;
  PyObject *__pyx_k__31;
  PyObject *__pyx_k__38;
  PyObject *__pyx_slice[6];
  PyObject *__pyx_tuple[77];
  PyObject *__pyx_codeobj_tab[311];
  PyObject *__pyx_string_tab[2317];
  PyObject *__pyx_number_tab[444];
/* #### Code section: module_state_contents ### */
/* CommonTypesMetaclass.module_state_decls */
PyTypeObject *__pyx_CommonTypesMetaclassType;

/* CachedMethodType.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_CachedMethodType;
#endif

/* CythonFunctionShared.module_state_decls */
PyTypeObject *__pyx_CyFunctionType;


#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *__pyx_freelist_6SnapPy___pyx_scope_struct__genexpr[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct__genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *__pyx_freelist_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *__pyx_freelist_6SnapPy___pyx_scope_struct_2_genexpr[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct_2_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *__pyx_freelist_6SnapPy___pyx_scope_struct_3_genexpr[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct_3_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *__pyx_freelist_6SnapPy___pyx_scope_struct_4_list_as_word[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct_4_list_as_word;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *__pyx_freelist_6SnapPy___pyx_scope_struct_5_genexpr[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct_5_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *__pyx_freelist_6SnapPy___pyx_scope_struct_6_face_list[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct_6_face_list;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *__pyx_freelist_6SnapPy___pyx_scope_struct_7_genexpr[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct_7_genexpr;
#endif

#if CYTHON_USE_FREELISTS
struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *__pyx_freelist_6SnapPy___pyx_scope_struct_8_genexpr[8];
int __pyx_freecount_6SnapPy___pyx_scope_struct_8_genexpr;
#endif
/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* IterNextPlain.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
PyObject *__Pyx_GetBuiltinNext_LimitedAPI_cache;
#endif

/* Generator.module_state_decls */
PyTypeObject *__pyx_GeneratorType;

/* #### Code section: module_state_end ### */
} __pyx_mstatetype;

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef)))

#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef))
#else
static __pyx_mstatetype __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: constant_name_defines ### */
#define __pyx_kp_u_ __pyx_string_tab[0]
#define __pyx_kp_u_0 __pyx_string_tab[1]
#define __pyx_kp_u_0_0 __pyx_string_tab[2]
#define __pyx_kp_u_0_9_0_9 __pyx_string_tab[3]
#define __pyx_kp_u_1 __pyx_string_tab[4]
#define __pyx_kp_u_12n123 __pyx_string_tab[5]
#define __pyx_kp_u_16_14f_I __pyx_string_tab[6]
#define __pyx_kp_u_16n1235 __pyx_string_tab[7]
#define __pyx_kp_u_17_14f __pyx_string_tab[8]
#define __pyx_kp_u_18f __pyx_string_tab[9]
#define __pyx_kp_u_2_3_move __pyx_string_tab[10]
#define __pyx_kp_u_2d __pyx_string_tab[11]
#define __pyx_kp_u_3_2_move __pyx_string_tab[12]
#define __pyx_kp_u_3d __pyx_string_tab[13]
#define __pyx_kp_u_4s_40s __pyx_string_tab[14]
#define __pyx_kp_u_5_2_1_3_4_1_2 __pyx_string_tab[15]
#define __pyx_kp_u_6_1 __pyx_string_tab[16]
#define __pyx_kp_u_6s_s __pyx_string_tab[17]
#define __pyx_kp_u_8_3_3 __pyx_string_tab[18]
#define __pyx_kp_u_A __pyx_string_tab[19]
#define __pyx_kp_u_A_CuspNeighborhood_object_repre __pyx_string_tab[20]
#define __pyx_kp_u_A_DirichletDomain_object_repres __pyx_string_tab[21]
#define __pyx_kp_u_A_FundamentalGroup_represents_a __pyx_string_tab[22]
#define __pyx_kp_u_A_FundamentalGroup_represents_a_2 __pyx_string_tab[23]
#define __pyx_kp_u_A_non_existent_shape_data_type_w __pyx_string_tab[24]
#define __pyx_kp_u_A_s_is_specified_by_a_string_or __pyx_string_tab[25]
#define __pyx_kp_u_AbelianGroup___reduce___line_82 __pyx_string_tab[26]
#define __pyx_kp_u_Acceptable_cusp_types_are_all_or __pyx_string_tab[27]
#define __pyx_kp_u_Add_a_possibly_degenerate_hyper __pyx_string_tab[28]
#define __pyx_kp_u_All_Dehn_filling_coefficients_mu __pyx_string_tab[29]
#define __pyx_kp_u_All_cusps_must_be_fillable __pyx_string_tab[30]
#define __pyx_kp_u_All_files __pyx_string_tab[31]
#define __pyx_kp_u_All_text_files __pyx_string_tab[32]
#define __pyx_kp_u_An_empty_triangulation_was_gener __pyx_string_tab[33]
#define __pyx_kp_u_Base_class_for_Iterators_Sequen __pyx_string_tab[34]
#define __pyx_kp_u_Base_class_for_Iterators_Sequen_2 __pyx_string_tab[35]
#define __pyx_kp_u_Base_class_for_manifold_Iterato __pyx_string_tab[36]
#define __pyx_kp_u_Bb_raid_0_9 __pyx_string_tab[37]
#define __pyx_kp_u_Braid __pyx_string_tab[38]
#define __pyx_kp_u_Braid_1_2_1_2 __pyx_string_tab[39]
#define __pyx_kp_u_Braids_must_have_at_least_2_stra __pyx_string_tab[40]
#define __pyx_kp_u_Brings_up_a_link_editor_window __pyx_string_tab[41]
#define __pyx_kp_u_Browser_not_imported_Tk_CyOpenGL __pyx_string_tab[42]
#define __pyx_kp_u_Bundle_S__1_1_a0_B1 __pyx_string_tab[43]
#define __pyx_kp_u_Bundle_S__d_d __pyx_string_tab[44]
#define __pyx_kp_u_Byte_encoding_requires_complete __pyx_string_tab[45]
#define __pyx_kp_u_CCuspNeighborhood_view_line_289 __pyx_string_tab[46]
#define __pyx_kp_u_CDirichletDomain_export_stl_line __pyx_string_tab[47]
#define __pyx_kp_u_CDirichletDomain_length_spectrum_2 __pyx_string_tab[48]
#define __pyx_kp_u_CDirichletDomain_manifold_line_5 __pyx_string_tab[49]
#define __pyx_kp_u_CDirichletDomain_pairing_matrice_2 __pyx_string_tab[50]
#define __pyx_kp_u_CDirichletDomain_pairing_words_l __pyx_string_tab[51]
#define __pyx_kp_u_CDirichletDomain_save_line_643 __pyx_string_tab[52]
#define __pyx_kp_u_CDirichletDomain_triangulation_l __pyx_string_tab[53]
#define __pyx_kp_u_CFundamentalGroup_character_vari_2 __pyx_string_tab[54]
#define __pyx_kp_u_CFundamentalGroup_gap_string_lin __pyx_string_tab[55]
#define __pyx_kp_u_CFundamentalGroup_generators_in_2 __pyx_string_tab[56]
#define __pyx_kp_u_CFundamentalGroup_generators_lin __pyx_string_tab[57]
#define __pyx_kp_u_CFundamentalGroup_longitude_line __pyx_string_tab[58]
#define __pyx_kp_u_CFundamentalGroup_meridian_line __pyx_string_tab[59]
#define __pyx_kp_u_CFundamentalGroup_original_gener_2 __pyx_string_tab[60]
#define __pyx_kp_u_CFundamentalGroup_peripheral_cur_2 __pyx_string_tab[61]
#define __pyx_kp_u_CallFuncList_function_local_F __pyx_string_tab[62]
#define __pyx_kp_u_Can_t_compare_triangulations_of __pyx_string_tab[63]
#define __pyx_kp_u_Can_t_get_the_list_of_isometries __pyx_string_tab[64]
#define __pyx_kp_u_Cannot_convert_s_to_a_Real __pyx_string_tab[65]
#define __pyx_kp_u_CensusKnots_s __pyx_string_tab[66]
#define __pyx_kp_u_CensusKnots_tgz __pyx_string_tab[67]
#define __pyx_kp_u_Change_the_triangulation_to_an __pyx_string_tab[68]
#define __pyx_kp_u_ChristyLinks_s __pyx_string_tab[69]
#define __pyx_kp_u_ChristyLinks_tgz __pyx_string_tab[70]
#define __pyx_kp_u_Christy_census_of_s_component_li __pyx_string_tab[71]
#define __pyx_kp_u_ClosedNonorientableDistinct_txt __pyx_string_tab[72]
#define __pyx_kp_u_ClosedOrientableDistinct_txt __pyx_string_tab[73]
#define __pyx_kp_u_Communication_with_PLink_failed __pyx_string_tab[74]
#define __pyx_kp_u_Constructs_a_reasonable_selecti __pyx_string_tab[75]
#define __pyx_kp_u_Could_not_allocate_a_crossing_ta __pyx_string_tab[76]
#define __pyx_kp_u_Could_not_certify_shape_interval __pyx_string_tab[77]
#define __pyx_kp_u_Could_not_create_the_triangulati __pyx_string_tab[78]
#define __pyx_kp_u_Cover_degree_should_be_at_least __pyx_string_tab[79]
#define __pyx_kp_u_Cover_specified_by_unrecognized __pyx_string_tab[80]
#define __pyx_kp_u_Create_a_3D_picture_of_the_horo __pyx_string_tab[81]
#define __pyx_kp_u_Cusp __pyx_string_tab[82]
#define __pyx_kp_u_Cusp_Neighborhood_with __pyx_string_tab[83]
#define __pyx_kp_u_Cusp_neighborhood __pyx_string_tab[84]
#define __pyx_kp_u_DT __pyx_string_tab[85]
#define __pyx_kp_u_DT_0_9_01 __pyx_string_tab[86]
#define __pyx_kp_u_DT_2 __pyx_string_tab[87]
#define __pyx_kp_u_DT_4_6_2 __pyx_string_tab[88]
#define __pyx_kp_u_DT_a_zA_Z_01 __pyx_string_tab[89]
#define __pyx_kp_u_DT_s __pyx_string_tab[90]
#define __pyx_kp_u_D_d __pyx_string_tab[91]
#define __pyx_kp_u_Dirichlet_Domain_of __pyx_string_tab[92]
#define __pyx_kp_u_Does_not_extend_to_link __pyx_string_tab[93]
#define __pyx_kp_u_Drills_out_the_specified_dual_c __pyx_string_tab[94]
#define __pyx_kp_u_Each_cusp_has_a_preferred_marki __pyx_string_tab[95]
#define __pyx_kp_u_Elementary_divisors_must_be_give __pyx_string_tab[96]
#define __pyx_kp_u_Elementary_divisors_must_be_non __pyx_string_tab[97]
#define __pyx_kp_u_Empty_Triangulation __pyx_string_tab[98]
#define __pyx_kp_u_Equations_are_available_in_log_a __pyx_string_tab[99]
#define __pyx_kp_u_Export_the_Dirichlet_domain_as __pyx_string_tab[100]
#define __pyx_kp_u_Extend_the_Neumann_Zagier_matri __pyx_string_tab[101]
#define __pyx_kp_u_Extends_to_link __pyx_string_tab[102]
#define __pyx_kp_u_F __pyx_string_tab[103]
#define __pyx_kp_u_F_FreeGroup __pyx_string_tab[104]
#define __pyx_kp_u_Failed_to_allocate_memory_for_cu __pyx_string_tab[105]
#define __pyx_kp_u_Failed_to_allocate_memory_for_te __pyx_string_tab[106]
#define __pyx_kp_u_Failed_to_construct_permutation __pyx_string_tab[107]
#define __pyx_kp_u_Fill_an_empty_manifold_from_a_b __pyx_string_tab[108]
#define __pyx_kp_u_Fill_an_empty_triangulation_fro __pyx_string_tab[109]
#define __pyx_kp_u_For_a_Triangulation_that_descri __pyx_string_tab[110]
#define __pyx_kp_u_For_a_non_orientable_Triangulat __pyx_string_tab[111]
#define __pyx_kp_u_FormatHomForSnapPea_function_f __pyx_string_tab[112]
#define __pyx_kp_u_Generators __pyx_string_tab[113]
#define __pyx_kp_u_Generators_s __pyx_string_tab[114]
#define __pyx_kp_u_Give_the_triangulation_a_new_na __pyx_string_tab[115]
#define __pyx_kp_u_Gives_the_shapes_of_the_tetrahe __pyx_string_tab[116]
#define __pyx_kp_u_Got_the_empty_link_from_PLink_a __pyx_string_tab[117]
#define __pyx_kp_u_Group __pyx_string_tab[118]
#define __pyx_kp_u_Group_elements_which_pair_the_f __pyx_string_tab[119]
#define __pyx_kp_u_High_precision_shapes_must_be_co __pyx_string_tab[120]
#define __pyx_kp_u_If_the_SymmetryGroup_is_a_nontr __pyx_string_tab[121]
#define __pyx_kp_u_If_the_manifold_is_the_compleme __pyx_string_tab[122]
#define __pyx_kp_u_If_the_symmetry_group_is_abelia __pyx_string_tab[123]
#define __pyx_kp_u_If_there_is_more_than_one_cusp_y __pyx_string_tab[124]
#define __pyx_kp_u_If_this_triangulation_is_a_subd __pyx_string_tab[125]
#define __pyx_kp_u_Immutable_dictionary_whose_data __pyx_string_tab[126]
#define __pyx_kp_u_In_the_default_mode_this_functi __pyx_string_tab[127]
#define __pyx_kp_u_Index_is_out_of_range __pyx_string_tab[128]
#define __pyx_kp_u_Info_objects_are_immutable __pyx_string_tab[129]
#define __pyx_kp_u_Invalid_generator_status __pyx_string_tab[130]
#define __pyx_kp_u_Invalid_permutation_data __pyx_string_tab[131]
#define __pyx_kp_u_Invalid_pickle_byte_sequence __pyx_string_tab[132]
#define __pyx_kp_u_Iterator_Sequence_for_Alternati __pyx_string_tab[133]
#define __pyx_kp_u_Iterator_Sequence_for_nonAltern __pyx_string_tab[134]
#define __pyx_kp_u_Klein_bottle_cusp __pyx_string_tab[135]
#define __pyx_kp_u_Knots_in_S_3_which_appear_in_the __pyx_string_tab[136]
#define __pyx_kp_u_L13n9331_3_4_2_3_2_1 __pyx_string_tab[137]
#define __pyx_kp_u_L_d_2d_3d __pyx_string_tab[138]
#define __pyx_kp_u_Link_Projection __pyx_string_tab[139]
#define __pyx_kp_u_M_ptolemy_variety_N_obstruction __pyx_string_tab[140]
#define __pyx_kp_u_Manifold__canonical_cells_are_te_2 __pyx_string_tab[141]
#define __pyx_kp_u_Manifold__canonical_retriangulat_2 __pyx_string_tab[142]
#define __pyx_kp_u_Manifold__from_bytes_line_283 __pyx_string_tab[143]
#define __pyx_kp_u_Manifold__from_string_line_267 __pyx_string_tab[144]
#define __pyx_kp_u_Manifold__is_isometric_to_line_1 __pyx_string_tab[145]
#define __pyx_kp_u_Manifold_browse_line_386 __pyx_string_tab[146]
#define __pyx_kp_u_Manifold_canonize_line_146 __pyx_string_tab[147]
#define __pyx_kp_u_Manifold_chern_simons_line_821 __pyx_string_tab[148]
#define __pyx_kp_u_Manifold_copy_line_308 __pyx_string_tab[149]
#define __pyx_kp_u_Manifold_cover_line_549 __pyx_string_tab[150]
#define __pyx_kp_u_Manifold_covers_line_618 __pyx_string_tab[151]
#define __pyx_kp_u_Manifold_cusp_info_line_1128 __pyx_string_tab[152]
#define __pyx_kp_u_Manifold_cusp_neighborhood_line __pyx_string_tab[153]
#define __pyx_kp_u_Manifold_dehn_fill __pyx_string_tab[154]
#define __pyx_kp_u_Manifold_dehn_fill_line_1251 __pyx_string_tab[155]
#define __pyx_kp_u_Manifold_dirichlet_domain_line_3 __pyx_string_tab[156]
#define __pyx_kp_u_Manifold_drill_line_1505 __pyx_string_tab[157]
#define __pyx_kp_u_Manifold_dual_curves_line_1403 __pyx_string_tab[158]
#define __pyx_kp_u_Manifold_filled_triangulation_li __pyx_string_tab[159]
#define __pyx_kp_u_Manifold_fundamental_group_line __pyx_string_tab[160]
#define __pyx_kp_u_Manifold_is_two_bridge_line_1647 __pyx_string_tab[161]
#define __pyx_kp_u_Manifold_length_spectrum_line_14 __pyx_string_tab[162]
#define __pyx_kp_u_Manifold_must_be_pickled_with__t __pyx_string_tab[163]
#define __pyx_kp_u_Manifold_set_peripheral_curves __pyx_string_tab[164]
#define __pyx_kp_u_Manifold_set_peripheral_curves_l __pyx_string_tab[165]
#define __pyx_kp_u_Manifold_set_tetrahedra_shapes __pyx_string_tab[166]
#define __pyx_kp_u_Manifold_solution_type_line_1063 __pyx_string_tab[167]
#define __pyx_kp_u_Manifold_split_line_1768 __pyx_string_tab[168]
#define __pyx_kp_u_Manifold_splitting_surfaces_line __pyx_string_tab[169]
#define __pyx_kp_u_Manifold_symmetric_triangulation_2 __pyx_string_tab[170]
#define __pyx_kp_u_Manifold_tetrahedra_shapes_line __pyx_string_tab[171]
#define __pyx_kp_u_Manifold_volume_line_728 __pyx_string_tab[172]
#define __pyx_kp_u_Manifold_without_hyperbolic_stru_2 __pyx_string_tab[173]
#define __pyx_kp_u_Manifolds_must_be_non_empty __pyx_string_tab[174]
#define __pyx_kp_u_N_has_to_be_2_15 __pyx_string_tab[175]
#define __pyx_kp_u_New_triangulation_received_from __pyx_string_tab[176]
#define __pyx_kp_u_No_associated_link_known __pyx_string_tab[177]
#define __pyx_kp_u_No_tetrahedra_data_provided __pyx_string_tab[178]
#define __pyx_kp_u_Non_orientable __pyx_string_tab[179]
#define __pyx_kp_u_None __pyx_string_tab[180]
#define __pyx_kp_u_Not_a_valid_permutation __pyx_string_tab[181]
#define __pyx_kp_u_Not_within_Sage __pyx_string_tab[182]
#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[183]
#define __pyx_kp_u_Number_of_opacities_does_not_mat __pyx_string_tab[184]
#define __pyx_kp_u_Number_of_permutations_is_not_th __pyx_string_tab[185]
#define __pyx_kp_u_Obsolete __pyx_string_tab[186]
#define __pyx_kp_u_Obsolete_2 __pyx_string_tab[187]
#define __pyx_kp_u_Obstruction_class_has_wrong_leng __pyx_string_tab[188]
#define __pyx_kp_u_Opens_browser_window_with_a_gra __pyx_string_tab[189]
#define __pyx_kp_u_Out_of_memory __pyx_string_tab[190]
#define __pyx_kp_u_PLink_was_not_imported __pyx_string_tab[191]
#define __pyx_kp_u_P_crossings_0_9_P_alternation_a __pyx_string_tab[192]
#define __pyx_kp_u_P_crossings_0_9_P_components_0 __pyx_string_tab[193]
#define __pyx_kp_u_P_crossings_0_9___P_index_0_9_P __pyx_string_tab[194]
#define __pyx_kp_u_Perform_random_Pachner_moves_on __pyx_string_tab[195]
#define __pyx_kp_u_Please_specify_a_file_name __pyx_string_tab[196]
#define __pyx_kp_u_Please_specify_filled_or_complet __pyx_string_tab[197]
#define __pyx_kp_u_Q __pyx_string_tab[198]
#define __pyx_kp_u_Relators __pyx_string_tab[199]
#define __pyx_kp_u_Removing_any_finite_vertices_by __pyx_string_tab[200]
#define __pyx_kp_u_Represents_an_isometry_from_one __pyx_string_tab[201]
#define __pyx_kp_u_Result_is_symplectic_up_to_facto __pyx_string_tab[202]
#define __pyx_kp_u_Return_a_class_HolonomyGroup_re __pyx_string_tab[203]
#define __pyx_kp_u_Return_a_detailed_list_of_all_t __pyx_string_tab[204]
#define __pyx_kp_u_Return_a_list_of_info_objects_d __pyx_string_tab[205]
#define __pyx_kp_u_Return_a_new_Manifold_where_the __pyx_string_tab[206]
#define __pyx_kp_u_Return_a_new_manifold_where_the __pyx_string_tab[207]
#define __pyx_kp_u_Return_a_reasonably_short_byte __pyx_string_tab[208]
#define __pyx_kp_u_Return_a_string_containing_the __pyx_string_tab[209]
#define __pyx_kp_u_Return_the_Dowker_Thistlethwait __pyx_string_tab[210]
#define __pyx_kp_u_Return_the_abelianization_of_th __pyx_string_tab[211]
#define __pyx_kp_u_Return_the_center_of_the_symmet __pyx_string_tab[212]
#define __pyx_kp_u_Return_the_commutator_subgroup __pyx_string_tab[213]
#define __pyx_kp_u_Return_the_current_generators_i __pyx_string_tab[214]
#define __pyx_kp_u_Return_the_letters_representing __pyx_string_tab[215]
#define __pyx_kp_u_Return_the_name_of_the_triangul __pyx_string_tab[216]
#define __pyx_kp_u_Return_the_number_of_tetrahedra __pyx_string_tab[217]
#define __pyx_kp_u_Return_the_order_of_the_symmetr __pyx_string_tab[218]
#define __pyx_kp_u_Return_the_original_geometric_g __pyx_string_tab[219]
#define __pyx_kp_u_Return_the_total_number_of_cusp __pyx_string_tab[220]
#define __pyx_kp_u_Return_whether_a_one_cusped_has __pyx_string_tab[221]
#define __pyx_kp_u_Return_whether_the_SymmetryGrou __pyx_string_tab[222]
#define __pyx_kp_u_Return_whether_the_full_symmetr __pyx_string_tab[223]
#define __pyx_kp_u_Return_whether_the_manifold_has __pyx_string_tab[224]
#define __pyx_kp_u_Return_whether_the_symmetry_gro __pyx_string_tab[225]
#define __pyx_kp_u_Return_whether_the_symmetry_gro_2 __pyx_string_tab[226]
#define __pyx_kp_u_Return_whether_the_underlying_3 __pyx_string_tab[227]
#define __pyx_kp_u_Returns_True_if_M_and_N_are_iso __pyx_string_tab[228]
#define __pyx_kp_u_Returns_True_if_and_only_if_the __pyx_string_tab[229]
#define __pyx_kp_u_Returns_True_if_and_only_if_the_2 __pyx_string_tab[230]
#define __pyx_kp_u_Returns_a_Dehn_filling_descript __pyx_string_tab[231]
#define __pyx_kp_u_Returns_a_Manifold_computed_dir __pyx_string_tab[232]
#define __pyx_kp_u_Returns_a_NeumannZagierTypeEqua __pyx_string_tab[233]
#define __pyx_kp_u_Returns_a_Triangulation_compute __pyx_string_tab[234]
#define __pyx_kp_u_Returns_a_class_DirichletDomain __pyx_string_tab[235]
#define __pyx_kp_u_Returns_a_class_FundamentalGrou __pyx_string_tab[236]
#define __pyx_kp_u_Returns_a_class_Manifold_repres __pyx_string_tab[237]
#define __pyx_kp_u_Returns_a_class_Triangulation_r __pyx_string_tab[238]
#define __pyx_kp_u_Returns_a_complete_list_of_comb __pyx_string_tab[239]
#define __pyx_kp_u_Returns_a_copy_of_the_manifold __pyx_string_tab[240]
#define __pyx_kp_u_Returns_a_copy_of_the_triangula __pyx_string_tab[241]
#define __pyx_kp_u_Returns_a_dictionary_whose_keys __pyx_string_tab[242]
#define __pyx_kp_u_Returns_a_list_of_Triangulation __pyx_string_tab[243]
#define __pyx_kp_u_Returns_a_list_of_class_Manifol __pyx_string_tab[244]
#define __pyx_kp_u_Returns_a_list_of_geodesics_wit __pyx_string_tab[245]
#define __pyx_kp_u_Returns_a_list_of_meridian_long __pyx_string_tab[246]
#define __pyx_kp_u_Returns_a_list_of_the_O31Matric __pyx_string_tab[247]
#define __pyx_kp_u_Returns_a_list_of_variables_and __pyx_string_tab[248]
#define __pyx_kp_u_Returns_a_string_which_will_def __pyx_string_tab[249]
#define __pyx_kp_u_Returns_a_word_representing_a_c __pyx_string_tab[250]
#define __pyx_kp_u_Returns_a_word_representing_a_c_2 __pyx_string_tab[251]
#define __pyx_kp_u_Returns_an_class_AbelianGroup_r __pyx_string_tab[252]
#define __pyx_kp_u_Returns_an_info_object_containi __pyx_string_tab[253]
#define __pyx_kp_u_Returns_an_info_object_containi_2 __pyx_string_tab[254]
#define __pyx_kp_u_Returns_information_about_the_c __pyx_string_tab[255]
#define __pyx_kp_u_Returns_self_as_a_class_Triangu __pyx_string_tab[256]
#define __pyx_kp_u_Returns_the_Chern_Simons_invari __pyx_string_tab[257]
#define __pyx_kp_u_Returns_the_decorated_isomorphi __pyx_string_tab[258]
#define __pyx_kp_u_Returns_the_number_of_fake_cusp __pyx_string_tab[259]
#define __pyx_kp_u_Returns_the_obstruction_classes __pyx_string_tab[260]
#define __pyx_kp_u_Returns_the_obstruction_classes_2 __pyx_string_tab[261]
#define __pyx_kp_u_Returns_the_product_of_group_el __pyx_string_tab[262]
#define __pyx_kp_u_Returns_the_type_of_the_current __pyx_string_tab[263]
#define __pyx_kp_u_Returns_the_volume_of_the_curre __pyx_string_tab[264]
#define __pyx_kp_u_Reverses_the_orientation_of_the __pyx_string_tab[265]
#define __pyx_kp_u_Save_Triangulation __pyx_string_tab[266]
#define __pyx_kp_u_Save_the_Dirichlet_domain_as_a __pyx_string_tab[267]
#define __pyx_kp_u_Save_the_triangulation_as_a_Sna __pyx_string_tab[268]
#define __pyx_kp_u_Searches_for_connected_closed_n __pyx_string_tab[269]
#define __pyx_kp_u_Send_to_SnapPy __pyx_string_tab[270]
#define __pyx_kp_u_Set_the_Dehn_filling_coefficien __pyx_string_tab[271]
#define __pyx_kp_u_Set_the_Dehn_filling_coefficien_2 __pyx_string_tab[272]
#define __pyx_kp_u_SnapPea_crashed_in_function __pyx_string_tab[273]
#define __pyx_kp_u_SnapPea_failed_to_compute_any_pa __pyx_string_tab[274]
#define __pyx_kp_u_SnapPea_failed_to_find_the_canon __pyx_string_tab[275]
#define __pyx_kp_u_SnapPea_failed_to_read_the_censu __pyx_string_tab[276]
#define __pyx_kp_u_SnapPea_kernel_failed_when_compu __pyx_string_tab[277]
#define __pyx_kp_u_SnapPea_kernel_failed_when_compu_2 __pyx_string_tab[278]
#define __pyx_kp_u_SnapPea_kernel_failed_when_split __pyx_string_tab[279]
#define __pyx_kp_u_SnapPea_kernel_style_estimation __pyx_string_tab[280]
#define __pyx_kp_u_SnapPea_only_found __pyx_string_tab[281]
#define __pyx_kp_u_SnapPy_has_no_data_on_links_with __pyx_string_tab[282]
#define __pyx_kp_u_Solution_type_is_s __pyx_string_tab[283]
#define __pyx_kp_u_Split_the_manifold_open_along_a __pyx_string_tab[284]
#define __pyx_kp_u_Splitting_S__1_0_b1_A0_a0_B1 __pyx_string_tab[285]
#define __pyx_kp_u_Splitting_S__d_d __pyx_string_tab[286]
#define __pyx_kp_u_Starting_the_link_editor_Select __pyx_string_tab[287]
#define __pyx_kp_u_Supply_a_manifold_or_generators __pyx_string_tab[288]
#define __pyx_kp_u_Supported_cover_types_are_all_an __pyx_string_tab[289]
#define __pyx_kp_u_Supported_methods_are_low_index __pyx_string_tab[290]
#define __pyx_kp_u_SymmetryGroup_abelian_descriptio_2 __pyx_string_tab[291]
#define __pyx_kp_u_SymmetryGroup_abelianization_lin __pyx_string_tab[292]
#define __pyx_kp_u_SymmetryGroup_center_line_256 __pyx_string_tab[293]
#define __pyx_kp_u_SymmetryGroup_commutator_subgrou_2 __pyx_string_tab[294]
#define __pyx_kp_u_SymmetryGroup_direct_product_des_2 __pyx_string_tab[295]
#define __pyx_kp_u_SymmetryGroup_is_abelian_line_72 __pyx_string_tab[296]
#define __pyx_kp_u_SymmetryGroup_is_amphicheiral_li __pyx_string_tab[297]
#define __pyx_kp_u_SymmetryGroup_is_dihedral_line_1 __pyx_string_tab[298]
#define __pyx_kp_u_SymmetryGroup_is_direct_product_2 __pyx_string_tab[299]
#define __pyx_kp_u_SymmetryGroup_is_full_group_line __pyx_string_tab[300]
#define __pyx_kp_u_SymmetryGroup_is_invertible_knot_2 __pyx_string_tab[301]
#define __pyx_kp_u_SymmetryGroup_isometries_line_29 __pyx_string_tab[302]
#define __pyx_kp_u_SymmetryGroup_multiply_elements_2 __pyx_string_tab[303]
#define __pyx_kp_u_SymmetryGroup_order_line_62 __pyx_string_tab[304]
#define __pyx_kp_u_Tetrahedra_data_appears_invalid __pyx_string_tab[305]
#define __pyx_kp_u_That_Magma_type_not_recognized __pyx_string_tab[306]
#define __pyx_kp_u_The_Chern_Simons_invariant_isn_t __pyx_string_tab[307]
#define __pyx_kp_u_The_Dehn_filling_coefficients_mu __pyx_string_tab[308]
#define __pyx_kp_u_The_Dirichlet_Domain_was_compute __pyx_string_tab[309]
#define __pyx_kp_u_The_Dirichlet_Domain_was_not_com __pyx_string_tab[310]
#define __pyx_kp_u_The_Dirichlet_construction_faile __pyx_string_tab[311]
#define __pyx_kp_u_The_Dirichlet_domain_could_not_b __pyx_string_tab[312]
#define __pyx_kp_u_The_Ford_domain_construction_fai __pyx_string_tab[313]
#define __pyx_kp_u_The_HoroballViewer_class_was_not __pyx_string_tab[314]
#define __pyx_kp_u_The_Manifold_is_not_orientable_s __pyx_string_tab[315]
#define __pyx_kp_u_The_MorwenLinks_class_has_been_r __pyx_string_tab[316]
#define __pyx_kp_u_The_Morwen_8_tetrahedra_manifold __pyx_string_tab[317]
#define __pyx_kp_u_The_PolyhedronViewer_class_was_n __pyx_string_tab[318]
#define __pyx_kp_u_The_SnapPea_kernel_couldn_t_comp __pyx_string_tab[319]
#define __pyx_kp_u_The_SnapPea_kernel_was_not_able __pyx_string_tab[320]
#define __pyx_kp_u_The_Triangulation_is_already_ori __pyx_string_tab[321]
#define __pyx_kp_u_The_Triangulation_is_empty __pyx_string_tab[322]
#define __pyx_kp_u_The_Triangulation_is_empty_2 __pyx_string_tab[323]
#define __pyx_kp_u_The_Triangulation_must_be_empty __pyx_string_tab[324]
#define __pyx_kp_u_The_amount_of_data_given_is_not __pyx_string_tab[325]
#define __pyx_kp_u_The_braid_word_is_invalid __pyx_string_tab[326]
#define __pyx_kp_u_The_census_knot_s_was_not_found __pyx_string_tab[327]
#define __pyx_kp_u_The_curve_is_not_isotopic_to_a_g __pyx_string_tab[328]
#define __pyx_kp_u_The_cusp_neighborhood_constructi __pyx_string_tab[329]
#define __pyx_kp_u_The_data_given_do_not_have_the_r __pyx_string_tab[330]
#define __pyx_kp_u_The_data_provided_are_invalid_fo __pyx_string_tab[331]
#define __pyx_kp_u_The_data_provided_does_not_give __pyx_string_tab[332]
#define __pyx_kp_u_The_data_provided_does_not_give_2 __pyx_string_tab[333]
#define __pyx_kp_u_The_drilling_curve_requested_is __pyx_string_tab[334]
#define __pyx_kp_u_The_elementary_divisors_must_for __pyx_string_tab[335]
#define __pyx_kp_u_The_empty_triangulation_has_no_n __pyx_string_tab[336]
#define __pyx_kp_u_The_full_symmetry_group_is_not_k __pyx_string_tab[337]
#define __pyx_kp_u_The_full_symmetry_group_not_know __pyx_string_tab[338]
#define __pyx_kp_u_The_generator_data_does_not_star __pyx_string_tab[339]
#define __pyx_kp_u_The_homomorphism_image_is_not_a __pyx_string_tab[340]
#define __pyx_kp_u_The_horoball_construction_failed __pyx_string_tab[341]
#define __pyx_kp_u_The_link_complement_s_was_not_fo __pyx_string_tab[342]
#define __pyx_kp_u_The_manifold_file __pyx_string_tab[343]
#define __pyx_kp_u_The_method_must_be_fold_or_layer __pyx_string_tab[344]
#define __pyx_kp_u_The_number_of_fillings_specified __pyx_string_tab[345]
#define __pyx_kp_u_The_peripheral_data __pyx_string_tab[346]
#define __pyx_kp_u_The_peripheral_data_s_is_not_acc __pyx_string_tab[347]
#define __pyx_kp_u_The_permutation_list_is_invalid __pyx_string_tab[348]
#define __pyx_kp_u_The_solution_type_is_s __pyx_string_tab[349]
#define __pyx_kp_u_The_specified_cusp_s_does_not_ex __pyx_string_tab[350]
#define __pyx_kp_u_The_specified_edge_index_s_is_in __pyx_string_tab[351]
#define __pyx_kp_u_The_specified_face_index_s_is_in __pyx_string_tab[352]
#define __pyx_kp_u_The_specified_indices_to_be_fill __pyx_string_tab[353]
#define __pyx_kp_u_The_specified_tetrahedron_s_does __pyx_string_tab[354]
#define __pyx_kp_u_The_symmetry_group_has_only_d_el __pyx_string_tab[355]
#define __pyx_kp_u_The_symmetry_group_is_not_a_nont __pyx_string_tab[356]
#define __pyx_kp_u_The_symmetry_group_is_not_abelia __pyx_string_tab[357]
#define __pyx_kp_u_The_symmetry_group_is_not_polyhe __pyx_string_tab[358]
#define __pyx_kp_u_The_triangulation_construction_f __pyx_string_tab[359]
#define __pyx_kp_u_The_word_contains_a_non_generato __pyx_string_tab[360]
#define __pyx_kp_u_There_are_only_201_census_knots __pyx_string_tab[361]
#define __pyx_kp_u_This_census_does_not_support_man __pyx_string_tab[362]
#define __pyx_kp_u_To_permanently_fill_a_cusp_the_D __pyx_string_tab[363]
#define __pyx_kp_u_Triangulation __pyx_string_tab[364]
#define __pyx_kp_u_Triangulation_DT_code_line_1108 __pyx_string_tab[365]
#define __pyx_kp_u_Triangulation___reduce___line_88 __pyx_string_tab[366]
#define __pyx_kp_u_Triangulation__from_bytes_line_7 __pyx_string_tab[367]
#define __pyx_kp_u_Triangulation__from_isosig_line __pyx_string_tab[368]
#define __pyx_kp_u_Triangulation__from_string_line __pyx_string_tab[369]
#define __pyx_kp_u_Triangulation__from_tetrahedra_g_2 __pyx_string_tab[370]
#define __pyx_kp_u_Triangulation__isomorphisms_to_l __pyx_string_tab[371]
#define __pyx_kp_u_Triangulation__num_fake_cusps_li __pyx_string_tab[372]
#define __pyx_kp_u_Triangulation__reindex_cusps_lin __pyx_string_tab[373]
#define __pyx_kp_u_Triangulation__remove_finite_ver_2 __pyx_string_tab[374]
#define __pyx_kp_u_Triangulation__to_bytes_line_723 __pyx_string_tab[375]
#define __pyx_kp_u_Triangulation__to_string_line_67 __pyx_string_tab[376]
#define __pyx_kp_u_Triangulation__unsimplified_fill_2 __pyx_string_tab[377]
#define __pyx_kp_u_Triangulation_and_text_files __pyx_string_tab[378]
#define __pyx_kp_u_Triangulation_contains_cusps_onl __pyx_string_tab[379]
#define __pyx_kp_u_Triangulation_copy_line_466 __pyx_string_tab[380]
#define __pyx_kp_u_Triangulation_cover_line_2395 __pyx_string_tab[381]
#define __pyx_kp_u_Triangulation_covers_line_2497 __pyx_string_tab[382]
#define __pyx_kp_u_Triangulation_cusp_info_line_123 __pyx_string_tab[383]
#define __pyx_kp_u_Triangulation_dehn_fill_line_116 __pyx_string_tab[384]
#define __pyx_kp_u_Triangulation_edge_valences_line __pyx_string_tab[385]
#define __pyx_kp_u_Triangulation_filled_triangulati_2 __pyx_string_tab[386]
#define __pyx_kp_u_Triangulation_fundamental_group_2 __pyx_string_tab[387]
#define __pyx_kp_u_Triangulation_gluing_equations_l __pyx_string_tab[388]
#define __pyx_kp_u_Triangulation_gluing_equations_p_2 __pyx_string_tab[389]
#define __pyx_kp_u_Triangulation_has_finite_vertice_2 __pyx_string_tab[390]
#define __pyx_kp_u_Triangulation_homology_line_2311 __pyx_string_tab[391]
#define __pyx_kp_u_Triangulation_is_orientable_line __pyx_string_tab[392]
#define __pyx_kp_u_Triangulation_name_line_1081 __pyx_string_tab[393]
#define __pyx_kp_u_Triangulation_num_cusps_line_387 __pyx_string_tab[394]
#define __pyx_kp_u_Triangulation_num_tetrahedra_lin __pyx_string_tab[395]
#define __pyx_kp_u_Triangulation_or_Manifold __pyx_string_tab[396]
#define __pyx_kp_u_Triangulation_orientation_cover_2 __pyx_string_tab[397]
#define __pyx_kp_u_Triangulation_plink_line_343 __pyx_string_tab[398]
#define __pyx_kp_u_Triangulation_ptolemy_generalize_2 __pyx_string_tab[399]
#define __pyx_kp_u_Triangulation_ptolemy_obstructio_2 __pyx_string_tab[400]
#define __pyx_kp_u_Triangulation_ptolemy_variety_li __pyx_string_tab[401]
#define __pyx_kp_u_Triangulation_randomize_line_483 __pyx_string_tab[402]
#define __pyx_kp_u_Triangulation_reverse_orientatio_2 __pyx_string_tab[403]
#define __pyx_kp_u_Triangulation_save_line_653 __pyx_string_tab[404]
#define __pyx_kp_u_Triangulation_set_name_line_1093 __pyx_string_tab[405]
#define __pyx_kp_u_Triangulation_simplify_line_497 __pyx_string_tab[406]
#define __pyx_kp_u_Triangulation_symplectic_basis_l __pyx_string_tab[407]
#define __pyx_kp_u_Triangulation_triangulation_isos_2 __pyx_string_tab[408]
#define __pyx_kp_u_Triangulation_with_hyperbolic_st_2 __pyx_string_tab[409]
#define __pyx_kp_u_Try_to_simplify_the_triangulati __pyx_string_tab[410]
#define __pyx_kp_u_Used_by_pickle_dumps_from_pickl __pyx_string_tab[411]
#define __pyx_kp_u_Used_by_the_pickle_module_to_pi __pyx_string_tab[412]
#define __pyx_kp_u_Verified_and_arbitrary_precision __pyx_string_tab[413]
#define __pyx_kp_u_WARNING_Users_should_not_use_th __pyx_string_tab[414]
#define __pyx_kp_u_WARNING_Users_should_not_use_th_2 __pyx_string_tab[415]
#define __pyx_kp_u_WARNING_Users_should_not_use_th_3 __pyx_string_tab[416]
#define __pyx_kp_u_Warning_Result_is_not_symplectic __pyx_string_tab[417]
#define __pyx_kp_u_Words_must_be_represented_as_Pyt __pyx_string_tab[418]
#define __pyx_kp_u_Wrong_equation_type __pyx_string_tab[419]
#define __pyx_kp_u_You_have_specified_a_Hoste_Thist __pyx_string_tab[420]
#define __pyx_kp_u_You_must_apply_fillings_to_all_o __pyx_string_tab[421]
#define __pyx_kp_u_You_must_apply_shortest_to_all_o __pyx_string_tab[422]
#define __pyx_kp_u_You_provided_filling_data_for_to __pyx_string_tab[423]
#define __pyx_kp_u_You_provided_more_peripheral_dat __pyx_string_tab[424]
#define __pyx_kp_u_You_tried_to_create_an_empty_Sym __pyx_string_tab[425]
#define __pyx_kp_u_Z_d __pyx_string_tab[426]
#define __pyx_kp_u__10 __pyx_string_tab[427]
#define __pyx_kp_u__11 __pyx_string_tab[428]
#define __pyx_kp_u__12 __pyx_string_tab[429]
#define __pyx_kp_u__13 __pyx_string_tab[430]
#define __pyx_kp_u__14 __pyx_string_tab[431]
#define __pyx_kp_u__15 __pyx_string_tab[432]
#define __pyx_kp_u__16 __pyx_string_tab[433]
#define __pyx_kp_u__17 __pyx_string_tab[434]
#define __pyx_kp_u__18 __pyx_string_tab[435]
#define __pyx_kp_u__19 __pyx_string_tab[436]
#define __pyx_kp_u__2 __pyx_string_tab[437]
#define __pyx_kp_u__20 __pyx_string_tab[438]
#define __pyx_kp_u__22 __pyx_string_tab[439]
#define __pyx_kp_u__23 __pyx_string_tab[440]
#define __pyx_kp_u__24 __pyx_string_tab[441]
#define __pyx_kp_u__25 __pyx_string_tab[442]
#define __pyx_kp_u__26 __pyx_string_tab[443]
#define __pyx_kp_u__27 __pyx_string_tab[444]
#define __pyx_kp_u__28 __pyx_string_tab[445]
#define __pyx_kp_u__3 __pyx_string_tab[446]
#define __pyx_kp_u__30 __pyx_string_tab[447]
#define __pyx_kp_u__32 __pyx_string_tab[448]
#define __pyx_kp_u__33 __pyx_string_tab[449]
#define __pyx_kp_u__34 __pyx_string_tab[450]
#define __pyx_kp_u__35 __pyx_string_tab[451]
#define __pyx_kp_u__36 __pyx_string_tab[452]
#define __pyx_kp_u__37 __pyx_string_tab[453]
#define __pyx_kp_u__4 __pyx_string_tab[454]
#define __pyx_kp_u__40 __pyx_string_tab[455]
#define __pyx_kp_u__41 __pyx_string_tab[456]
#define __pyx_kp_u__5 __pyx_string_tab[457]
#define __pyx_kp_u__6 __pyx_string_tab[458]
#define __pyx_kp_u__7 __pyx_string_tab[459]
#define __pyx_kp_u__8 __pyx_string_tab[460]
#define __pyx_kp_u__9 __pyx_string_tab[461]
#define __pyx_kp_u_a __pyx_string_tab[462]
#define __pyx_kp_u_a_zA_Z0_9 __pyx_string_tab[463]
#define __pyx_kp_u_abcABC__d_abcABC__d __pyx_string_tab[464]
#define __pyx_kp_u_abcdefghijklmnopqrstuvwxyzZYXWV __pyx_string_tab[465]
#define __pyx_kp_u_add_note __pyx_string_tab[466]
#define __pyx_kp_u_all_tetrahedra_positively_orient __pyx_string_tab[467]
#define __pyx_kp_u_alternating_gz __pyx_string_tab[468]
#define __pyx_kp_u_at_least __pyx_string_tab[469]
#define __pyx_kp_u_b __pyx_string_tab[470]
#define __pyx_kp_u_b_RL __pyx_string_tab[471]
#define __pyx_kp_u_b_RL_2 __pyx_string_tab[472]
#define __pyx_kp_u_b_RRL __pyx_string_tab[473]
#define __pyx_kp_u_b_RRL_2 __pyx_string_tab[474]
#define __pyx_kp_u_b_no_lLrR __pyx_string_tab[475]
#define __pyx_kp_u_binary __pyx_string_tab[476]
#define __pyx_kp_u_binary_dihedral_group_2_2_d __pyx_string_tab[477]
#define __pyx_kp_u_browser_2 __pyx_string_tab[478]
#define __pyx_kp_u_c __pyx_string_tab[479]
#define __pyx_kp_u_cache_2 __pyx_string_tab[480]
#define __pyx_kp_u_complete __pyx_string_tab[481]
#define __pyx_kp_u_complete_3 __pyx_string_tab[482]
#define __pyx_kp_u_complete_length_2 __pyx_string_tab[483]
#define __pyx_kp_u_contains_degenerate_tetrahedra __pyx_string_tab[484]
#define __pyx_kp_u_contains_flat_tetrahedra __pyx_string_tab[485]
#define __pyx_kp_u_contains_negatively_oriented_tet __pyx_string_tab[486]
#define __pyx_kp_u_curve_of_length __pyx_string_tab[487]
#define __pyx_kp_u_cusp __pyx_string_tab[488]
#define __pyx_kp_u_cusps_2 __pyx_string_tab[489]
#define __pyx_kp_u_cython_core_abelian_group_pyx __pyx_string_tab[490]
#define __pyx_kp_u_cython_core_basic_pyx __pyx_string_tab[491]
#define __pyx_kp_u_cython_core_cusp_neighborhoods_p __pyx_string_tab[492]
#define __pyx_kp_u_cython_core_dirichlet_pyx __pyx_string_tab[493]
#define __pyx_kp_u_cython_core_fundamental_group_py __pyx_string_tab[494]
#define __pyx_kp_u_cython_core_manifold_pyx __pyx_string_tab[495]
#define __pyx_kp_u_cython_core_symmetry_group_pyx __pyx_string_tab[496]
#define __pyx_kp_u_cython_core_tail_pyx __pyx_string_tab[497]
#define __pyx_kp_u_cython_core_triangulation_pyx __pyx_string_tab[498]
#define __pyx_kp_u_d __pyx_string_tab[499]
#define __pyx_kp_u_dB __pyx_string_tab[500]
#define __pyx_kp_u_d_3 __pyx_string_tab[501]
#define __pyx_kp_u_d_4 __pyx_string_tab[502]
#define __pyx_kp_u_data_1_1_2_2_0_1_3_2_2_3_1_0_0 __pyx_string_tab[503]
#define __pyx_kp_u_defined_in __pyx_string_tab[504]
#define __pyx_kp_u_disable __pyx_string_tab[505]
#define __pyx_kp_u_edges __pyx_string_tab[506]
#define __pyx_kp_u_enable __pyx_string_tab[507]
#define __pyx_kp_u_end __pyx_string_tab[508]
#define __pyx_kp_u_exceptions_2 __pyx_string_tab[509]
#define __pyx_kp_u_explain_columns_2 __pyx_string_tab[510]
#define __pyx_kp_u_explain_rows_2 __pyx_string_tab[511]
#define __pyx_kp_u_export_stl_2 __pyx_string_tab[512]
#define __pyx_kp_u_faces __pyx_string_tab[513]
#define __pyx_kp_u_filedialog_2 __pyx_string_tab[514]
#define __pyx_kp_u_filled_length_2 __pyx_string_tab[515]
#define __pyx_kp_u_finite_vertices __pyx_string_tab[516]
#define __pyx_kp_u_g_g __pyx_string_tab[517]
#define __pyx_kp_u_gc __pyx_string_tab[518]
#define __pyx_kp_u_get_triangulation_tester_doctes __pyx_string_tab[519]
#define __pyx_kp_u_get_triangulation_tester_line_11 __pyx_string_tab[520]
#define __pyx_kp_u_gui_2 __pyx_string_tab[521]
#define __pyx_kp_u_holonomy_precision __pyx_string_tab[522]
#define __pyx_kp_u_horoviewer_2 __pyx_string_tab[523]
#define __pyx_kp_u_hyperbolic_data__sa_gz __pyx_string_tab[524]
#define __pyx_kp_u_hyperbolic_data__sn_gz __pyx_string_tab[525]
#define __pyx_kp_u_icosohedral_group __pyx_string_tab[526]
#define __pyx_kp_u_ideal_vertices __pyx_string_tab[527]
#define __pyx_kp_u_import_itertools_M_Manifold_L14 __pyx_string_tab[528]
#define __pyx_kp_u_is_not_acceptable __pyx_string_tab[529]
#define __pyx_kp_u_isenabled __pyx_string_tab[530]
#define __pyx_kp_u_lL_P_components_0_9_1_P_crossin __pyx_string_tab[531]
#define __pyx_kp_u_length_2 __pyx_string_tab[532]
#define __pyx_kp_u_list_snappy_Manifold __pyx_string_tab[533]
#define __pyx_kp_u_list_snappy_Triangulation __pyx_string_tab[534]
#define __pyx_kp_u_manifolds_2 __pyx_string_tab[535]
#define __pyx_kp_u_matrix_3 __pyx_string_tab[536]
#define __pyx_kp_u_mirrored_arc __pyx_string_tab[537]
#define __pyx_kp_u_morwen8 __pyx_string_tab[538]
#define __pyx_kp_u_morwen8_tgz __pyx_string_tab[539]
#define __pyx_kp_u_no_default___reduce___due_to_non __pyx_string_tab[540]
#define __pyx_kp_u_no_solution_found __pyx_string_tab[541]
#define __pyx_kp_u_nonabelian_group_of_order_d __pyx_string_tab[542]
#define __pyx_kp_u_nonalternating_gz __pyx_string_tab[543]
#define __pyx_kp_u_not_attempted __pyx_string_tab[544]
#define __pyx_kp_u_not_filled __pyx_string_tab[545]
#define __pyx_kp_u_number_3 __pyx_string_tab[546]
#define __pyx_kp_u_octahedral_group __pyx_string_tab[547]
#define __pyx_kp_u_of __pyx_string_tab[548]
#define __pyx_kp_u_of_shape __pyx_string_tab[549]
#define __pyx_kp_u_one_sided __pyx_string_tab[550]
#define __pyx_kp_u_orientation_preserving __pyx_string_tab[551]
#define __pyx_kp_u_orientation_reversing __pyx_string_tab[552]
#define __pyx_kp_u_pari_2 __pyx_string_tab[553]
#define __pyx_kp_u_polyviewer_2 __pyx_string_tab[554]
#define __pyx_kp_u_ptolemy_2 __pyx_string_tab[555]
#define __pyx_kp_u_r_2 __pyx_string_tab[556]
#define __pyx_kp_u_return_F __pyx_string_tab[557]
#define __pyx_kp_u_s_2 __pyx_string_tab[558]
#define __pyx_kp_u_s_3 __pyx_string_tab[559]
#define __pyx_kp_u_s_4 __pyx_string_tab[560]
#define __pyx_kp_u_s_x_s __pyx_string_tab[561]
#define __pyx_kp_u_sage_helper_2 __pyx_string_tab[562]
#define __pyx_kp_u_shape_precision __pyx_string_tab[563]
#define __pyx_kp_u_snappy_Manifold __pyx_string_tab[564]
#define __pyx_kp_u_snappy_Triangulation __pyx_string_tab[565]
#define __pyx_kp_u_surfaces_but_you_asked_for_surf __pyx_string_tab[566]
#define __pyx_kp_u_tetrahedra_shapes_were_inserted __pyx_string_tab[567]
#define __pyx_kp_u_tetrahedral_group __pyx_string_tab[568]
#define __pyx_kp_u_the_gap_method_for_covers_requir __pyx_string_tab[569]
#define __pyx_kp_u_the_magma_method_for_covers_requ __pyx_string_tab[570]
#define __pyx_kp_u_torus_cusp __pyx_string_tab[571]
#define __pyx_kp_u_tree_fragment __pyx_string_tab[572]
#define __pyx_kp_u_tri __pyx_string_tab[573]
#define __pyx_kp_u_tri_txt __pyx_string_tab[574]
#define __pyx_kp_u_two_sided_2 __pyx_string_tab[575]
#define __pyx_kp_u_typing_Optional_str __pyx_string_tab[576]
#define __pyx_kp_u_unnamed_link __pyx_string_tab[577]
#define __pyx_kp_u_unrecognized_solution_type __pyx_string_tab[578]
#define __pyx_kp_u_utf_8 __pyx_string_tab[579]
#define __pyx_kp_u_v1205_2_3 __pyx_string_tab[580]
#define __pyx_kp_u_verify_2 __pyx_string_tab[581]
#define __pyx_kp_u_was_not_found __pyx_string_tab[582]
#define __pyx_kp_u_with_Dehn_filling_coefficients __pyx_string_tab[583]
#define __pyx_kp_u_with_euler __pyx_string_tab[584]
#define __pyx_kp_u_xX_d __pyx_string_tab[585]
#define __pyx_kp_u_x_d_1 __pyx_string_tab[586]
#define __pyx_n_u_A_3 __pyx_string_tab[587]
#define __pyx_n_u_AbelianGroup __pyx_string_tab[588]
#define __pyx_n_u_AbelianGroup___reduce __pyx_string_tab[589]
#define __pyx_n_u_AbelianGroup_betti_number __pyx_string_tab[590]
#define __pyx_n_u_AbelianGroup_elementary_divisors __pyx_string_tab[591]
#define __pyx_n_u_AbelianGroup_order __pyx_string_tab[592]
#define __pyx_n_u_AbelianGroup_rank __pyx_string_tab[593]
#define __pyx_n_u_Alphabet __pyx_string_tab[594]
#define __pyx_n_u_AlternatingKnotExteriors __pyx_string_tab[595]
#define __pyx_n_u_Alternating_numbers __pyx_string_tab[596]
#define __pyx_n_u_Alternating_offsets __pyx_string_tab[597]
#define __pyx_n_u_Alternating_table __pyx_string_tab[598]
#define __pyx_n_u_B __pyx_string_tab[599]
#define __pyx_n_u_Browser __pyx_string_tab[600]
#define __pyx_n_u_C __pyx_string_tab[601]
#define __pyx_n_u_CCuspNeighborhood __pyx_string_tab[602]
#define __pyx_n_u_CCuspNeighborhood_Ford_domain __pyx_string_tab[603]
#define __pyx_n_u_CCuspNeighborhood___reduce_cytho __pyx_string_tab[604]
#define __pyx_n_u_CCuspNeighborhood___setstate_cyt __pyx_string_tab[605]
#define __pyx_n_u_CCuspNeighborhood__number __pyx_string_tab[606]
#define __pyx_n_u_CCuspNeighborhood_check_index __pyx_string_tab[607]
#define __pyx_n_u_CCuspNeighborhood_get_displaceme __pyx_string_tab[608]
#define __pyx_n_u_CCuspNeighborhood_get_tie __pyx_string_tab[609]
#define __pyx_n_u_CCuspNeighborhood_horoballs __pyx_string_tab[610]
#define __pyx_n_u_CCuspNeighborhood_manifold __pyx_string_tab[611]
#define __pyx_n_u_CCuspNeighborhood_max_reach __pyx_string_tab[612]
#define __pyx_n_u_CCuspNeighborhood_num_cusps __pyx_string_tab[613]
#define __pyx_n_u_CCuspNeighborhood_original_index __pyx_string_tab[614]
#define __pyx_n_u_CCuspNeighborhood_reach __pyx_string_tab[615]
#define __pyx_n_u_CCuspNeighborhood_set_displaceme __pyx_string_tab[616]
#define __pyx_n_u_CCuspNeighborhood_set_tie __pyx_string_tab[617]
#define __pyx_n_u_CCuspNeighborhood_stopper __pyx_string_tab[618]
#define __pyx_n_u_CCuspNeighborhood_stopping_displ __pyx_string_tab[619]
#define __pyx_n_u_CCuspNeighborhood_topology __pyx_string_tab[620]
#define __pyx_n_u_CCuspNeighborhood_translations __pyx_string_tab[621]
#define __pyx_n_u_CCuspNeighborhood_triangulation __pyx_string_tab[622]
#define __pyx_n_u_CCuspNeighborhood_view __pyx_string_tab[623]
#define __pyx_n_u_CCuspNeighborhood_volume __pyx_string_tab[624]
#define __pyx_n_u_CDirichletDomain __pyx_string_tab[625]
#define __pyx_n_u_CDirichletDomain___reduce_ex __pyx_string_tab[626]
#define __pyx_n_u_CDirichletDomain__edge_to_index __pyx_string_tab[627]
#define __pyx_n_u_CDirichletDomain__number __pyx_string_tab[628]
#define __pyx_n_u_CDirichletDomain__to_string __pyx_string_tab[629]
#define __pyx_n_u_CDirichletDomain__vertex_data_li __pyx_string_tab[630]
#define __pyx_n_u_CDirichletDomain__vertex_list __pyx_string_tab[631]
#define __pyx_n_u_CDirichletDomain__vertex_to_inde __pyx_string_tab[632]
#define __pyx_n_u_CDirichletDomain_edge_list __pyx_string_tab[633]
#define __pyx_n_u_CDirichletDomain_export_stl __pyx_string_tab[634]
#define __pyx_n_u_CDirichletDomain_face_list __pyx_string_tab[635]
#define __pyx_n_u_CDirichletDomain_in_radius __pyx_string_tab[636]
#define __pyx_n_u_CDirichletDomain_length_spectrum __pyx_string_tab[637]
#define __pyx_n_u_CDirichletDomain_manifold __pyx_string_tab[638]
#define __pyx_n_u_CDirichletDomain_num_edges __pyx_string_tab[639]
#define __pyx_n_u_CDirichletDomain_num_faces __pyx_string_tab[640]
#define __pyx_n_u_CDirichletDomain_num_finite_vert __pyx_string_tab[641]
#define __pyx_n_u_CDirichletDomain_num_ideal_verti __pyx_string_tab[642]
#define __pyx_n_u_CDirichletDomain_num_vertices __pyx_string_tab[643]
#define __pyx_n_u_CDirichletDomain_out_radius __pyx_string_tab[644]
#define __pyx_n_u_CDirichletDomain_pairing_matrice __pyx_string_tab[645]
#define __pyx_n_u_CDirichletDomain_pairing_words __pyx_string_tab[646]
#define __pyx_n_u_CDirichletDomain_save __pyx_string_tab[647]
#define __pyx_n_u_CDirichletDomain_spine_radius __pyx_string_tab[648]
#define __pyx_n_u_CDirichletDomain_triangulation __pyx_string_tab[649]
#define __pyx_n_u_CDirichletDomain_vertex_list __pyx_string_tab[650]
#define __pyx_n_u_CDirichletDomain_view __pyx_string_tab[651]
#define __pyx_n_u_CDirichletDomain_volume __pyx_string_tab[652]
#define __pyx_n_u_CFundamentalGroup __pyx_string_tab[653]
#define __pyx_n_u_CFundamentalGroup___reduce_cytho __pyx_string_tab[654]
#define __pyx_n_u_CFundamentalGroup___setstate_cyt __pyx_string_tab[655]
#define __pyx_n_u_CFundamentalGroup__gap_init __pyx_string_tab[656]
#define __pyx_n_u_CFundamentalGroup__magma_init __pyx_string_tab[657]
#define __pyx_n_u_CFundamentalGroup__word_moves __pyx_string_tab[658]
#define __pyx_n_u_CFundamentalGroup_character_vari __pyx_string_tab[659]
#define __pyx_n_u_CFundamentalGroup_gap_string __pyx_string_tab[660]
#define __pyx_n_u_CFundamentalGroup_generators __pyx_string_tab[661]
#define __pyx_n_u_CFundamentalGroup_generators_in __pyx_string_tab[662]
#define __pyx_n_u_CFundamentalGroup_longitude __pyx_string_tab[663]
#define __pyx_n_u_CFundamentalGroup_magma_string __pyx_string_tab[664]
#define __pyx_n_u_CFundamentalGroup_meridian __pyx_string_tab[665]
#define __pyx_n_u_CFundamentalGroup_num_generators __pyx_string_tab[666]
#define __pyx_n_u_CFundamentalGroup_num_original_g __pyx_string_tab[667]
#define __pyx_n_u_CFundamentalGroup_num_relators __pyx_string_tab[668]
#define __pyx_n_u_CFundamentalGroup_original_gener __pyx_string_tab[669]
#define __pyx_n_u_CFundamentalGroup_peripheral_cur __pyx_string_tab[670]
#define __pyx_n_u_CFundamentalGroup_relators __pyx_string_tab[671]
#define __pyx_n_u_CFundamentalGroup_sage __pyx_string_tab[672]
#define __pyx_n_u_CHolonomyGroup __pyx_string_tab[673]
#define __pyx_n_u_CHolonomyGroup_O31 __pyx_string_tab[674]
#define __pyx_n_u_CHolonomyGroup_SL2C __pyx_string_tab[675]
#define __pyx_n_u_CHolonomyGroup___reduce_cython __pyx_string_tab[676]
#define __pyx_n_u_CHolonomyGroup___setstate_cython __pyx_string_tab[677]
#define __pyx_n_u_CHolonomyGroup__matrix __pyx_string_tab[678]
#define __pyx_n_u_CHolonomyGroup_complex_length __pyx_string_tab[679]
#define __pyx_n_u_Census __pyx_string_tab[680]
#define __pyx_n_u_Census_Knots __pyx_string_tab[681]
#define __pyx_n_u_Census_Morwen8 __pyx_string_tab[682]
#define __pyx_n_u_Census___contains __pyx_string_tab[683]
#define __pyx_n_u_Census___getitem __pyx_string_tab[684]
#define __pyx_n_u_Census___init __pyx_string_tab[685]
#define __pyx_n_u_Census___iter __pyx_string_tab[686]
#define __pyx_n_u_Census___len __pyx_string_tab[687]
#define __pyx_n_u_Census_next __pyx_string_tab[688]
#define __pyx_n_u_CertifiedShapesEngine __pyx_string_tab[689]
#define __pyx_n_u_ChristyLinks __pyx_string_tab[690]
#define __pyx_n_u_Christy_links __pyx_string_tab[691]
#define __pyx_n_u_ClosedCensusData __pyx_string_tab[692]
#define __pyx_n_u_CosetAction __pyx_string_tab[693]
#define __pyx_n_u_CuspInfo __pyx_string_tab[694]
#define __pyx_n_u_CuspInfo___repr __pyx_string_tab[695]
#define __pyx_n_u_CuspNeighborhood __pyx_string_tab[696]
#define __pyx_n_u_CuspTopology __pyx_string_tab[697]
#define __pyx_n_u_CuspedCensus __pyx_string_tab[698]
#define __pyx_n_u_CuspedCensus___getitem __pyx_string_tab[699]
#define __pyx_n_u_CuspedCensus___init __pyx_string_tab[700]
#define __pyx_n_u_CuspedCensus_lookup __pyx_string_tab[701]
#define __pyx_n_u_D __pyx_string_tab[702]
#define __pyx_n_u_DT_3 __pyx_string_tab[703]
#define __pyx_n_u_DT_code __pyx_string_tab[704]
#define __pyx_n_u_DT_codes __pyx_string_tab[705]
#define __pyx_n_u_DTcodec __pyx_string_tab[706]
#define __pyx_n_u_DirichletDomain __pyx_string_tab[707]
#define __pyx_n_u_DualCurveInfo __pyx_string_tab[708]
#define __pyx_n_u_DualCurveInfo___repr __pyx_string_tab[709]
#define __pyx_n_u_F_2 __pyx_string_tab[710]
#define __pyx_n_u_FactorCosetAction __pyx_string_tab[711]
#define __pyx_n_u_Ford_domain __pyx_string_tab[712]
#define __pyx_n_u_FormatHomForSnapPea __pyx_string_tab[713]
#define __pyx_n_u_FreeGroup __pyx_string_tab[714]
#define __pyx_n_u_FuncResult __pyx_string_tab[715]
#define __pyx_n_u_FundamentalGroup __pyx_string_tab[716]
#define __pyx_n_u_G __pyx_string_tab[717]
#define __pyx_n_u_GG __pyx_string_tab[718]
#define __pyx_n_u_GapElement __pyx_string_tab[719]
#define __pyx_n_u_GeneratorsOfGroup __pyx_string_tab[720]
#define __pyx_n_u_GrpFP __pyx_string_tab[721]
#define __pyx_n_u_GrpPerm __pyx_string_tab[722]
#define __pyx_n_u_H __pyx_string_tab[723]
#define __pyx_n_u_HTLinkExteriors __pyx_string_tab[724]
#define __pyx_n_u_HTWKnots __pyx_string_tab[725]
#define __pyx_n_u_HolonomyGroup __pyx_string_tab[726]
#define __pyx_n_u_HolonomyGroup__number __pyx_string_tab[727]
#define __pyx_n_u_HomGrp __pyx_string_tab[728]
#define __pyx_n_u_HoroballViewer __pyx_string_tab[729]
#define __pyx_n_u_I __pyx_string_tab[730]
#define __pyx_n_u_Image __pyx_string_tab[731]
#define __pyx_n_u_Index __pyx_string_tab[732]
#define __pyx_n_u_Info __pyx_string_tab[733]
#define __pyx_n_u_Info___init __pyx_string_tab[734]
#define __pyx_n_u_Info__immutable __pyx_string_tab[735]
#define __pyx_n_u_Info_keys __pyx_string_tab[736]
#define __pyx_n_u_Integer __pyx_string_tab[737]
#define __pyx_n_u_IsCompositionMappingRep __pyx_string_tab[738]
#define __pyx_n_u_IsSubgroupFpGroup __pyx_string_tab[739]
#define __pyx_n_u_IsToPermGroupHomomorphismByImage __pyx_string_tab[740]
#define __pyx_n_u_Isometry __pyx_string_tab[741]
#define __pyx_n_u_Isometry___init __pyx_string_tab[742]
#define __pyx_n_u_Isometry___repr __pyx_string_tab[743]
#define __pyx_n_u_Isometry_cusp_images __pyx_string_tab[744]
#define __pyx_n_u_Isometry_cusp_maps __pyx_string_tab[745]
#define __pyx_n_u_Isometry_extends_to_link __pyx_string_tab[746]
#define __pyx_n_u_Isometry_num_cusps __pyx_string_tab[747]
#define __pyx_n_u_K __pyx_string_tab[748]
#define __pyx_n_u_K7_1 __pyx_string_tab[749]
#define __pyx_n_u_KLPProjection __pyx_string_tab[750]
#define __pyx_n_u_Klein __pyx_string_tab[751]
#define __pyx_n_u_KnotExteriors __pyx_string_tab[752]
#define __pyx_n_u_KnotExteriors___getitem __pyx_string_tab[753]
#define __pyx_n_u_KnotExteriors___init __pyx_string_tab[754]
#define __pyx_n_u_L __pyx_string_tab[755]
#define __pyx_n_u_L104001 __pyx_string_tab[756]
#define __pyx_n_u_L13n9331 __pyx_string_tab[757]
#define __pyx_n_u_LE __pyx_string_tab[758]
#define __pyx_n_u_LengthSpectrum __pyx_string_tab[759]
#define __pyx_n_u_LengthSpectrumFormatString __pyx_string_tab[760]
#define __pyx_n_u_LengthSpectrumFormatStringBase __pyx_string_tab[761]
#define __pyx_n_u_LengthSpectrumFormatStringWithWo __pyx_string_tab[762]
#define __pyx_n_u_LengthSpectrumInfo __pyx_string_tab[763]
#define __pyx_n_u_LengthSpectrumInfo___repr __pyx_string_tab[764]
#define __pyx_n_u_LengthSpectrum___repr __pyx_string_tab[765]
#define __pyx_n_u_Link __pyx_string_tab[766]
#define __pyx_n_u_LinkEditor __pyx_string_tab[767]
#define __pyx_n_u_LinkExteriors __pyx_string_tab[768]
#define __pyx_n_u_LinkManager __pyx_string_tab[769]
#define __pyx_n_u_ListOnePerLine __pyx_string_tab[770]
#define __pyx_n_u_ListOnePerLine___repr __pyx_string_tab[771]
#define __pyx_n_u_LowIndexSubgroups __pyx_string_tab[772]
#define __pyx_n_u_LowIndexSubgroupsFpGroup __pyx_string_tab[773]
#define __pyx_n_u_M __pyx_string_tab[774]
#define __pyx_n_u_M0 __pyx_string_tab[775]
#define __pyx_n_u_M1 __pyx_string_tab[776]
#define __pyx_n_u_MTLinks __pyx_string_tab[777]
#define __pyx_n_u_MagmaElement __pyx_string_tab[778]
#define __pyx_n_u_Manifold __pyx_string_tab[779]
#define __pyx_n_u_Manifold__canonical_cells_are_te __pyx_string_tab[780]
#define __pyx_n_u_Manifold__canonical_retriangulat __pyx_string_tab[781]
#define __pyx_n_u_Manifold__choose_generators __pyx_string_tab[782]
#define __pyx_n_u_Manifold__choose_generators_info __pyx_string_tab[783]
#define __pyx_n_u_Manifold__complex_volume __pyx_string_tab[784]
#define __pyx_n_u_Manifold__cusp_cross_section_inf __pyx_string_tab[785]
#define __pyx_n_u_Manifold__from_bytes __pyx_string_tab[786]
#define __pyx_n_u_Manifold__from_isosig __pyx_string_tab[787]
#define __pyx_n_u_Manifold__from_string __pyx_string_tab[788]
#define __pyx_n_u_Manifold__get_tetrahedra_shapes __pyx_string_tab[789]
#define __pyx_n_u_Manifold__identify __pyx_string_tab[790]
#define __pyx_n_u_Manifold__is_isometric_to __pyx_string_tab[791]
#define __pyx_n_u_Manifold__number __pyx_string_tab[792]
#define __pyx_n_u_Manifold__polish_hyperbolic_stru __pyx_string_tab[793]
#define __pyx_n_u_Manifold__precision __pyx_string_tab[794]
#define __pyx_n_u_Manifold_browse __pyx_string_tab[795]
#define __pyx_n_u_Manifold_canonize __pyx_string_tab[796]
#define __pyx_n_u_Manifold_chern_simons __pyx_string_tab[797]
#define __pyx_n_u_Manifold_copy __pyx_string_tab[798]
#define __pyx_n_u_Manifold_cover __pyx_string_tab[799]
#define __pyx_n_u_Manifold_covers __pyx_string_tab[800]
#define __pyx_n_u_Manifold_cusp_info __pyx_string_tab[801]
#define __pyx_n_u_Manifold_cusp_neighborhood __pyx_string_tab[802]
#define __pyx_n_u_Manifold_dehn_fill __pyx_string_tab[803]
#define __pyx_n_u_Manifold_dirichlet_domain __pyx_string_tab[804]
#define __pyx_n_u_Manifold_drill __pyx_string_tab[805]
#define __pyx_n_u_Manifold_dual_curves __pyx_string_tab[806]
#define __pyx_n_u_Manifold_filled_triangulation __pyx_string_tab[807]
#define __pyx_n_u_Manifold_from_Triangulation __pyx_string_tab[808]
#define __pyx_n_u_Manifold_fundamental_group __pyx_string_tab[809]
#define __pyx_n_u_Manifold_init_hyperbolic_structu __pyx_string_tab[810]
#define __pyx_n_u_Manifold_is_isometric_to __pyx_string_tab[811]
#define __pyx_n_u_Manifold_is_two_bridge __pyx_string_tab[812]
#define __pyx_n_u_Manifold_length_spectrum __pyx_string_tab[813]
#define __pyx_n_u_Manifold_set_peripheral_curves __pyx_string_tab[814]
#define __pyx_n_u_Manifold_set_target_holonomy __pyx_string_tab[815]
#define __pyx_n_u_Manifold_set_tetrahedra_shapes __pyx_string_tab[816]
#define __pyx_n_u_Manifold_solution_type __pyx_string_tab[817]
#define __pyx_n_u_Manifold_split __pyx_string_tab[818]
#define __pyx_n_u_Manifold_splitting_surfaces __pyx_string_tab[819]
#define __pyx_n_u_Manifold_symmetric_triangulation __pyx_string_tab[820]
#define __pyx_n_u_Manifold_symmetry_group __pyx_string_tab[821]
#define __pyx_n_u_Manifold_tetrahedra_shapes __pyx_string_tab[822]
#define __pyx_n_u_Manifold_use_field_conversion __pyx_string_tab[823]
#define __pyx_n_u_Manifold_volume __pyx_string_tab[824]
#define __pyx_n_u_Manifold_without_hyperbolic_stru __pyx_string_tab[825]
#define __pyx_n_u_MatrixParity __pyx_string_tab[826]
#define __pyx_n_u_MatrixWithExplanations __pyx_string_tab[827]
#define __pyx_n_u_MatrixWithExplanations___init __pyx_string_tab[828]
#define __pyx_n_u_MatrixWithExplanations___repr __pyx_string_tab[829]
#define __pyx_n_u_MatrixWithExplanations___repr_2 __pyx_string_tab[830]
#define __pyx_n_u_MorwenLinks __pyx_string_tab[831]
#define __pyx_n_u_MorwenLinks___init __pyx_string_tab[832]
#define __pyx_n_u_MsgIO __pyx_string_tab[833]
#define __pyx_n_u_MsgIO___init __pyx_string_tab[834]
#define __pyx_n_u_N __pyx_string_tab[835]
#define __pyx_n_u_NeumannZagierTypeEquations __pyx_string_tab[836]
#define __pyx_n_u_NeumannZagierTypeEquations___ini __pyx_string_tab[837]
#define __pyx_n_u_NeumannZagierTypeEquations___rep __pyx_string_tab[838]
#define __pyx_n_u_NonalternatingKnotExteriors __pyx_string_tab[839]
#define __pyx_n_u_NonalternatingKnotExteriors___in __pyx_string_tab[840]
#define __pyx_n_u_Nonalternating_numbers __pyx_string_tab[841]
#define __pyx_n_u_Nonalternating_offsets __pyx_string_tab[842]
#define __pyx_n_u_Nonalternating_table __pyx_string_tab[843]
#define __pyx_n_u_None __pyx_string_tab[844]
#define __pyx_n_u_Nonorientable_lengths __pyx_string_tab[845]
#define __pyx_n_u_NormalSurfaceInfo __pyx_string_tab[846]
#define __pyx_n_u_NormalSurfaceInfo___repr __pyx_string_tab[847]
#define __pyx_n_u_NotImplemented __pyx_string_tab[848]
#define __pyx_n_u_Num_Alternating __pyx_string_tab[849]
#define __pyx_n_u_Num_Nonalternating __pyx_string_tab[850]
#define __pyx_n_u_Number __pyx_string_tab[851]
#define __pyx_n_u_O __pyx_string_tab[852]
#define __pyx_n_u_O31 __pyx_string_tab[853]
#define __pyx_n_u_O31_generators __pyx_string_tab[854]
#define __pyx_n_u_ObsCensusKnots __pyx_string_tab[855]
#define __pyx_n_u_ObsCensusKnots___getitem __pyx_string_tab[856]
#define __pyx_n_u_ObsCensusKnots___init __pyx_string_tab[857]
#define __pyx_n_u_ObsCensusKnots___repr __pyx_string_tab[858]
#define __pyx_n_u_ObsLinkExteriors __pyx_string_tab[859]
#define __pyx_n_u_ObsLinkExteriors___getitem __pyx_string_tab[860]
#define __pyx_n_u_ObsLinkExteriors___init __pyx_string_tab[861]
#define __pyx_n_u_ObsLinkExteriors___repr __pyx_string_tab[862]
#define __pyx_n_u_ObsMorwenLinks __pyx_string_tab[863]
#define __pyx_n_u_ObsMorwenLinks___getitem __pyx_string_tab[864]
#define __pyx_n_u_ObsMorwenLinks___init __pyx_string_tab[865]
#define __pyx_n_u_ObsNonorientableClosedCensus __pyx_string_tab[866]
#define __pyx_n_u_ObsNonorientableClosedCensus___g __pyx_string_tab[867]
#define __pyx_n_u_ObsNonorientableClosedCensus___i __pyx_string_tab[868]
#define __pyx_n_u_ObsNonorientableCuspedCensus __pyx_string_tab[869]
#define __pyx_n_u_ObsNonorientableCuspedCensus___i __pyx_string_tab[870]
#define __pyx_n_u_ObsNonorientableCuspedCensus_loo __pyx_string_tab[871]
#define __pyx_n_u_ObsOrientableClosedCensus __pyx_string_tab[872]
#define __pyx_n_u_ObsOrientableClosedCensus___geti __pyx_string_tab[873]
#define __pyx_n_u_ObsOrientableClosedCensus___init __pyx_string_tab[874]
#define __pyx_n_u_ObsOrientableCuspedCensus __pyx_string_tab[875]
#define __pyx_n_u_Orbifold1 __pyx_string_tab[876]
#define __pyx_n_u_Orientability __pyx_string_tab[877]
#define __pyx_n_u_Orientable __pyx_string_tab[878]
#define __pyx_n_u_Orientable_lengths __pyx_string_tab[879]
#define __pyx_n_u_PD_code __pyx_string_tab[880]
#define __pyx_n_u_PermutationGroup __pyx_string_tab[881]
#define __pyx_n_u_PermutationGroupElement __pyx_string_tab[882]
#define __pyx_n_u_PolyhedronViewer __pyx_string_tab[883]
#define __pyx_n_u_PreImage __pyx_string_tab[884]
#define __pyx_n_u_PresentationMatrix __pyx_string_tab[885]
#define __pyx_n_u_PresentationMatrix___reduce_cyth __pyx_string_tab[886]
#define __pyx_n_u_PresentationMatrix___setstate_cy __pyx_string_tab[887]
#define __pyx_n_u_PresentationMatrix_add_rows __pyx_string_tab[888]
#define __pyx_n_u_PresentationMatrix_explode __pyx_string_tab[889]
#define __pyx_n_u_PresentationMatrix_get_data __pyx_string_tab[890]
#define __pyx_n_u_PresentationMatrix_row_op __pyx_string_tab[891]
#define __pyx_n_u_PresentationMatrix_simplified_ma __pyx_string_tab[892]
#define __pyx_n_u_PresentationMatrix_simplify __pyx_string_tab[893]
#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[894]
#define __pyx_n_u_Q_2 __pyx_string_tab[895]
#define __pyx_n_u_R __pyx_string_tab[896]
#define __pyx_n_u_RawNumber __pyx_string_tab[897]
#define __pyx_n_u_S5 __pyx_string_tab[898]
#define __pyx_n_u_SC __pyx_string_tab[899]
#define __pyx_n_u_SL2C __pyx_string_tab[900]
#define __pyx_n_u_SNAPPEA_MANIFOLD_DIRECTORY __pyx_string_tab[901]
#define __pyx_n_u_SageNotAvailable __pyx_string_tab[902]
#define __pyx_n_u_SageObject __pyx_string_tab[903]
#define __pyx_n_u_ShapeInfo __pyx_string_tab[904]
#define __pyx_n_u_ShapeInfo___repr __pyx_string_tab[905]
#define __pyx_n_u_ShortMatrixParity __pyx_string_tab[906]
#define __pyx_n_u_SnapPeaFatalError __pyx_string_tab[907]
#define __pyx_n_u_SnapPea_KLPProjection __pyx_string_tab[908]
#define __pyx_n_u_SnapPea_interrupt __pyx_string_tab[909]
#define __pyx_n_u_SnapPy __pyx_string_tab[910]
#define __pyx_n_u_SnapPyCache __pyx_string_tab[911]
#define __pyx_n_u_SolutionType __pyx_string_tab[912]
#define __pyx_n_u_Stabilizer __pyx_string_tab[913]
#define __pyx_n_u_StrLongestLen __pyx_string_tab[914]
#define __pyx_n_u_StrLongestLen_locals_genexpr __pyx_string_tab[915]
#define __pyx_n_u_Surface __pyx_string_tab[916]
#define __pyx_n_u_SymmetryGroup __pyx_string_tab[917]
#define __pyx_n_u_SymmetryGroup___reduce_cython __pyx_string_tab[918]
#define __pyx_n_u_SymmetryGroup___setstate_cython __pyx_string_tab[919]
#define __pyx_n_u_SymmetryGroup_abelian_descriptio __pyx_string_tab[920]
#define __pyx_n_u_SymmetryGroup_abelianization __pyx_string_tab[921]
#define __pyx_n_u_SymmetryGroup_center __pyx_string_tab[922]
#define __pyx_n_u_SymmetryGroup_commutator_subgrou __pyx_string_tab[923]
#define __pyx_n_u_SymmetryGroup_direct_product_des __pyx_string_tab[924]
#define __pyx_n_u_SymmetryGroup_is_S5 __pyx_string_tab[925]
#define __pyx_n_u_SymmetryGroup_is_abelian __pyx_string_tab[926]
#define __pyx_n_u_SymmetryGroup_is_amphicheiral __pyx_string_tab[927]
#define __pyx_n_u_SymmetryGroup_is_dihedral __pyx_string_tab[928]
#define __pyx_n_u_SymmetryGroup_is_direct_product __pyx_string_tab[929]
#define __pyx_n_u_SymmetryGroup_is_full_group __pyx_string_tab[930]
#define __pyx_n_u_SymmetryGroup_is_invertible_knot __pyx_string_tab[931]
#define __pyx_n_u_SymmetryGroup_is_polyhedral __pyx_string_tab[932]
#define __pyx_n_u_SymmetryGroup_isometries __pyx_string_tab[933]
#define __pyx_n_u_SymmetryGroup_multiply_elements __pyx_string_tab[934]
#define __pyx_n_u_SymmetryGroup_order __pyx_string_tab[935]
#define __pyx_n_u_SymmetryGroup_polyhedral_descrip __pyx_string_tab[936]
#define __pyx_n_u_T __pyx_string_tab[937]
#define __pyx_n_u_TEXT __pyx_string_tab[938]
#define __pyx_n_u_Triangulation_2 __pyx_string_tab[939]
#define __pyx_n_u_Triangulation_DT_code __pyx_string_tab[940]
#define __pyx_n_u_Triangulation___reduce __pyx_string_tab[941]
#define __pyx_n_u_Triangulation__covers_gap __pyx_string_tab[942]
#define __pyx_n_u_Triangulation__covers_low_index __pyx_string_tab[943]
#define __pyx_n_u_Triangulation__covers_magma __pyx_string_tab[944]
#define __pyx_n_u_Triangulation__covers_snappea __pyx_string_tab[945]
#define __pyx_n_u_Triangulation__empty_save __pyx_string_tab[946]
#define __pyx_n_u_Triangulation__from_bytes __pyx_string_tab[947]
#define __pyx_n_u_Triangulation__from_isosig __pyx_string_tab[948]
#define __pyx_n_u_Triangulation__from_pickle __pyx_string_tab[949]
#define __pyx_n_u_Triangulation__from_string __pyx_string_tab[950]
#define __pyx_n_u_Triangulation__from_tetrahedra_g __pyx_string_tab[951]
#define __pyx_n_u_Triangulation__get_cusp_indices __pyx_string_tab[952]
#define __pyx_n_u_Triangulation__get_from_link_dat __pyx_string_tab[953]
#define __pyx_n_u_Triangulation__get_tetrahedra_gl __pyx_string_tab[954]
#define __pyx_n_u_Triangulation__is_symplectic __pyx_string_tab[955]
#define __pyx_n_u_Triangulation__isomorphisms_to __pyx_string_tab[956]
#define __pyx_n_u_Triangulation__marked_tetrahedra __pyx_string_tab[957]
#define __pyx_n_u_Triangulation__num_fake_cusps __pyx_string_tab[958]
#define __pyx_n_u_Triangulation__polish_hyperbolic __pyx_string_tab[959]
#define __pyx_n_u_Triangulation__presentation_matr __pyx_string_tab[960]
#define __pyx_n_u_Triangulation__ptolemy_equations __pyx_string_tab[961]
#define __pyx_n_u_Triangulation__ptolemy_equations_2 __pyx_string_tab[962]
#define __pyx_n_u_Triangulation__ptolemy_equations_3 __pyx_string_tab[963]
#define __pyx_n_u_Triangulation__ptolemy_equations_4 __pyx_string_tab[964]
#define __pyx_n_u_Triangulation__ptolemy_equations_5 __pyx_string_tab[965]
#define __pyx_n_u_Triangulation__ptolemy_equations_6 __pyx_string_tab[966]
#define __pyx_n_u_Triangulation__reindex_cusps __pyx_string_tab[967]
#define __pyx_n_u_Triangulation__remove_finite_ver __pyx_string_tab[968]
#define __pyx_n_u_Triangulation__set_DTcode __pyx_string_tab[969]
#define __pyx_n_u_Triangulation__set_PDcode __pyx_string_tab[970]
#define __pyx_n_u_Triangulation__symplectic_form __pyx_string_tab[971]
#define __pyx_n_u_Triangulation__three_to_two __pyx_string_tab[972]
#define __pyx_n_u_Triangulation__to_bytes __pyx_string_tab[973]
#define __pyx_n_u_Triangulation__to_string __pyx_string_tab[974]
#define __pyx_n_u_Triangulation__two_to_three __pyx_string_tab[975]
#define __pyx_n_u_Triangulation__undecorated_trian __pyx_string_tab[976]
#define __pyx_n_u_Triangulation__unsimplified_fill __pyx_string_tab[977]
#define __pyx_n_u_Triangulation_copy __pyx_string_tab[978]
#define __pyx_n_u_Triangulation_cover __pyx_string_tab[979]
#define __pyx_n_u_Triangulation_cover_info __pyx_string_tab[980]
#define __pyx_n_u_Triangulation_covers __pyx_string_tab[981]
#define __pyx_n_u_Triangulation_cusp_info __pyx_string_tab[982]
#define __pyx_n_u_Triangulation_dehn_fill __pyx_string_tab[983]
#define __pyx_n_u_Triangulation_edge_valences __pyx_string_tab[984]
#define __pyx_n_u_Triangulation_filled_triangulati __pyx_string_tab[985]
#define __pyx_n_u_Triangulation_from_Manifold __pyx_string_tab[986]
#define __pyx_n_u_Triangulation_fundamental_group __pyx_string_tab[987]
#define __pyx_n_u_Triangulation_gluing_equations __pyx_string_tab[988]
#define __pyx_n_u_Triangulation_gluing_equations_p __pyx_string_tab[989]
#define __pyx_n_u_Triangulation_has_finite_vertice __pyx_string_tab[990]
#define __pyx_n_u_Triangulation_homology __pyx_string_tab[991]
#define __pyx_n_u_Triangulation_is_orientable __pyx_string_tab[992]
#define __pyx_n_u_Triangulation_isomorphisms_to __pyx_string_tab[993]
#define __pyx_n_u_Triangulation_link __pyx_string_tab[994]
#define __pyx_n_u_Triangulation_name __pyx_string_tab[995]
#define __pyx_n_u_Triangulation_num_cusps __pyx_string_tab[996]
#define __pyx_n_u_Triangulation_num_tetrahedra __pyx_string_tab[997]
#define __pyx_n_u_Triangulation_orientation_cover __pyx_string_tab[998]
#define __pyx_n_u_Triangulation_pickle __pyx_string_tab[999]
#define __pyx_n_u_Triangulation_plink __pyx_string_tab[1000]
#define __pyx_n_u_Triangulation_ptolemy_generalize __pyx_string_tab[1001]
#define __pyx_n_u_Triangulation_ptolemy_obstructio __pyx_string_tab[1002]
#define __pyx_n_u_Triangulation_ptolemy_variety __pyx_string_tab[1003]
#define __pyx_n_u_Triangulation_randomize __pyx_string_tab[1004]
#define __pyx_n_u_Triangulation_reverse_orientatio __pyx_string_tab[1005]
#define __pyx_n_u_Triangulation_save __pyx_string_tab[1006]
#define __pyx_n_u_Triangulation_set_name __pyx_string_tab[1007]
#define __pyx_n_u_Triangulation_set_peripheral_cur __pyx_string_tab[1008]
#define __pyx_n_u_Triangulation_simplify __pyx_string_tab[1009]
#define __pyx_n_u_Triangulation_symplectic_basis __pyx_string_tab[1010]
#define __pyx_n_u_Triangulation_triangulation_isos __pyx_string_tab[1011]
#define __pyx_n_u_Triangulation_with_hyperbolic_st __pyx_string_tab[1012]
#define __pyx_n_u_Type __pyx_string_tab[1013]
#define __pyx_n_u_UI_callback __pyx_string_tab[1014]
#define __pyx_n_u_ViewerWindow __pyx_string_tab[1015]
#define __pyx_n_u_X __pyx_string_tab[1016]
#define __pyx_n_u_Xbackward_neighbor __pyx_string_tab[1017]
#define __pyx_n_u_Xbackward_strand __pyx_string_tab[1018]
#define __pyx_n_u_Xcomponent __pyx_string_tab[1019]
#define __pyx_n_u_Xforward_neighbor __pyx_string_tab[1020]
#define __pyx_n_u_Xforward_strand __pyx_string_tab[1021]
#define __pyx_n_u_Y __pyx_string_tab[1022]
#define __pyx_n_u_Ybackward_neighbor __pyx_string_tab[1023]
#define __pyx_n_u_Ybackward_strand __pyx_string_tab[1024]
#define __pyx_n_u_Ycomponent __pyx_string_tab[1025]
#define __pyx_n_u_Yforward_neighbor __pyx_string_tab[1026]
#define __pyx_n_u_Yforward_strand __pyx_string_tab[1027]
#define __pyx_n_u_Z __pyx_string_tab[1028]
#define __pyx_n_u__10 __pyx_string_tab[1029]
#define __pyx_n_u__21 __pyx_string_tab[1030]
#define __pyx_n_u_a_2 __pyx_string_tab[1031]
#define __pyx_n_u_a_il __pyx_string_tab[1032]
#define __pyx_n_u_abelian_description __pyx_string_tab[1033]
#define __pyx_n_u_abelianization __pyx_string_tab[1034]
#define __pyx_n_u_absImag __pyx_string_tab[1035]
#define __pyx_n_u_abspath __pyx_string_tab[1036]
#define __pyx_n_u_acc_log_im __pyx_string_tab[1037]
#define __pyx_n_u_acc_log_re __pyx_string_tab[1038]
#define __pyx_n_u_acc_rec_im __pyx_string_tab[1039]
#define __pyx_n_u_acc_rec_re __pyx_string_tab[1040]
#define __pyx_n_u_accuracies __pyx_string_tab[1041]
#define __pyx_n_u_accuracy __pyx_string_tab[1042]
#define __pyx_n_u_add __pyx_string_tab[1043]
#define __pyx_n_u_add_rows __pyx_string_tab[1044]
#define __pyx_n_u_algorithm __pyx_string_tab[1045]
#define __pyx_n_u_all __pyx_string_tab[1046]
#define __pyx_n_u_all_tables __pyx_string_tab[1047]
#define __pyx_n_u_alpha __pyx_string_tab[1048]
#define __pyx_n_u_alternation __pyx_string_tab[1049]
#define __pyx_n_u_annotate __pyx_string_tab[1050]
#define __pyx_n_u_ans __pyx_string_tab[1051]
#define __pyx_n_u_append __pyx_string_tab[1052]
#define __pyx_n_u_are_isometric __pyx_string_tab[1053]
#define __pyx_n_u_args __pyx_string_tab[1054]
#define __pyx_n_u_as_ideal __pyx_string_tab[1055]
#define __pyx_n_u_as_int_list __pyx_string_tab[1056]
#define __pyx_n_u_as_string __pyx_string_tab[1057]
#define __pyx_n_u_ascii __pyx_string_tab[1058]
#define __pyx_n_u_ascii_lowercase __pyx_string_tab[1059]
#define __pyx_n_u_asksaveasfile __pyx_string_tab[1060]
#define __pyx_n_u_assignments __pyx_string_tab[1061]
#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[1062]
#define __pyx_n_u_atexit __pyx_string_tab[1063]
#define __pyx_n_u_b_2 __pyx_string_tab[1064]
#define __pyx_n_u_b_file_name __pyx_string_tab[1065]
#define __pyx_n_u_b_new_name __pyx_string_tab[1066]
#define __pyx_n_u_b_string __pyx_string_tab[1067]
#define __pyx_n_u_ball __pyx_string_tab[1068]
#define __pyx_n_u_base __pyx_string_tab[1069]
#define __pyx_n_u_bases __pyx_string_tab[1070]
#define __pyx_n_u_basis __pyx_string_tab[1071]
#define __pyx_n_u_betti_number __pyx_string_tab[1072]
#define __pyx_n_u_bit __pyx_string_tab[1073]
#define __pyx_n_u_bits_prec __pyx_string_tab[1074]
#define __pyx_n_u_blowup_multiple __pyx_string_tab[1075]
#define __pyx_n_u_bool __pyx_string_tab[1076]
#define __pyx_n_u_browse __pyx_string_tab[1077]
#define __pyx_n_u_browser __pyx_string_tab[1078]
#define __pyx_n_u_bundle __pyx_string_tab[1079]
#define __pyx_n_u_bundle_from_string __pyx_string_tab[1080]
#define __pyx_n_u_byte __pyx_string_tab[1081]
#define __pyx_n_u_bytearray_to_bytes __pyx_string_tab[1082]
#define __pyx_n_u_byteseq __pyx_string_tab[1083]
#define __pyx_n_u_bytestring __pyx_string_tab[1084]
#define __pyx_n_u_c0 __pyx_string_tab[1085]
#define __pyx_n_u_c1 __pyx_string_tab[1086]
#define __pyx_n_u_c2 __pyx_string_tab[1087]
#define __pyx_n_u_c3 __pyx_string_tab[1088]
#define __pyx_n_u_c_2 __pyx_string_tab[1089]
#define __pyx_n_u_c_abelianization __pyx_string_tab[1090]
#define __pyx_n_u_c_canonized_triangulation __pyx_string_tab[1091]
#define __pyx_n_u_c_center __pyx_string_tab[1092]
#define __pyx_n_u_c_comm_subgroup __pyx_string_tab[1093]
#define __pyx_n_u_c_core_length __pyx_string_tab[1094]
#define __pyx_n_u_c_cover_type __pyx_string_tab[1095]
#define __pyx_n_u_c_eqns __pyx_string_tab[1096]
#define __pyx_n_u_c_factor_0 __pyx_string_tab[1097]
#define __pyx_n_u_c_factor_1 __pyx_string_tab[1098]
#define __pyx_n_u_c_filled_tri __pyx_string_tab[1099]
#define __pyx_n_u_c_longitude __pyx_string_tab[1100]
#define __pyx_n_u_c_matrix __pyx_string_tab[1101]
#define __pyx_n_u_c_meridian __pyx_string_tab[1102]
#define __pyx_n_u_c_moves __pyx_string_tab[1103]
#define __pyx_n_u_c_new_name __pyx_string_tab[1104]
#define __pyx_n_u_c_new_tri __pyx_string_tab[1105]
#define __pyx_n_u_c_obstruction_class __pyx_string_tab[1106]
#define __pyx_n_u_c_opacities __pyx_string_tab[1107]
#define __pyx_n_u_c_representation __pyx_string_tab[1108]
#define __pyx_n_u_c_retriangulated_triangulation __pyx_string_tab[1109]
#define __pyx_n_u_c_string __pyx_string_tab[1110]
#define __pyx_n_u_c_symmetric_triangulation __pyx_string_tab[1111]
#define __pyx_n_u_c_target __pyx_string_tab[1112]
#define __pyx_n_u_c_terse __pyx_string_tab[1113]
#define __pyx_n_u_c_triangulation __pyx_string_tab[1114]
#define __pyx_n_u_c_vars __pyx_string_tab[1115]
#define __pyx_n_u_c_word __pyx_string_tab[1116]
#define __pyx_n_u_cache __pyx_string_tab[1117]
#define __pyx_n_u_callback __pyx_string_tab[1118]
#define __pyx_n_u_canonical __pyx_string_tab[1119]
#define __pyx_n_u_canonical_cells_are_tetrahedra __pyx_string_tab[1120]
#define __pyx_n_u_canonical_retriangulation __pyx_string_tab[1121]
#define __pyx_n_u_canonize __pyx_string_tab[1122]
#define __pyx_n_u_cb_menu __pyx_string_tab[1123]
#define __pyx_n_u_census_index __pyx_string_tab[1124]
#define __pyx_n_u_census_knot_archive __pyx_string_tab[1125]
#define __pyx_n_u_census_knot_numbers __pyx_string_tab[1126]
#define __pyx_n_u_center __pyx_string_tab[1127]
#define __pyx_n_u_centroid_at_origin __pyx_string_tab[1128]
#define __pyx_n_u_certified_shapes __pyx_string_tab[1129]
#define __pyx_n_u_character_variety __pyx_string_tab[1130]
#define __pyx_n_u_character_variety_ideal __pyx_string_tab[1131]
#define __pyx_n_u_character_variety_vars_and_polys __pyx_string_tab[1132]
#define __pyx_n_u_check_SnapPea_memory __pyx_string_tab[1133]
#define __pyx_n_u_check_index __pyx_string_tab[1134]
#define __pyx_n_u_chern_simons __pyx_string_tab[1135]
#define __pyx_n_u_choose_generators __pyx_string_tab[1136]
#define __pyx_n_u_choose_generators_info __pyx_string_tab[1137]
#define __pyx_n_u_circle __pyx_string_tab[1138]
#define __pyx_n_u_class __pyx_string_tab[1139]
#define __pyx_n_u_class_getitem __pyx_string_tab[1140]
#define __pyx_n_u_clear __pyx_string_tab[1141]
#define __pyx_n_u_clear_marks __pyx_string_tab[1142]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[1143]
#define __pyx_n_u_close __pyx_string_tab[1144]
#define __pyx_n_u_closed_census_directory __pyx_string_tab[1145]
#define __pyx_n_u_closed_nonorientable __pyx_string_tab[1146]
#define __pyx_n_u_closed_orientable __pyx_string_tab[1147]
#define __pyx_n_u_closest __pyx_string_tab[1148]
#define __pyx_n_u_cls __pyx_string_tab[1149]
#define __pyx_n_u_cobs __pyx_string_tab[1150]
#define __pyx_n_u_code __pyx_string_tab[1151]
#define __pyx_n_u_codec __pyx_string_tab[1152]
#define __pyx_n_u_coefficient_list __pyx_string_tab[1153]
#define __pyx_n_u_coeffs __pyx_string_tab[1154]
#define __pyx_n_u_col_support __pyx_string_tab[1155]
#define __pyx_n_u_cols __pyx_string_tab[1156]
#define __pyx_n_u_columns __pyx_string_tab[1157]
#define __pyx_n_u_combinatorial __pyx_string_tab[1158]
#define __pyx_n_u_comm_subgroup __pyx_string_tab[1159]
#define __pyx_n_u_commutator_subgroup __pyx_string_tab[1160]
#define __pyx_n_u_compile __pyx_string_tab[1161]
#define __pyx_n_u_complete_2 __pyx_string_tab[1162]
#define __pyx_n_u_complete_length __pyx_string_tab[1163]
#define __pyx_n_u_complete_shape_array __pyx_string_tab[1164]
#define __pyx_n_u_complete_shapes __pyx_string_tab[1165]
#define __pyx_n_u_complex __pyx_string_tab[1166]
#define __pyx_n_u_complex_length __pyx_string_tab[1167]
#define __pyx_n_u_complex_volume __pyx_string_tab[1168]
#define __pyx_n_u_complex_volume_2 __pyx_string_tab[1169]
#define __pyx_n_u_components __pyx_string_tab[1170]
#define __pyx_n_u_compute_corners __pyx_string_tab[1171]
#define __pyx_n_u_compute_cusp_shapes __pyx_string_tab[1172]
#define __pyx_n_u_compute_volume __pyx_string_tab[1173]
#define __pyx_n_u_contains __pyx_string_tab[1174]
#define __pyx_n_u_content __pyx_string_tab[1175]
#define __pyx_n_u_copy __pyx_string_tab[1176]
#define __pyx_n_u_copy_c_triangulation __pyx_string_tab[1177]
#define __pyx_n_u_core_length __pyx_string_tab[1178]
#define __pyx_n_u_corners __pyx_string_tab[1179]
#define __pyx_n_u_coset_action __pyx_string_tab[1180]
#define __pyx_n_u_cover __pyx_string_tab[1181]
#define __pyx_n_u_cover_c_triangulation __pyx_string_tab[1182]
#define __pyx_n_u_cover_count __pyx_string_tab[1183]
#define __pyx_n_u_cover_info __pyx_string_tab[1184]
#define __pyx_n_u_cover_locals_genexpr __pyx_string_tab[1185]
#define __pyx_n_u_cover_type __pyx_string_tab[1186]
#define __pyx_n_u_cover_types __pyx_string_tab[1187]
#define __pyx_n_u_covers __pyx_string_tab[1188]
#define __pyx_n_u_covers_gap __pyx_string_tab[1189]
#define __pyx_n_u_covers_low_index __pyx_string_tab[1190]
#define __pyx_n_u_covers_low_index_locals_index __pyx_string_tab[1191]
#define __pyx_n_u_covers_magma __pyx_string_tab[1192]
#define __pyx_n_u_covers_snappea __pyx_string_tab[1193]
#define __pyx_n_u_crossings __pyx_string_tab[1194]
#define __pyx_n_u_cs __pyx_string_tab[1195]
#define __pyx_n_u_curdir __pyx_string_tab[1196]
#define __pyx_n_u_current_modulus __pyx_string_tab[1197]
#define __pyx_n_u_current_shape __pyx_string_tab[1198]
#define __pyx_n_u_current_shape_accuracy __pyx_string_tab[1199]
#define __pyx_n_u_curve_list __pyx_string_tab[1200]
#define __pyx_n_u_cusp_cross_section_info __pyx_string_tab[1201]
#define __pyx_n_u_cusp_images __pyx_string_tab[1202]
#define __pyx_n_u_cusp_images_2 __pyx_string_tab[1203]
#define __pyx_n_u_cusp_index __pyx_string_tab[1204]
#define __pyx_n_u_cusp_indices __pyx_string_tab[1205]
#define __pyx_n_u_cusp_info __pyx_string_tab[1206]
#define __pyx_n_u_cusp_maps __pyx_string_tab[1207]
#define __pyx_n_u_cusp_maps_2 __pyx_string_tab[1208]
#define __pyx_n_u_cusp_neighborhood __pyx_string_tab[1209]
#define __pyx_n_u_cusp_type __pyx_string_tab[1210]
#define __pyx_n_u_cusps __pyx_string_tab[1211]
#define __pyx_n_u_cusps_compute_cusp_shapes __pyx_string_tab[1212]
#define __pyx_n_u_cusps_to_fill __pyx_string_tab[1213]
#define __pyx_n_u_cutoff __pyx_string_tab[1214]
#define __pyx_n_u_cutoff_length __pyx_string_tab[1215]
#define __pyx_n_u_cutoff_radius __pyx_string_tab[1216]
#define __pyx_n_u_cutout __pyx_string_tab[1217]
#define __pyx_n_u_cy_eval __pyx_string_tab[1218]
#define __pyx_n_u_cyclic __pyx_string_tab[1219]
#define __pyx_n_u_dLQbcccdxwb __pyx_string_tab[1220]
#define __pyx_n_u_d_2 __pyx_string_tab[1221]
#define __pyx_n_u_data __pyx_string_tab[1222]
#define __pyx_n_u_data_ijk __pyx_string_tab[1223]
#define __pyx_n_u_data_spec __pyx_string_tab[1224]
#define __pyx_n_u_database __pyx_string_tab[1225]
#define __pyx_n_u_datafile __pyx_string_tab[1226]
#define __pyx_n_u_dec_prec __pyx_string_tab[1227]
#define __pyx_n_u_decode __pyx_string_tab[1228]
#define __pyx_n_u_decorated __pyx_string_tab[1229]
#define __pyx_n_u_decorated_isosig __pyx_string_tab[1230]
#define __pyx_n_u_decoration __pyx_string_tab[1231]
#define __pyx_n_u_default_precision __pyx_string_tab[1232]
#define __pyx_n_u_defaultextension __pyx_string_tab[1233]
#define __pyx_n_u_degree __pyx_string_tab[1234]
#define __pyx_n_u_dehn_fill __pyx_string_tab[1235]
#define __pyx_n_u_delattr __pyx_string_tab[1236]
#define __pyx_n_u_delitem __pyx_string_tab[1237]
#define __pyx_n_u_desc __pyx_string_tab[1238]
#define __pyx_n_u_det __pyx_string_tab[1239]
#define __pyx_n_u_details __pyx_string_tab[1240]
#define __pyx_n_u_dict __pyx_string_tab[1241]
#define __pyx_n_u_dict_2 __pyx_string_tab[1242]
#define __pyx_n_u_dict_3 __pyx_string_tab[1243]
#define __pyx_n_u_direct_product_description __pyx_string_tab[1244]
#define __pyx_n_u_dirichlet_domain __pyx_string_tab[1245]
#define __pyx_n_u_disp __pyx_string_tab[1246]
#define __pyx_n_u_displacement __pyx_string_tab[1247]
#define __pyx_n_u_distance __pyx_string_tab[1248]
#define __pyx_n_u_doc __pyx_string_tab[1249]
#define __pyx_n_u_domain __pyx_string_tab[1250]
#define __pyx_n_u_drill __pyx_string_tab[1251]
#define __pyx_n_u_dual_curves __pyx_string_tab[1252]
#define __pyx_n_u_dual_rows __pyx_string_tab[1253]
#define __pyx_n_u_e __pyx_string_tab[1254]
#define __pyx_n_u_edge __pyx_string_tab[1255]
#define __pyx_n_u_edge_class __pyx_string_tab[1256]
#define __pyx_n_u_edge_image_indices __pyx_string_tab[1257]
#define __pyx_n_u_edge_index __pyx_string_tab[1258]
#define __pyx_n_u_edge_indices __pyx_string_tab[1259]
#define __pyx_n_u_edge_list __pyx_string_tab[1260]
#define __pyx_n_u_edge_orientations __pyx_string_tab[1261]
#define __pyx_n_u_edge_to_index __pyx_string_tab[1262]
#define __pyx_n_u_edge_to_index_dict __pyx_string_tab[1263]
#define __pyx_n_u_edge_valences __pyx_string_tab[1264]
#define __pyx_n_u_edges_2 __pyx_string_tab[1265]
#define __pyx_n_u_eight_length __pyx_string_tab[1266]
#define __pyx_n_u_elementary_divisors __pyx_string_tab[1267]
#define __pyx_n_u_eliminate_fixed_ptolemys __pyx_string_tab[1268]
#define __pyx_n_u_elt __pyx_string_tab[1269]
#define __pyx_n_u_empty __pyx_string_tab[1270]
#define __pyx_n_u_empty_save __pyx_string_tab[1271]
#define __pyx_n_u_encode __pyx_string_tab[1272]
#define __pyx_n_u_end_2 __pyx_string_tab[1273]
#define __pyx_n_u_endpoints __pyx_string_tab[1274]
#define __pyx_n_u_engine __pyx_string_tab[1275]
#define __pyx_n_u_enter __pyx_string_tab[1276]
#define __pyx_n_u_entries __pyx_string_tab[1277]
#define __pyx_n_u_enum __pyx_string_tab[1278]
#define __pyx_n_u_enumerate __pyx_string_tab[1279]
#define __pyx_n_u_environ __pyx_string_tab[1280]
#define __pyx_n_u_eqn __pyx_string_tab[1281]
#define __pyx_n_u_eqns __pyx_string_tab[1282]
#define __pyx_n_u_equation_type __pyx_string_tab[1283]
#define __pyx_n_u_equations __pyx_string_tab[1284]
#define __pyx_n_u_euler __pyx_string_tab[1285]
#define __pyx_n_u_eval __pyx_string_tab[1286]
#define __pyx_n_u_exceptions __pyx_string_tab[1287]
#define __pyx_n_u_exit __pyx_string_tab[1288]
#define __pyx_n_u_exit_2 __pyx_string_tab[1289]
#define __pyx_n_u_expand_until_certified __pyx_string_tab[1290]
#define __pyx_n_u_explain_cols __pyx_string_tab[1291]
#define __pyx_n_u_explain_columns __pyx_string_tab[1292]
#define __pyx_n_u_explain_rows __pyx_string_tab[1293]
#define __pyx_n_u_explode __pyx_string_tab[1294]
#define __pyx_n_u_export_stl __pyx_string_tab[1295]
#define __pyx_n_u_extends_to_link __pyx_string_tab[1296]
#define __pyx_n_u_extends_to_link_2 __pyx_string_tab[1297]
#define __pyx_n_u_extract_HT_knot __pyx_string_tab[1298]
#define __pyx_n_u_extractfile __pyx_string_tab[1299]
#define __pyx_n_u_f __pyx_string_tab[1300]
#define __pyx_n_u_face __pyx_string_tab[1301]
#define __pyx_n_u_face0_gen __pyx_string_tab[1302]
#define __pyx_n_u_face1_gen __pyx_string_tab[1303]
#define __pyx_n_u_face2_gen __pyx_string_tab[1304]
#define __pyx_n_u_face3_gen __pyx_string_tab[1305]
#define __pyx_n_u_face_index __pyx_string_tab[1306]
#define __pyx_n_u_face_list __pyx_string_tab[1307]
#define __pyx_n_u_face_list_locals_genexpr __pyx_string_tab[1308]
#define __pyx_n_u_facedicts __pyx_string_tab[1309]
#define __pyx_n_u_faces_2 __pyx_string_tab[1310]
#define __pyx_n_u_factor_0 __pyx_string_tab[1311]
#define __pyx_n_u_factor_1 __pyx_string_tab[1312]
#define __pyx_n_u_file __pyx_string_tab[1313]
#define __pyx_n_u_file_name __pyx_string_tab[1314]
#define __pyx_n_u_filedata __pyx_string_tab[1315]
#define __pyx_n_u_filedialog __pyx_string_tab[1316]
#define __pyx_n_u_filename __pyx_string_tab[1317]
#define __pyx_n_u_files __pyx_string_tab[1318]
#define __pyx_n_u_filetypes __pyx_string_tab[1319]
#define __pyx_n_u_fill __pyx_string_tab[1320]
#define __pyx_n_u_fill_all __pyx_string_tab[1321]
#define __pyx_n_u_fill_by_fold __pyx_string_tab[1322]
#define __pyx_n_u_fill_cusp_spec __pyx_string_tab[1323]
#define __pyx_n_u_filled __pyx_string_tab[1324]
#define __pyx_n_u_filled_2 __pyx_string_tab[1325]
#define __pyx_n_u_filled_length __pyx_string_tab[1326]
#define __pyx_n_u_filled_shape_array __pyx_string_tab[1327]
#define __pyx_n_u_filled_shapes __pyx_string_tab[1328]
#define __pyx_n_u_filled_tri __pyx_string_tab[1329]
#define __pyx_n_u_filled_triangulation __pyx_string_tab[1330]
#define __pyx_n_u_filling __pyx_string_tab[1331]
#define __pyx_n_u_filling_2 __pyx_string_tab[1332]
#define __pyx_n_u_filling_data __pyx_string_tab[1333]
#define __pyx_n_u_fillings __pyx_string_tab[1334]
#define __pyx_n_u_fillings_may_affect_generators __pyx_string_tab[1335]
#define __pyx_n_u_find __pyx_string_tab[1336]
#define __pyx_n_u_findall __pyx_string_tab[1337]
#define __pyx_n_u_first_nybble __pyx_string_tab[1338]
#define __pyx_n_u_five_length __pyx_string_tab[1339]
#define __pyx_n_u_five_tet_nonorientable __pyx_string_tab[1340]
#define __pyx_n_u_five_tet_orientable __pyx_string_tab[1341]
#define __pyx_n_u_fixed_alignment __pyx_string_tab[1342]
#define __pyx_n_u_flips __pyx_string_tab[1343]
#define __pyx_n_u_flush __pyx_string_tab[1344]
#define __pyx_n_u_fold __pyx_string_tab[1345]
#define __pyx_n_u_force_recompute __pyx_string_tab[1346]
#define __pyx_n_u_form __pyx_string_tab[1347]
#define __pyx_n_u_format __pyx_string_tab[1348]
#define __pyx_n_u_format_explain_list __pyx_string_tab[1349]
#define __pyx_n_u_format_str __pyx_string_tab[1350]
#define __pyx_n_u_format_two_by_two __pyx_string_tab[1351]
#define __pyx_n_u_from_bytes __pyx_string_tab[1352]
#define __pyx_n_u_from_isosig __pyx_string_tab[1353]
#define __pyx_n_u_from_pickle __pyx_string_tab[1354]
#define __pyx_n_u_from_string __pyx_string_tab[1355]
#define __pyx_n_u_from_tetrahedra_gluing_data __pyx_string_tab[1356]
#define __pyx_n_u_full_list __pyx_string_tab[1357]
#define __pyx_n_u_full_rigor __pyx_string_tab[1358]
#define __pyx_n_u_func __pyx_string_tab[1359]
#define __pyx_n_u_func_2 __pyx_string_tab[1360]
#define __pyx_n_u_func_OK __pyx_string_tab[1361]
#define __pyx_n_u_func_bad_input __pyx_string_tab[1362]
#define __pyx_n_u_func_cancelled __pyx_string_tab[1363]
#define __pyx_n_u_func_failed __pyx_string_tab[1364]
#define __pyx_n_u_fundamental_group __pyx_string_tab[1365]
#define __pyx_n_u_g __pyx_string_tab[1366]
#define __pyx_n_u_g_eqns __pyx_string_tab[1367]
#define __pyx_n_u_gap __pyx_string_tab[1368]
#define __pyx_n_u_gap_image_gens __pyx_string_tab[1369]
#define __pyx_n_u_gap_init __pyx_string_tab[1370]
#define __pyx_n_u_gap_string __pyx_string_tab[1371]
#define __pyx_n_u_gen __pyx_string_tab[1372]
#define __pyx_n_u_gen_names __pyx_string_tab[1373]
#define __pyx_n_u_generator_bytes __pyx_string_tab[1374]
#define __pyx_n_u_generator_file __pyx_string_tab[1375]
#define __pyx_n_u_generator_path __pyx_string_tab[1376]
#define __pyx_n_u_generators __pyx_string_tab[1377]
#define __pyx_n_u_generators_in_originals __pyx_string_tab[1378]
#define __pyx_n_u_genexpr __pyx_string_tab[1379]
#define __pyx_n_u_gens __pyx_string_tab[1380]
#define __pyx_n_u_geodesics __pyx_string_tab[1381]
#define __pyx_n_u_get __pyx_string_tab[1382]
#define __pyx_n_u_get_HT_knot_DT __pyx_string_tab[1383]
#define __pyx_n_u_get_HT_knot_by_index __pyx_string_tab[1384]
#define __pyx_n_u_get_cusp_indices_and_peripheral __pyx_string_tab[1385]
#define __pyx_n_u_get_data __pyx_string_tab[1386]
#define __pyx_n_u_get_displacement __pyx_string_tab[1387]
#define __pyx_n_u_get_from_link_data __pyx_string_tab[1388]
#define __pyx_n_u_get_generalized_ptolemy_obstruct __pyx_string_tab[1389]
#define __pyx_n_u_get_ptolemy_obstruction_classes __pyx_string_tab[1390]
#define __pyx_n_u_get_ptolemy_variety __pyx_string_tab[1391]
#define __pyx_n_u_get_tetrahedra_gluing_data __pyx_string_tab[1392]
#define __pyx_n_u_get_tetrahedra_shapes __pyx_string_tab[1393]
#define __pyx_n_u_get_tie __pyx_string_tab[1394]
#define __pyx_n_u_get_triangulation_tester __pyx_string_tab[1395]
#define __pyx_n_u_getitem __pyx_string_tab[1396]
#define __pyx_n_u_getstate __pyx_string_tab[1397]
#define __pyx_n_u_gluing __pyx_string_tab[1398]
#define __pyx_n_u_gluing_equations __pyx_string_tab[1399]
#define __pyx_n_u_gluing_equations_pgl __pyx_string_tab[1400]
#define __pyx_n_u_gluings __pyx_string_tab[1401]
#define __pyx_n_u_group __pyx_string_tab[1402]
#define __pyx_n_u_grouped __pyx_string_tab[1403]
#define __pyx_n_u_groups __pyx_string_tab[1404]
#define __pyx_n_u_gui __pyx_string_tab[1405]
#define __pyx_n_u_gzip __pyx_string_tab[1406]
#define __pyx_n_u_handles __pyx_string_tab[1407]
#define __pyx_n_u_has_finite_vertices __pyx_string_tab[1408]
#define __pyx_n_u_header __pyx_string_tab[1409]
#define __pyx_n_u_high_precision __pyx_string_tab[1410]
#define __pyx_n_u_holonomies __pyx_string_tab[1411]
#define __pyx_n_u_holonomy_accuracy __pyx_string_tab[1412]
#define __pyx_n_u_homology __pyx_string_tab[1413]
#define __pyx_n_u_horoball_list __pyx_string_tab[1414]
#define __pyx_n_u_horoballs __pyx_string_tab[1415]
#define __pyx_n_u_horoviewer __pyx_string_tab[1416]
#define __pyx_n_u_hue __pyx_string_tab[1417]
#define __pyx_n_u_i __pyx_string_tab[1418]
#define __pyx_n_u_ideal __pyx_string_tab[1419]
#define __pyx_n_u_identify __pyx_string_tab[1420]
#define __pyx_n_u_identify_2 __pyx_string_tab[1421]
#define __pyx_n_u_ignore_curve_orientations __pyx_string_tab[1422]
#define __pyx_n_u_ignore_curves __pyx_string_tab[1423]
#define __pyx_n_u_ignore_cusp_ordering __pyx_string_tab[1424]
#define __pyx_n_u_ignore_filling_orientations __pyx_string_tab[1425]
#define __pyx_n_u_ignore_orientation __pyx_string_tab[1426]
#define __pyx_n_u_ignore_solution_type __pyx_string_tab[1427]
#define __pyx_n_u_imag __pyx_string_tab[1428]
#define __pyx_n_u_images __pyx_string_tab[1429]
#define __pyx_n_u_immutable __pyx_string_tab[1430]
#define __pyx_n_u_in_radius __pyx_string_tab[1431]
#define __pyx_n_u_include_words __pyx_string_tab[1432]
#define __pyx_n_u_index __pyx_string_tab[1433]
#define __pyx_n_u_index_within_crossings __pyx_string_tab[1434]
#define __pyx_n_u_indices __pyx_string_tab[1435]
#define __pyx_n_u_infinite __pyx_string_tab[1436]
#define __pyx_n_u_info __pyx_string_tab[1437]
#define __pyx_n_u_init __pyx_string_tab[1438]
#define __pyx_n_u_init_hyperbolic_structure __pyx_string_tab[1439]
#define __pyx_n_u_initial_modulus __pyx_string_tab[1440]
#define __pyx_n_u_initial_shape __pyx_string_tab[1441]
#define __pyx_n_u_initial_shape_accuracy __pyx_string_tab[1442]
#define __pyx_n_u_initialize_structure __pyx_string_tab[1443]
#define __pyx_n_u_input_type __pyx_string_tab[1444]
#define __pyx_n_u_int __pyx_string_tab[1445]
#define __pyx_n_u_int_list __pyx_string_tab[1446]
#define __pyx_n_u_internal __pyx_string_tab[1447]
#define __pyx_n_u_interrupted __pyx_string_tab[1448]
#define __pyx_n_u_intervals __pyx_string_tab[1449]
#define __pyx_n_u_inverse_list_word __pyx_string_tab[1450]
#define __pyx_n_u_irregular __pyx_string_tab[1451]
#define __pyx_n_u_is_GapElement __pyx_string_tab[1452]
#define __pyx_n_u_is_HT_knot __pyx_string_tab[1453]
#define __pyx_n_u_is_MagmaElement __pyx_string_tab[1454]
#define __pyx_n_u_is_S5 __pyx_string_tab[1455]
#define __pyx_n_u_is_abelian __pyx_string_tab[1456]
#define __pyx_n_u_is_alpha_DT_exterior __pyx_string_tab[1457]
#define __pyx_n_u_is_amphicheiral __pyx_string_tab[1458]
#define __pyx_n_u_is_binary_group __pyx_string_tab[1459]
#define __pyx_n_u_is_braid_complement __pyx_string_tab[1460]
#define __pyx_n_u_is_complete __pyx_string_tab[1461]
#define __pyx_n_u_is_coroutine __pyx_string_tab[1462]
#define __pyx_n_u_is_decorated_isosig __pyx_string_tab[1463]
#define __pyx_n_u_is_dihedral __pyx_string_tab[1464]
#define __pyx_n_u_is_direct_product __pyx_string_tab[1465]
#define __pyx_n_u_is_full_group __pyx_string_tab[1466]
#define __pyx_n_u_is_geometric __pyx_string_tab[1467]
#define __pyx_n_u_is_int_DT_exterior __pyx_string_tab[1468]
#define __pyx_n_u_is_invertible_knot __pyx_string_tab[1469]
#define __pyx_n_u_is_isometric_to __pyx_string_tab[1470]
#define __pyx_n_u_is_isometric_to_2 __pyx_string_tab[1471]
#define __pyx_n_u_is_isosig __pyx_string_tab[1472]
#define __pyx_n_u_is_link_complement1 __pyx_string_tab[1473]
#define __pyx_n_u_is_link_complement1_pat __pyx_string_tab[1474]
#define __pyx_n_u_is_link_complement2 __pyx_string_tab[1475]
#define __pyx_n_u_is_link_complement2_pat __pyx_string_tab[1476]
#define __pyx_n_u_is_link_complement3 __pyx_string_tab[1477]
#define __pyx_n_u_is_link_complement3_pat __pyx_string_tab[1478]
#define __pyx_n_u_is_orientable __pyx_string_tab[1479]
#define __pyx_n_u_is_polyhedral __pyx_string_tab[1480]
#define __pyx_n_u_is_symplectic __pyx_string_tab[1481]
#define __pyx_n_u_is_torus_bundle __pyx_string_tab[1482]
#define __pyx_n_u_is_twister_bundle __pyx_string_tab[1483]
#define __pyx_n_u_is_twister_splitting __pyx_string_tab[1484]
#define __pyx_n_u_is_two_bridge __pyx_string_tab[1485]
#define __pyx_n_u_isfile __pyx_string_tab[1486]
#define __pyx_n_u_islower __pyx_string_tab[1487]
#define __pyx_n_u_isometries __pyx_string_tab[1488]
#define __pyx_n_u_isomorphisms_to __pyx_string_tab[1489]
#define __pyx_n_u_isomorphisms_to_2 __pyx_string_tab[1490]
#define __pyx_n_u_isosig __pyx_string_tab[1491]
#define __pyx_n_u_isosig_pattern __pyx_string_tab[1492]
#define __pyx_n_u_item __pyx_string_tab[1493]
#define __pyx_n_u_items __pyx_string_tab[1494]
#define __pyx_n_u_iter __pyx_string_tab[1495]
#define __pyx_n_u_its_matrix __pyx_string_tab[1496]
#define __pyx_n_u_j __pyx_string_tab[1497]
#define __pyx_n_u_join __pyx_string_tab[1498]
#define __pyx_n_u_k __pyx_string_tab[1499]
#define __pyx_n_u_key __pyx_string_tab[1500]
#define __pyx_n_u_keys __pyx_string_tab[1501]
#define __pyx_n_u_kl __pyx_string_tab[1502]
#define __pyx_n_u_klein __pyx_string_tab[1503]
#define __pyx_n_u_klp __pyx_string_tab[1504]
#define __pyx_n_u_kwargs __pyx_string_tab[1505]
#define __pyx_n_u_l __pyx_string_tab[1506]
#define __pyx_n_u_l0 __pyx_string_tab[1507]
#define __pyx_n_u_l1 __pyx_string_tab[1508]
#define __pyx_n_u_l2 __pyx_string_tab[1509]
#define __pyx_n_u_layered __pyx_string_tab[1510]
#define __pyx_n_u_layered_and_marked __pyx_string_tab[1511]
#define __pyx_n_u_lazy __pyx_string_tab[1512]
#define __pyx_n_u_left __pyx_string_tab[1513]
#define __pyx_n_u_left_pad_string __pyx_string_tab[1514]
#define __pyx_n_u_len __pyx_string_tab[1515]
#define __pyx_n_u_lenStr __pyx_string_tab[1516]
#define __pyx_n_u_len_2 __pyx_string_tab[1517]
#define __pyx_n_u_length __pyx_string_tab[1518]
#define __pyx_n_u_length_spectrum __pyx_string_tab[1519]
#define __pyx_n_u_length_spectrum_dicts __pyx_string_tab[1520]
#define __pyx_n_u_letter __pyx_string_tab[1521]
#define __pyx_n_u_letter_seperator __pyx_string_tab[1522]
#define __pyx_n_u_line __pyx_string_tab[1523]
#define __pyx_n_u_line0 __pyx_string_tab[1524]
#define __pyx_n_u_line1 __pyx_string_tab[1525]
#define __pyx_n_u_line2 __pyx_string_tab[1526]
#define __pyx_n_u_line3 __pyx_string_tab[1527]
#define __pyx_n_u_link __pyx_string_tab[1528]
#define __pyx_n_u_link_archive __pyx_string_tab[1529]
#define __pyx_n_u_link_directory __pyx_string_tab[1530]
#define __pyx_n_u_list_as_word __pyx_string_tab[1531]
#define __pyx_n_u_list_as_word_locals_genexpr __pyx_string_tab[1532]
#define __pyx_n_u_ljust __pyx_string_tab[1533]
#define __pyx_n_u_log __pyx_string_tab[1534]
#define __pyx_n_u_log_im __pyx_string_tab[1535]
#define __pyx_n_u_log_re __pyx_string_tab[1536]
#define __pyx_n_u_log_shape __pyx_string_tab[1537]
#define __pyx_n_u_long_relators __pyx_string_tab[1538]
#define __pyx_n_u_longitude __pyx_string_tab[1539]
#define __pyx_n_u_longitude_2 __pyx_string_tab[1540]
#define __pyx_n_u_longitude_accuracy __pyx_string_tab[1541]
#define __pyx_n_u_lookup __pyx_string_tab[1542]
#define __pyx_n_u_low_index __pyx_string_tab[1543]
#define __pyx_n_u_lower __pyx_string_tab[1544]
#define __pyx_n_u_m __pyx_string_tab[1545]
#define __pyx_n_u_m003 __pyx_string_tab[1546]
#define __pyx_n_u_m004 __pyx_string_tab[1547]
#define __pyx_n_u_magma __pyx_string_tab[1548]
#define __pyx_n_u_magma_init __pyx_string_tab[1549]
#define __pyx_n_u_magma_string __pyx_string_tab[1550]
#define __pyx_n_u_main __pyx_string_tab[1551]
#define __pyx_n_u_major __pyx_string_tab[1552]
#define __pyx_n_u_manifold __pyx_string_tab[1553]
#define __pyx_n_u_manifoldMethods __pyx_string_tab[1554]
#define __pyx_n_u_manifold_class __pyx_string_tab[1555]
#define __pyx_n_u_manifold_class_2 __pyx_string_tab[1556]
#define __pyx_n_u_manifold_name __pyx_string_tab[1557]
#define __pyx_n_u_manifold_path __pyx_string_tab[1558]
#define __pyx_n_u_manifold_paths __pyx_string_tab[1559]
#define __pyx_n_u_manifolds __pyx_string_tab[1560]
#define __pyx_n_u_map __pyx_string_tab[1561]
#define __pyx_n_u_maps __pyx_string_tab[1562]
#define __pyx_n_u_mark_solid_tori __pyx_string_tab[1563]
#define __pyx_n_u_marked __pyx_string_tab[1564]
#define __pyx_n_u_marked_tetrahedra __pyx_string_tab[1565]
#define __pyx_n_u_mask __pyx_string_tab[1566]
#define __pyx_n_u_mat __pyx_string_tab[1567]
#define __pyx_n_u_match __pyx_string_tab[1568]
#define __pyx_n_u_math __pyx_string_tab[1569]
#define __pyx_n_u_matrices __pyx_string_tab[1570]
#define __pyx_n_u_matrix __pyx_string_tab[1571]
#define __pyx_n_u_matrix_2 __pyx_string_tab[1572]
#define __pyx_n_u_matsnf __pyx_string_tab[1573]
#define __pyx_n_u_max __pyx_string_tab[1574]
#define __pyx_n_u_max_crossings __pyx_string_tab[1575]
#define __pyx_n_u_max_reach __pyx_string_tab[1576]
#define __pyx_n_u_max_segments __pyx_string_tab[1577]
#define __pyx_n_u_maximize_injectivity_radius __pyx_string_tab[1578]
#define __pyx_n_u_meridian __pyx_string_tab[1579]
#define __pyx_n_u_meridian_2 __pyx_string_tab[1580]
#define __pyx_n_u_meridian_accuracy __pyx_string_tab[1581]
#define __pyx_n_u_message __pyx_string_tab[1582]
#define __pyx_n_u_metaclass __pyx_string_tab[1583]
#define __pyx_n_u_method __pyx_string_tab[1584]
#define __pyx_n_u_minimize_number_of_generators __pyx_string_tab[1585]
#define __pyx_n_u_mode __pyx_string_tab[1586]
#define __pyx_n_u_model __pyx_string_tab[1587]
#define __pyx_n_u_module __pyx_string_tab[1588]
#define __pyx_n_u_modulus __pyx_string_tab[1589]
#define __pyx_n_u_monodromy __pyx_string_tab[1590]
#define __pyx_n_u_morwen_link_directory __pyx_string_tab[1591]
#define __pyx_n_u_moves __pyx_string_tab[1592]
#define __pyx_n_u_mro_entries __pyx_string_tab[1593]
#define __pyx_n_u_msg_stream __pyx_string_tab[1594]
#define __pyx_n_u_mult __pyx_string_tab[1595]
#define __pyx_n_u_multiplicities __pyx_string_tab[1596]
#define __pyx_n_u_multiplicity __pyx_string_tab[1597]
#define __pyx_n_u_multiply_elements __pyx_string_tab[1598]
#define __pyx_n_u_myslice __pyx_string_tab[1599]
#define __pyx_n_u_n __pyx_string_tab[1600]
#define __pyx_n_u_name __pyx_string_tab[1601]
#define __pyx_n_u_name_2 __pyx_string_tab[1602]
#define __pyx_n_u_ncols __pyx_string_tab[1603]
#define __pyx_n_u_neighbor __pyx_string_tab[1604]
#define __pyx_n_u_neighbor0_idx __pyx_string_tab[1605]
#define __pyx_n_u_neighbor1_idx __pyx_string_tab[1606]
#define __pyx_n_u_neighbor2_idx __pyx_string_tab[1607]
#define __pyx_n_u_neighbor3_idx __pyx_string_tab[1608]
#define __pyx_n_u_neighbor_end __pyx_string_tab[1609]
#define __pyx_n_u_neighbors __pyx_string_tab[1610]
#define __pyx_n_u_new __pyx_string_tab[1611]
#define __pyx_n_u_new_2 __pyx_string_tab[1612]
#define __pyx_n_u_new_displacement __pyx_string_tab[1613]
#define __pyx_n_u_new_name __pyx_string_tab[1614]
#define __pyx_n_u_new_tie __pyx_string_tab[1615]
#define __pyx_n_u_new_tri __pyx_string_tab[1616]
#define __pyx_n_u_next __pyx_string_tab[1617]
#define __pyx_n_u_next_2 __pyx_string_tab[1618]
#define __pyx_n_u_no_arcs __pyx_string_tab[1619]
#define __pyx_n_u_non_peripheral __pyx_string_tab[1620]
#define __pyx_n_u_nonorientable __pyx_string_tab[1621]
#define __pyx_n_u_nonzeros __pyx_string_tab[1622]
#define __pyx_n_u_nrows __pyx_string_tab[1623]
#define __pyx_n_u_num __pyx_string_tab[1624]
#define __pyx_n_u_num_cols __pyx_string_tab[1625]
#define __pyx_n_u_num_components __pyx_string_tab[1626]
#define __pyx_n_u_num_crossings __pyx_string_tab[1627]
#define __pyx_n_u_num_curves __pyx_string_tab[1628]
#define __pyx_n_u_num_cusps __pyx_string_tab[1629]
#define __pyx_n_u_num_edges __pyx_string_tab[1630]
#define __pyx_n_u_num_faces __pyx_string_tab[1631]
#define __pyx_n_u_num_fake_cusps __pyx_string_tab[1632]
#define __pyx_n_u_num_finite_vertices __pyx_string_tab[1633]
#define __pyx_n_u_num_gen __pyx_string_tab[1634]
#define __pyx_n_u_num_generators __pyx_string_tab[1635]
#define __pyx_n_u_num_gens __pyx_string_tab[1636]
#define __pyx_n_u_num_ideal_vertices __pyx_string_tab[1637]
#define __pyx_n_u_num_lengths __pyx_string_tab[1638]
#define __pyx_n_u_num_links __pyx_string_tab[1639]
#define __pyx_n_u_num_nonor_cusps __pyx_string_tab[1640]
#define __pyx_n_u_num_or_cusps __pyx_string_tab[1641]
#define __pyx_n_u_num_orig_gens __pyx_string_tab[1642]
#define __pyx_n_u_num_original_generators __pyx_string_tab[1643]
#define __pyx_n_u_num_relations __pyx_string_tab[1644]
#define __pyx_n_u_num_relators __pyx_string_tab[1645]
#define __pyx_n_u_num_rows __pyx_string_tab[1646]
#define __pyx_n_u_num_subdivisions __pyx_string_tab[1647]
#define __pyx_n_u_num_surfaces __pyx_string_tab[1648]
#define __pyx_n_u_num_tet __pyx_string_tab[1649]
#define __pyx_n_u_num_tetrahedra __pyx_string_tab[1650]
#define __pyx_n_u_num_threads __pyx_string_tab[1651]
#define __pyx_n_u_num_vertices __pyx_string_tab[1652]
#define __pyx_n_u_number __pyx_string_tab[1653]
#define __pyx_n_u_number_2 __pyx_string_tab[1654]
#define __pyx_n_u_number_to_native_number __pyx_string_tab[1655]
#define __pyx_n_u_obsolete __pyx_string_tab[1656]
#define __pyx_n_u_obstruction_class __pyx_string_tab[1657]
#define __pyx_n_u_of_link __pyx_string_tab[1658]
#define __pyx_n_u_offset __pyx_string_tab[1659]
#define __pyx_n_u_old __pyx_string_tab[1660]
#define __pyx_n_u_omega __pyx_string_tab[1661]
#define __pyx_n_u_one_manifold __pyx_string_tab[1662]
#define __pyx_n_u_one_tet_lengths __pyx_string_tab[1663]
#define __pyx_n_u_one_tet_tilts __pyx_string_tab[1664]
#define __pyx_n_u_one_vertex_lengths __pyx_string_tab[1665]
#define __pyx_n_u_opacities __pyx_string_tab[1666]
#define __pyx_n_u_open __pyx_string_tab[1667]
#define __pyx_n_u_operator __pyx_string_tab[1668]
#define __pyx_n_u_order __pyx_string_tab[1669]
#define __pyx_n_u_orient __pyx_string_tab[1670]
#define __pyx_n_u_orientability __pyx_string_tab[1671]
#define __pyx_n_u_orientable __pyx_string_tab[1672]
#define __pyx_n_u_orientation_cover __pyx_string_tab[1673]
#define __pyx_n_u_orig_gens __pyx_string_tab[1674]
#define __pyx_n_u_original_generators __pyx_string_tab[1675]
#define __pyx_n_u_original_index __pyx_string_tab[1676]
#define __pyx_n_u_os __pyx_string_tab[1677]
#define __pyx_n_u_other __pyx_string_tab[1678]
#define __pyx_n_u_out_radius __pyx_string_tab[1679]
#define __pyx_n_u_output __pyx_string_tab[1680]
#define __pyx_n_u_output_file __pyx_string_tab[1681]
#define __pyx_n_u_owns_c_symmetry_group __pyx_string_tab[1682]
#define __pyx_n_u_p __pyx_string_tab[1683]
#define __pyx_n_u_pad __pyx_string_tab[1684]
#define __pyx_n_u_pair __pyx_string_tab[1685]
#define __pyx_n_u_pairing_matrices __pyx_string_tab[1686]
#define __pyx_n_u_pairing_words __pyx_string_tab[1687]
#define __pyx_n_u_pari __pyx_string_tab[1688]
#define __pyx_n_u_parity __pyx_string_tab[1689]
#define __pyx_n_u_part __pyx_string_tab[1690]
#define __pyx_n_u_parts __pyx_string_tab[1691]
#define __pyx_n_u_passes_at_fours __pyx_string_tab[1692]
#define __pyx_n_u_path __pyx_string_tab[1693]
#define __pyx_n_u_path_2 __pyx_string_tab[1694]
#define __pyx_n_u_peripheral __pyx_string_tab[1695]
#define __pyx_n_u_peripheral_curves __pyx_string_tab[1696]
#define __pyx_n_u_peripheral_data __pyx_string_tab[1697]
#define __pyx_n_u_perm __pyx_string_tab[1698]
#define __pyx_n_u_perm0 __pyx_string_tab[1699]
#define __pyx_n_u_perm1 __pyx_string_tab[1700]
#define __pyx_n_u_perm2 __pyx_string_tab[1701]
#define __pyx_n_u_perm3 __pyx_string_tab[1702]
#define __pyx_n_u_perms __pyx_string_tab[1703]
#define __pyx_n_u_permutation __pyx_string_tab[1704]
#define __pyx_n_u_permutation_rep __pyx_string_tab[1705]
#define __pyx_n_u_permutation_reps __pyx_string_tab[1706]
#define __pyx_n_u_pickle_2 __pyx_string_tab[1707]
#define __pyx_n_u_pieces __pyx_string_tab[1708]
#define __pyx_n_u_plink __pyx_string_tab[1709]
#define __pyx_n_u_plink_callback __pyx_string_tab[1710]
#define __pyx_n_u_plink_callback_2 __pyx_string_tab[1711]
#define __pyx_n_u_polish_hyperbolic_structures __pyx_string_tab[1712]
#define __pyx_n_u_polished_tetrahedra_shapes __pyx_string_tab[1713]
#define __pyx_n_u_polyhedral_description __pyx_string_tab[1714]
#define __pyx_n_u_polyviewer __pyx_string_tab[1715]
#define __pyx_n_u_pop __pyx_string_tab[1716]
#define __pyx_n_u_popitem __pyx_string_tab[1717]
#define __pyx_n_u_position __pyx_string_tab[1718]
#define __pyx_n_u_precision __pyx_string_tab[1719]
#define __pyx_n_u_precision_2 __pyx_string_tab[1720]
#define __pyx_n_u_prefix __pyx_string_tab[1721]
#define __pyx_n_u_prepare __pyx_string_tab[1722]
#define __pyx_n_u_presentation __pyx_string_tab[1723]
#define __pyx_n_u_presentation_matrix __pyx_string_tab[1724]
#define __pyx_n_u_print __pyx_string_tab[1725]
#define __pyx_n_u_protocol __pyx_string_tab[1726]
#define __pyx_n_u_ptolemy __pyx_string_tab[1727]
#define __pyx_n_u_ptolemyManifoldMethods __pyx_string_tab[1728]
#define __pyx_n_u_ptolemy_equations_action_by_dec __pyx_string_tab[1729]
#define __pyx_n_u_ptolemy_equations_boundary_map __pyx_string_tab[1730]
#define __pyx_n_u_ptolemy_equations_boundary_map_2 __pyx_string_tab[1731]
#define __pyx_n_u_ptolemy_equations_boundary_map_3 __pyx_string_tab[1732]
#define __pyx_n_u_ptolemy_equations_identified_co __pyx_string_tab[1733]
#define __pyx_n_u_ptolemy_equations_identified_fa __pyx_string_tab[1734]
#define __pyx_n_u_ptolemy_generalized_obstruction __pyx_string_tab[1735]
#define __pyx_n_u_ptolemy_obstruction_classes __pyx_string_tab[1736]
#define __pyx_n_u_ptolemy_variety __pyx_string_tab[1737]
#define __pyx_n_u_python_major_version __pyx_string_tab[1738]
#define __pyx_n_u_pyx_checksum __pyx_string_tab[1739]
#define __pyx_n_u_pyx_result __pyx_string_tab[1740]
#define __pyx_n_u_pyx_state __pyx_string_tab[1741]
#define __pyx_n_u_pyx_type __pyx_string_tab[1742]
#define __pyx_n_u_pyx_unpickle_PresentationMatri __pyx_string_tab[1743]
#define __pyx_n_u_pyx_vtable __pyx_string_tab[1744]
#define __pyx_n_u_q_2 __pyx_string_tab[1745]
#define __pyx_n_u_qualname __pyx_string_tab[1746]
#define __pyx_n_u_r __pyx_string_tab[1747]
#define __pyx_n_u_radius __pyx_string_tab[1748]
#define __pyx_n_u_randomize __pyx_string_tab[1749]
#define __pyx_n_u_rank __pyx_string_tab[1750]
#define __pyx_n_u_raw_form __pyx_string_tab[1751]
#define __pyx_n_u_rb __pyx_string_tab[1752]
#define __pyx_n_u_re __pyx_string_tab[1753]
#define __pyx_n_u_reach __pyx_string_tab[1754]
#define __pyx_n_u_read __pyx_string_tab[1755]
#define __pyx_n_u_readline __pyx_string_tab[1756]
#define __pyx_n_u_readlines __pyx_string_tab[1757]
#define __pyx_n_u_real __pyx_string_tab[1758]
#define __pyx_n_u_real_coerced_to_bits_prec __pyx_string_tab[1759]
#define __pyx_n_u_recompute __pyx_string_tab[1760]
#define __pyx_n_u_record __pyx_string_tab[1761]
#define __pyx_n_u_rect __pyx_string_tab[1762]
#define __pyx_n_u_rect_im __pyx_string_tab[1763]
#define __pyx_n_u_rect_re __pyx_string_tab[1764]
#define __pyx_n_u_rect_shape __pyx_string_tab[1765]
#define __pyx_n_u_reduce __pyx_string_tab[1766]
#define __pyx_n_u_reduce_cython __pyx_string_tab[1767]
#define __pyx_n_u_reduce_ex __pyx_string_tab[1768]
#define __pyx_n_u_reduce_list_word __pyx_string_tab[1769]
#define __pyx_n_u_regular __pyx_string_tab[1770]
#define __pyx_n_u_reindex_cusps __pyx_string_tab[1771]
#define __pyx_n_u_rel __pyx_string_tab[1772]
#define __pyx_n_u_relation __pyx_string_tab[1773]
#define __pyx_n_u_relation_list __pyx_string_tab[1774]
#define __pyx_n_u_relators __pyx_string_tab[1775]
#define __pyx_n_u_rels __pyx_string_tab[1776]
#define __pyx_n_u_remove __pyx_string_tab[1777]
#define __pyx_n_u_remove_finite_vertices __pyx_string_tab[1778]
#define __pyx_n_u_remove_finite_vertices_2 __pyx_string_tab[1779]
#define __pyx_n_u_reopen __pyx_string_tab[1780]
#define __pyx_n_u_rep __pyx_string_tab[1781]
#define __pyx_n_u_replace __pyx_string_tab[1782]
#define __pyx_n_u_repr __pyx_string_tab[1783]
#define __pyx_n_u_repr_2 __pyx_string_tab[1784]
#define __pyx_n_u_reps __pyx_string_tab[1785]
#define __pyx_n_u_result __pyx_string_tab[1786]
#define __pyx_n_u_result_curves __pyx_string_tab[1787]
#define __pyx_n_u_result_cusp_indices __pyx_string_tab[1788]
#define __pyx_n_u_return __pyx_string_tab[1789]
#define __pyx_n_u_return_isometries __pyx_string_tab[1790]
#define __pyx_n_u_return_matrices __pyx_string_tab[1791]
#define __pyx_n_u_return_type __pyx_string_tab[1792]
#define __pyx_n_u_retval __pyx_string_tab[1793]
#define __pyx_n_u_rev_spec_dict __pyx_string_tab[1794]
#define __pyx_n_u_reverse_orientation __pyx_string_tab[1795]
#define __pyx_n_u_right __pyx_string_tab[1796]
#define __pyx_n_u_rjust __pyx_string_tab[1797]
#define __pyx_n_u_rolfsen_link_regexs __pyx_string_tab[1798]
#define __pyx_n_u_round __pyx_string_tab[1799]
#define __pyx_n_u_row __pyx_string_tab[1800]
#define __pyx_n_u_row_entries __pyx_string_tab[1801]
#define __pyx_n_u_row_op __pyx_string_tab[1802]
#define __pyx_n_u_rows __pyx_string_tab[1803]
#define __pyx_n_u_s __pyx_string_tab[1804]
#define __pyx_n_u_sage __pyx_string_tab[1805]
#define __pyx_n_u_sage_groups_free_group __pyx_string_tab[1806]
#define __pyx_n_u_sage_groups_perm_gps_permgroup __pyx_string_tab[1807]
#define __pyx_n_u_sage_groups_perm_gps_permgroup_e __pyx_string_tab[1808]
#define __pyx_n_u_sage_helper __pyx_string_tab[1809]
#define __pyx_n_u_sage_interfaces_abc __pyx_string_tab[1810]
#define __pyx_n_u_sage_interfaces_gap __pyx_string_tab[1811]
#define __pyx_n_u_sage_interfaces_magma __pyx_string_tab[1812]
#define __pyx_n_u_sage_matrix __pyx_string_tab[1813]
#define __pyx_n_u_sage_matrix_constructor __pyx_string_tab[1814]
#define __pyx_n_u_sage_rings_integer __pyx_string_tab[1815]
#define __pyx_n_u_sage_structure_sage_object __pyx_string_tab[1816]
#define __pyx_n_u_save __pyx_string_tab[1817]
#define __pyx_n_u_savefile __pyx_string_tab[1818]
#define __pyx_n_u_second_char __pyx_string_tab[1819]
#define __pyx_n_u_second_nybble __pyx_string_tab[1820]
#define __pyx_n_u_seed __pyx_string_tab[1821]
#define __pyx_n_u_seek __pyx_string_tab[1822]
#define __pyx_n_u_segment __pyx_string_tab[1823]
#define __pyx_n_u_segment_list __pyx_string_tab[1824]
#define __pyx_n_u_self __pyx_string_tab[1825]
#define __pyx_n_u_send __pyx_string_tab[1826]
#define __pyx_n_u_sep __pyx_string_tab[1827]
#define __pyx_n_u_set_DTcode __pyx_string_tab[1828]
#define __pyx_n_u_set_PDcode __pyx_string_tab[1829]
#define __pyx_n_u_set_displacement __pyx_string_tab[1830]
#define __pyx_n_u_set_name __pyx_string_tab[1831]
#define __pyx_n_u_set_name_2 __pyx_string_tab[1832]
#define __pyx_n_u_set_peripheral_curves __pyx_string_tab[1833]
#define __pyx_n_u_set_peripheral_from_decoration __pyx_string_tab[1834]
#define __pyx_n_u_set_rand_seed __pyx_string_tab[1835]
#define __pyx_n_u_set_target_holonomy __pyx_string_tab[1836]
#define __pyx_n_u_set_test_flag __pyx_string_tab[1837]
#define __pyx_n_u_set_tetrahedra_shapes __pyx_string_tab[1838]
#define __pyx_n_u_set_tie __pyx_string_tab[1839]
#define __pyx_n_u_setattr __pyx_string_tab[1840]
#define __pyx_n_u_setdefault __pyx_string_tab[1841]
#define __pyx_n_u_setitem __pyx_string_tab[1842]
#define __pyx_n_u_setstate __pyx_string_tab[1843]
#define __pyx_n_u_setstate_cython __pyx_string_tab[1844]
#define __pyx_n_u_seven_length __pyx_string_tab[1845]
#define __pyx_n_u_shape __pyx_string_tab[1846]
#define __pyx_n_u_shape_accuracy __pyx_string_tab[1847]
#define __pyx_n_u_shapes __pyx_string_tab[1848]
#define __pyx_n_u_short_relators __pyx_string_tab[1849]
#define __pyx_n_u_shortest __pyx_string_tab[1850]
#define __pyx_n_u_shortest_longitudes __pyx_string_tab[1851]
#define __pyx_n_u_shortest_meridians __pyx_string_tab[1852]
#define __pyx_n_u_show_uAcknowledge __pyx_string_tab[1853]
#define __pyx_n_u_shrink_factor __pyx_string_tab[1854]
#define __pyx_n_u_side __pyx_string_tab[1855]
#define __pyx_n_u_side_lengths __pyx_string_tab[1856]
#define __pyx_n_u_sided __pyx_string_tab[1857]
#define __pyx_n_u_sign __pyx_string_tab[1858]
#define __pyx_n_u_signs __pyx_string_tab[1859]
#define __pyx_n_u_signtype __pyx_string_tab[1860]
#define __pyx_n_u_simplified_matrix __pyx_string_tab[1861]
#define __pyx_n_u_simplify __pyx_string_tab[1862]
#define __pyx_n_u_simplify_presentation __pyx_string_tab[1863]
#define __pyx_n_u_singularity_index __pyx_string_tab[1864]
#define __pyx_n_u_six_length __pyx_string_tab[1865]
#define __pyx_n_u_size __pyx_string_tab[1866]
#define __pyx_n_u_smith_form __pyx_string_tab[1867]
#define __pyx_n_u_snap __pyx_string_tab[1868]
#define __pyx_n_u_snapPea __pyx_string_tab[1869]
#define __pyx_n_u_snappea __pyx_string_tab[1870]
#define __pyx_n_u_snappy __pyx_string_tab[1871]
#define __pyx_n_u_so_far __pyx_string_tab[1872]
#define __pyx_n_u_soln __pyx_string_tab[1873]
#define __pyx_n_u_solution_type __pyx_string_tab[1874]
#define __pyx_n_u_sorted __pyx_string_tab[1875]
#define __pyx_n_u_spec __pyx_string_tab[1876]
#define __pyx_n_u_specs __pyx_string_tab[1877]
#define __pyx_n_u_spectrum __pyx_string_tab[1878]
#define __pyx_n_u_spherogram __pyx_string_tab[1879]
#define __pyx_n_u_spin_short __pyx_string_tab[1880]
#define __pyx_n_u_spine_radius __pyx_string_tab[1881]
#define __pyx_n_u_split __pyx_string_tab[1882]
#define __pyx_n_u_split_filling_info __pyx_string_tab[1883]
#define __pyx_n_u_splitting __pyx_string_tab[1884]
#define __pyx_n_u_splitting_from_string __pyx_string_tab[1885]
#define __pyx_n_u_splitting_surfaces __pyx_string_tab[1886]
#define __pyx_n_u_start __pyx_string_tab[1887]
#define __pyx_n_u_startswith __pyx_string_tab[1888]
#define __pyx_n_u_state __pyx_string_tab[1889]
#define __pyx_n_u_staticmethod __pyx_string_tab[1890]
#define __pyx_n_u_stderr __pyx_string_tab[1891]
#define __pyx_n_u_stdout __pyx_string_tab[1892]
#define __pyx_n_u_step __pyx_string_tab[1893]
#define __pyx_n_u_stl __pyx_string_tab[1894]
#define __pyx_n_u_stop __pyx_string_tab[1895]
#define __pyx_n_u_stopper __pyx_string_tab[1896]
#define __pyx_n_u_stopping_displacement __pyx_string_tab[1897]
#define __pyx_n_u_str __pyx_string_tab[1898]
#define __pyx_n_u_strandtype __pyx_string_tab[1899]
#define __pyx_n_u_strategy __pyx_string_tab[1900]
#define __pyx_n_u_string __pyx_string_tab[1901]
#define __pyx_n_u_strip __pyx_string_tab[1902]
#define __pyx_n_u_strline __pyx_string_tab[1903]
#define __pyx_n_u_struct __pyx_string_tab[1904]
#define __pyx_n_u_subgroup __pyx_string_tab[1905]
#define __pyx_n_u_success __pyx_string_tab[1906]
#define __pyx_n_u_sum __pyx_string_tab[1907]
#define __pyx_n_u_super __pyx_string_tab[1908]
#define __pyx_n_u_surface __pyx_string_tab[1909]
#define __pyx_n_u_surfaces __pyx_string_tab[1910]
#define __pyx_n_u_symmetric_triangulation __pyx_string_tab[1911]
#define __pyx_n_u_symmetries_of_link __pyx_string_tab[1912]
#define __pyx_n_u_symmetries_of_manifold __pyx_string_tab[1913]
#define __pyx_n_u_symmetry_group __pyx_string_tab[1914]
#define __pyx_n_u_symplectic_basis __pyx_string_tab[1915]
#define __pyx_n_u_symplectic_form __pyx_string_tab[1916]
#define __pyx_n_u_sys __pyx_string_tab[1917]
#define __pyx_n_u_t __pyx_string_tab[1918]
#define __pyx_n_u_table __pyx_string_tab[1919]
#define __pyx_n_u_table_directory __pyx_string_tab[1920]
#define __pyx_n_u_tail __pyx_string_tab[1921]
#define __pyx_n_u_tail_vertex_index __pyx_string_tab[1922]
#define __pyx_n_u_tarfile __pyx_string_tab[1923]
#define __pyx_n_u_target __pyx_string_tab[1924]
#define __pyx_n_u_tarpath __pyx_string_tab[1925]
#define __pyx_n_u_temp __pyx_string_tab[1926]
#define __pyx_n_u_tempfile __pyx_string_tab[1927]
#define __pyx_n_u_test __pyx_string_tab[1928]
#define __pyx_n_u_tet __pyx_string_tab[1929]
#define __pyx_n_u_tet_num __pyx_string_tab[1930]
#define __pyx_n_u_tetrahedra_data __pyx_string_tab[1931]
#define __pyx_n_u_tetrahedra_shapes __pyx_string_tab[1932]
#define __pyx_n_u_three_to_two __pyx_string_tab[1933]
#define __pyx_n_u_throw __pyx_string_tab[1934]
#define __pyx_n_u_tilts __pyx_string_tab[1935]
#define __pyx_n_u_time __pyx_string_tab[1936]
#define __pyx_n_u_tip __pyx_string_tab[1937]
#define __pyx_n_u_tip_vertex_index __pyx_string_tab[1938]
#define __pyx_n_u_title __pyx_string_tab[1939]
#define __pyx_n_u_to_byte_str __pyx_string_tab[1940]
#define __pyx_n_u_to_bytes __pyx_string_tab[1941]
#define __pyx_n_u_to_do __pyx_string_tab[1942]
#define __pyx_n_u_to_str __pyx_string_tab[1943]
#define __pyx_n_u_to_string __pyx_string_tab[1944]
#define __pyx_n_u_to_string_locals_genexpr __pyx_string_tab[1945]
#define __pyx_n_u_top_level_tries __pyx_string_tab[1946]
#define __pyx_n_u_topology __pyx_string_tab[1947]
#define __pyx_n_u_total __pyx_string_tab[1948]
#define __pyx_n_u_translations __pyx_string_tab[1949]
#define __pyx_n_u_triangulation __pyx_string_tab[1950]
#define __pyx_n_u_triangulation_class __pyx_string_tab[1951]
#define __pyx_n_u_triangulation_help __pyx_string_tab[1952]
#define __pyx_n_u_triangulation_isosig __pyx_string_tab[1953]
#define __pyx_n_u_try_hard_to_shorten_relators __pyx_string_tab[1954]
#define __pyx_n_u_twister __pyx_string_tab[1955]
#define __pyx_n_u_twister_word __pyx_string_tab[1956]
#define __pyx_n_u_two_sided __pyx_string_tab[1957]
#define __pyx_n_u_two_to_three __pyx_string_tab[1958]
#define __pyx_n_u_type __pyx_string_tab[1959]
#define __pyx_n_u_type_str __pyx_string_tab[1960]
#define __pyx_n_u_types __pyx_string_tab[1961]
#define __pyx_n_u_typing __pyx_string_tab[1962]
#define __pyx_n_u_u __pyx_string_tab[1963]
#define __pyx_n_u_undecorated_triangulation_isosi __pyx_string_tab[1964]
#define __pyx_n_u_unit __pyx_string_tab[1965]
#define __pyx_n_u_unknown __pyx_string_tab[1966]
#define __pyx_n_u_unnamed __pyx_string_tab[1967]
#define __pyx_n_u_unpack __pyx_string_tab[1968]
#define __pyx_n_u_unpickle_dirichlet_domain __pyx_string_tab[1969]
#define __pyx_n_u_unsimplified_filled_triangulati __pyx_string_tab[1970]
#define __pyx_n_u_unsimplified_filled_triangulati_2 __pyx_string_tab[1971]
#define __pyx_n_u_update __pyx_string_tab[1972]
#define __pyx_n_u_upper __pyx_string_tab[1973]
#define __pyx_n_u_use_field_conversion __pyx_string_tab[1974]
#define __pyx_n_u_use_setstate __pyx_string_tab[1975]
#define __pyx_n_u_user_radius __pyx_string_tab[1976]
#define __pyx_n_u_v __pyx_string_tab[1977]
#define __pyx_n_u_valid_index __pyx_string_tab[1978]
#define __pyx_n_u_value __pyx_string_tab[1979]
#define __pyx_n_u_values __pyx_string_tab[1980]
#define __pyx_n_u_verbose_form __pyx_string_tab[1981]
#define __pyx_n_u_verified __pyx_string_tab[1982]
#define __pyx_n_u_verify __pyx_string_tab[1983]
#define __pyx_n_u_verify_complex_volume __pyx_string_tab[1984]
#define __pyx_n_u_version_info __pyx_string_tab[1985]
#define __pyx_n_u_vertex __pyx_string_tab[1986]
#define __pyx_n_u_vertex_class __pyx_string_tab[1987]
#define __pyx_n_u_vertex_data_list __pyx_string_tab[1988]
#define __pyx_n_u_vertex_epsilon __pyx_string_tab[1989]
#define __pyx_n_u_vertex_image_indices __pyx_string_tab[1990]
#define __pyx_n_u_vertex_indices __pyx_string_tab[1991]
#define __pyx_n_u_vertex_list __pyx_string_tab[1992]
#define __pyx_n_u_vertex_list_2 __pyx_string_tab[1993]
#define __pyx_n_u_vertex_to_index __pyx_string_tab[1994]
#define __pyx_n_u_vertex_to_index_dict __pyx_string_tab[1995]
#define __pyx_n_u_vertices __pyx_string_tab[1996]
#define __pyx_n_u_view __pyx_string_tab[1997]
#define __pyx_n_u_vol __pyx_string_tab[1998]
#define __pyx_n_u_volume __pyx_string_tab[1999]
#define __pyx_n_u_w __pyx_string_tab[2000]
#define __pyx_n_u_w0 __pyx_string_tab[2001]
#define __pyx_n_u_w1 __pyx_string_tab[2002]
#define __pyx_n_u_wb __pyx_string_tab[2003]
#define __pyx_n_u_where_to_resume __pyx_string_tab[2004]
#define __pyx_n_u_which_curve __pyx_string_tab[2005]
#define __pyx_n_u_which_cusp __pyx_string_tab[2006]
#define __pyx_n_u_which_solution __pyx_string_tab[2007]
#define __pyx_n_u_which_surface __pyx_string_tab[2008]
#define __pyx_n_u_with_hyperbolic_structure __pyx_string_tab[2009]
#define __pyx_n_u_within_sage __pyx_string_tab[2010]
#define __pyx_n_u_without_hyperbolic_structure __pyx_string_tab[2011]
#define __pyx_n_u_word __pyx_string_tab[2012]
#define __pyx_n_u_word_as_list __pyx_string_tab[2013]
#define __pyx_n_u_word_list __pyx_string_tab[2014]
#define __pyx_n_u_word_moves __pyx_string_tab[2015]
#define __pyx_n_u_words __pyx_string_tab[2016]
#define __pyx_n_u_write __pyx_string_tab[2017]
#define __pyx_n_u_x __pyx_string_tab[2018]
#define __pyx_n_u_x012 __pyx_string_tab[2019]
#define __pyx_n_u_y __pyx_string_tab[2020]
#define __pyx_n_u_y123 __pyx_string_tab[2021]
#define __pyx_n_u_z __pyx_string_tab[2022]
#define __pyx_n_u_zeros __pyx_string_tab[2023]
#define __pyx_kp_b_ __pyx_string_tab[2024]
#define __pyx_kp_b_Generators_2 __pyx_string_tab[2025]
#define __pyx_kp_b_Triangulation __pyx_string_tab[2026]
#define __pyx_kp_b__10 __pyx_string_tab[2027]
#define __pyx_kp_b__39 __pyx_string_tab[2028]
#define __pyx_kp_b_iso88591_00C1_9Cq_q_j_6_iz_1_d_q_1_D_1_4 __pyx_string_tab[2029]
#define __pyx_kp_b_iso88591_0_q __pyx_string_tab[2030]
#define __pyx_kp_b_iso88591_1G1 __pyx_string_tab[2031]
#define __pyx_kp_b_iso88591_1G1L_AS_a __pyx_string_tab[2032]
#define __pyx_kp_b_iso88591_1Z_4_1_AQ_Qd_z_r_6_AS_E_aq_U_q __pyx_string_tab[2033]
#define __pyx_kp_b_iso88591_1_1 __pyx_string_tab[2034]
#define __pyx_kp_b_iso88591_1_2 __pyx_string_tab[2035]
#define __pyx_kp_b_iso88591_1_31_B_4_1_1_4t_E_3is_T_2_q_A_7 __pyx_string_tab[2036]
#define __pyx_kp_b_iso88591_1_4_1_AT1CCTTU_G6 __pyx_string_tab[2037]
#define __pyx_kp_b_iso88591_1_4_q_AQ_aq_8_1 __pyx_string_tab[2038]
#define __pyx_kp_b_iso88591_1_D_4_1_AQ_D_gQ_A_A_l_Rt_S_a_a __pyx_string_tab[2039]
#define __pyx_kp_b_iso88591_1_D_Zq_nA_q_A_G6 __pyx_string_tab[2040]
#define __pyx_kp_b_iso88591_1_WE_5_Qd_AQ_0_N_Jc_j_iq_waq_y __pyx_string_tab[2041]
#define __pyx_kp_b_iso88591_1_q __pyx_string_tab[2042]
#define __pyx_kp_b_iso88591_1_q_O3j_aq_q_A_q_aq_1_q_1A_Q_r __pyx_string_tab[2043]
#define __pyx_kp_b_iso88591_2Qb_E_T __pyx_string_tab[2044]
#define __pyx_kp_b_iso88591_2_D_q_A_1A_1A_1_G9A_1IQb_q_iq_1 __pyx_string_tab[2045]
#define __pyx_kp_b_iso88591_33CCVVW_L_1_1_D_r_2Rr_T_e1A_c_1 __pyx_string_tab[2046]
#define __pyx_kp_b_iso88591_33Faz_4_1_AQ_9Cq_t_S_iq_AV_a_S __pyx_string_tab[2047]
#define __pyx_kp_b_iso88591_33I_H_q_A_4_1_1_1_t3a_Rr_iq_V1B __pyx_string_tab[2048]
#define __pyx_kp_b_iso88591_3a_E_as_3b_AQa_r_AQ_S_E_as_Qc_1 __pyx_string_tab[2049]
#define __pyx_kp_b_iso88591_3a_Q_iq_a_G5_a __pyx_string_tab[2050]
#define __pyx_kp_b_iso88591_3a_WE_iq_a __pyx_string_tab[2051]
#define __pyx_kp_b_iso88591_3a_a_iq_a __pyx_string_tab[2052]
#define __pyx_kp_b_iso88591_3as_a __pyx_string_tab[2053]
#define __pyx_kp_b_iso88591_3b_r_AV2Q __pyx_string_tab[2054]
#define __pyx_kp_b_iso88591_4A_D_6_9A_A_A_1_1_s_81D_1AQ_d_S __pyx_string_tab[2055]
#define __pyx_kp_b_iso88591_4_1_1_a __pyx_string_tab[2056]
#define __pyx_kp_b_iso88591_4_1_AQ_1_AQ_4A_AT_31_2_7q_r9K1 __pyx_string_tab[2057]
#define __pyx_kp_b_iso88591_4_1_AQ_S_4z_uE_j_Qk_1AQk_U_j_t __pyx_string_tab[2058]
#define __pyx_kp_b_iso88591_4_1_AQ_at_5Q __pyx_string_tab[2059]
#define __pyx_kp_b_iso88591_4_q_AQ_6_1_M_gQ_fAQ_4AV7_1_4_1 __pyx_string_tab[2060]
#define __pyx_kp_b_iso88591_4q __pyx_string_tab[2061]
#define __pyx_kp_b_iso88591_4t1_4_1_T_4q_q_A_0 __pyx_string_tab[2062]
#define __pyx_kp_b_iso88591_4wgQa_4_1_q_HAT_2S_q_1_y_q_aq_a __pyx_string_tab[2063]
#define __pyx_kp_b_iso88591_4xq_Q_F_1_q_3hj_4s_4s_1_xq_T_q __pyx_string_tab[2064]
#define __pyx_kp_b_iso88591_4xq_Q_q_q_3l_7_4s_4s_1_IXQe4xq __pyx_string_tab[2065]
#define __pyx_kp_b_iso88591_5 __pyx_string_tab[2066]
#define __pyx_kp_b_iso88591_5Q_DAf_9_Q_q_q __pyx_string_tab[2067]
#define __pyx_kp_b_iso88591_5_1D __pyx_string_tab[2068]
#define __pyx_kp_b_iso88591_5_1Jc_1HAQ __pyx_string_tab[2069]
#define __pyx_kp_b_iso88591_6_QR __pyx_string_tab[2070]
#define __pyx_kp_b_iso88591_7_A __pyx_string_tab[2071]
#define __pyx_kp_b_iso88591_7q_T_Qa_8_1_aq_E_a_1_l_1_q_q_y __pyx_string_tab[2072]
#define __pyx_kp_b_iso88591_7qj_2Rr_Bb_AQ_a_AQ_4_1_AQ_A_q_q __pyx_string_tab[2073]
#define __pyx_kp_b_iso88591_81_iq_a __pyx_string_tab[2074]
#define __pyx_kp_b_iso88591_81_iq_a_gU_2U_q_GWWX __pyx_string_tab[2075]
#define __pyx_kp_b_iso88591_8_4q_4_1_g_t1_l_1_aq_q __pyx_string_tab[2076]
#define __pyx_kp_b_iso88591_8_6_1 __pyx_string_tab[2077]
#define __pyx_kp_b_iso88591_8_6_4_1_1 __pyx_string_tab[2078]
#define __pyx_kp_b_iso88591_8_J_4_1_AQ_D_1_AQ_q_7_Q_1_Cq_1 __pyx_string_tab[2079]
#define __pyx_kp_b_iso88591_99QQR_4N_8_AT_4wh6H_WX_HA_wa_q __pyx_string_tab[2080]
#define __pyx_kp_b_iso88591_9_D_q_AT_G9A_at_B_q_q_A_AQ_q __pyx_string_tab[2081]
#define __pyx_kp_b_iso88591_9_T_Qa_1_aq_G9L_l_1_q__AWIQa_AW __pyx_string_tab[2082]
#define __pyx_kp_b_iso88591_A23562378_J_1_4_q_AQ_31A45454545 __pyx_string_tab[2083]
#define __pyx_kp_b_iso88591_A6_4_1_AQ_Qd_AQ_7_Q_aq_a_E_a_8_w __pyx_string_tab[2084]
#define __pyx_kp_b_iso88591_A6_Kq_T_Kq_d_E_aq_Q_3k_G3a_1_Qc __pyx_string_tab[2085]
#define __pyx_kp_b_iso88591_A8_AT_4A_4A_0_gV6_Cs_t1_e3at_a_q __pyx_string_tab[2086]
#define __pyx_kp_b_iso88591_AB_M_WA __pyx_string_tab[2087]
#define __pyx_kp_b_iso88591_AFG_2Rr_Bb_AQ_4_1_AQ_1_4q_r_2S_1 __pyx_string_tab[2088]
#define __pyx_kp_b_iso88591_AP_D_q_r_3_6a_U_q_1AQ __pyx_string_tab[2089]
#define __pyx_kp_b_iso88591_AQj_b_RvS_1_1_1A_Rq_A_A_1A_3a_b __pyx_string_tab[2090]
#define __pyx_kp_b_iso88591_A_0_4_1_4A9_B_29_x_4_1_AQ_4wgQ_q __pyx_string_tab[2091]
#define __pyx_kp_b_iso88591_A_1 __pyx_string_tab[2092]
#define __pyx_kp_b_iso88591_A_1A __pyx_string_tab[2093]
#define __pyx_kp_b_iso88591_A_1D __pyx_string_tab[2094]
#define __pyx_kp_b_iso88591_A_1D_1_q __pyx_string_tab[2095]
#define __pyx_kp_b_iso88591_A_1D_2 __pyx_string_tab[2096]
#define __pyx_kp_b_iso88591_A_1D_a __pyx_string_tab[2097]
#define __pyx_kp_b_iso88591_A_1_2 __pyx_string_tab[2098]
#define __pyx_kp_b_iso88591_A_1_4A_31_2_4_1_AQ_q_q_4wgQ_A_t7 __pyx_string_tab[2099]
#define __pyx_kp_b_iso88591_A_1_4A_31_2_B_4_1_AQ_q_q_4wgQ_A __pyx_string_tab[2100]
#define __pyx_kp_b_iso88591_A_1_4_4_A __pyx_string_tab[2101]
#define __pyx_kp_b_iso88591_A_1_4_q_AQ_2_1 __pyx_string_tab[2102]
#define __pyx_kp_b_iso88591_A_1_A_U_66Gq_A_5_A_t1_q_81_a_E_j __pyx_string_tab[2103]
#define __pyx_kp_b_iso88591_A_1_Q_4_1_AQ_at1_F_1AQ_9IQa_5_q __pyx_string_tab[2104]
#define __pyx_kp_b_iso88591_A_1_a_Qd_A_1A_q __pyx_string_tab[2105]
#define __pyx_kp_b_iso88591_A_1_q_2_D_AT_l_1 __pyx_string_tab[2106]
#define __pyx_kp_b_iso88591_A_1_q_IQ_4wgQ_D_2_t7_q_1_Q __pyx_string_tab[2107]
#define __pyx_kp_b_iso88591_A_2 __pyx_string_tab[2108]
#define __pyx_kp_b_iso88591_A_2T_Q_Qd_a_82Q_t7_s_A_l_A_7_Q_6 __pyx_string_tab[2109]
#define __pyx_kp_b_iso88591_A_31_t_A_q __pyx_string_tab[2110]
#define __pyx_kp_b_iso88591_A_3avRr_WCt1A_6a_z_a_q_t5_4q_4uA __pyx_string_tab[2111]
#define __pyx_kp_b_iso88591_A_3e1D_4r_Q_E_iq_WBa __pyx_string_tab[2112]
#define __pyx_kp_b_iso88591_A_3hc_G1_G1 __pyx_string_tab[2113]
#define __pyx_kp_b_iso88591_A_4 __pyx_string_tab[2114]
#define __pyx_kp_b_iso88591_A_41_s_A_1A __pyx_string_tab[2115]
#define __pyx_kp_b_iso88591_A_4AN_4_5_50A_A_AQ_t9Cs_y_1_1_1 __pyx_string_tab[2116]
#define __pyx_kp_b_iso88591_A_4_1_AQ_6_Ba_D_T_1_AQ_at1_1AWA __pyx_string_tab[2117]
#define __pyx_kp_b_iso88591_A_4_1_AQ_D_A_ARt5_Qc_4DATI_6_Bb __pyx_string_tab[2118]
#define __pyx_kp_b_iso88591_A_4_1_AQ_Qd_5Q_1_1A __pyx_string_tab[2119]
#define __pyx_kp_b_iso88591_A_4_1_AQ_Qd_9_AQ_Gq_s __pyx_string_tab[2120]
#define __pyx_kp_b_iso88591_A_4_1_AQ_Qd_AQ_7_Q_aq_QoQ_M_8_5 __pyx_string_tab[2121]
#define __pyx_kp_b_iso88591_A_4_1_AQ_Qd_AT1C1A_Gq_s __pyx_string_tab[2122]
#define __pyx_kp_b_iso88591_A_4_1_AQ_Qd_AT1C1A_Gq_s_2 __pyx_string_tab[2123]
#define __pyx_kp_b_iso88591_A_4_1_AQ_Qd_AT1C1A_Gq_s_3 __pyx_string_tab[2124]
#define __pyx_kp_b_iso88591_A_4_1_AQ_q_A_AQ_6 __pyx_string_tab[2125]
#define __pyx_kp_b_iso88591_A_4_1_q_A_8_at1_1D __pyx_string_tab[2126]
#define __pyx_kp_b_iso88591_A_4_31_A_O1A_Qa_4_b_q __pyx_string_tab[2127]
#define __pyx_kp_b_iso88591_A_4_3a_AQ_1_t_6a_e3at_a_A_G1F_iq __pyx_string_tab[2128]
#define __pyx_kp_b_iso88591_A_4_3a_AQ_t_6a_e3at_a_T_wc_j_D_B __pyx_string_tab[2129]
#define __pyx_kp_b_iso88591_A_4_5_50A_A_AQ_1D_Q_Ql_Q_Q_Qa_1 __pyx_string_tab[2130]
#define __pyx_kp_b_iso88591_A_4_Q_AQ_6a_AT_j_1A_y_U_Rq_e1_q __pyx_string_tab[2131]
#define __pyx_kp_b_iso88591_A_4_r_AQ_Ja_q_CuD_a_q __pyx_string_tab[2132]
#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[2133]
#define __pyx_kp_b_iso88591_A_4q_1_Cq_a_fAQ_e1_5Qa_QfAS_1_Cu __pyx_string_tab[2134]
#define __pyx_kp_b_iso88591_A_4q_1_E_fAQ_e1_aq_7q_CuIQa_Yaq __pyx_string_tab[2135]
#define __pyx_kp_b_iso88591_A_4q_4q_A __pyx_string_tab[2136]
#define __pyx_kp_b_iso88591_A_4q_aq_IQd_Q_q_T_d_1L_q __pyx_string_tab[2137]
#define __pyx_kp_b_iso88591_A_4q_xs_XT_D_XT_A_A __pyx_string_tab[2138]
#define __pyx_kp_b_iso88591_A_4t7_7_wa_1D_G1_1_D_vU_U_4q_AQ __pyx_string_tab[2139]
#define __pyx_kp_b_iso88591_A_4t_AQ_AT_7q_1Cq_r_A_2S_1_4Ba_c __pyx_string_tab[2140]
#define __pyx_kp_b_iso88591_A_4t_AQ_Qd_at_Q_AQ_1 __pyx_string_tab[2141]
#define __pyx_kp_b_iso88591_A_4t_AQ_Qd_at_Q_AQ_v __pyx_string_tab[2142]
#define __pyx_kp_b_iso88591_A_4t_Q_AQ_at3Fa_at3Fa_q_q_aq_aq __pyx_string_tab[2143]
#define __pyx_kp_b_iso88591_A_4wc_Q_IT_a_t1D_at1 __pyx_string_tab[2144]
#define __pyx_kp_b_iso88591_A_4wgQa_q_4wgQa __pyx_string_tab[2145]
#define __pyx_kp_b_iso88591_A_4y_q_U_4q_G1_XRt81F_Q_AQ __pyx_string_tab[2146]
#define __pyx_kp_b_iso88591_A_5_4z_q_vV2Q_1A_a_T_c_N_Q_1_RvQ __pyx_string_tab[2147]
#define __pyx_kp_b_iso88591_A_6Q_4_1_4z_4_1_j_1A_q __pyx_string_tab[2148]
#define __pyx_kp_b_iso88591_A_6_6_3c_aq_q __pyx_string_tab[2149]
#define __pyx_kp_b_iso88591_A_6a_t_31_Q __pyx_string_tab[2150]
#define __pyx_kp_b_iso88591_A_83a_aq_waq __pyx_string_tab[2151]
#define __pyx_kp_b_iso88591_A_8_1_q_gS_0_G1_Ya_6_r_Ya_6_r_Ya __pyx_string_tab[2152]
#define __pyx_kp_b_iso88591_A_8_1_q_gS_0_G1_t9A_vRq_9A_vRq_9 __pyx_string_tab[2153]
#define __pyx_kp_b_iso88591_A_8_q_gS_0_9Kq_Q_V1_q __pyx_string_tab[2154]
#define __pyx_kp_b_iso88591_A_AT __pyx_string_tab[2155]
#define __pyx_kp_b_iso88591_A_AT_2 __pyx_string_tab[2156]
#define __pyx_kp_b_iso88591_A_AT_4A_4A_t1_e3at_a_oQit2Qa__AY __pyx_string_tab[2157]
#define __pyx_kp_b_iso88591_A_AT_4A_t1_e3at_a_9IQ_Q_4q_q __pyx_string_tab[2158]
#define __pyx_kp_b_iso88591_A_AT_4A_t9AQ __pyx_string_tab[2159]
#define __pyx_kp_b_iso88591_A_AT_4A_t9AQ_2 __pyx_string_tab[2160]
#define __pyx_kp_b_iso88591_A_AT_4A_t9AQ_3 __pyx_string_tab[2161]
#define __pyx_kp_b_iso88591_A_A_H_gQfHG1_q_1A_6a_4q_IQ __pyx_string_tab[2162]
#define __pyx_kp_b_iso88591_A_A_a_H_7_A_AQ_4_1_AQ_hj_AQ_7_Q __pyx_string_tab[2163]
#define __pyx_kp_b_iso88591_A_Cq_2S_D_1_AQ __pyx_string_tab[2164]
#define __pyx_kp_b_iso88591_A_Cq_E_aq_U_3a_1D_1_1D_2Rr_Bd_Bb __pyx_string_tab[2165]
#define __pyx_kp_b_iso88591_A_D_AQ_1_6LA_1A __pyx_string_tab[2166]
#define __pyx_kp_b_iso88591_A_D_AQ_4q_k __pyx_string_tab[2167]
#define __pyx_kp_b_iso88591_A_D_AQ_7q_a __pyx_string_tab[2168]
#define __pyx_kp_b_iso88591_A_D_AQ_C1 __pyx_string_tab[2169]
#define __pyx_kp_b_iso88591_A_D_AQ_Cq __pyx_string_tab[2170]
#define __pyx_kp_b_iso88591_A_D_AQ_vQha_A_a_t9AQ __pyx_string_tab[2171]
#define __pyx_kp_b_iso88591_A_D_Q_1_1AQ_5S __pyx_string_tab[2172]
#define __pyx_kp_b_iso88591_A_E __pyx_string_tab[2173]
#define __pyx_kp_b_iso88591_A_E_Qd_q_6_4q __pyx_string_tab[2174]
#define __pyx_kp_b_iso88591_A_F_E_Q_uBc_Q_j_q_Qd_S __pyx_string_tab[2175]
#define __pyx_kp_b_iso88591_A_FjPQ_4_1_AQ_0_a_6 __pyx_string_tab[2176]
#define __pyx_kp_b_iso88591_A_IQ __pyx_string_tab[2177]
#define __pyx_kp_b_iso88591_A_IQ_2T_e1D_s_G4q_q_e5_WCt_AS_4q __pyx_string_tab[2178]
#define __pyx_kp_b_iso88591_A_Ja_A_q __pyx_string_tab[2179]
#define __pyx_kp_b_iso88591_A_Jaq_4_1_1_6_A __pyx_string_tab[2180]
#define __pyx_kp_b_iso88591_A_Kq __pyx_string_tab[2181]
#define __pyx_kp_b_iso88591_A_Kq_T_Kq_d_E_aq_Q_Qe3at_1_7_Q_v __pyx_string_tab[2182]
#define __pyx_kp_b_iso88591_A_L_t_4_hfAQ_7_Q_4y_q0A_1_q __pyx_string_tab[2183]
#define __pyx_kp_b_iso88591_A_L_t_6_A_at_B_PQQR_wc_vQ_Qd_1N __pyx_string_tab[2184]
#define __pyx_kp_b_iso88591_A_O4 __pyx_string_tab[2185]
#define __pyx_kp_b_iso88591_A_Q_1_Cq_1_AQ_E_at_0_6_9AYaxq_q __pyx_string_tab[2186]
#define __pyx_kp_b_iso88591_A_Qa __pyx_string_tab[2187]
#define __pyx_kp_b_iso88591_A_Qc_4z_81D_2Rq_HBa_2Rt1_a_4waq __pyx_string_tab[2188]
#define __pyx_kp_b_iso88591_A_Qc_4z_81D_9G3d_5_6_1_s_T_9_AQ __pyx_string_tab[2189]
#define __pyx_kp_b_iso88591_A_Qc_4z_81D_9G3d_e1BfA_1_s_T_9_A __pyx_string_tab[2190]
#define __pyx_kp_b_iso88591_A_Qc_4z_81D_A_U_3a_6_as_Q_0_9Cs __pyx_string_tab[2191]
#define __pyx_kp_b_iso88591_A_Qc_4z_81D_E_at_A_Jat_q_WBa_wb __pyx_string_tab[2192]
#define __pyx_kp_b_iso88591_A_Qc_4z_81D_q_N_Q __pyx_string_tab[2193]
#define __pyx_kp_b_iso88591_A_Qc_Zr_l_iq_j_1Ba_1D_Cq_a_1_3ax __pyx_string_tab[2194]
#define __pyx_kp_b_iso88591_A_Qd_4AQ_G9D_ar_U_q_AQd_1BgQb_uA __pyx_string_tab[2195]
#define __pyx_kp_b_iso88591_A_Qd_4AQ_a_E_at_4_aq_uE_waq_E_at __pyx_string_tab[2196]
#define __pyx_kp_b_iso88591_A_S_2_47J_1_4q_AQ_E_aq_0_1_0 __pyx_string_tab[2197]
#define __pyx_kp_b_iso88591_A_S_Q_s_1D_s_at1_AQ __pyx_string_tab[2198]
#define __pyx_kp_b_iso88591_A_T_D_A __pyx_string_tab[2199]
#define __pyx_kp_b_iso88591_A_T_Qa_7q_q_A_aq_G9M_q_t9A_1D_t __pyx_string_tab[2200]
#define __pyx_kp_b_iso88591_A_WA_c_ir_5_A_2T_d_q_3b_3b_Ct9D __pyx_string_tab[2201]
#define __pyx_kp_b_iso88591_A_X_j_A __pyx_string_tab[2202]
#define __pyx_kp_b_iso88591_A_Yaq_0 __pyx_string_tab[2203]
#define __pyx_kp_b_iso88591_A_a __pyx_string_tab[2204]
#define __pyx_kp_b_iso88591_A_a_4_1_AQ_4_9_Cr_AT_3a_r_1_1E_q __pyx_string_tab[2205]
#define __pyx_kp_b_iso88591_A_a_E_Q_b_T_G1 __pyx_string_tab[2206]
#define __pyx_kp_b_iso88591_A_a_E_at_q_A_1A_AQ_AQ_Qd_4q_wa_k __pyx_string_tab[2207]
#define __pyx_kp_b_iso88591_A_aq_E_JfA_q_waq_QfE_1_IWAQ __pyx_string_tab[2208]
#define __pyx_kp_b_iso88591_A_at1_aq_q __pyx_string_tab[2209]
#define __pyx_kp_b_iso88591_A_axq_q_t9AQ __pyx_string_tab[2210]
#define __pyx_kp_b_iso88591_A_c_1_1_1_d_a_d_Q_O1D_Jaq__A_4uA __pyx_string_tab[2211]
#define __pyx_kp_b_iso88591_A_e1_5Q7_a_0_F_QoQ_Q_4wgQ_1_t7_q __pyx_string_tab[2212]
#define __pyx_kp_b_iso88591_A_iq_1 __pyx_string_tab[2213]
#define __pyx_kp_b_iso88591_A_j_4_1_AQ_S_c_S_1M_Cq_Qa_AQ_q_1 __pyx_string_tab[2214]
#define __pyx_kp_b_iso88591_A_nAQ __pyx_string_tab[2215]
#define __pyx_kp_b_iso88591_A_q __pyx_string_tab[2216]
#define __pyx_kp_b_iso88591_A_q_2 __pyx_string_tab[2217]
#define __pyx_kp_b_iso88591_A_q_4_1_AQ_gQ_A_D_G6_3a_j_q_A_S __pyx_string_tab[2218]
#define __pyx_kp_b_iso88591_A_q_A_4 __pyx_string_tab[2219]
#define __pyx_kp_b_iso88591_A_q_A_at1_Qd_d_d_d_Qd_T_U_1_WAT __pyx_string_tab[2220]
#define __pyx_kp_b_iso88591_A_q_Yd_Ct3d_uAT_E_at1 __pyx_string_tab[2221]
#define __pyx_kp_b_iso88591_A_qt_4_1_AQ_gQ_A_D_G6_3a_A__4E_j __pyx_string_tab[2222]
#define __pyx_kp_b_iso88591_A_r_3a_oQa_r_t3a_l_1_T_Cs_AZxr __pyx_string_tab[2223]
#define __pyx_kp_b_iso88591_A_s_1AQb_Rq_2Rr_Baq_Bb_2Qar_3d_u __pyx_string_tab[2224]
#define __pyx_kp_b_iso88591_A_s_1Bd_t_S_Q __pyx_string_tab[2225]
#define __pyx_kp_b_iso88591_A_s_1_a __pyx_string_tab[2226]
#define __pyx_kp_b_iso88591_A_s_1_a_2 __pyx_string_tab[2227]
#define __pyx_kp_b_iso88591_A_s_31D __pyx_string_tab[2228]
#define __pyx_kp_b_iso88591_A_s_4_1 __pyx_string_tab[2229]
#define __pyx_kp_b_iso88591_A_s_4q __pyx_string_tab[2230]
#define __pyx_kp_b_iso88591_A_s_Qd __pyx_string_tab[2231]
#define __pyx_kp_b_iso88591_A_s_iq_1_j_A_U_q_A __pyx_string_tab[2232]
#define __pyx_kp_b_iso88591_A_s_q_A __pyx_string_tab[2233]
#define __pyx_kp_b_iso88591_A_s_q_A06fF __pyx_string_tab[2234]
#define __pyx_kp_b_iso88591_A_t __pyx_string_tab[2235]
#define __pyx_kp_b_iso88591_A_t1 __pyx_string_tab[2236]
#define __pyx_kp_b_iso88591_A_t1D __pyx_string_tab[2237]
#define __pyx_kp_b_iso88591_A_t1_2 __pyx_string_tab[2238]
#define __pyx_kp_b_iso88591_A_t1_3 __pyx_string_tab[2239]
#define __pyx_kp_b_iso88591_A_t2V5_as_e7_A __pyx_string_tab[2240]
#define __pyx_kp_b_iso88591_A_t5_D_Qat2Rr_T_d_Q_4uAT_b_Q_s_1 __pyx_string_tab[2241]
#define __pyx_kp_b_iso88591_A_t7_gT __pyx_string_tab[2242]
#define __pyx_kp_b_iso88591_A_t9E __pyx_string_tab[2243]
#define __pyx_kp_b_iso88591_A_t_2 __pyx_string_tab[2244]
#define __pyx_kp_b_iso88591_A_t_AQ __pyx_string_tab[2245]
#define __pyx_kp_b_iso88591_A_t_Q_whd_a_E_at_Q_Cs_at1A_1Cq_S __pyx_string_tab[2246]
#define __pyx_kp_b_iso88591_A_t_a __pyx_string_tab[2247]
#define __pyx_kp_b_iso88591_A_t_a_2 __pyx_string_tab[2248]
#define __pyx_kp_b_iso88591_A_t_q __pyx_string_tab[2249]
#define __pyx_kp_b_iso88591_A_vQ __pyx_string_tab[2250]
#define __pyx_kp_b_iso88591_A_vT_Q __pyx_string_tab[2251]
#define __pyx_kp_b_iso88591_A_v_Qa __pyx_string_tab[2252]
#define __pyx_kp_b_iso88591_Ax_EQa __pyx_string_tab[2253]
#define __pyx_kp_b_iso88591_Az_Na_a __pyx_string_tab[2254]
#define __pyx_kp_b_iso88591_B_4_a_Q_A_G9A_1D0Gq_q_q_Ya_WAQ __pyx_string_tab[2255]
#define __pyx_kp_b_iso88591_B_V1F_7_A_a __pyx_string_tab[2256]
#define __pyx_kp_b_iso88591_Bb_3a_Q_Cq_Q_X_0_q_2Q_aq_Qa_wav __pyx_string_tab[2257]
#define __pyx_kp_b_iso88591_D_AQ_4q_A_A_4_Qk_q_t9AT_Yaq __pyx_string_tab[2258]
#define __pyx_kp_b_iso88591_D_AQ_q_B_t9AQ __pyx_string_tab[2259]
#define __pyx_kp_b_iso88591_M_A_6_A_1_1G_Q_8_XQa_1_5_q_wfA __pyx_string_tab[2260]
#define __pyx_kp_b_iso88591_Q_1_D_q_vQaq_q_6a_avQc_U_q_AQ_1 __pyx_string_tab[2261]
#define __pyx_kp_b_iso88591_Q_3 __pyx_string_tab[2262]
#define __pyx_kp_b_iso88591_Q_4_1_1_1D_8 __pyx_string_tab[2263]
#define __pyx_kp_b_iso88591_Q_4_1_AQ_S_A_Qa_q_6a __pyx_string_tab[2264]
#define __pyx_kp_b_iso88591_Q_4t_AQ_Q_G6 __pyx_string_tab[2265]
#define __pyx_kp_b_iso88591_Q_4uD_JavZq_XQa_Kq __pyx_string_tab[2266]
#define __pyx_kp_b_iso88591_Q_7_fBc_AQ_a_1 __pyx_string_tab[2267]
#define __pyx_kp_b_iso88591_Qe1 __pyx_string_tab[2268]
#define __pyx_kp_b_iso88591_T_4_1_AQ_0_Q_1_1_q __pyx_string_tab[2269]
#define __pyx_kp_b_iso88591_T_Kt_itSZZ_mmqqr_G1F_a_vWE_Q_q __pyx_string_tab[2270]
#define __pyx_kp_b_iso88591__42 __pyx_string_tab[2271]
#define __pyx_kp_b_iso88591__43 __pyx_string_tab[2272]
#define __pyx_kp_b_iso88591__44 __pyx_string_tab[2273]
#define __pyx_kp_b_iso88591__45 __pyx_string_tab[2274]
#define __pyx_kp_b_iso88591__46 __pyx_string_tab[2275]
#define __pyx_kp_b_iso88591_aH_T_q_1_D_r_4y __pyx_string_tab[2276]
#define __pyx_kp_b_iso88591_a_1_4_q_AQ_0_1 __pyx_string_tab[2277]
#define __pyx_kp_b_iso88591_a_3 __pyx_string_tab[2278]
#define __pyx_kp_b_iso88591_a_4_1_vQ_AT __pyx_string_tab[2279]
#define __pyx_kp_b_iso88591_a_A_1_Q_q_1_1_q_1 __pyx_string_tab[2280]
#define __pyx_kp_b_iso88591_a_IX_G1_E_6_q_7_1_q __pyx_string_tab[2281]
#define __pyx_kp_b_iso88591_a_Qm1_a_Q_at5_2V2Q_Q_1D_Q_Q_we1 __pyx_string_tab[2282]
#define __pyx_kp_b_iso88591_b_auBb_E_Qb_Cq_c_D_1Ba_AS_S_AS __pyx_string_tab[2283]
#define __pyx_kp_b_iso88591_j_T_Qa_1_q_0_k_q_a_4z_BgQ_l_1 __pyx_string_tab[2284]
#define __pyx_kp_b_iso88591_oQ_A_1_Q_at_1_at __pyx_string_tab[2285]
#define __pyx_kp_b_iso88591_q __pyx_string_tab[2286]
#define __pyx_kp_b_iso88591_q4_4_1_G6 __pyx_string_tab[2287]
#define __pyx_kp_b_iso88591_qP_4_1_AQ_1D_Q_Q_G9A_q_1_Q_1_iq __pyx_string_tab[2288]
#define __pyx_kp_b_iso88591_q_0_kQR_XQa_7_4A5J_XY_1 __pyx_string_tab[2289]
#define __pyx_kp_b_iso88591_q_1 __pyx_string_tab[2290]
#define __pyx_kp_b_iso88591_q_4_1_1_4_1_aq_a_as_1_1_1_Ba_1 __pyx_string_tab[2291]
#define __pyx_kp_b_iso88591_q_4_1_AQ_4z_Ba_A_ggnnooss_q_a_E __pyx_string_tab[2292]
#define __pyx_kp_b_iso88591_q_4_1_at1_q_a __pyx_string_tab[2293]
#define __pyx_kp_b_iso88591_q_4was_1A_4q_d_6_az_4z_Q_aq_4q __pyx_string_tab[2294]
#define __pyx_kp_b_iso88591_q_A_1 __pyx_string_tab[2295]
#define __pyx_kp_b_iso88591_q_A_1A_aq_1_AQ_Yaq_Q__AQ_1 __pyx_string_tab[2296]
#define __pyx_kp_b_iso88591_q_A_E_WN_Zq_E_q_Rs_Q_2_A_r_1_WA __pyx_string_tab[2297]
#define __pyx_kp_b_iso88591_q_A_Qhc_aq_G6 __pyx_string_tab[2298]
#define __pyx_kp_b_iso88591_q_D_AQ_axq_1_a_t9AQ __pyx_string_tab[2299]
#define __pyx_kp_b_iso88591_q_D_AQ_vQha_J_a_t9AQ __pyx_string_tab[2300]
#define __pyx_kp_b_iso88591_q_E_at86_1_a_1_a __pyx_string_tab[2301]
#define __pyx_kp_b_iso88591_q_F_Q_r_e1A_AQ_X_j_V1_Jc_31_iq __pyx_string_tab[2302]
#define __pyx_kp_b_iso88591_q_Q_7q_A_A_1_A_1_q __pyx_string_tab[2303]
#define __pyx_kp_b_iso88591_q_j __pyx_string_tab[2304]
#define __pyx_kp_b_iso88591_q_r_HD_t87_4q_IT __pyx_string_tab[2305]
#define __pyx_kp_b_iso88591_q_vS_r_e1A_4q_0DJa_a_Jc_6a_iq_a __pyx_string_tab[2306]
#define __pyx_kp_b_iso88591_r_AQk_XX_81_Zq_j_at1AXU_1HAV6_1 __pyx_string_tab[2307]
#define __pyx_kp_b_iso88591_s_3c_t1A_1_E_QfARq_E_QfARq __pyx_string_tab[2308]
#define __pyx_kp_b_iso88591_t81F __pyx_string_tab[2309]
#define __pyx_kp_b_iso88591_t81F_2 __pyx_string_tab[2310]
#define __pyx_kp_b_iso88591_t_QfA_iq_b_HJb_9_1A_uBb_b_1_j_v __pyx_string_tab[2311]
#define __pyx_kp_b_iso88591_uARq_j_Ba __pyx_string_tab[2312]
#define __pyx_kp_b_iso88591_wj_8q_31_4_1_AQ_4wgQ_8_q_A_7_Q __pyx_string_tab[2313]
#define __pyx_kp_b_pickle __pyx_string_tab[2314]
#define __pyx_n_b_from_data __pyx_string_tab[2315]
#define __pyx_n_b_pickle_2 __pyx_string_tab[2316]
#define __pyx_float_0_0 __pyx_number_tab[0]
#define __pyx_float_0_1 __pyx_number_tab[1]
#define __pyx_float_0_2 __pyx_number_tab[2]
#define __pyx_float_0_9 __pyx_number_tab[3]
#define __pyx_float_1_0 __pyx_number_tab[4]
#define __pyx_float_1eneg_9 __pyx_number_tab[5]
#define __pyx_int_0 __pyx_number_tab[6]
#define __pyx_int_neg_1 __pyx_number_tab[7]
#define __pyx_int_1 __pyx_number_tab[8]
#define __pyx_int_2 __pyx_number_tab[9]
#define __pyx_int_neg_3 __pyx_number_tab[10]
#define __pyx_int_3 __pyx_number_tab[11]
#define __pyx_int_4 __pyx_number_tab[12]
#define __pyx_int_5 __pyx_number_tab[13]
#define __pyx_int_6 __pyx_number_tab[14]
#define __pyx_int_7 __pyx_number_tab[15]
#define __pyx_int_8 __pyx_number_tab[16]
#define __pyx_int_9 __pyx_number_tab[17]
#define __pyx_int_10 __pyx_number_tab[18]
#define __pyx_int_11 __pyx_number_tab[19]
#define __pyx_int_12 __pyx_number_tab[20]
#define __pyx_int_13 __pyx_number_tab[21]
#define __pyx_int_14 __pyx_number_tab[22]
#define __pyx_int_15 __pyx_number_tab[23]
#define __pyx_int_16 __pyx_number_tab[24]
#define __pyx_int_17 __pyx_number_tab[25]
#define __pyx_int_18 __pyx_number_tab[26]
#define __pyx_int_19 __pyx_number_tab[27]
#define __pyx_int_20 __pyx_number_tab[28]
#define __pyx_int_21 __pyx_number_tab[29]
#define __pyx_int_22 __pyx_number_tab[30]
#define __pyx_int_23 __pyx_number_tab[31]
#define __pyx_int_24 __pyx_number_tab[32]
#define __pyx_int_25 __pyx_number_tab[33]
#define __pyx_int_26 __pyx_number_tab[34]
#define __pyx_int_27 __pyx_number_tab[35]
#define __pyx_int_28 __pyx_number_tab[36]
#define __pyx_int_29 __pyx_number_tab[37]
#define __pyx_int_30 __pyx_number_tab[38]
#define __pyx_int_31 __pyx_number_tab[39]
#define __pyx_int_32 __pyx_number_tab[40]
#define __pyx_int_33 __pyx_number_tab[41]
#define __pyx_int_34 __pyx_number_tab[42]
#define __pyx_int_35 __pyx_number_tab[43]
#define __pyx_int_36 __pyx_number_tab[44]
#define __pyx_int_37 __pyx_number_tab[45]
#define __pyx_int_38 __pyx_number_tab[46]
#define __pyx_int_39 __pyx_number_tab[47]
#define __pyx_int_40 __pyx_number_tab[48]
#define __pyx_int_41 __pyx_number_tab[49]
#define __pyx_int_42 __pyx_number_tab[50]
#define __pyx_int_43 __pyx_number_tab[51]
#define __pyx_int_44 __pyx_number_tab[52]
#define __pyx_int_45 __pyx_number_tab[53]
#define __pyx_int_46 __pyx_number_tab[54]
#define __pyx_int_47 __pyx_number_tab[55]
#define __pyx_int_48 __pyx_number_tab[56]
#define __pyx_int_49 __pyx_number_tab[57]
#define __pyx_int_50 __pyx_number_tab[58]
#define __pyx_int_51 __pyx_number_tab[59]
#define __pyx_int_52 __pyx_number_tab[60]
#define __pyx_int_53 __pyx_number_tab[61]
#define __pyx_int_54 __pyx_number_tab[62]
#define __pyx_int_55 __pyx_number_tab[63]
#define __pyx_int_56 __pyx_number_tab[64]
#define __pyx_int_57 __pyx_number_tab[65]
#define __pyx_int_58 __pyx_number_tab[66]
#define __pyx_int_59 __pyx_number_tab[67]
#define __pyx_int_60 __pyx_number_tab[68]
#define __pyx_int_61 __pyx_number_tab[69]
#define __pyx_int_62 __pyx_number_tab[70]
#define __pyx_int_63 __pyx_number_tab[71]
#define __pyx_int_64 __pyx_number_tab[72]
#define __pyx_int_65 __pyx_number_tab[73]
#define __pyx_int_66 __pyx_number_tab[74]
#define __pyx_int_67 __pyx_number_tab[75]
#define __pyx_int_68 __pyx_number_tab[76]
#define __pyx_int_69 __pyx_number_tab[77]
#define __pyx_int_70 __pyx_number_tab[78]
#define __pyx_int_71 __pyx_number_tab[79]
#define __pyx_int_72 __pyx_number_tab[80]
#define __pyx_int_73 __pyx_number_tab[81]
#define __pyx_int_74 __pyx_number_tab[82]
#define __pyx_int_75 __pyx_number_tab[83]
#define __pyx_int_76 __pyx_number_tab[84]
#define __pyx_int_77 __pyx_number_tab[85]
#define __pyx_int_78 __pyx_number_tab[86]
#define __pyx_int_79 __pyx_number_tab[87]
#define __pyx_int_80 __pyx_number_tab[88]
#define __pyx_int_81 __pyx_number_tab[89]
#define __pyx_int_82 __pyx_number_tab[90]
#define __pyx_int_83 __pyx_number_tab[91]
#define __pyx_int_84 __pyx_number_tab[92]
#define __pyx_int_85 __pyx_number_tab[93]
#define __pyx_int_86 __pyx_number_tab[94]
#define __pyx_int_87 __pyx_number_tab[95]
#define __pyx_int_88 __pyx_number_tab[96]
#define __pyx_int_89 __pyx_number_tab[97]
#define __pyx_int_90 __pyx_number_tab[98]
#define __pyx_int_91 __pyx_number_tab[99]
#define __pyx_int_92 __pyx_number_tab[100]
#define __pyx_int_93 __pyx_number_tab[101]
#define __pyx_int_94 __pyx_number_tab[102]
#define __pyx_int_95 __pyx_number_tab[103]
#define __pyx_int_96 __pyx_number_tab[104]
#define __pyx_int_97 __pyx_number_tab[105]
#define __pyx_int_98 __pyx_number_tab[106]
#define __pyx_int_99 __pyx_number_tab[107]
#define __pyx_int_100 __pyx_number_tab[108]
#define __pyx_int_101 __pyx_number_tab[109]
#define __pyx_int_102 __pyx_number_tab[110]
#define __pyx_int_103 __pyx_number_tab[111]
#define __pyx_int_104 __pyx_number_tab[112]
#define __pyx_int_105 __pyx_number_tab[113]
#define __pyx_int_106 __pyx_number_tab[114]
#define __pyx_int_107 __pyx_number_tab[115]
#define __pyx_int_108 __pyx_number_tab[116]
#define __pyx_int_109 __pyx_number_tab[117]
#define __pyx_int_110 __pyx_number_tab[118]
#define __pyx_int_111 __pyx_number_tab[119]
#define __pyx_int_112 __pyx_number_tab[120]
#define __pyx_int_113 __pyx_number_tab[121]
#define __pyx_int_114 __pyx_number_tab[122]
#define __pyx_int_115 __pyx_number_tab[123]
#define __pyx_int_116 __pyx_number_tab[124]
#define __pyx_int_117 __pyx_number_tab[125]
#define __pyx_int_118 __pyx_number_tab[126]
#define __pyx_int_119 __pyx_number_tab[127]
#define __pyx_int_120 __pyx_number_tab[128]
#define __pyx_int_121 __pyx_number_tab[129]
#define __pyx_int_122 __pyx_number_tab[130]
#define __pyx_int_123 __pyx_number_tab[131]
#define __pyx_int_124 __pyx_number_tab[132]
#define __pyx_int_125 __pyx_number_tab[133]
#define __pyx_int_126 __pyx_number_tab[134]
#define __pyx_int_127 __pyx_number_tab[135]
#define __pyx_int_128 __pyx_number_tab[136]
#define __pyx_int_129 __pyx_number_tab[137]
#define __pyx_int_130 __pyx_number_tab[138]
#define __pyx_int_131 __pyx_number_tab[139]
#define __pyx_int_132 __pyx_number_tab[140]
#define __pyx_int_133 __pyx_number_tab[141]
#define __pyx_int_134 __pyx_number_tab[142]
#define __pyx_int_135 __pyx_number_tab[143]
#define __pyx_int_136 __pyx_number_tab[144]
#define __pyx_int_137 __pyx_number_tab[145]
#define __pyx_int_138 __pyx_number_tab[146]
#define __pyx_int_139 __pyx_number_tab[147]
#define __pyx_int_140 __pyx_number_tab[148]
#define __pyx_int_141 __pyx_number_tab[149]
#define __pyx_int_142 __pyx_number_tab[150]
#define __pyx_int_143 __pyx_number_tab[151]
#define __pyx_int_144 __pyx_number_tab[152]
#define __pyx_int_145 __pyx_number_tab[153]
#define __pyx_int_146 __pyx_number_tab[154]
#define __pyx_int_147 __pyx_number_tab[155]
#define __pyx_int_148 __pyx_number_tab[156]
#define __pyx_int_149 __pyx_number_tab[157]
#define __pyx_int_150 __pyx_number_tab[158]
#define __pyx_int_151 __pyx_number_tab[159]
#define __pyx_int_152 __pyx_number_tab[160]
#define __pyx_int_153 __pyx_number_tab[161]
#define __pyx_int_154 __pyx_number_tab[162]
#define __pyx_int_155 __pyx_number_tab[163]
#define __pyx_int_156 __pyx_number_tab[164]
#define __pyx_int_157 __pyx_number_tab[165]
#define __pyx_int_158 __pyx_number_tab[166]
#define __pyx_int_159 __pyx_number_tab[167]
#define __pyx_int_160 __pyx_number_tab[168]
#define __pyx_int_161 __pyx_number_tab[169]
#define __pyx_int_162 __pyx_number_tab[170]
#define __pyx_int_163 __pyx_number_tab[171]
#define __pyx_int_164 __pyx_number_tab[172]
#define __pyx_int_165 __pyx_number_tab[173]
#define __pyx_int_166 __pyx_number_tab[174]
#define __pyx_int_167 __pyx_number_tab[175]
#define __pyx_int_168 __pyx_number_tab[176]
#define __pyx_int_169 __pyx_number_tab[177]
#define __pyx_int_170 __pyx_number_tab[178]
#define __pyx_int_171 __pyx_number_tab[179]
#define __pyx_int_172 __pyx_number_tab[180]
#define __pyx_int_173 __pyx_number_tab[181]
#define __pyx_int_174 __pyx_number_tab[182]
#define __pyx_int_175 __pyx_number_tab[183]
#define __pyx_int_176 __pyx_number_tab[184]
#define __pyx_int_177 __pyx_number_tab[185]
#define __pyx_int_178 __pyx_number_tab[186]
#define __pyx_int_179 __pyx_number_tab[187]
#define __pyx_int_180 __pyx_number_tab[188]
#define __pyx_int_181 __pyx_number_tab[189]
#define __pyx_int_182 __pyx_number_tab[190]
#define __pyx_int_183 __pyx_number_tab[191]
#define __pyx_int_184 __pyx_number_tab[192]
#define __pyx_int_185 __pyx_number_tab[193]
#define __pyx_int_186 __pyx_number_tab[194]
#define __pyx_int_187 __pyx_number_tab[195]
#define __pyx_int_188 __pyx_number_tab[196]
#define __pyx_int_189 __pyx_number_tab[197]
#define __pyx_int_190 __pyx_number_tab[198]
#define __pyx_int_191 __pyx_number_tab[199]
#define __pyx_int_192 __pyx_number_tab[200]
#define __pyx_int_193 __pyx_number_tab[201]
#define __pyx_int_194 __pyx_number_tab[202]
#define __pyx_int_195 __pyx_number_tab[203]
#define __pyx_int_196 __pyx_number_tab[204]
#define __pyx_int_197 __pyx_number_tab[205]
#define __pyx_int_198 __pyx_number_tab[206]
#define __pyx_int_199 __pyx_number_tab[207]
#define __pyx_int_200 __pyx_number_tab[208]
#define __pyx_int_201 __pyx_number_tab[209]
#define __pyx_int_202 __pyx_number_tab[210]
#define __pyx_int_203 __pyx_number_tab[211]
#define __pyx_int_204 __pyx_number_tab[212]
#define __pyx_int_205 __pyx_number_tab[213]
#define __pyx_int_206 __pyx_number_tab[214]
#define __pyx_int_207 __pyx_number_tab[215]
#define __pyx_int_208 __pyx_number_tab[216]
#define __pyx_int_209 __pyx_number_tab[217]
#define __pyx_int_210 __pyx_number_tab[218]
#define __pyx_int_211 __pyx_number_tab[219]
#define __pyx_int_212 __pyx_number_tab[220]
#define __pyx_int_213 __pyx_number_tab[221]
#define __pyx_int_214 __pyx_number_tab[222]
#define __pyx_int_215 __pyx_number_tab[223]
#define __pyx_int_216 __pyx_number_tab[224]
#define __pyx_int_217 __pyx_number_tab[225]
#define __pyx_int_218 __pyx_number_tab[226]
#define __pyx_int_219 __pyx_number_tab[227]
#define __pyx_int_220 __pyx_number_tab[228]
#define __pyx_int_221 __pyx_number_tab[229]
#define __pyx_int_222 __pyx_number_tab[230]
#define __pyx_int_223 __pyx_number_tab[231]
#define __pyx_int_224 __pyx_number_tab[232]
#define __pyx_int_225 __pyx_number_tab[233]
#define __pyx_int_226 __pyx_number_tab[234]
#define __pyx_int_227 __pyx_number_tab[235]
#define __pyx_int_228 __pyx_number_tab[236]
#define __pyx_int_229 __pyx_number_tab[237]
#define __pyx_int_230 __pyx_number_tab[238]
#define __pyx_int_231 __pyx_number_tab[239]
#define __pyx_int_232 __pyx_number_tab[240]
#define __pyx_int_233 __pyx_number_tab[241]
#define __pyx_int_234 __pyx_number_tab[242]
#define __pyx_int_235 __pyx_number_tab[243]
#define __pyx_int_236 __pyx_number_tab[244]
#define __pyx_int_237 __pyx_number_tab[245]
#define __pyx_int_238 __pyx_number_tab[246]
#define __pyx_int_239 __pyx_number_tab[247]
#define __pyx_int_240 __pyx_number_tab[248]
#define __pyx_int_241 __pyx_number_tab[249]
#define __pyx_int_242 __pyx_number_tab[250]
#define __pyx_int_243 __pyx_number_tab[251]
#define __pyx_int_244 __pyx_number_tab[252]
#define __pyx_int_245 __pyx_number_tab[253]
#define __pyx_int_246 __pyx_number_tab[254]
#define __pyx_int_247 __pyx_number_tab[255]
#define __pyx_int_248 __pyx_number_tab[256]
#define __pyx_int_249 __pyx_number_tab[257]
#define __pyx_int_250 __pyx_number_tab[258]
#define __pyx_int_251 __pyx_number_tab[259]
#define __pyx_int_252 __pyx_number_tab[260]
#define __pyx_int_253 __pyx_number_tab[261]
#define __pyx_int_254 __pyx_number_tab[262]
#define __pyx_int_255 __pyx_number_tab[263]
#define __pyx_int_256 __pyx_number_tab[264]
#define __pyx_int_257 __pyx_number_tab[265]
#define __pyx_int_258 __pyx_number_tab[266]
#define __pyx_int_259 __pyx_number_tab[267]
#define __pyx_int_260 __pyx_number_tab[268]
#define __pyx_int_261 __pyx_number_tab[269]
#define __pyx_int_262 __pyx_number_tab[270]
#define __pyx_int_263 __pyx_number_tab[271]
#define __pyx_int_264 __pyx_number_tab[272]
#define __pyx_int_265 __pyx_number_tab[273]
#define __pyx_int_266 __pyx_number_tab[274]
#define __pyx_int_267 __pyx_number_tab[275]
#define __pyx_int_268 __pyx_number_tab[276]
#define __pyx_int_269 __pyx_number_tab[277]
#define __pyx_int_270 __pyx_number_tab[278]
#define __pyx_int_271 __pyx_number_tab[279]
#define __pyx_int_272 __pyx_number_tab[280]
#define __pyx_int_273 __pyx_number_tab[281]
#define __pyx_int_274 __pyx_number_tab[282]
#define __pyx_int_275 __pyx_number_tab[283]
#define __pyx_int_276 __pyx_number_tab[284]
#define __pyx_int_277 __pyx_number_tab[285]
#define __pyx_int_278 __pyx_number_tab[286]
#define __pyx_int_279 __pyx_number_tab[287]
#define __pyx_int_280 __pyx_number_tab[288]
#define __pyx_int_281 __pyx_number_tab[289]
#define __pyx_int_282 __pyx_number_tab[290]
#define __pyx_int_283 __pyx_number_tab[291]
#define __pyx_int_284 __pyx_number_tab[292]
#define __pyx_int_285 __pyx_number_tab[293]
#define __pyx_int_286 __pyx_number_tab[294]
#define __pyx_int_287 __pyx_number_tab[295]
#define __pyx_int_288 __pyx_number_tab[296]
#define __pyx_int_289 __pyx_number_tab[297]
#define __pyx_int_290 __pyx_number_tab[298]
#define __pyx_int_291 __pyx_number_tab[299]
#define __pyx_int_292 __pyx_number_tab[300]
#define __pyx_int_293 __pyx_number_tab[301]
#define __pyx_int_294 __pyx_number_tab[302]
#define __pyx_int_295 __pyx_number_tab[303]
#define __pyx_int_296 __pyx_number_tab[304]
#define __pyx_int_297 __pyx_number_tab[305]
#define __pyx_int_298 __pyx_number_tab[306]
#define __pyx_int_299 __pyx_number_tab[307]
#define __pyx_int_300 __pyx_number_tab[308]
#define __pyx_int_301 __pyx_number_tab[309]
#define __pyx_int_302 __pyx_number_tab[310]
#define __pyx_int_303 __pyx_number_tab[311]
#define __pyx_int_304 __pyx_number_tab[312]
#define __pyx_int_305 __pyx_number_tab[313]
#define __pyx_int_306 __pyx_number_tab[314]
#define __pyx_int_307 __pyx_number_tab[315]
#define __pyx_int_308 __pyx_number_tab[316]
#define __pyx_int_309 __pyx_number_tab[317]
#define __pyx_int_310 __pyx_number_tab[318]
#define __pyx_int_311 __pyx_number_tab[319]
#define __pyx_int_312 __pyx_number_tab[320]
#define __pyx_int_313 __pyx_number_tab[321]
#define __pyx_int_314 __pyx_number_tab[322]
#define __pyx_int_315 __pyx_number_tab[323]
#define __pyx_int_316 __pyx_number_tab[324]
#define __pyx_int_317 __pyx_number_tab[325]
#define __pyx_int_318 __pyx_number_tab[326]
#define __pyx_int_319 __pyx_number_tab[327]
#define __pyx_int_320 __pyx_number_tab[328]
#define __pyx_int_321 __pyx_number_tab[329]
#define __pyx_int_322 __pyx_number_tab[330]
#define __pyx_int_323 __pyx_number_tab[331]
#define __pyx_int_324 __pyx_number_tab[332]
#define __pyx_int_325 __pyx_number_tab[333]
#define __pyx_int_326 __pyx_number_tab[334]
#define __pyx_int_327 __pyx_number_tab[335]
#define __pyx_int_328 __pyx_number_tab[336]
#define __pyx_int_329 __pyx_number_tab[337]
#define __pyx_int_330 __pyx_number_tab[338]
#define __pyx_int_331 __pyx_number_tab[339]
#define __pyx_int_332 __pyx_number_tab[340]
#define __pyx_int_333 __pyx_number_tab[341]
#define __pyx_int_334 __pyx_number_tab[342]
#define __pyx_int_335 __pyx_number_tab[343]
#define __pyx_int_336 __pyx_number_tab[344]
#define __pyx_int_337 __pyx_number_tab[345]
#define __pyx_int_338 __pyx_number_tab[346]
#define __pyx_int_339 __pyx_number_tab[347]
#define __pyx_int_340 __pyx_number_tab[348]
#define __pyx_int_341 __pyx_number_tab[349]
#define __pyx_int_342 __pyx_number_tab[350]
#define __pyx_int_343 __pyx_number_tab[351]
#define __pyx_int_344 __pyx_number_tab[352]
#define __pyx_int_345 __pyx_number_tab[353]
#define __pyx_int_346 __pyx_number_tab[354]
#define __pyx_int_347 __pyx_number_tab[355]
#define __pyx_int_348 __pyx_number_tab[356]
#define __pyx_int_349 __pyx_number_tab[357]
#define __pyx_int_350 __pyx_number_tab[358]
#define __pyx_int_351 __pyx_number_tab[359]
#define __pyx_int_352 __pyx_number_tab[360]
#define __pyx_int_353 __pyx_number_tab[361]
#define __pyx_int_354 __pyx_number_tab[362]
#define __pyx_int_355 __pyx_number_tab[363]
#define __pyx_int_356 __pyx_number_tab[364]
#define __pyx_int_357 __pyx_number_tab[365]
#define __pyx_int_358 __pyx_number_tab[366]
#define __pyx_int_359 __pyx_number_tab[367]
#define __pyx_int_360 __pyx_number_tab[368]
#define __pyx_int_361 __pyx_number_tab[369]
#define __pyx_int_362 __pyx_number_tab[370]
#define __pyx_int_363 __pyx_number_tab[371]
#define __pyx_int_364 __pyx_number_tab[372]
#define __pyx_int_365 __pyx_number_tab[373]
#define __pyx_int_366 __pyx_number_tab[374]
#define __pyx_int_367 __pyx_number_tab[375]
#define __pyx_int_368 __pyx_number_tab[376]
#define __pyx_int_369 __pyx_number_tab[377]
#define __pyx_int_370 __pyx_number_tab[378]
#define __pyx_int_371 __pyx_number_tab[379]
#define __pyx_int_372 __pyx_number_tab[380]
#define __pyx_int_373 __pyx_number_tab[381]
#define __pyx_int_374 __pyx_number_tab[382]
#define __pyx_int_375 __pyx_number_tab[383]
#define __pyx_int_376 __pyx_number_tab[384]
#define __pyx_int_377 __pyx_number_tab[385]
#define __pyx_int_378 __pyx_number_tab[386]
#define __pyx_int_379 __pyx_number_tab[387]
#define __pyx_int_380 __pyx_number_tab[388]
#define __pyx_int_381 __pyx_number_tab[389]
#define __pyx_int_382 __pyx_number_tab[390]
#define __pyx_int_383 __pyx_number_tab[391]
#define __pyx_int_384 __pyx_number_tab[392]
#define __pyx_int_385 __pyx_number_tab[393]
#define __pyx_int_386 __pyx_number_tab[394]
#define __pyx_int_387 __pyx_number_tab[395]
#define __pyx_int_388 __pyx_number_tab[396]
#define __pyx_int_389 __pyx_number_tab[397]
#define __pyx_int_390 __pyx_number_tab[398]
#define __pyx_int_391 __pyx_number_tab[399]
#define __pyx_int_392 __pyx_number_tab[400]
#define __pyx_int_393 __pyx_number_tab[401]
#define __pyx_int_394 __pyx_number_tab[402]
#define __pyx_int_395 __pyx_number_tab[403]
#define __pyx_int_396 __pyx_number_tab[404]
#define __pyx_int_397 __pyx_number_tab[405]
#define __pyx_int_398 __pyx_number_tab[406]
#define __pyx_int_399 __pyx_number_tab[407]
#define __pyx_int_400 __pyx_number_tab[408]
#define __pyx_int_401 __pyx_number_tab[409]
#define __pyx_int_402 __pyx_number_tab[410]
#define __pyx_int_403 __pyx_number_tab[411]
#define __pyx_int_404 __pyx_number_tab[412]
#define __pyx_int_405 __pyx_number_tab[413]
#define __pyx_int_406 __pyx_number_tab[414]
#define __pyx_int_407 __pyx_number_tab[415]
#define __pyx_int_408 __pyx_number_tab[416]
#define __pyx_int_409 __pyx_number_tab[417]
#define __pyx_int_410 __pyx_number_tab[418]
#define __pyx_int_411 __pyx_number_tab[419]
#define __pyx_int_412 __pyx_number_tab[420]
#define __pyx_int_413 __pyx_number_tab[421]
#define __pyx_int_414 __pyx_number_tab[422]
#define __pyx_int_552 __pyx_number_tab[423]
#define __pyx_int_887 __pyx_number_tab[424]
#define __pyx_int_888 __pyx_number_tab[425]
#define __pyx_int_962 __pyx_number_tab[426]
#define __pyx_int_1260 __pyx_number_tab[427]
#define __pyx_int_1288 __pyx_number_tab[428]
#define __pyx_int_3552 __pyx_number_tab[429]
#define __pyx_int_4878 __pyx_number_tab[430]
#define __pyx_int_5110 __pyx_number_tab[431]
#define __pyx_int_10000 __pyx_number_tab[432]
#define __pyx_int_11031 __pyx_number_tab[433]
#define __pyx_int_12846 __pyx_number_tab[434]
#define __pyx_int_17661 __pyx_number_tab[435]
#define __pyx_int_19536 __pyx_number_tab[436]
#define __pyx_int_27436 __pyx_number_tab[437]
#define __pyx_int_32768 __pyx_number_tab[438]
#define __pyx_int_85263 __pyx_number_tab[439]
#define __pyx_int_168030 __pyx_number_tab[440]
#define __pyx_int_379799 __pyx_number_tab[441]
#define __pyx_int_1008906 __pyx_number_tab[442]
#define __pyx_int_94173347 __pyx_number_tab[443]
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
  __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __Pyx_State_RemoveModule(NULL);
  #endif
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_Triangulation);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_Triangulation);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_Manifold);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_Manifold);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_AbelianGroup);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_AbelianGroup);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_PresentationMatrix);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_PresentationMatrix);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_CFundamentalGroup);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_CFundamentalGroup);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_CHolonomyGroup);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_CHolonomyGroup);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_SymmetryGroup);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_SymmetryGroup);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_CDirichletDomain);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_CDirichletDomain);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy_CCuspNeighborhood);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy_CCuspNeighborhood);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_defaults);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_defaults);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct__genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct_2_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct_3_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct_5_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct_6_face_list);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct_7_genexpr);
  Py_CLEAR(clear_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr);
  Py_CLEAR(clear_module_state->__pyx_type_6SnapPy___pyx_scope_struct_8_genexpr);
  Py_CLEAR(clear_module_state->__pyx_k__29);
  Py_CLEAR(clear_module_state->__pyx_k__31);
  Py_CLEAR(clear_module_state->__pyx_k__38);
  for (int i=0; i<6; ++i) { Py_CLEAR(clear_module_state->__pyx_slice[i]); }
  for (int i=0; i<77; ++i) { Py_CLEAR(clear_module_state->__pyx_tuple[i]); }
  for (int i=0; i<311; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<2317; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<444; ++i) { Py_CLEAR(clear_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_clear_contents ### */
/* CommonTypesMetaclass.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CyFunctionType);

/* Generator.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_GeneratorType);

/* #### Code section: module_state_clear_end ### */
return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_Triangulation);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_Triangulation);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_Manifold);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_Manifold);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_AbelianGroup);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_AbelianGroup);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_PresentationMatrix);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_PresentationMatrix);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_CFundamentalGroup);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_CFundamentalGroup);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_CHolonomyGroup);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_CHolonomyGroup);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_SymmetryGroup);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_SymmetryGroup);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_CDirichletDomain);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_CDirichletDomain);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy_CCuspNeighborhood);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy_CCuspNeighborhood);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_defaults);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_defaults);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct__genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct_2_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct_3_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct_5_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct_6_face_list);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct_7_genexpr);
  Py_VISIT(traverse_module_state->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr);
  Py_VISIT(traverse_module_state->__pyx_type_6SnapPy___pyx_scope_struct_8_genexpr);
  Py_VISIT(traverse_module_state->__pyx_k__29);
  Py_VISIT(traverse_module_state->__pyx_k__31);
  Py_VISIT(traverse_module_state->__pyx_k__38);
  for (int i=0; i<6; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_slice[i]); }
  for (int i=0; i<77; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_tuple[i]); }
  for (int i=0; i<311; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<2317; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<444; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_traverse_contents ### */
/* CommonTypesMetaclass.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CyFunctionType);

/* Generator.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_GeneratorType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */
int SnapPy_test_flag;
Boolean gLongComputationInProgress;
Boolean gLongComputationCancelled;
PyObject *gLongComputationTicker = 0;

/* "cython/numbers/double.pyx":11
 *     double det_error_epsilon
 * 
 * cdef real_to_string(Real x):             # <<<<<<<<<<<<<<
 *     return '%.18f' % x
 * 
*/

static PyObject *__pyx_f_6SnapPy_real_to_string(__pyx_t_6SnapPy_Real __pyx_v_x) {
  PyObject *__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("real_to_string", 0);

  /* "cython/numbers/double.pyx":12
 * 
 * cdef real_to_string(Real x):
 *     return '%.18f' % x             # <<<<<<<<<<<<<<
 * 
 * cdef Real2gen_direct(Real R):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_18f, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/numbers/double.pyx":11
 *     double det_error_epsilon
 * 
 * cdef real_to_string(Real x):             # <<<<<<<<<<<<<<
 *     return '%.18f' % x
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.real_to_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/numbers/double.pyx":14
 *     return '%.18f' % x
 * 
 * cdef Real2gen_direct(Real R):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Real to a pari gen of type t_REAL.
*/

static PyObject *__pyx_f_6SnapPy_Real2gen_direct(__pyx_t_6SnapPy_Real __pyx_v_R) {
  double *__pyx_v_qd;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Real2gen_direct", 0);

  /* "cython/numbers/double.pyx":18
 *     Convert a Real to a pari gen of type t_REAL.
 *     """
 *     cdef double* qd = <double*>&R             # <<<<<<<<<<<<<<
 *     return pari(qd[0])
 * 
*/
  __pyx_v_qd = ((double *)(&__pyx_v_R));

  /* "cython/numbers/double.pyx":19
 *     """
 *     cdef double* qd = <double*>&R
 *     return pari(qd[0])             # <<<<<<<<<<<<<<
 * 
 * cdef Real2gen_string(Real R):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_pari); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble((__pyx_v_qd[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 19, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/numbers/double.pyx":14
 *     return '%.18f' % x
 * 
 * cdef Real2gen_direct(Real R):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Real to a pari gen of type t_REAL.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Real2gen_direct", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/numbers/double.pyx":21
 *     return pari(qd[0])
 * 
 * cdef Real2gen_string(Real R):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Real to a pari gen of type t_REAL.
*/

static PyObject *__pyx_f_6SnapPy_Real2gen_string(__pyx_t_6SnapPy_Real __pyx_v_R) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Real2gen_string", 0);

  /* "cython/numbers/double.pyx":26
 *     This constructs the gen from the string representation of the real.
 *     """
 *     return pari(real_to_string(R))             # <<<<<<<<<<<<<<
 * 
 * cdef Complex gen2Complex(g):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_pari); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_f_6SnapPy_real_to_string(__pyx_v_R); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 26, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/numbers/double.pyx":21
 *     return pari(qd[0])
 * 
 * cdef Real2gen_string(Real R):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Real to a pari gen of type t_REAL.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Real2gen_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/numbers/double.pyx":28
 *     return pari(real_to_string(R))
 * 
 * cdef Complex gen2Complex(g):             # <<<<<<<<<<<<<<
 *     cdef Complex result
 *     result.real, result.imag = g.real(), g.imag()
*/

static Complex __pyx_f_6SnapPy_gen2Complex(PyObject *__pyx_v_g) {
  Complex __pyx_v_result;
  Complex __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  __pyx_t_6SnapPy_Real __pyx_t_4;
  __pyx_t_6SnapPy_Real __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("gen2Complex", 0);

  /* "cython/numbers/double.pyx":30
 * cdef Complex gen2Complex(g):
 *     cdef Complex result
 *     result.real, result.imag = g.real(), g.imag()             # <<<<<<<<<<<<<<
 *     return result
 * 
*/
  __pyx_t_2 = __pyx_v_g;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_real, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 30, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_4 == (double)-1) && PyErr_Occurred())) __PYX_ERR(5, 30, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __pyx_v_g;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_imag, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 30, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_5 = __Pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_5 == (double)-1) && PyErr_Occurred())) __PYX_ERR(5, 30, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_result.real = __pyx_t_4;
  __pyx_v_result.imag = __pyx_t_5;

  /* "cython/numbers/double.pyx":31
 *     cdef Complex result
 *     result.real, result.imag = g.real(), g.imag()
 *     return result             # <<<<<<<<<<<<<<
 * 
 * cdef Real2Number(Real R):
*/
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/numbers/double.pyx":28
 *     return pari(real_to_string(R))
 * 
 * cdef Complex gen2Complex(g):             # <<<<<<<<<<<<<<
 *     cdef Complex result
 *     result.real, result.imag = g.real(), g.imag()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.gen2Complex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/numbers/double.pyx":33
 *     return result
 * 
 * cdef Real2Number(Real R):             # <<<<<<<<<<<<<<
 *     return Number(Real2gen(R))
 * cdef Complex2Number(Complex C):
*/

static PyObject *__pyx_f_6SnapPy_Real2Number(__pyx_t_6SnapPy_Real __pyx_v_R) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Real2Number", 0);

  /* "cython/numbers/double.pyx":34
 * 
 * cdef Real2Number(Real R):
 *     return Number(Real2gen(R))             # <<<<<<<<<<<<<<
 * cdef Complex2Number(Complex C):
 *     return Number(Complex2gen(C))
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_v_6SnapPy_Real2gen(__pyx_v_R); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 34, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/numbers/double.pyx":33
 *     return result
 * 
 * cdef Real2Number(Real R):             # <<<<<<<<<<<<<<
 *     return Number(Real2gen(R))
 * cdef Complex2Number(Complex C):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Real2Number", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/numbers/double.pyx":35
 * cdef Real2Number(Real R):
 *     return Number(Real2gen(R))
 * cdef Complex2Number(Complex C):             # <<<<<<<<<<<<<<
 *     return Number(Complex2gen(C))
*/

static PyObject *__pyx_f_6SnapPy_Complex2Number(Complex __pyx_v_C) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Complex2Number", 0);

  /* "cython/numbers/double.pyx":36
 *     return Number(Real2gen(R))
 * cdef Complex2Number(Complex C):
 *     return Number(Complex2gen(C))             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_f_6SnapPy_Complex2gen(__pyx_v_C); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 36, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/numbers/double.pyx":35
 * cdef Real2Number(Real R):
 *     return Number(Real2gen(R))
 * cdef Complex2Number(Complex C):             # <<<<<<<<<<<<<<
 *     return Number(Complex2gen(C))
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Complex2Number", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":31
 *         from sage.interfaces.abc import GapElement, MagmaElement
 * 
 *         def is_GapElement(elt):             # <<<<<<<<<<<<<<
 *             return isinstance(elt, GapElement)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_1is_GapElement(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_1is_GapElement = {"is_GapElement", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_1is_GapElement, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_1is_GapElement(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_elt = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_GapElement (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_elt,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 31, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 31, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "is_GapElement", 0) < (0)) __PYX_ERR(3, 31, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("is_GapElement", 1, 1, 1, i); __PYX_ERR(3, 31, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 31, __pyx_L3_error)
    }
    __pyx_v_elt = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_GapElement", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 31, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.is_GapElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_is_GapElement(__pyx_self, __pyx_v_elt);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_is_GapElement(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_elt) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_GapElement", 0);

  /* "cython/core/basic.pyx":32
 * 
 *         def is_GapElement(elt):
 *             return isinstance(elt, GapElement)             # <<<<<<<<<<<<<<
 * 
 *         def is_MagmaElement(elt):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_GapElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_elt, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":31
 *         from sage.interfaces.abc import GapElement, MagmaElement
 * 
 *         def is_GapElement(elt):             # <<<<<<<<<<<<<<
 *             return isinstance(elt, GapElement)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.is_GapElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":34
 *             return isinstance(elt, GapElement)
 * 
 *         def is_MagmaElement(elt):             # <<<<<<<<<<<<<<
 *             return isinstance(elt, MagmaElement)
 *     except:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_3is_MagmaElement(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_3is_MagmaElement = {"is_MagmaElement", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_3is_MagmaElement, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_3is_MagmaElement(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_elt = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_MagmaElement (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_elt,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 34, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 34, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "is_MagmaElement", 0) < (0)) __PYX_ERR(3, 34, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("is_MagmaElement", 1, 1, 1, i); __PYX_ERR(3, 34, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 34, __pyx_L3_error)
    }
    __pyx_v_elt = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_MagmaElement", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 34, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.is_MagmaElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_2is_MagmaElement(__pyx_self, __pyx_v_elt);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_2is_MagmaElement(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_elt) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_MagmaElement", 0);

  /* "cython/core/basic.pyx":35
 * 
 *         def is_MagmaElement(elt):
 *             return isinstance(elt, MagmaElement)             # <<<<<<<<<<<<<<
 *     except:
 *         from sage.interfaces.gap import is_GapElement
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_MagmaElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_elt, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 35, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":34
 *             return isinstance(elt, GapElement)
 * 
 *         def is_MagmaElement(elt):             # <<<<<<<<<<<<<<
 *             return isinstance(elt, MagmaElement)
 *     except:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.is_MagmaElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":85
 *     asksaveasfile = None
 * 
 * def valid_index(i, n, format_str):             # <<<<<<<<<<<<<<
 *     """
 *     Return range(n)[i] or raises a nicely formatted IndexError
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_5valid_index(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_4valid_index, "\n    Return range(n)[i] or raises a nicely formatted IndexError\n    using format_str.\n\n    This does several things for us::\n\n        * avoid that cython happily converts a float to an int, so a call\n          such as M.dehn_fill((1,0), 0.6) would succeed.\n        * converts a negative index such as -1 to n - 1\n        * checks that i is in the right range\n        * supports Sage and numpy Integers: they are not python int's but\n          have __index__ (see PEP 357)\n\n    It is faster than reimplementing these behaviors.\n    ");
static PyMethodDef __pyx_mdef_6SnapPy_5valid_index = {"valid_index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_5valid_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_4valid_index};
static PyObject *__pyx_pw_6SnapPy_5valid_index(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_i = 0;
  PyObject *__pyx_v_n = 0;
  PyObject *__pyx_v_format_str = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("valid_index (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_format_str,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 85, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 85, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 85, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 85, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "valid_index", 0) < (0)) __PYX_ERR(3, 85, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("valid_index", 1, 3, 3, i); __PYX_ERR(3, 85, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 85, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 85, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 85, __pyx_L3_error)
    }
    __pyx_v_i = values[0];
    __pyx_v_n = values[1];
    __pyx_v_format_str = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("valid_index", 1, 3, 3, __pyx_nargs); __PYX_ERR(3, 85, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.valid_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_4valid_index(__pyx_self, __pyx_v_i, __pyx_v_n, __pyx_v_format_str);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_4valid_index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_i, PyObject *__pyx_v_n, PyObject *__pyx_v_format_str) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("valid_index", 0);

  /* "cython/core/basic.pyx":101
 *     It is faster than reimplementing these behaviors.
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         return range(n)[i]
 *     except IndexError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cython/core/basic.pyx":102
 *     """
 *     try:
 *         return range(n)[i]             # <<<<<<<<<<<<<<
 *     except IndexError:
 *         raise IndexError(format_str % i)
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_n};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 102, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 102, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      goto __pyx_L7_try_return;

      /* "cython/core/basic.pyx":101
 *     It is faster than reimplementing these behaviors.
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         return range(n)[i]
 *     except IndexError:
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/basic.pyx":103
 *     try:
 *         return range(n)[i]
 *     except IndexError:             # <<<<<<<<<<<<<<
 *         raise IndexError(format_str % i)
 * 
*/
    __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_IndexError))));
    if (__pyx_t_7) {
      __Pyx_AddTraceback("SnapPy.valid_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_8) < 0) __PYX_ERR(3, 103, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_8);

      /* "cython/core/basic.pyx":104
 *         return range(n)[i]
 *     except IndexError:
 *         raise IndexError(format_str % i)             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __pyx_t_10 = NULL;
      __pyx_t_11 = PyNumber_Remainder(__pyx_v_format_str, __pyx_v_i); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 104, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_11};
        __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 104, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_9);
      }
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(3, 104, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;

    /* "cython/core/basic.pyx":101
 *     It is faster than reimplementing these behaviors.
 *     """
 *     try:             # <<<<<<<<<<<<<<
 *         return range(n)[i]
 *     except IndexError:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "cython/core/basic.pyx":85
 *     asksaveasfile = None
 * 
 * def valid_index(i, n, format_str):             # <<<<<<<<<<<<<<
 *     """
 *     Return range(n)[i] or raises a nicely formatted IndexError
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.valid_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":109
 * # A stream for asynchronous messages
 * class MsgIO():
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         if sys.stdout is None:
 *             self.write = None
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_5MsgIO_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_5MsgIO_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_5MsgIO_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_5MsgIO_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 109, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 109, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(3, 109, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(3, 109, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 109, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 109, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.MsgIO.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_5MsgIO___init__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_5MsgIO___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/basic.pyx":110
 * class MsgIO():
 *     def __init__(self):
 *         if sys.stdout is None:             # <<<<<<<<<<<<<<
 *             self.write = None
 *             self.flush = None
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_stdout); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 == Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cython/core/basic.pyx":111
 *     def __init__(self):
 *         if sys.stdout is None:
 *             self.write = None             # <<<<<<<<<<<<<<
 *             self.flush = None
 *         else:
*/
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_write, Py_None) < (0)) __PYX_ERR(3, 111, __pyx_L1_error)

    /* "cython/core/basic.pyx":112
 *         if sys.stdout is None:
 *             self.write = None
 *             self.flush = None             # <<<<<<<<<<<<<<
 *         else:
 *             self.write = sys.stdout.write
*/
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_flush, Py_None) < (0)) __PYX_ERR(3, 112, __pyx_L1_error)

    /* "cython/core/basic.pyx":110
 * class MsgIO():
 *     def __init__(self):
 *         if sys.stdout is None:             # <<<<<<<<<<<<<<
 *             self.write = None
 *             self.flush = None
*/
    goto __pyx_L3;
  }

  /* "cython/core/basic.pyx":114
 *             self.flush = None
 *         else:
 *             self.write = sys.stdout.write             # <<<<<<<<<<<<<<
 *             self.flush = sys.stdout.flush
 * 
*/
  /*else*/ {
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_stdout); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_write); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_write, __pyx_t_2) < (0)) __PYX_ERR(3, 114, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/basic.pyx":115
 *         else:
 *             self.write = sys.stdout.write
 *             self.flush = sys.stdout.flush             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_stdout); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_flush); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_flush, __pyx_t_2) < (0)) __PYX_ERR(3, 115, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_L3:;

  /* "cython/core/basic.pyx":109
 * # A stream for asynchronous messages
 * class MsgIO():
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         if sys.stdout is None:
 *             self.write = None
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.MsgIO.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":121
 * 
 * 
 * def to_str(s):             # <<<<<<<<<<<<<<
 *     return s.decode()
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_7to_str(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_7to_str = {"to_str", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_7to_str, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_7to_str(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_s = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_str (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 121, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 121, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "to_str", 0) < (0)) __PYX_ERR(3, 121, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("to_str", 1, 1, 1, i); __PYX_ERR(3, 121, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 121, __pyx_L3_error)
    }
    __pyx_v_s = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_str", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 121, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.to_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_6to_str(__pyx_self, __pyx_v_s);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_6to_str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_str", 0);

  /* "cython/core/basic.pyx":122
 * 
 * def to_str(s):
 *     return s.decode()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_v_s;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_decode, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":121
 * 
 * 
 * def to_str(s):             # <<<<<<<<<<<<<<
 *     return s.decode()
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.to_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":125
 * 
 * 
 * def bytearray_to_bytes(x):             # <<<<<<<<<<<<<<
 *     return bytes(x)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_9bytearray_to_bytes(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_9bytearray_to_bytes = {"bytearray_to_bytes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_9bytearray_to_bytes, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_9bytearray_to_bytes(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_x = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("bytearray_to_bytes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_x,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 125, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 125, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "bytearray_to_bytes", 0) < (0)) __PYX_ERR(3, 125, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("bytearray_to_bytes", 1, 1, 1, i); __PYX_ERR(3, 125, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 125, __pyx_L3_error)
    }
    __pyx_v_x = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("bytearray_to_bytes", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 125, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.bytearray_to_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8bytearray_to_bytes(__pyx_self, __pyx_v_x);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8bytearray_to_bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("bytearray_to_bytes", 0);

  /* "cython/core/basic.pyx":126
 * 
 * def bytearray_to_bytes(x):
 *     return bytes(x)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_x};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyBytes_Type), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":125
 * 
 * 
 * def bytearray_to_bytes(x):             # <<<<<<<<<<<<<<
 *     return bytes(x)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.bytearray_to_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":129
 * 
 * 
 * def to_byte_str(s):             # <<<<<<<<<<<<<<
 *     return s.encode('utf-8') if type(s) != bytes else s
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_11to_byte_str(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_11to_byte_str = {"to_byte_str", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_11to_byte_str, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_11to_byte_str(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_s = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_byte_str (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 129, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 129, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "to_byte_str", 0) < (0)) __PYX_ERR(3, 129, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("to_byte_str", 1, 1, 1, i); __PYX_ERR(3, 129, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 129, __pyx_L3_error)
    }
    __pyx_v_s = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_byte_str", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 129, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.to_byte_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_10to_byte_str(__pyx_self, __pyx_v_s);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_10to_byte_str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("to_byte_str", 0);

  /* "cython/core/basic.pyx":130
 * 
 * def to_byte_str(s):
 *     return s.encode('utf-8') if type(s) != bytes else s             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_s)), ((PyObject *)(&PyBytes_Type)), Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 130, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(3, 130, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {
    __pyx_t_4 = __pyx_v_s;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_utf_8};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 130, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = __pyx_t_2;
    __pyx_t_2 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_s);
    __pyx_t_1 = __pyx_v_s;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":129
 * 
 * 
 * def to_byte_str(s):             # <<<<<<<<<<<<<<
 *     return s.encode('utf-8') if type(s) != bytes else s
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.to_byte_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":159
 * 
 * 
 * def set_test_flag(int value):             # <<<<<<<<<<<<<<
 *     cdef int old
 *     global SnapPy_test_flag
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13set_test_flag(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13set_test_flag = {"set_test_flag", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13set_test_flag, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13set_test_flag(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_value;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_test_flag (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 159, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 159, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_test_flag", 0) < (0)) __PYX_ERR(3, 159, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_test_flag", 1, 1, 1, i); __PYX_ERR(3, 159, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 159, __pyx_L3_error)
    }
    __pyx_v_value = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_value == (int)-1) && PyErr_Occurred())) __PYX_ERR(3, 159, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_test_flag", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 159, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.set_test_flag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_12set_test_flag(__pyx_self, __pyx_v_value);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12set_test_flag(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_value) {
  int __pyx_v_old;
  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("set_test_flag", 0);

  /* "cython/core/basic.pyx":162
 *     cdef int old
 *     global SnapPy_test_flag
 *     old = SnapPy_test_flag             # <<<<<<<<<<<<<<
 *     SnapPy_test_flag = value
 *     return old
*/
  __pyx_v_old = SnapPy_test_flag;

  /* "cython/core/basic.pyx":163
 *     global SnapPy_test_flag
 *     old = SnapPy_test_flag
 *     SnapPy_test_flag = value             # <<<<<<<<<<<<<<
 *     return old
 * 
*/
  SnapPy_test_flag = __pyx_v_value;

  /* "cython/core/basic.pyx":164
 *     old = SnapPy_test_flag
 *     SnapPy_test_flag = value
 *     return old             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_old); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":159
 * 
 * 
 * def set_test_flag(int value):             # <<<<<<<<<<<<<<
 *     cdef int old
 *     global SnapPy_test_flag
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.set_test_flag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":168
 * 
 * # Implementation of the SnapPea UI functions and their global variables.
 * cdef public void uFatalError(const_char_ptr function,             # <<<<<<<<<<<<<<
 *                              const_char_ptr file) except *:
 *     # Only raise exception the first time so that we see the first
*/

void uFatalError(const char* __pyx_v_function, const char* __pyx_v_file) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  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[5];
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("uFatalError", 0);

  /* "cython/core/basic.pyx":172
 *     # Only raise exception the first time so that we see the first
 *     # uFatalError which is usually the root cause of the problem.
 *     if not PyErr_Occurred():             # <<<<<<<<<<<<<<
 *         raise SnapPeaFatalError('SnapPea crashed in function %s(), '
 *                                 'defined in %s.c.' % (function, file))
*/
  __pyx_t_1 = (!(PyErr_Occurred() != 0));
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/basic.pyx":173
 *     # uFatalError which is usually the root cause of the problem.
 *     if not PyErr_Occurred():
 *         raise SnapPeaFatalError('SnapPea crashed in function %s(), '             # <<<<<<<<<<<<<<
 *                                 'defined in %s.c.' % (function, file))
 * 
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_SnapPeaFatalError); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 173, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);

    /* "cython/core/basic.pyx":174
 *     if not PyErr_Occurred():
 *         raise SnapPeaFatalError('SnapPea crashed in function %s(), '
 *                                 'defined in %s.c.' % (function, file))             # <<<<<<<<<<<<<<
 * 
 * # Global variables used for interrupt processing
*/
    __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_function); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_5), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_file); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_5), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u_SnapPea_crashed_in_function;
    __pyx_t_8[1] = __pyx_t_6;
    __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u_defined_in;
    __pyx_t_8[3] = __pyx_t_7;
    __pyx_t_8[4] = __pyx_mstate_global->__pyx_kp_u_c;

    /* "cython/core/basic.pyx":173
 *     # uFatalError which is usually the root cause of the problem.
 *     if not PyErr_Occurred():
 *         raise SnapPeaFatalError('SnapPea crashed in function %s(), '             # <<<<<<<<<<<<<<
 *                                 'defined in %s.c.' % (function, file))
 * 
*/
    __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_8, 5, 28 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 15 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7) + 3, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7));
    if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 173, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_9 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_9 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_5};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 173, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(3, 173, __pyx_L1_error)

    /* "cython/core/basic.pyx":172
 *     # Only raise exception the first time so that we see the first
 *     # uFatalError which is usually the root cause of the problem.
 *     if not PyErr_Occurred():             # <<<<<<<<<<<<<<
 *         raise SnapPeaFatalError('SnapPea crashed in function %s(), '
 *                                 'defined in %s.c.' % (function, file))
*/
  }

  /* "cython/core/basic.pyx":168
 * 
 * # Implementation of the SnapPea UI functions and their global variables.
 * cdef public void uFatalError(const_char_ptr function,             # <<<<<<<<<<<<<<
 *                              const_char_ptr file) except *:
 *     # Only raise exception the first time so that we see the first
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __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_AddTraceback("SnapPy.uFatalError", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "cython/core/basic.pyx":186
 * 
 * 
 * def SnapPea_interrupt():             # <<<<<<<<<<<<<<
 *     """
 *     The UI can call this to stop SnapPea.  Returns True if SnapPea s busy.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_15SnapPea_interrupt(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_14SnapPea_interrupt, "\n    The UI can call this to stop SnapPea.  Returns True if SnapPea s busy.\n    If SnapPea is busy, the side effect is to set the gLongComputationCancelled\n    flag.\n    ");
static PyMethodDef __pyx_mdef_6SnapPy_15SnapPea_interrupt = {"SnapPea_interrupt", (PyCFunction)__pyx_pw_6SnapPy_15SnapPea_interrupt, METH_NOARGS, __pyx_doc_6SnapPy_14SnapPea_interrupt};
static PyObject *__pyx_pw_6SnapPy_15SnapPea_interrupt(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SnapPea_interrupt (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_14SnapPea_interrupt(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14SnapPea_interrupt(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SnapPea_interrupt", 0);

  /* "cython/core/basic.pyx":194
 *     global gLongComputationCancelled
 *     global gLongComputationInProgress
 *     if gLongComputationInProgress:             # <<<<<<<<<<<<<<
 *         gLongComputationCancelled = True
 *     return gLongComputationInProgress
*/
  __pyx_t_1 = (gLongComputationInProgress != 0);
  if (__pyx_t_1) {

    /* "cython/core/basic.pyx":195
 *     global gLongComputationInProgress
 *     if gLongComputationInProgress:
 *         gLongComputationCancelled = True             # <<<<<<<<<<<<<<
 *     return gLongComputationInProgress
 * 
*/
    gLongComputationCancelled = 1;

    /* "cython/core/basic.pyx":194
 *     global gLongComputationCancelled
 *     global gLongComputationInProgress
 *     if gLongComputationInProgress:             # <<<<<<<<<<<<<<
 *         gLongComputationCancelled = True
 *     return gLongComputationInProgress
*/
  }

  /* "cython/core/basic.pyx":196
 *     if gLongComputationInProgress:
 *         gLongComputationCancelled = True
 *     return gLongComputationInProgress             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_Boolean(gLongComputationInProgress); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":186
 * 
 * 
 * def SnapPea_interrupt():             # <<<<<<<<<<<<<<
 *     """
 *     The UI can call this to stop SnapPea.  Returns True if SnapPea s busy.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SnapPea_interrupt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":199
 * 
 * 
 * cdef public void uLongComputationBegins(const_char_ptr message,             # <<<<<<<<<<<<<<
 *                                         Boolean is_abortable):
 *     global gLongComputationCancelled
*/

void uLongComputationBegins(CYTHON_UNUSED const char* __pyx_v_message, CYTHON_UNUSED Boolean __pyx_v_is_abortable) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("uLongComputationBegins", 0);

  /* "cython/core/basic.pyx":204
 *     global gLongComputationInProgress
 *     global gLongComputationTicker
 *     gLongComputationCancelled = False             # <<<<<<<<<<<<<<
 *     gLongComputationInProgress = True
 *     gLongComputationTicker = time.time()
*/
  gLongComputationCancelled = 0;

  /* "cython/core/basic.pyx":205
 *     global gLongComputationTicker
 *     gLongComputationCancelled = False
 *     gLongComputationInProgress = True             # <<<<<<<<<<<<<<
 *     gLongComputationTicker = time.time()
 * 
*/
  gLongComputationInProgress = 1;

  /* "cython/core/basic.pyx":206
 *     gLongComputationCancelled = False
 *     gLongComputationInProgress = True
 *     gLongComputationTicker = time.time()             # <<<<<<<<<<<<<<
 * 
 * cdef public c_FuncResult uLongComputationContinues() except *:
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_time); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_time); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 206, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_XGOTREF(gLongComputationTicker);
  __Pyx_DECREF_SET(gLongComputationTicker, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":199
 * 
 * 
 * cdef public void uLongComputationBegins(const_char_ptr message,             # <<<<<<<<<<<<<<
 *                                         Boolean is_abortable):
 *     global gLongComputationCancelled
*/

  /* function exit code */
  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_AddTraceback("SnapPy.uLongComputationBegins", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "cython/core/basic.pyx":208
 *     gLongComputationTicker = time.time()
 * 
 * cdef public c_FuncResult uLongComputationContinues() except *:             # <<<<<<<<<<<<<<
 *     global gLongComputationCancelled
 *     global gLongComputationInProgress
*/

FuncResult uLongComputationContinues(void) {
  PyObject *__pyx_v_now = 0;
  FuncResult __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("uLongComputationContinues", 0);

  /* "cython/core/basic.pyx":213
 *     global gLongComputationTicker
 *     cdef now
 *     if gLongComputationCancelled:             # <<<<<<<<<<<<<<
 *         return func_cancelled
 *     elif UI_callback is not None:
*/
  __pyx_t_1 = (gLongComputationCancelled != 0);
  if (__pyx_t_1) {

    /* "cython/core/basic.pyx":214
 *     cdef now
 *     if gLongComputationCancelled:
 *         return func_cancelled             # <<<<<<<<<<<<<<
 *     elif UI_callback is not None:
 *         now = time.time()
*/
    __pyx_r = func_cancelled;
    goto __pyx_L0;

    /* "cython/core/basic.pyx":213
 *     global gLongComputationTicker
 *     cdef now
 *     if gLongComputationCancelled:             # <<<<<<<<<<<<<<
 *         return func_cancelled
 *     elif UI_callback is not None:
*/
  }

  /* "cython/core/basic.pyx":215
 *     if gLongComputationCancelled:
 *         return func_cancelled
 *     elif UI_callback is not None:             # <<<<<<<<<<<<<<
 *         now = time.time()
 *         if now - gLongComputationTicker > 0.2:
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_UI_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = (__pyx_t_2 != Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "cython/core/basic.pyx":216
 *         return func_cancelled
 *     elif UI_callback is not None:
 *         now = time.time()             # <<<<<<<<<<<<<<
 *         if now - gLongComputationTicker > 0.2:
 *             UI_callback()
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_time); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_time); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 216, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_now = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/basic.pyx":217
 *     elif UI_callback is not None:
 *         now = time.time()
 *         if now - gLongComputationTicker > 0.2:             # <<<<<<<<<<<<<<
 *             UI_callback()
 *             gLongComputationTicker = now
*/
    __pyx_t_2 = PyNumber_Subtract(__pyx_v_now, gLongComputationTicker); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = PyObject_RichCompare(__pyx_t_2, __pyx_mstate_global->__pyx_float_0_2, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 217, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(3, 217, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_1) {

      /* "cython/core/basic.pyx":218
 *         now = time.time()
 *         if now - gLongComputationTicker > 0.2:
 *             UI_callback()             # <<<<<<<<<<<<<<
 *             gLongComputationTicker = now
 *     return func_OK
*/
      __pyx_t_2 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_UI_callback); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 218, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
        __pyx_t_6 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 218, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cython/core/basic.pyx":219
 *         if now - gLongComputationTicker > 0.2:
 *             UI_callback()
 *             gLongComputationTicker = now             # <<<<<<<<<<<<<<
 *     return func_OK
 * 
*/
      __Pyx_INCREF(__pyx_v_now);
      __Pyx_XGOTREF(gLongComputationTicker);
      __Pyx_DECREF_SET(gLongComputationTicker, __pyx_v_now);
      __Pyx_GIVEREF(__pyx_v_now);

      /* "cython/core/basic.pyx":217
 *     elif UI_callback is not None:
 *         now = time.time()
 *         if now - gLongComputationTicker > 0.2:             # <<<<<<<<<<<<<<
 *             UI_callback()
 *             gLongComputationTicker = now
*/
    }

    /* "cython/core/basic.pyx":215
 *     if gLongComputationCancelled:
 *         return func_cancelled
 *     elif UI_callback is not None:             # <<<<<<<<<<<<<<
 *         now = time.time()
 *         if now - gLongComputationTicker > 0.2:
*/
  }

  /* "cython/core/basic.pyx":220
 *             UI_callback()
 *             gLongComputationTicker = now
 *     return func_OK             # <<<<<<<<<<<<<<
 * 
 * cdef public void uLongComputationEnds() except*:
*/
  __pyx_r = func_OK;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":208
 *     gLongComputationTicker = time.time()
 * 
 * cdef public c_FuncResult uLongComputationContinues() except *:             # <<<<<<<<<<<<<<
 *     global gLongComputationCancelled
 *     global gLongComputationInProgress
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.uLongComputationContinues", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = (FuncResult) 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_now);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":222
 *     return func_OK
 * 
 * cdef public void uLongComputationEnds() except*:             # <<<<<<<<<<<<<<
 *     global gLongComputationCancelled
 *     global gLongComputationInProgress
*/

void uLongComputationEnds(void) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("uLongComputationEnds", 0);

  /* "cython/core/basic.pyx":225
 *     global gLongComputationCancelled
 *     global gLongComputationInProgress
 *     gLongComputationInProgress = False             # <<<<<<<<<<<<<<
 *     if gLongComputationCancelled:
 *         gLongComputationCancelled = False
*/
  gLongComputationInProgress = 0;

  /* "cython/core/basic.pyx":226
 *     global gLongComputationInProgress
 *     gLongComputationInProgress = False
 *     if gLongComputationCancelled:             # <<<<<<<<<<<<<<
 *         gLongComputationCancelled = False
 *         if UI_callback is not None:
*/
  __pyx_t_1 = (gLongComputationCancelled != 0);
  if (__pyx_t_1) {

    /* "cython/core/basic.pyx":227
 *     gLongComputationInProgress = False
 *     if gLongComputationCancelled:
 *         gLongComputationCancelled = False             # <<<<<<<<<<<<<<
 *         if UI_callback is not None:
 *             UI_callback(interrupted=True)
*/
    gLongComputationCancelled = 0;

    /* "cython/core/basic.pyx":228
 *     if gLongComputationCancelled:
 *         gLongComputationCancelled = False
 *         if UI_callback is not None:             # <<<<<<<<<<<<<<
 *             UI_callback(interrupted=True)
 * 
*/
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_UI_callback); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = (__pyx_t_2 != Py_None);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "cython/core/basic.pyx":229
 *         gLongComputationCancelled = False
 *         if UI_callback is not None:
 *             UI_callback(interrupted=True)             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __pyx_t_3 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_UI_callback); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 229, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
        assert(__pyx_t_3);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
        __pyx_t_5 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
        __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 229, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_interrupted, Py_True, __pyx_t_6, __pyx_callargs+1, 0) < (0)) __PYX_ERR(3, 229, __pyx_L1_error)
        __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 229, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":228
 *     if gLongComputationCancelled:
 *         gLongComputationCancelled = False
 *         if UI_callback is not None:             # <<<<<<<<<<<<<<
 *             UI_callback(interrupted=True)
 * 
*/
    }

    /* "cython/core/basic.pyx":226
 *     global gLongComputationInProgress
 *     gLongComputationInProgress = False
 *     if gLongComputationCancelled:             # <<<<<<<<<<<<<<
 *         gLongComputationCancelled = False
 *         if UI_callback is not None:
*/
  }

  /* "cython/core/basic.pyx":222
 *     return func_OK
 * 
 * cdef public void uLongComputationEnds() except*:             # <<<<<<<<<<<<<<
 *     global gLongComputationCancelled
 *     global gLongComputationInProgress
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.uLongComputationEnds", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "cython/core/basic.pyx":234
 * show_uAcknowledge = False
 * 
 * cdef public void uAcknowledge(const_char_ptr message):             # <<<<<<<<<<<<<<
 *     if show_uAcknowledge:
 *         sys.stderr.write(to_str(<char *> message))
*/

void uAcknowledge(const char* __pyx_v_message) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  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;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("uAcknowledge", 0);

  /* "cython/core/basic.pyx":235
 * 
 * cdef public void uAcknowledge(const_char_ptr message):
 *     if show_uAcknowledge:             # <<<<<<<<<<<<<<
 *         sys.stderr.write(to_str(<char *> message))
 *         sys.stderr.write('\n')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_show_uAcknowledge); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 235, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":236
 * cdef public void uAcknowledge(const_char_ptr message):
 *     if show_uAcknowledge:
 *         sys.stderr.write(to_str(<char *> message))             # <<<<<<<<<<<<<<
 *         sys.stderr.write('\n')
 *     return
*/
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_stderr); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_3 = __pyx_t_5;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_to_str); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyBytes_FromString(((char *)__pyx_v_message)); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_9 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_8};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 236, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_9 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_write, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 236, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":237
 *     if show_uAcknowledge:
 *         sys.stderr.write(to_str(<char *> message))
 *         sys.stderr.write('\n')             # <<<<<<<<<<<<<<
 *     return
 * 
*/
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_stderr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = __pyx_t_3;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_9 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_write, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 237, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":235
 * 
 * cdef public void uAcknowledge(const_char_ptr message):
 *     if show_uAcknowledge:             # <<<<<<<<<<<<<<
 *         sys.stderr.write(to_str(<char *> message))
 *         sys.stderr.write('\n')
*/
  }

  /* "cython/core/basic.pyx":238
 *         sys.stderr.write(to_str(<char *> message))
 *         sys.stderr.write('\n')
 *     return             # <<<<<<<<<<<<<<
 * 
 * cdef public void uAbortMemoryFull():
*/
  goto __pyx_L0;

  /* "cython/core/basic.pyx":234
 * show_uAcknowledge = False
 * 
 * cdef public void uAcknowledge(const_char_ptr message):             # <<<<<<<<<<<<<<
 *     if show_uAcknowledge:
 *         sys.stderr.write(to_str(<char *> message))
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __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_AddTraceback("SnapPy.uAcknowledge", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "cython/core/basic.pyx":240
 *     return
 * 
 * cdef public void uAbortMemoryFull():             # <<<<<<<<<<<<<<
 *     sys.stderr.write('Out of memory.\n')
 *     sys.exit(2)
*/

void uAbortMemoryFull(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("uAbortMemoryFull", 0);

  /* "cython/core/basic.pyx":241
 * 
 * cdef public void uAbortMemoryFull():
 *     sys.stderr.write('Out of memory.\n')             # <<<<<<<<<<<<<<
 *     sys.exit(2)
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_stderr); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __pyx_t_4;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Out_of_memory};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_write, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":242
 * cdef public void uAbortMemoryFull():
 *     sys.stderr.write('Out of memory.\n')
 *     sys.exit(2)             # <<<<<<<<<<<<<<
 * 
 * cdef public int uQuery(const_char_ptr  message,
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_exit); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_int_2};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":240
 *     return
 * 
 * cdef public void uAbortMemoryFull():             # <<<<<<<<<<<<<<
 *     sys.stderr.write('Out of memory.\n')
 *     sys.exit(2)
*/

  /* function exit code */
  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_AddTraceback("SnapPy.uAbortMemoryFull", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "cython/core/basic.pyx":244
 *     sys.exit(2)
 * 
 * cdef public int uQuery(const_char_ptr  message,             # <<<<<<<<<<<<<<
 *                        const_int       num_responses,
 *                        const_char_ptr  responses[],
*/

int uQuery(const char* __pyx_v_message, CYTHON_UNUSED const int __pyx_v_num_responses, const char* *__pyx_v_responses, const int __pyx_v_default_response) {
  char *__pyx_v_default;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  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[5];
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("uQuery", 0);

  /* "cython/core/basic.pyx":251
 *     #  from the user, but for now it is set up to return the default
 *     #  response, to facilitate batch computations.
 *     cdef char *default = <char *> responses[<int> default_response]             # <<<<<<<<<<<<<<
 *     sys.stderr.write('Q: %s\nA:  %s\n' % (<char *> message, default))
 *     return <int> default_response
*/
  __pyx_v_default = ((char *)(__pyx_v_responses[((int)__pyx_v_default_response)]));

  /* "cython/core/basic.pyx":252
 *     #  response, to facilitate batch computations.
 *     cdef char *default = <char *> responses[<int> default_response]
 *     sys.stderr.write('Q: %s\nA:  %s\n' % (<char *> message, default))             # <<<<<<<<<<<<<<
 *     return <int> default_response
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_stderr); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __pyx_t_4;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyBytes_FromString(((char *)__pyx_v_message)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_3), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_default); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_3), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_Q;
  __pyx_t_7[1] = __pyx_t_5;
  __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u_A;
  __pyx_t_7[3] = __pyx_t_6;
  __pyx_t_7[4] = __pyx_mstate_global->__pyx_kp_u_;
  __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_7, 5, 3 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 5 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6));
  if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_write, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":253
 *     cdef char *default = <char *> responses[<int> default_response]
 *     sys.stderr.write('Q: %s\nA:  %s\n' % (<char *> message, default))
 *     return <int> default_response             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = ((int)__pyx_v_default_response);
  goto __pyx_L0;

  /* "cython/core/basic.pyx":244
 *     sys.exit(2)
 * 
 * cdef public int uQuery(const_char_ptr  message,             # <<<<<<<<<<<<<<
 *                        const_int       num_responses,
 *                        const_char_ptr  responses[],
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.uQuery", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":256
 * 
 * 
 * def cy_eval(s):             # <<<<<<<<<<<<<<
 *     return eval(s)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17cy_eval(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17cy_eval = {"cy_eval", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17cy_eval, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17cy_eval(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_s = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cy_eval (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 256, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 256, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "cy_eval", 0) < (0)) __PYX_ERR(3, 256, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cy_eval", 1, 1, 1, i); __PYX_ERR(3, 256, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 256, __pyx_L3_error)
    }
    __pyx_v_s = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cy_eval", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 256, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.cy_eval", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16cy_eval(__pyx_self, __pyx_v_s);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16cy_eval(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cy_eval", 0);

  /* "cython/core/basic.pyx":257
 * 
 * def cy_eval(s):
 *     return eval(s)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __pyx_t_3 = __Pyx_Globals(); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (__pyx_v_s) {
    if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_s, __pyx_v_s) < (0)) __PYX_ERR(3, 257, __pyx_L1_error)
  }
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_s, __pyx_t_3, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_eval, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 257, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":256
 * 
 * 
 * def cy_eval(s):             # <<<<<<<<<<<<<<
 *     return eval(s)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.cy_eval", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":260
 * 
 * 
 * def smith_form(M):             # <<<<<<<<<<<<<<
 *     if _within_sage:
 *         if not hasattr(M, 'elementary_divisors'):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_19smith_form(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_19smith_form = {"smith_form", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_19smith_form, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_19smith_form(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_M = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("smith_form (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_M,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 260, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 260, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "smith_form", 0) < (0)) __PYX_ERR(3, 260, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("smith_form", 1, 1, 1, i); __PYX_ERR(3, 260, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 260, __pyx_L3_error)
    }
    __pyx_v_M = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("smith_form", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 260, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.smith_form", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_18smith_form(__pyx_self, __pyx_v_M);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18smith_form(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_M) {
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_result = NULL;
  CYTHON_UNUSED PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_zeros = NULL;
  PyObject *__pyx_v_nonzeros = NULL;
  PyObject *__pyx_7genexpr__pyx_v_x = NULL;
  PyObject *__pyx_8genexpr1__pyx_v_x = NULL;
  PyObject *__pyx_8genexpr2__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  Py_ssize_t __pyx_t_13;
  PyObject *(*__pyx_t_14)(PyObject *);
  int __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("smith_form", 0);
  __Pyx_INCREF(__pyx_v_M);

  /* "cython/core/basic.pyx":261
 * 
 * def smith_form(M):
 *     if _within_sage:             # <<<<<<<<<<<<<<
 *         if not hasattr(M, 'elementary_divisors'):
 *             M = sage_matrix(M)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 261, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":262
 * def smith_form(M):
 *     if _within_sage:
 *         if not hasattr(M, 'elementary_divisors'):             # <<<<<<<<<<<<<<
 *             M = sage_matrix(M)
 *         m, n = M.nrows(), M.ncols()
*/
    __pyx_t_2 = __Pyx_HasAttr(__pyx_v_M, __pyx_mstate_global->__pyx_n_u_elementary_divisors); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 262, __pyx_L1_error)
    __pyx_t_3 = (!__pyx_t_2);
    if (__pyx_t_3) {

      /* "cython/core/basic.pyx":263
 *     if _within_sage:
 *         if not hasattr(M, 'elementary_divisors'):
 *             M = sage_matrix(M)             # <<<<<<<<<<<<<<
 *         m, n = M.nrows(), M.ncols()
 *         result = M.elementary_divisors(algorithm='pari')
*/
      __pyx_t_4 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_sage_matrix); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        assert(__pyx_t_4);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
        __pyx_t_6 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_M};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 263, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_DECREF_SET(__pyx_v_M, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "cython/core/basic.pyx":262
 * def smith_form(M):
 *     if _within_sage:
 *         if not hasattr(M, 'elementary_divisors'):             # <<<<<<<<<<<<<<
 *             M = sage_matrix(M)
 *         m, n = M.nrows(), M.ncols()
*/
    }

    /* "cython/core/basic.pyx":264
 *         if not hasattr(M, 'elementary_divisors'):
 *             M = sage_matrix(M)
 *         m, n = M.nrows(), M.ncols()             # <<<<<<<<<<<<<<
 *         result = M.elementary_divisors(algorithm='pari')
 *     else:
*/
    __pyx_t_5 = __pyx_v_M;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_nrows, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_4 = __pyx_v_M;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_ncols, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_v_m = __pyx_t_1;
    __pyx_t_1 = 0;
    __pyx_v_n = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/basic.pyx":265
 *             M = sage_matrix(M)
 *         m, n = M.nrows(), M.ncols()
 *         result = M.elementary_divisors(algorithm='pari')             # <<<<<<<<<<<<<<
 *     else:
 *         if not isinstance(M, matrix):
*/
    __pyx_t_1 = __pyx_v_M;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_1, NULL};
      __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 265, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_algorithm, __pyx_mstate_global->__pyx_n_u_pari, __pyx_t_4, __pyx_callargs+1, 0) < (0)) __PYX_ERR(3, 265, __pyx_L1_error)
      __pyx_t_5 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 265, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_v_result = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/basic.pyx":261
 * 
 * def smith_form(M):
 *     if _within_sage:             # <<<<<<<<<<<<<<
 *         if not hasattr(M, 'elementary_divisors'):
 *             M = sage_matrix(M)
*/
    goto __pyx_L3;
  }

  /* "cython/core/basic.pyx":267
 *         result = M.elementary_divisors(algorithm='pari')
 *     else:
 *         if not isinstance(M, matrix):             # <<<<<<<<<<<<<<
 *             M = matrix(M)
 *         m, n = M.shape
*/
  /*else*/ {
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyObject_IsInstance(__pyx_v_M, __pyx_t_5); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(3, 267, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_2 = (!__pyx_t_3);
    if (__pyx_t_2) {

      /* "cython/core/basic.pyx":268
 *     else:
 *         if not isinstance(M, matrix):
 *             M = matrix(M)             # <<<<<<<<<<<<<<
 *         m, n = M.shape
 *         result = [int(x) for x in pari.matrix(m, n, M.entries()).matsnf()]
*/
      __pyx_t_4 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 268, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_1))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
        assert(__pyx_t_4);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
        __pyx_t_6 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_M};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 268, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_DECREF_SET(__pyx_v_M, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "cython/core/basic.pyx":267
 *         result = M.elementary_divisors(algorithm='pari')
 *     else:
 *         if not isinstance(M, matrix):             # <<<<<<<<<<<<<<
 *             M = matrix(M)
 *         m, n = M.shape
*/
    }

    /* "cython/core/basic.pyx":269
 *         if not isinstance(M, matrix):
 *             M = matrix(M)
 *         m, n = M.shape             # <<<<<<<<<<<<<<
 *         result = [int(x) for x in pari.matrix(m, n, M.entries()).matsnf()]
 * 
*/
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_M, __pyx_mstate_global->__pyx_n_u_shape); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 269, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
      PyObject* sequence = __pyx_t_5;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(3, 269, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_4);
      } else {
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 269, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 269, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
      }
      #else
      __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 269, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 269, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      #endif
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_7 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 269, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
      index = 0; __pyx_t_1 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_1)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_1);
      index = 1; __pyx_t_4 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_4)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < (0)) __PYX_ERR(3, 269, __pyx_L1_error)
      __pyx_t_8 = NULL;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(3, 269, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __pyx_v_m = __pyx_t_1;
    __pyx_t_1 = 0;
    __pyx_v_n = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cython/core/basic.pyx":270
 *             M = matrix(M)
 *         m, n = M.shape
 *         result = [int(x) for x in pari.matrix(m, n, M.entries()).matsnf()]             # <<<<<<<<<<<<<<
 * 
 *     # PARI views the input to matsnf0 as square.
*/
    { /* enter inner scope */
      __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 270, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_9 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_pari); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 270, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 270, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_12 = __pyx_v_M;
      __Pyx_INCREF(__pyx_t_12);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
        __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_entries, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 270, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_10);
      }
      __pyx_t_6 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_11))) {
        __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_11);
        assert(__pyx_t_9);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
        __pyx_t_6 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_9, __pyx_v_m, __pyx_v_n, __pyx_t_10};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 270, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __pyx_t_1 = __pyx_t_7;
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_matsnf, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 270, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
        __pyx_t_7 = __pyx_t_4; __Pyx_INCREF(__pyx_t_7);
        __pyx_t_13 = 0;
        __pyx_t_14 = NULL;
      } else {
        __pyx_t_13 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 270, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 270, __pyx_L10_error)
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      for (;;) {
        if (likely(!__pyx_t_14)) {
          if (likely(PyList_CheckExact(__pyx_t_7))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 270, __pyx_L10_error)
              #endif
              if (__pyx_t_13 >= __pyx_temp) break;
            }
            __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_13, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_13;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 270, __pyx_L10_error)
              #endif
              if (__pyx_t_13 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_13));
            #else
            __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_13);
            #endif
            ++__pyx_t_13;
          }
          if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 270, __pyx_L10_error)
        } else {
          __pyx_t_4 = __pyx_t_14(__pyx_t_7);
          if (unlikely(!__pyx_t_4)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(3, 270, __pyx_L10_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_x, __pyx_t_4);
        __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyNumber_Int(__pyx_7genexpr__pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 270, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_4))) __PYX_ERR(3, 270, __pyx_L10_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_7genexpr__pyx_v_x); __pyx_7genexpr__pyx_v_x = 0;
      goto __pyx_L14_exit_scope;
      __pyx_L10_error:;
      __Pyx_XDECREF(__pyx_7genexpr__pyx_v_x); __pyx_7genexpr__pyx_v_x = 0;
      goto __pyx_L1_error;
      __pyx_L14_exit_scope:;
    } /* exit inner scope */
    __pyx_v_result = __pyx_t_5;
    __pyx_t_5 = 0;
  }
  __pyx_L3:;

  /* "cython/core/basic.pyx":273
 * 
 *     # PARI views the input to matsnf0 as square.
 *     if m < n:             # <<<<<<<<<<<<<<
 *         result = result + [0]*(n-m)
 *     if m > n:
*/
  __pyx_t_5 = PyObject_RichCompare(__pyx_v_m, __pyx_v_n, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 273, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":274
 *     # PARI views the input to matsnf0 as square.
 *     if m < n:
 *         result = result + [0]*(n-m)             # <<<<<<<<<<<<<<
 *     if m > n:
 *         for i in range(m - n):
*/
    __pyx_t_5 = PyNumber_Subtract(__pyx_v_n, __pyx_v_m); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(3, 274, __pyx_L1_error);
    { PyObject* __pyx_temp = PyNumber_InPlaceMultiply(__pyx_t_7, __pyx_t_5); if (unlikely(!__pyx_temp)) __PYX_ERR(3, 274, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_temp);
      __Pyx_DECREF(__pyx_t_7);
      __pyx_t_7 = __pyx_temp;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Add(__pyx_v_result, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/basic.pyx":273
 * 
 *     # PARI views the input to matsnf0 as square.
 *     if m < n:             # <<<<<<<<<<<<<<
 *         result = result + [0]*(n-m)
 *     if m > n:
*/
  }

  /* "cython/core/basic.pyx":275
 *     if m < n:
 *         result = result + [0]*(n-m)
 *     if m > n:             # <<<<<<<<<<<<<<
 *         for i in range(m - n):
 *             result.remove(0)
*/
  __pyx_t_5 = PyObject_RichCompare(__pyx_v_m, __pyx_v_n, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 275, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":276
 *         result = result + [0]*(n-m)
 *     if m > n:
 *         for i in range(m - n):             # <<<<<<<<<<<<<<
 *             result.remove(0)
 * 
*/
    __pyx_t_7 = NULL;
    __pyx_t_4 = PyNumber_Subtract(__pyx_v_m, __pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_4};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 276, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_4 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 276, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    for (;;) {
      {
        __pyx_t_5 = __pyx_t_14(__pyx_t_4);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(3, 276, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "cython/core/basic.pyx":277
 *     if m > n:
 *         for i in range(m - n):
 *             result.remove(0)             # <<<<<<<<<<<<<<
 * 
 *     # For consistency with SnapPea, need to switch the order of the factors.
*/
      __pyx_t_7 = __pyx_v_result;
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_int_0};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_remove, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 277, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cython/core/basic.pyx":276
 *         result = result + [0]*(n-m)
 *     if m > n:
 *         for i in range(m - n):             # <<<<<<<<<<<<<<
 *             result.remove(0)
 * 
*/
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/basic.pyx":275
 *     if m < n:
 *         result = result + [0]*(n-m)
 *     if m > n:             # <<<<<<<<<<<<<<
 *         for i in range(m - n):
 *             result.remove(0)
*/
  }

  /* "cython/core/basic.pyx":280
 * 
 *     # For consistency with SnapPea, need to switch the order of the factors.
 *     zeros = [x for x in result if x == 0]             # <<<<<<<<<<<<<<
 *     nonzeros = [x for x in result if x != 0]
 *     nonzeros.sort()
*/
  { /* enter inner scope */
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 280, __pyx_L22_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (likely(PyList_CheckExact(__pyx_v_result)) || PyTuple_CheckExact(__pyx_v_result)) {
      __pyx_t_5 = __pyx_v_result; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_13 = 0;
      __pyx_t_14 = NULL;
    } else {
      __pyx_t_13 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 280, __pyx_L22_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 280, __pyx_L22_error)
    }
    for (;;) {
      if (likely(!__pyx_t_14)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 280, __pyx_L22_error)
            #endif
            if (__pyx_t_13 >= __pyx_temp) break;
          }
          __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_13, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_13;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 280, __pyx_L22_error)
            #endif
            if (__pyx_t_13 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_7 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_13));
          #else
          __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_13);
          #endif
          ++__pyx_t_13;
        }
        if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 280, __pyx_L22_error)
      } else {
        __pyx_t_7 = __pyx_t_14(__pyx_t_5);
        if (unlikely(!__pyx_t_7)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(3, 280, __pyx_L22_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_x, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_2 = (__Pyx_PyLong_BoolEqObjC(__pyx_8genexpr1__pyx_v_x, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 280, __pyx_L22_error)
      if (__pyx_t_2) {
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_8genexpr1__pyx_v_x))) __PYX_ERR(3, 280, __pyx_L22_error)
      }
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x); __pyx_8genexpr1__pyx_v_x = 0;
    goto __pyx_L27_exit_scope;
    __pyx_L22_error:;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x); __pyx_8genexpr1__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L27_exit_scope:;
  } /* exit inner scope */
  __pyx_v_zeros = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/basic.pyx":281
 *     # For consistency with SnapPea, need to switch the order of the factors.
 *     zeros = [x for x in result if x == 0]
 *     nonzeros = [x for x in result if x != 0]             # <<<<<<<<<<<<<<
 *     nonzeros.sort()
 *     return nonzeros + zeros
*/
  { /* enter inner scope */
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 281, __pyx_L30_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (likely(PyList_CheckExact(__pyx_v_result)) || PyTuple_CheckExact(__pyx_v_result)) {
      __pyx_t_5 = __pyx_v_result; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_13 = 0;
      __pyx_t_14 = NULL;
    } else {
      __pyx_t_13 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 281, __pyx_L30_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 281, __pyx_L30_error)
    }
    for (;;) {
      if (likely(!__pyx_t_14)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 281, __pyx_L30_error)
            #endif
            if (__pyx_t_13 >= __pyx_temp) break;
          }
          __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_13, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_13;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 281, __pyx_L30_error)
            #endif
            if (__pyx_t_13 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_7 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_13));
          #else
          __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_13);
          #endif
          ++__pyx_t_13;
        }
        if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 281, __pyx_L30_error)
      } else {
        __pyx_t_7 = __pyx_t_14(__pyx_t_5);
        if (unlikely(!__pyx_t_7)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(3, 281, __pyx_L30_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_8genexpr2__pyx_v_x, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_2 = (__Pyx_PyLong_BoolNeObjC(__pyx_8genexpr2__pyx_v_x, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 281, __pyx_L30_error)
      if (__pyx_t_2) {
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_8genexpr2__pyx_v_x))) __PYX_ERR(3, 281, __pyx_L30_error)
      }
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_x); __pyx_8genexpr2__pyx_v_x = 0;
    goto __pyx_L35_exit_scope;
    __pyx_L30_error:;
    __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_x); __pyx_8genexpr2__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L35_exit_scope:;
  } /* exit inner scope */
  __pyx_v_nonzeros = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/basic.pyx":282
 *     zeros = [x for x in result if x == 0]
 *     nonzeros = [x for x in result if x != 0]
 *     nonzeros.sort()             # <<<<<<<<<<<<<<
 *     return nonzeros + zeros
 * 
*/
  __pyx_t_15 = PyList_Sort(__pyx_v_nonzeros); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 282, __pyx_L1_error)

  /* "cython/core/basic.pyx":283
 *     nonzeros = [x for x in result if x != 0]
 *     nonzeros.sort()
 *     return nonzeros + zeros             # <<<<<<<<<<<<<<
 * 
 * # end smith form code
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = PyNumber_Add(__pyx_v_nonzeros, __pyx_v_zeros); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":260
 * 
 * 
 * def smith_form(M):             # <<<<<<<<<<<<<<
 *     if _within_sage:
 *         if not hasattr(M, 'elementary_divisors'):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.smith_form", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_zeros);
  __Pyx_XDECREF(__pyx_v_nonzeros);
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_x);
  __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x);
  __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_x);
  __Pyx_XDECREF(__pyx_v_M);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":306
 * 
 * # SnapPea memory usage
 * def check_SnapPea_memory():             # <<<<<<<<<<<<<<
 *     verify_my_malloc_usage()
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_21check_SnapPea_memory(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_21check_SnapPea_memory = {"check_SnapPea_memory", (PyCFunction)__pyx_pw_6SnapPy_21check_SnapPea_memory, METH_NOARGS, 0};
static PyObject *__pyx_pw_6SnapPy_21check_SnapPea_memory(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("check_SnapPea_memory (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_20check_SnapPea_memory(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_20check_SnapPea_memory(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("check_SnapPea_memory", 0);

  /* "cython/core/basic.pyx":307
 * # SnapPea memory usage
 * def check_SnapPea_memory():
 *     verify_my_malloc_usage()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  verify_my_malloc_usage(); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 307, __pyx_L1_error)

  /* "cython/core/basic.pyx":306
 * 
 * # SnapPea memory usage
 * def check_SnapPea_memory():             # <<<<<<<<<<<<<<
 *     verify_my_malloc_usage()
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.check_SnapPea_memory", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":310
 * 
 * 
 * def set_rand_seed(seed):             # <<<<<<<<<<<<<<
 *     """
 *     Set seed of the random number generator used for choosing
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_23set_rand_seed(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_22set_rand_seed, "\n    Set seed of the random number generator used for choosing\n    triangulation moves.\n    ");
static PyMethodDef __pyx_mdef_6SnapPy_23set_rand_seed = {"set_rand_seed", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_23set_rand_seed, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_22set_rand_seed};
static PyObject *__pyx_pw_6SnapPy_23set_rand_seed(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_seed = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_rand_seed (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_seed,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 310, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 310, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_rand_seed", 0) < (0)) __PYX_ERR(3, 310, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_rand_seed", 1, 1, 1, i); __PYX_ERR(3, 310, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 310, __pyx_L3_error)
    }
    __pyx_v_seed = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_rand_seed", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 310, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.set_rand_seed", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_22set_rand_seed(__pyx_self, __pyx_v_seed);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_22set_rand_seed(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_seed) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_rand_seed", 0);

  /* "cython/core/basic.pyx":315
 *     triangulation moves.
 *     """
 *     srand(seed)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_unsigned_int(__pyx_v_seed); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(3, 315, __pyx_L1_error)
  srand(__pyx_t_1);

  /* "cython/core/basic.pyx":310
 * 
 * 
 * def set_rand_seed(seed):             # <<<<<<<<<<<<<<
 *     """
 *     Set seed of the random number generator used for choosing
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.set_rand_seed", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":320
 * # Ptolemy utility functions
 * # convert and free an identification of variables structure
 * cdef convert_and_free_identification_of_variables(             # <<<<<<<<<<<<<<
 *         Identification_of_variables c_vars):
 *     var_list = []
*/

static PyObject *__pyx_f_6SnapPy_convert_and_free_identification_of_variables(Identification_of_variables __pyx_v_c_vars) {
  PyObject *__pyx_v_var_list = NULL;
  int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  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;
  size_t __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("convert_and_free_identification_of_variables", 0);

  /* "cython/core/basic.pyx":322
 * cdef convert_and_free_identification_of_variables(
 *         Identification_of_variables c_vars):
 *     var_list = []             # <<<<<<<<<<<<<<
 * 
 *     if c_vars.variables:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_var_list = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":324
 *     var_list = []
 * 
 *     if c_vars.variables:             # <<<<<<<<<<<<<<
 *         for i in range(c_vars.num_identifications):
 *             var_list.append(
*/
  __pyx_t_2 = (__pyx_v_c_vars.variables != 0);
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":325
 * 
 *     if c_vars.variables:
 *         for i in range(c_vars.num_identifications):             # <<<<<<<<<<<<<<
 *             var_list.append(
 *                   (c_vars.signs[i],
*/
    __pyx_t_3 = __pyx_v_c_vars.num_identifications;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cython/core/basic.pyx":327
 *         for i in range(c_vars.num_identifications):
 *             var_list.append(
 *                   (c_vars.signs[i],             # <<<<<<<<<<<<<<
 *                    c_vars.powers[i],
 *                    to_str(c_vars.variables[i][0]),
*/
      __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_c_vars.signs[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 327, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "cython/core/basic.pyx":328
 *             var_list.append(
 *                   (c_vars.signs[i],
 *                    c_vars.powers[i],             # <<<<<<<<<<<<<<
 *                    to_str(c_vars.variables[i][0]),
 *                    to_str(c_vars.variables[i][1])))
*/
      __pyx_t_6 = __Pyx_PyLong_From_int((__pyx_v_c_vars.powers[__pyx_v_i])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 328, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);

      /* "cython/core/basic.pyx":329
 *                   (c_vars.signs[i],
 *                    c_vars.powers[i],
 *                    to_str(c_vars.variables[i][0]),             # <<<<<<<<<<<<<<
 *                    to_str(c_vars.variables[i][1])))
 *     return var_list
*/
      __pyx_t_8 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_to_str); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 329, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PyBytes_FromString(((__pyx_v_c_vars.variables[__pyx_v_i])[0])); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 329, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9);
        assert(__pyx_t_8);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
        __pyx_t_11 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_10};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 329, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }

      /* "cython/core/basic.pyx":330
 *                    c_vars.powers[i],
 *                    to_str(c_vars.variables[i][0]),
 *                    to_str(c_vars.variables[i][1])))             # <<<<<<<<<<<<<<
 *     return var_list
 * 
*/
      __pyx_t_10 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_to_str); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 330, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_12 = __Pyx_PyBytes_FromString(((__pyx_v_c_vars.variables[__pyx_v_i])[1])); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 330, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_11 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_10);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_11 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_12};
        __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 330, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
      }

      /* "cython/core/basic.pyx":327
 *         for i in range(c_vars.num_identifications):
 *             var_list.append(
 *                   (c_vars.signs[i],             # <<<<<<<<<<<<<<
 *                    c_vars.powers[i],
 *                    to_str(c_vars.variables[i][0]),
*/
      __pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 327, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(3, 327, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6) != (0)) __PYX_ERR(3, 327, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_7);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7) != (0)) __PYX_ERR(3, 327, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_9);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_9) != (0)) __PYX_ERR(3, 327, __pyx_L1_error);
      __pyx_t_1 = 0;
      __pyx_t_6 = 0;
      __pyx_t_7 = 0;
      __pyx_t_9 = 0;

      /* "cython/core/basic.pyx":326
 *     if c_vars.variables:
 *         for i in range(c_vars.num_identifications):
 *             var_list.append(             # <<<<<<<<<<<<<<
 *                   (c_vars.signs[i],
 *                    c_vars.powers[i],
*/
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_var_list, __pyx_t_8); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(3, 326, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    }

    /* "cython/core/basic.pyx":324
 *     var_list = []
 * 
 *     if c_vars.variables:             # <<<<<<<<<<<<<<
 *         for i in range(c_vars.num_identifications):
 *             var_list.append(
*/
  }

  /* "cython/core/basic.pyx":331
 *                    to_str(c_vars.variables[i][0]),
 *                    to_str(c_vars.variables[i][1])))
 *     return var_list             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_var_list);
  __pyx_r = __pyx_v_var_list;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":320
 * # Ptolemy utility functions
 * # convert and free an identification of variables structure
 * cdef convert_and_free_identification_of_variables(             # <<<<<<<<<<<<<<
 *         Identification_of_variables c_vars):
 *     var_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __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_12);
  __Pyx_AddTraceback("SnapPy.convert_and_free_identification_of_variables", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_var_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":335
 * 
 * # convert and free an integer matrix from C
 * cdef convert_and_free_integer_matrix(             # <<<<<<<<<<<<<<
 *         Integer_matrix_with_explanations c_matrix):
 *     if not c_matrix.entries:
*/

static PyObject *__pyx_f_6SnapPy_convert_and_free_integer_matrix(Integer_matrix_with_explanations __pyx_v_c_matrix) {
  PyObject *__pyx_v_python_matrix = NULL;
  PyObject *__pyx_v_explain_row = NULL;
  int __pyx_v_i;
  PyObject *__pyx_v_explain_column = NULL;
  int __pyx_8genexpr3__pyx_v_i;
  int __pyx_8genexpr4__pyx_v_j;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("convert_and_free_integer_matrix", 0);

  /* "cython/core/basic.pyx":337
 * cdef convert_and_free_integer_matrix(
 *         Integer_matrix_with_explanations c_matrix):
 *     if not c_matrix.entries:             # <<<<<<<<<<<<<<
 *         return []
 * 
*/
  __pyx_t_1 = (!(__pyx_v_c_matrix.entries != 0));
  if (__pyx_t_1) {

    /* "cython/core/basic.pyx":338
 *         Integer_matrix_with_explanations c_matrix):
 *     if not c_matrix.entries:
 *         return []             # <<<<<<<<<<<<<<
 * 
 *     python_matrix = [[c_matrix.entries[i][j]
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 338, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/basic.pyx":337
 * cdef convert_and_free_integer_matrix(
 *         Integer_matrix_with_explanations c_matrix):
 *     if not c_matrix.entries:             # <<<<<<<<<<<<<<
 *         return []
 * 
*/
  }

  /* "cython/core/basic.pyx":340
 *         return []
 * 
 *     python_matrix = [[c_matrix.entries[i][j]             # <<<<<<<<<<<<<<
 *                       for j in range(c_matrix.num_cols)]
 *                      for i in range(c_matrix.num_rows)]
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 340, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cython/core/basic.pyx":342
 *     python_matrix = [[c_matrix.entries[i][j]
 *                       for j in range(c_matrix.num_cols)]
 *                      for i in range(c_matrix.num_rows)]             # <<<<<<<<<<<<<<
 * 
 *     explain_row = []
*/
    __pyx_t_3 = __pyx_v_c_matrix.num_rows;
    __pyx_t_4 = __pyx_t_3;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_8genexpr3__pyx_v_i = __pyx_t_5;
      { /* enter inner scope */

        /* "cython/core/basic.pyx":340
 *         return []
 * 
 *     python_matrix = [[c_matrix.entries[i][j]             # <<<<<<<<<<<<<<
 *                       for j in range(c_matrix.num_cols)]
 *                      for i in range(c_matrix.num_rows)]
*/
        __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 340, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);

        /* "cython/core/basic.pyx":341
 * 
 *     python_matrix = [[c_matrix.entries[i][j]
 *                       for j in range(c_matrix.num_cols)]             # <<<<<<<<<<<<<<
 *                      for i in range(c_matrix.num_rows)]
 * 
*/
        __pyx_t_7 = __pyx_v_c_matrix.num_cols;
        __pyx_t_8 = __pyx_t_7;
        for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
          __pyx_8genexpr4__pyx_v_j = __pyx_t_9;

          /* "cython/core/basic.pyx":340
 *         return []
 * 
 *     python_matrix = [[c_matrix.entries[i][j]             # <<<<<<<<<<<<<<
 *                       for j in range(c_matrix.num_cols)]
 *                      for i in range(c_matrix.num_rows)]
*/
          __pyx_t_10 = __Pyx_PyLong_From_int(((__pyx_v_c_matrix.entries[__pyx_8genexpr3__pyx_v_i])[__pyx_8genexpr4__pyx_v_j])); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 340, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_10))) __PYX_ERR(3, 340, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        }
      } /* exit inner scope */
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(3, 340, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
  } /* exit inner scope */
  __pyx_v_python_matrix = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":344
 *                      for i in range(c_matrix.num_rows)]
 * 
 *     explain_row = []             # <<<<<<<<<<<<<<
 * 
 *     for i in range(c_matrix.num_rows):
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_explain_row = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":346
 *     explain_row = []
 * 
 *     for i in range(c_matrix.num_rows):             # <<<<<<<<<<<<<<
 *         if c_matrix.explain_row[i]:
 *             explain_row.append(to_str(c_matrix.explain_row[i]))
*/
  __pyx_t_3 = __pyx_v_c_matrix.num_rows;
  __pyx_t_4 = __pyx_t_3;
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "cython/core/basic.pyx":347
 * 
 *     for i in range(c_matrix.num_rows):
 *         if c_matrix.explain_row[i]:             # <<<<<<<<<<<<<<
 *             explain_row.append(to_str(c_matrix.explain_row[i]))
 *         else:
*/
    __pyx_t_1 = ((__pyx_v_c_matrix.explain_row[__pyx_v_i]) != 0);
    if (__pyx_t_1) {

      /* "cython/core/basic.pyx":348
 *     for i in range(c_matrix.num_rows):
 *         if c_matrix.explain_row[i]:
 *             explain_row.append(to_str(c_matrix.explain_row[i]))             # <<<<<<<<<<<<<<
 *         else:
 *             explain_row.append(None)
*/
      __pyx_t_6 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_to_str); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 348, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = __Pyx_PyBytes_FromString((__pyx_v_c_matrix.explain_row[__pyx_v_i])); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 348, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_12 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_10))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_10);
        assert(__pyx_t_6);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
        __pyx_t_12 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_11};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 348, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_explain_row, __pyx_t_2); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(3, 348, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":347
 * 
 *     for i in range(c_matrix.num_rows):
 *         if c_matrix.explain_row[i]:             # <<<<<<<<<<<<<<
 *             explain_row.append(to_str(c_matrix.explain_row[i]))
 *         else:
*/
      goto __pyx_L10;
    }

    /* "cython/core/basic.pyx":350
 *             explain_row.append(to_str(c_matrix.explain_row[i]))
 *         else:
 *             explain_row.append(None)             # <<<<<<<<<<<<<<
 * 
 *     explain_column = []
*/
    /*else*/ {
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_explain_row, Py_None); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(3, 350, __pyx_L1_error)
    }
    __pyx_L10:;
  }

  /* "cython/core/basic.pyx":352
 *             explain_row.append(None)
 * 
 *     explain_column = []             # <<<<<<<<<<<<<<
 * 
 *     for i in range(c_matrix.num_cols):
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_explain_column = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":354
 *     explain_column = []
 * 
 *     for i in range(c_matrix.num_cols):             # <<<<<<<<<<<<<<
 *         if c_matrix.explain_column[i]:
 *             explain_column.append(to_str(c_matrix.explain_column[i]))
*/
  __pyx_t_3 = __pyx_v_c_matrix.num_cols;
  __pyx_t_4 = __pyx_t_3;
  for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "cython/core/basic.pyx":355
 * 
 *     for i in range(c_matrix.num_cols):
 *         if c_matrix.explain_column[i]:             # <<<<<<<<<<<<<<
 *             explain_column.append(to_str(c_matrix.explain_column[i]))
 *         else:
*/
    __pyx_t_1 = ((__pyx_v_c_matrix.explain_column[__pyx_v_i]) != 0);
    if (__pyx_t_1) {

      /* "cython/core/basic.pyx":356
 *     for i in range(c_matrix.num_cols):
 *         if c_matrix.explain_column[i]:
 *             explain_column.append(to_str(c_matrix.explain_column[i]))             # <<<<<<<<<<<<<<
 *         else:
 *             explain_column.append(None)
*/
      __pyx_t_10 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_to_str); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 356, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_6 = __Pyx_PyBytes_FromString((__pyx_v_c_matrix.explain_column[__pyx_v_i])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 356, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_12 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_11))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_11);
        assert(__pyx_t_10);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
        __pyx_t_12 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_6};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 356, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_explain_column, __pyx_t_2); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(3, 356, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":355
 * 
 *     for i in range(c_matrix.num_cols):
 *         if c_matrix.explain_column[i]:             # <<<<<<<<<<<<<<
 *             explain_column.append(to_str(c_matrix.explain_column[i]))
 *         else:
*/
      goto __pyx_L13;
    }

    /* "cython/core/basic.pyx":358
 *             explain_column.append(to_str(c_matrix.explain_column[i]))
 *         else:
 *             explain_column.append(None)             # <<<<<<<<<<<<<<
 * 
 *     free_integer_matrix_with_explanations(c_matrix)
*/
    /*else*/ {
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_explain_column, Py_None); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(3, 358, __pyx_L1_error)
    }
    __pyx_L13:;
  }

  /* "cython/core/basic.pyx":360
 *             explain_column.append(None)
 * 
 *     free_integer_matrix_with_explanations(c_matrix)             # <<<<<<<<<<<<<<
 * 
 *     return python_matrix, explain_row, explain_column
*/
  free_integer_matrix_with_explanations(__pyx_v_c_matrix);

  /* "cython/core/basic.pyx":362
 *     free_integer_matrix_with_explanations(c_matrix)
 * 
 *     return python_matrix, explain_row, explain_column             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_python_matrix);
  __Pyx_GIVEREF(__pyx_v_python_matrix);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_python_matrix) != (0)) __PYX_ERR(3, 362, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_row);
  __Pyx_GIVEREF(__pyx_v_explain_row);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_explain_row) != (0)) __PYX_ERR(3, 362, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_column);
  __Pyx_GIVEREF(__pyx_v_explain_column);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_explain_column) != (0)) __PYX_ERR(3, 362, __pyx_L1_error);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":335
 * 
 * # convert and free an integer matrix from C
 * cdef convert_and_free_integer_matrix(             # <<<<<<<<<<<<<<
 *         Integer_matrix_with_explanations c_matrix):
 *     if not c_matrix.entries:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.convert_and_free_integer_matrix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_python_matrix);
  __Pyx_XDECREF(__pyx_v_explain_row);
  __Pyx_XDECREF(__pyx_v_explain_column);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":367
 * class MatrixWithExplanations():
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):             # <<<<<<<<<<<<<<
 * 
 *         self.matrix = mat
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_22MatrixWithExplanations_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_22MatrixWithExplanations_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_22MatrixWithExplanations_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_22MatrixWithExplanations_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_mat = 0;
  PyObject *__pyx_v_explain_rows = 0;
  PyObject *__pyx_v_explain_columns = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_mat,&__pyx_mstate_global->__pyx_n_u_explain_rows,&__pyx_mstate_global->__pyx_n_u_explain_columns,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 367, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 367, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 367, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 367, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 367, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(3, 367, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, i); __PYX_ERR(3, 367, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 367, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 367, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 367, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 367, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_mat = values[1];
    __pyx_v_explain_rows = values[2];
    __pyx_v_explain_columns = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(3, 367, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.MatrixWithExplanations.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_22MatrixWithExplanations___init__(__pyx_self, __pyx_v_self, __pyx_v_mat, __pyx_v_explain_rows, __pyx_v_explain_columns);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_22MatrixWithExplanations___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mat, PyObject *__pyx_v_explain_rows, PyObject *__pyx_v_explain_columns) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/basic.pyx":369
 *     def __init__(self, mat, explain_rows, explain_columns):
 * 
 *         self.matrix = mat             # <<<<<<<<<<<<<<
 *         self.explain_rows = explain_rows
 *         self.explain_columns = explain_columns
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_matrix, __pyx_v_mat) < (0)) __PYX_ERR(3, 369, __pyx_L1_error)

  /* "cython/core/basic.pyx":370
 * 
 *         self.matrix = mat
 *         self.explain_rows = explain_rows             # <<<<<<<<<<<<<<
 *         self.explain_columns = explain_columns
 * 
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_explain_rows, __pyx_v_explain_rows) < (0)) __PYX_ERR(3, 370, __pyx_L1_error)

  /* "cython/core/basic.pyx":371
 *         self.matrix = mat
 *         self.explain_rows = explain_rows
 *         self.explain_columns = explain_columns             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_explain_columns, __pyx_v_explain_columns) < (0)) __PYX_ERR(3, 371, __pyx_L1_error)

  /* "cython/core/basic.pyx":367
 * class MatrixWithExplanations():
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):             # <<<<<<<<<<<<<<
 * 
 *         self.matrix = mat
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.MatrixWithExplanations.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":373
 *         self.explain_columns = explain_columns
 * 
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):             # <<<<<<<<<<<<<<
 * 
 *         def format_explain_list(l):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_22MatrixWithExplanations_3__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_22MatrixWithExplanations_3__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_22MatrixWithExplanations_3__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_22MatrixWithExplanations_3__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v__type_str = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_type_str,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 373, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 373, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_n_u_MatrixWithExplanations)));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 0, 1, 2, i); __PYX_ERR(3, 373, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 373, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_n_u_MatrixWithExplanations)));
    }
    __pyx_v_self = values[0];
    __pyx_v__type_str = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 0, 1, 2, __pyx_nargs); __PYX_ERR(3, 373, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.MatrixWithExplanations.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_22MatrixWithExplanations_2__repr__(__pyx_self, __pyx_v_self, __pyx_v__type_str);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":375
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):
 * 
 *         def format_explain_list(l):             # <<<<<<<<<<<<<<
 *             if len(l) <= 6:
 *                 return repr(l)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_22MatrixWithExplanations_8__repr___1format_explain_list(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_22MatrixWithExplanations_8__repr___1format_explain_list = {"format_explain_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_22MatrixWithExplanations_8__repr___1format_explain_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_22MatrixWithExplanations_8__repr___1format_explain_list(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_l = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("format_explain_list (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_l,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 375, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 375, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "format_explain_list", 0) < (0)) __PYX_ERR(3, 375, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("format_explain_list", 1, 1, 1, i); __PYX_ERR(3, 375, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 375, __pyx_L3_error)
    }
    __pyx_v_l = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("format_explain_list", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 375, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.MatrixWithExplanations.__repr__.format_explain_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_22MatrixWithExplanations_8__repr___format_explain_list(__pyx_self, __pyx_v_l);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_22MatrixWithExplanations_8__repr___format_explain_list(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_l) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7[5];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("format_explain_list", 0);

  /* "cython/core/basic.pyx":376
 * 
 *         def format_explain_list(l):
 *             if len(l) <= 6:             # <<<<<<<<<<<<<<
 *                 return repr(l)
 * 
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_l); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(3, 376, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 <= 6);
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":377
 *         def format_explain_list(l):
 *             if len(l) <= 6:
 *                 return repr(l)             # <<<<<<<<<<<<<<
 * 
 *             return "[ %s, ..., %s]" % (
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyObject_Repr(__pyx_v_l); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/basic.pyx":376
 * 
 *         def format_explain_list(l):
 *             if len(l) <= 6:             # <<<<<<<<<<<<<<
 *                 return repr(l)
 * 
*/
  }

  /* "cython/core/basic.pyx":379
 *                 return repr(l)
 * 
 *             return "[ %s, ..., %s]" % (             # <<<<<<<<<<<<<<
 *                 ', '.join(map(repr, l[:3])),
 *                 ', '.join(map(repr, l[-3:])))
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/basic.pyx":380
 * 
 *             return "[ %s, ..., %s]" % (
 *                 ', '.join(map(repr, l[:3])),             # <<<<<<<<<<<<<<
 *                 ', '.join(map(repr, l[-3:])))
 * 
*/
  __pyx_t_3 = __Pyx_GetBuiltinName(__pyx_mstate_global->__pyx_n_u_repr); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_l, 0, 3, NULL, NULL, &__pyx_mstate_global->__pyx_slice[0], 0, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3) != (0)) __PYX_ERR(3, 380, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4) != (0)) __PYX_ERR(3, 380, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_map, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/basic.pyx":381
 *             return "[ %s, ..., %s]" % (
 *                 ', '.join(map(repr, l[:3])),
 *                 ', '.join(map(repr, l[-3:])))             # <<<<<<<<<<<<<<
 * 
 *         return (
*/
  __pyx_t_4 = __Pyx_GetBuiltinName(__pyx_mstate_global->__pyx_n_u_repr); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_l, -3L, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[1], 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4) != (0)) __PYX_ERR(3, 381, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3) != (0)) __PYX_ERR(3, 381, __pyx_L1_error);
  __pyx_t_4 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_map, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__3, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u__2;
  __pyx_t_7[1] = __pyx_t_5;
  __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__4;
  __pyx_t_7[3] = __pyx_t_6;
  __pyx_t_7[4] = __pyx_mstate_global->__pyx_kp_u__5;

  /* "cython/core/basic.pyx":379
 *                 return repr(l)
 * 
 *             return "[ %s, ..., %s]" % (             # <<<<<<<<<<<<<<
 *                 ', '.join(map(repr, l[:3])),
 *                 ', '.join(map(repr, l[-3:])))
*/
  __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_7, 5, 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 7 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6));
  if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":375
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):
 * 
 *         def format_explain_list(l):             # <<<<<<<<<<<<<<
 *             if len(l) <= 6:
 *                 return repr(l)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.MatrixWithExplanations.__repr__.format_explain_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":373
 *         self.explain_columns = explain_columns
 * 
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):             # <<<<<<<<<<<<<<
 * 
 *         def format_explain_list(l):
*/

static PyObject *__pyx_pf_6SnapPy_22MatrixWithExplanations_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v__type_str) {
  PyObject *__pyx_v_format_explain_list = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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[8];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":375
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):
 * 
 *         def format_explain_list(l):             # <<<<<<<<<<<<<<
 *             if len(l) <= 6:
 *                 return repr(l)
*/
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_22MatrixWithExplanations_8__repr___1format_explain_list, 0, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_format_explain_list = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":383
 *                 ', '.join(map(repr, l[-3:])))
 * 
 *         return (             # <<<<<<<<<<<<<<
 *             "%s(\n"
 *             "  %s,\n"
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/basic.pyx":388
 *             "  explain_columns = %s,\n"
 *             "  explain_rows = %s)") % (
 *                               _type_str,             # <<<<<<<<<<<<<<
 *                               '\n  '.join(repr(self.matrix).split('\n')),
 *                               format_explain_list(self.explain_columns),
*/
  __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v__type_str), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "cython/core/basic.pyx":389
 *             "  explain_rows = %s)") % (
 *                               _type_str,
 *                               '\n  '.join(repr(self.matrix).split('\n')),             # <<<<<<<<<<<<<<
 *                               format_explain_list(self.explain_columns),
 *                               format_explain_list(self.explain_rows))
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(__pyx_t_3 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "split");
    __PYX_ERR(3, 389, __pyx_L1_error)
  }
  __pyx_t_2 = PyUnicode_Split(((PyObject*)__pyx_t_3), __pyx_mstate_global->__pyx_kp_u_, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__7, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":390
 *                               _type_str,
 *                               '\n  '.join(repr(self.matrix).split('\n')),
 *                               format_explain_list(self.explain_columns),             # <<<<<<<<<<<<<<
 *                               format_explain_list(self.explain_rows))
 * 
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_explain_columns); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = __pyx_pf_6SnapPy_22MatrixWithExplanations_8__repr___format_explain_list(__pyx_v_format_explain_list, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/basic.pyx":391
 *                               '\n  '.join(repr(self.matrix).split('\n')),
 *                               format_explain_list(self.explain_columns),
 *                               format_explain_list(self.explain_rows))             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_explain_rows); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __pyx_pf_6SnapPy_22MatrixWithExplanations_8__repr___format_explain_list(__pyx_v_format_explain_list, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_5), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_6[0] = __pyx_t_1;
  __pyx_t_6[1] = __pyx_mstate_global->__pyx_kp_u__6;
  __pyx_t_6[2] = __pyx_t_3;
  __pyx_t_6[3] = __pyx_mstate_global->__pyx_kp_u_explain_columns_2;
  __pyx_t_6[4] = __pyx_t_2;
  __pyx_t_6[5] = __pyx_mstate_global->__pyx_kp_u_explain_rows_2;
  __pyx_t_6[6] = __pyx_t_4;
  __pyx_t_6[7] = __pyx_mstate_global->__pyx_kp_u__8;

  /* "cython/core/basic.pyx":384
 * 
 *         return (
 *             "%s(\n"             # <<<<<<<<<<<<<<
 *             "  %s,\n"
 *             "  explain_columns = %s,\n"
*/
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_6, 8, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 4 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 22 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 19 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4));
  if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":373
 *         self.explain_columns = explain_columns
 * 
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):             # <<<<<<<<<<<<<<
 * 
 *         def format_explain_list(l):
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.MatrixWithExplanations.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_format_explain_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":396
 * class NeumannZagierTypeEquations(MatrixWithExplanations):
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):             # <<<<<<<<<<<<<<
 *         MatrixWithExplanations.__init__(self,
 *                                         mat, explain_rows, explain_columns)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_26NeumannZagierTypeEquations_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_26NeumannZagierTypeEquations_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_26NeumannZagierTypeEquations_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_26NeumannZagierTypeEquations_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_mat = 0;
  PyObject *__pyx_v_explain_rows = 0;
  PyObject *__pyx_v_explain_columns = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_mat,&__pyx_mstate_global->__pyx_n_u_explain_rows,&__pyx_mstate_global->__pyx_n_u_explain_columns,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 396, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 396, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 396, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 396, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 396, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(3, 396, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, i); __PYX_ERR(3, 396, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 396, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 396, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 396, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 396, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_mat = values[1];
    __pyx_v_explain_rows = values[2];
    __pyx_v_explain_columns = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(3, 396, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.NeumannZagierTypeEquations.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_26NeumannZagierTypeEquations___init__(__pyx_self, __pyx_v_self, __pyx_v_mat, __pyx_v_explain_rows, __pyx_v_explain_columns);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_26NeumannZagierTypeEquations___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mat, PyObject *__pyx_v_explain_rows, PyObject *__pyx_v_explain_columns) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/basic.pyx":397
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):
 *         MatrixWithExplanations.__init__(self,             # <<<<<<<<<<<<<<
 *                                         mat, explain_rows, explain_columns)
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/basic.pyx":398
 *     def __init__(self, mat, explain_rows, explain_columns):
 *         MatrixWithExplanations.__init__(self,
 *                                         mat, explain_rows, explain_columns)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_2, __pyx_v_self, __pyx_v_mat, __pyx_v_explain_rows, __pyx_v_explain_columns};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (5-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":396
 * class NeumannZagierTypeEquations(MatrixWithExplanations):
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):             # <<<<<<<<<<<<<<
 *         MatrixWithExplanations.__init__(self,
 *                                         mat, explain_rows, explain_columns)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_AddTraceback("SnapPy.NeumannZagierTypeEquations.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":400
 *                                         mat, explain_rows, explain_columns)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return MatrixWithExplanations.__repr__(self,
 *                                                "NeumannZagierTypeEquations")
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_26NeumannZagierTypeEquations_3__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_26NeumannZagierTypeEquations_3__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_26NeumannZagierTypeEquations_3__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_26NeumannZagierTypeEquations_3__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 400, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 400, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 400, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 400, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 400, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 400, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.NeumannZagierTypeEquations.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_26NeumannZagierTypeEquations_2__repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_26NeumannZagierTypeEquations_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":401
 * 
 *     def __repr__(self):
 *         return MatrixWithExplanations.__repr__(self,             # <<<<<<<<<<<<<<
 *                                                "NeumannZagierTypeEquations")
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_repr_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_self, __pyx_mstate_global->__pyx_n_u_NeumannZagierTypeEquations};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 401, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":400
 *                                         mat, explain_rows, explain_columns)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return MatrixWithExplanations.__repr__(self,
 *                                                "NeumannZagierTypeEquations")
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.NeumannZagierTypeEquations.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":415
 *     Real2gen = Real2gen_string
 * 
 * cdef Complex2gen(Complex C):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Complex to a pari gen.
*/

static PyObject *__pyx_f_6SnapPy_Complex2gen(Complex __pyx_v_C) {
  PyObject *__pyx_v_real_part = 0;
  PyObject *__pyx_v_imag_part = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Complex2gen", 0);

  /* "cython/core/basic.pyx":419
 *     Convert a Complex to a pari gen.
 *     """
 *     cdef real_part = Real2gen(C.real)             # <<<<<<<<<<<<<<
 *     cdef imag_part = Real2gen(C.imag)
 *     return pari.complex(real_part, imag_part)
*/
  __pyx_t_1 = __pyx_v_6SnapPy_Real2gen(__pyx_v_C.real); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_real_part = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":420
 *     """
 *     cdef real_part = Real2gen(C.real)
 *     cdef imag_part = Real2gen(C.imag)             # <<<<<<<<<<<<<<
 *     return pari.complex(real_part, imag_part)
 * 
*/
  __pyx_t_1 = __pyx_v_6SnapPy_Real2gen(__pyx_v_C.imag); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_imag_part = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":421
 *     cdef real_part = Real2gen(C.real)
 *     cdef imag_part = Real2gen(C.imag)
 *     return pari.complex(real_part, imag_part)             # <<<<<<<<<<<<<<
 * 
 * cdef RealImag2gen(Real R, Real I):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_pari); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_complex); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_real_part, __pyx_v_imag_part};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 421, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":415
 *     Real2gen = Real2gen_string
 * 
 * cdef Complex2gen(Complex C):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Complex to a pari gen.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Complex2gen", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_real_part);
  __Pyx_XDECREF(__pyx_v_imag_part);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":423
 *     return pari.complex(real_part, imag_part)
 * 
 * cdef RealImag2gen(Real R, Real I):             # <<<<<<<<<<<<<<
 *     return pari.complex(Real2gen(R), Real2gen(I))
 * 
*/

static PyObject *__pyx_f_6SnapPy_RealImag2gen(__pyx_t_6SnapPy_Real __pyx_v_R, __pyx_t_6SnapPy_Real __pyx_v_I) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("RealImag2gen", 0);

  /* "cython/core/basic.pyx":424
 * 
 * cdef RealImag2gen(Real R, Real I):
 *     return pari.complex(Real2gen(R), Real2gen(I))             # <<<<<<<<<<<<<<
 * 
 * cdef Complex2complex(Complex C):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_pari); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_complex); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __pyx_v_6SnapPy_Real2gen(__pyx_v_R); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __pyx_v_6SnapPy_Real2gen(__pyx_v_I); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_3, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 424, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":423
 *     return pari.complex(real_part, imag_part)
 * 
 * cdef RealImag2gen(Real R, Real I):             # <<<<<<<<<<<<<<
 *     return pari.complex(Real2gen(R), Real2gen(I))
 * 
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.RealImag2gen", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":426
 *     return pari.complex(Real2gen(R), Real2gen(I))
 * 
 * cdef Complex2complex(Complex C):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Complex to a python complex.
*/

static PyObject *__pyx_f_6SnapPy_Complex2complex(Complex __pyx_v_C) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Complex2complex", 0);

  /* "cython/core/basic.pyx":430
 *     Convert a Complex to a python complex.
 *     """
 *     return complex( float(<double>C.real), float(<double>C.imag) )             # <<<<<<<<<<<<<<
 * 
 * cdef Real2float(Real R):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __pyx_t_3 = PyFloat_FromDouble(((double)__pyx_v_C.real)); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(((double)__pyx_v_C.imag)); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_3, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyComplex_Type), __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":426
 *     return pari.complex(Real2gen(R), Real2gen(I))
 * 
 * cdef Complex2complex(Complex C):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Complex to a python complex.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Complex2complex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":432
 *     return complex( float(<double>C.real), float(<double>C.imag) )
 * 
 * cdef Real2float(Real R):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Real to a python float.
*/

static PyObject *__pyx_f_6SnapPy_Real2float(__pyx_t_6SnapPy_Real __pyx_v_R) {
  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("Real2float", 0);

  /* "cython/core/basic.pyx":436
 *     Convert a Real to a python float.
 *     """
 *     return float(<double>R)             # <<<<<<<<<<<<<<
 * 
 * cdef Complex complex2Complex(complex z):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(((double)__pyx_v_R)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":432
 *     return complex( float(<double>C.real), float(<double>C.imag) )
 * 
 * cdef Real2float(Real R):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a Real to a python float.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.Real2float", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":438
 *     return float(<double>R)
 * 
 * cdef Complex complex2Complex(complex z):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a python complex to a Complex.
*/

static Complex __pyx_f_6SnapPy_complex2Complex(__pyx_t_double_complex __pyx_v_z) {
  Complex __pyx_v_result;
  Complex __pyx_r;

  /* "cython/core/basic.pyx":443
 *     """
 *     cdef Complex result
 *     result.real = <Real>z.real             # <<<<<<<<<<<<<<
 *     result.imag = <Real>z.imag
 *     return result
*/
  __pyx_v_result.real = ((__pyx_t_6SnapPy_Real)__Pyx_CREAL(__pyx_v_z));

  /* "cython/core/basic.pyx":444
 *     cdef Complex result
 *     result.real = <Real>z.real
 *     result.imag = <Real>z.imag             # <<<<<<<<<<<<<<
 *     return result
 * 
*/
  __pyx_v_result.imag = ((__pyx_t_6SnapPy_Real)__Pyx_CIMAG(__pyx_v_z));

  /* "cython/core/basic.pyx":445
 *     result.real = <Real>z.real
 *     result.imag = <Real>z.imag
 *     return result             # <<<<<<<<<<<<<<
 * 
 * cdef Real Object2Real(obj):
*/
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":438
 *     return float(<double>R)
 * 
 * cdef Complex complex2Complex(complex z):             # <<<<<<<<<<<<<<
 *     """
 *     Convert a python complex to a Complex.
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cython/core/basic.pyx":447
 *     return result
 * 
 * cdef Real Object2Real(obj):             # <<<<<<<<<<<<<<
 *     cdef char* c_string
 *     try:
*/

static __pyx_t_6SnapPy_Real __pyx_f_6SnapPy_Object2Real(PyObject *__pyx_v_obj) {
  char *__pyx_v_c_string;
  PyObject *__pyx_v_string = NULL;
  __pyx_t_6SnapPy_Real __pyx_r;
  __Pyx_RefNannyDeclarations
  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;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  double __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  char *__pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Object2Real", 0);

  /* "cython/core/basic.pyx":449
 * cdef Real Object2Real(obj):
 *     cdef char* c_string
 *     try:             # <<<<<<<<<<<<<<
 *         string = obj.as_string() if isinstance(obj, Number) else str(obj)
 *         # Pari idiosyncratically formats small and large numbers as,
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cython/core/basic.pyx":450
 *     cdef char* c_string
 *     try:
 *         string = obj.as_string() if isinstance(obj, Number) else str(obj)             # <<<<<<<<<<<<<<
 *         # Pari idiosyncratically formats small and large numbers as,
 *         # e.g., "1.0 E-10" (note the space before "E").
*/
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 450, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PyObject_IsInstance(__pyx_v_obj, __pyx_t_5); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(3, 450, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_6) {
        __pyx_t_7 = __pyx_v_obj;
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
          __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_as_string, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 450, __pyx_L3_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __pyx_t_4 = __pyx_t_5;
        __pyx_t_5 = 0;
      } else {
        __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_v_obj); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 450, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __pyx_t_5;
        __pyx_t_5 = 0;
      }
      __pyx_v_string = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cython/core/basic.pyx":454
 *         # e.g., "1.0 E-10" (note the space before "E").
 *         # Remove it - otherwise it cannot be parsed.
 *         string = string.replace(' ', '')             # <<<<<<<<<<<<<<
 *         float(string)
 *     except:
*/
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_string, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 454, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[0], NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 454, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_string, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "cython/core/basic.pyx":455
 *         # Remove it - otherwise it cannot be parsed.
 *         string = string.replace(' ', '')
 *         float(string)             # <<<<<<<<<<<<<<
 *     except:
 *         raise ValueError('Cannot convert %s to a Real.' % type(obj))
*/
      __pyx_t_9 = __Pyx_PyObject_AsDouble(__pyx_v_string); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_9, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(3, 455, __pyx_L3_error)

      /* "cython/core/basic.pyx":449
 * cdef Real Object2Real(obj):
 *     cdef char* c_string
 *     try:             # <<<<<<<<<<<<<<
 *         string = obj.as_string() if isinstance(obj, Number) else str(obj)
 *         # Pari idiosyncratically formats small and large numbers as,
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/basic.pyx":456
 *         string = string.replace(' ', '')
 *         float(string)
 *     except:             # <<<<<<<<<<<<<<
 *         raise ValueError('Cannot convert %s to a Real.' % type(obj))
 *     string = to_byte_str(string)
*/
    /*except:*/ {
      __Pyx_AddTraceback("SnapPy.Object2Real", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_7) < 0) __PYX_ERR(3, 456, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_7);

      /* "cython/core/basic.pyx":457
 *         float(string)
 *     except:
 *         raise ValueError('Cannot convert %s to a Real.' % type(obj))             # <<<<<<<<<<<<<<
 *     string = to_byte_str(string)
 *     c_string = string
*/
      __pyx_t_11 = NULL;
      __pyx_t_12 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Cannot_convert_s_to_a_Real, ((PyObject *)Py_TYPE(__pyx_v_obj))); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 457, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_8 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_12};
        __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 457, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_10);
      }
      __Pyx_Raise(__pyx_t_10, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __PYX_ERR(3, 457, __pyx_L5_except_error)
    }

    /* "cython/core/basic.pyx":449
 * cdef Real Object2Real(obj):
 *     cdef char* c_string
 *     try:             # <<<<<<<<<<<<<<
 *         string = obj.as_string() if isinstance(obj, Number) else str(obj)
 *         # Pari idiosyncratically formats small and large numbers as,
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "cython/core/basic.pyx":458
 *     except:
 *         raise ValueError('Cannot convert %s to a Real.' % type(obj))
 *     string = to_byte_str(string)             # <<<<<<<<<<<<<<
 *     c_string = string
 *     return Real_from_string(c_string)
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_string};
    __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 458, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __Pyx_DECREF_SET(__pyx_v_string, __pyx_t_7);
  __pyx_t_7 = 0;

  /* "cython/core/basic.pyx":459
 *         raise ValueError('Cannot convert %s to a Real.' % type(obj))
 *     string = to_byte_str(string)
 *     c_string = string             # <<<<<<<<<<<<<<
 *     return Real_from_string(c_string)
 * 
*/
  __pyx_t_13 = __Pyx_PyObject_AsWritableString(__pyx_v_string); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(3, 459, __pyx_L1_error)
  __pyx_v_c_string = __pyx_t_13;

  /* "cython/core/basic.pyx":460
 *     string = to_byte_str(string)
 *     c_string = string
 *     return Real_from_string(c_string)             # <<<<<<<<<<<<<<
 * 
 * cdef Complex Object2Complex(obj):
*/
  __pyx_r = Real_from_string(__pyx_v_c_string);
  goto __pyx_L0;

  /* "cython/core/basic.pyx":447
 *     return result
 * 
 * cdef Real Object2Real(obj):             # <<<<<<<<<<<<<<
 *     cdef char* c_string
 *     try:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.Object2Real", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_string);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":462
 *     return Real_from_string(c_string)
 * 
 * cdef Complex Object2Complex(obj):             # <<<<<<<<<<<<<<
 *     cdef Real real, imag
 *     cdef Complex result
*/

static Complex __pyx_f_6SnapPy_Object2Complex(PyObject *__pyx_v_obj) {
  __pyx_t_6SnapPy_Real __pyx_v_real;
  __pyx_t_6SnapPy_Real __pyx_v_imag;
  Complex __pyx_v_result;
  Complex __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  double __pyx_t_7;
  __pyx_t_6SnapPy_Real __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  size_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Object2Complex", 0);

  /* "cython/core/basic.pyx":465
 *     cdef Real real, imag
 *     cdef Complex result
 *     if hasattr(obj, 'real') and hasattr(obj, 'imag'):             # <<<<<<<<<<<<<<
 *         try:
 *             float(obj.real)
*/
  __pyx_t_2 = __Pyx_HasAttr(__pyx_v_obj, __pyx_mstate_global->__pyx_n_u_real); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 465, __pyx_L1_error)
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_HasAttr(__pyx_v_obj, __pyx_mstate_global->__pyx_n_u_imag); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(3, 465, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/basic.pyx":466
 *     cdef Complex result
 *     if hasattr(obj, 'real') and hasattr(obj, 'imag'):
 *         try:             # <<<<<<<<<<<<<<
 *             float(obj.real)
 *             real = Object2Real(obj.real)
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      /*try:*/ {

        /* "cython/core/basic.pyx":467
 *     if hasattr(obj, 'real') and hasattr(obj, 'imag'):
 *         try:
 *             float(obj.real)             # <<<<<<<<<<<<<<
 *             real = Object2Real(obj.real)
 *         except TypeError:  # Probably Sage type
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_mstate_global->__pyx_n_u_real); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 467, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PyObject_AsDouble(__pyx_t_6); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_7, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(3, 467, __pyx_L6_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cython/core/basic.pyx":468
 *         try:
 *             float(obj.real)
 *             real = Object2Real(obj.real)             # <<<<<<<<<<<<<<
 *         except TypeError:  # Probably Sage type
 *             real = Object2Real(obj.real())
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_mstate_global->__pyx_n_u_real); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 468, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __pyx_f_6SnapPy_Object2Real(__pyx_t_6); if (unlikely(__pyx_t_8 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(3, 468, __pyx_L6_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_v_real = __pyx_t_8;

        /* "cython/core/basic.pyx":466
 *     cdef Complex result
 *     if hasattr(obj, 'real') and hasattr(obj, 'imag'):
 *         try:             # <<<<<<<<<<<<<<
 *             float(obj.real)
 *             real = Object2Real(obj.real)
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L11_try_end;
      __pyx_L6_error:;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/basic.pyx":469
 *             float(obj.real)
 *             real = Object2Real(obj.real)
 *         except TypeError:  # Probably Sage type             # <<<<<<<<<<<<<<
 *             real = Object2Real(obj.real())
 *         try:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_TypeError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("SnapPy.Object2Complex", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_10, &__pyx_t_11) < 0) __PYX_ERR(3, 469, __pyx_L8_except_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_11);

        /* "cython/core/basic.pyx":470
 *             real = Object2Real(obj.real)
 *         except TypeError:  # Probably Sage type
 *             real = Object2Real(obj.real())             # <<<<<<<<<<<<<<
 *         try:
 *             float(obj.imag)
*/
        __pyx_t_13 = __pyx_v_obj;
        __Pyx_INCREF(__pyx_t_13);
        __pyx_t_14 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_13, NULL};
          __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_real, __pyx_callargs+__pyx_t_14, (1-__pyx_t_14) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 470, __pyx_L8_except_error)
          __Pyx_GOTREF(__pyx_t_12);
        }
        __pyx_t_8 = __pyx_f_6SnapPy_Object2Real(__pyx_t_12); if (unlikely(__pyx_t_8 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(3, 470, __pyx_L8_except_error)
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __pyx_v_real = __pyx_t_8;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        goto __pyx_L7_exception_handled;
      }
      goto __pyx_L8_except_error;

      /* "cython/core/basic.pyx":466
 *     cdef Complex result
 *     if hasattr(obj, 'real') and hasattr(obj, 'imag'):
 *         try:             # <<<<<<<<<<<<<<
 *             float(obj.real)
 *             real = Object2Real(obj.real)
*/
      __pyx_L8_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      goto __pyx_L1_error;
      __pyx_L7_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
      __pyx_L11_try_end:;
    }

    /* "cython/core/basic.pyx":471
 *         except TypeError:  # Probably Sage type
 *             real = Object2Real(obj.real())
 *         try:             # <<<<<<<<<<<<<<
 *             float(obj.imag)
 *             imag = Object2Real(obj.imag)
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      /*try:*/ {

        /* "cython/core/basic.pyx":472
 *             real = Object2Real(obj.real())
 *         try:
 *             float(obj.imag)             # <<<<<<<<<<<<<<
 *             imag = Object2Real(obj.imag)
 *         except TypeError:  # Probably Sage type
*/
        __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_mstate_global->__pyx_n_u_imag); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 472, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_7 = __Pyx_PyObject_AsDouble(__pyx_t_11); if (unlikely(__PYX_CHECK_FLOAT_EXCEPTION(__pyx_t_7, ((double)((double)-1))) && PyErr_Occurred())) __PYX_ERR(3, 472, __pyx_L14_error)
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

        /* "cython/core/basic.pyx":473
 *         try:
 *             float(obj.imag)
 *             imag = Object2Real(obj.imag)             # <<<<<<<<<<<<<<
 *         except TypeError:  # Probably Sage type
 *             imag = Object2Real(obj.imag())
*/
        __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_mstate_global->__pyx_n_u_imag); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 473, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_8 = __pyx_f_6SnapPy_Object2Real(__pyx_t_11); if (unlikely(__pyx_t_8 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(3, 473, __pyx_L14_error)
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_v_imag = __pyx_t_8;

        /* "cython/core/basic.pyx":471
 *         except TypeError:  # Probably Sage type
 *             real = Object2Real(obj.real())
 *         try:             # <<<<<<<<<<<<<<
 *             float(obj.imag)
 *             imag = Object2Real(obj.imag)
*/
      }
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L19_try_end;
      __pyx_L14_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/basic.pyx":474
 *             float(obj.imag)
 *             imag = Object2Real(obj.imag)
 *         except TypeError:  # Probably Sage type             # <<<<<<<<<<<<<<
 *             imag = Object2Real(obj.imag())
 *     else:
*/
      __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_TypeError))));
      if (__pyx_t_9) {
        __Pyx_AddTraceback("SnapPy.Object2Complex", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_10, &__pyx_t_6) < 0) __PYX_ERR(3, 474, __pyx_L16_except_error)
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_6);

        /* "cython/core/basic.pyx":475
 *             imag = Object2Real(obj.imag)
 *         except TypeError:  # Probably Sage type
 *             imag = Object2Real(obj.imag())             # <<<<<<<<<<<<<<
 *     else:
 *         real = Object2Real(obj)
*/
        __pyx_t_13 = __pyx_v_obj;
        __Pyx_INCREF(__pyx_t_13);
        __pyx_t_14 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_13, NULL};
          __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_imag, __pyx_callargs+__pyx_t_14, (1-__pyx_t_14) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 475, __pyx_L16_except_error)
          __Pyx_GOTREF(__pyx_t_12);
        }
        __pyx_t_8 = __pyx_f_6SnapPy_Object2Real(__pyx_t_12); if (unlikely(__pyx_t_8 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(3, 475, __pyx_L16_except_error)
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __pyx_v_imag = __pyx_t_8;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L15_exception_handled;
      }
      goto __pyx_L16_except_error;

      /* "cython/core/basic.pyx":471
 *         except TypeError:  # Probably Sage type
 *             real = Object2Real(obj.real())
 *         try:             # <<<<<<<<<<<<<<
 *             float(obj.imag)
 *             imag = Object2Real(obj.imag)
*/
      __pyx_L16_except_error:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      goto __pyx_L1_error;
      __pyx_L15_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
      __pyx_L19_try_end:;
    }

    /* "cython/core/basic.pyx":465
 *     cdef Real real, imag
 *     cdef Complex result
 *     if hasattr(obj, 'real') and hasattr(obj, 'imag'):             # <<<<<<<<<<<<<<
 *         try:
 *             float(obj.real)
*/
    goto __pyx_L3;
  }

  /* "cython/core/basic.pyx":477
 *             imag = Object2Real(obj.imag())
 *     else:
 *         real = Object2Real(obj)             # <<<<<<<<<<<<<<
 *         imag = <Real>0.0
 *     result.real = real
*/
  /*else*/ {
    __pyx_t_8 = __pyx_f_6SnapPy_Object2Real(__pyx_v_obj); if (unlikely(__pyx_t_8 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(3, 477, __pyx_L1_error)
    __pyx_v_real = __pyx_t_8;

    /* "cython/core/basic.pyx":478
 *     else:
 *         real = Object2Real(obj)
 *         imag = <Real>0.0             # <<<<<<<<<<<<<<
 *     result.real = real
 *     result.imag = imag
*/
    __pyx_v_imag = ((__pyx_t_6SnapPy_Real)0.0);
  }
  __pyx_L3:;

  /* "cython/core/basic.pyx":479
 *         real = Object2Real(obj)
 *         imag = <Real>0.0
 *     result.real = real             # <<<<<<<<<<<<<<
 *     result.imag = imag
 *     return result
*/
  __pyx_v_result.real = __pyx_v_real;

  /* "cython/core/basic.pyx":480
 *         imag = <Real>0.0
 *     result.real = real
 *     result.imag = imag             # <<<<<<<<<<<<<<
 *     return result
 * 
*/
  __pyx_v_result.imag = __pyx_v_imag;

  /* "cython/core/basic.pyx":481
 *     result.real = real
 *     result.imag = imag
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":462
 *     return Real_from_string(c_string)
 * 
 * cdef Complex Object2Complex(obj):             # <<<<<<<<<<<<<<
 *     cdef Real real, imag
 *     cdef Complex result
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("SnapPy.Object2Complex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":484
 * 
 * 
 * cdef double Real2double(Real R):             # <<<<<<<<<<<<<<
 *     cdef double* quad = <double *>&R
 *     return quad[0]
*/

static double __pyx_f_6SnapPy_Real2double(__pyx_t_6SnapPy_Real __pyx_v_R) {
  double *__pyx_v_quad;
  double __pyx_r;

  /* "cython/core/basic.pyx":485
 * 
 * cdef double Real2double(Real R):
 *     cdef double* quad = <double *>&R             # <<<<<<<<<<<<<<
 *     return quad[0]
 * 
*/
  __pyx_v_quad = ((double *)(&__pyx_v_R));

  /* "cython/core/basic.pyx":486
 * cdef double Real2double(Real R):
 *     cdef double* quad = <double *>&R
 *     return quad[0]             # <<<<<<<<<<<<<<
 * 
 * cdef B2B(Boolean B):
*/
  __pyx_r = (__pyx_v_quad[0]);
  goto __pyx_L0;

  /* "cython/core/basic.pyx":484
 * 
 * 
 * cdef double Real2double(Real R):             # <<<<<<<<<<<<<<
 *     cdef double* quad = <double *>&R
 *     return quad[0]
*/

  /* function exit code */
  __pyx_L0:;
  return __pyx_r;
}

/* "cython/core/basic.pyx":488
 *     return quad[0]
 * 
 * cdef B2B(Boolean B):             # <<<<<<<<<<<<<<
 *     return B != 0
 * 
*/

static PyObject *__pyx_f_6SnapPy_B2B(Boolean __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("B2B", 0);

  /* "cython/core/basic.pyx":489
 * 
 * cdef B2B(Boolean B):
 *     return B != 0             # <<<<<<<<<<<<<<
 * 
 * # Infos are immutable containers which hold information about SnapPy
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_B != 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":488
 *     return quad[0]
 * 
 * cdef B2B(Boolean B):             # <<<<<<<<<<<<<<
 *     return B != 0
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.B2B", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":503
 *     Initialize with keyword arguments, or **dict.
 *     """
 *     def __init__(self, **kwargs):             # <<<<<<<<<<<<<<
 *         # Hack to support obsolete keys
 *         content = dict(kwargs)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_4Info_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_4Info_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_4Info_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_4Info_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 503, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 503, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kwargs, values, kwd_pos_args, __pyx_kwds_len, "__init__", 1) < (0)) __PYX_ERR(3, 503, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(3, 503, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 503, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 503, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("SnapPy.Info.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_4Info___init__(__pyx_self, __pyx_v_self, __pyx_v_kwargs);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_4Info___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_v_content = NULL;
  PyObject *__pyx_v_old = NULL;
  PyObject *__pyx_v_new = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  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;
  size_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/basic.pyx":505
 *     def __init__(self, **kwargs):
 *         # Hack to support obsolete keys
 *         content = dict(kwargs)             # <<<<<<<<<<<<<<
 *         for old, new in self._obsolete.items():
 *             try:
*/
  __pyx_t_1 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_content = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":506
 *         # Hack to support obsolete keys
 *         content = dict(kwargs)
 *         for old, new in self._obsolete.items():             # <<<<<<<<<<<<<<
 *             try:
 *                 content[old] = content[new]
*/
  __pyx_t_2 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_obsolete); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (unlikely(__pyx_t_5 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(3, 506, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_dict_iterator(__pyx_t_5, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_6;
  __pyx_t_6 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_6, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(3, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_old, __pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XDECREF_SET(__pyx_v_new, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/basic.pyx":507
 *         content = dict(kwargs)
 *         for old, new in self._obsolete.items():
 *             try:             # <<<<<<<<<<<<<<
 *                 content[old] = content[new]
 *             except KeyError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cython/core/basic.pyx":508
 *         for old, new in self._obsolete.items():
 *             try:
 *                 content[old] = content[new]             # <<<<<<<<<<<<<<
 *             except KeyError:
 *                 pass
*/
        __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_content, __pyx_v_new); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 508, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (unlikely((PyDict_SetItem(__pyx_v_content, __pyx_v_old, __pyx_t_5) < 0))) __PYX_ERR(3, 508, __pyx_L5_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cython/core/basic.pyx":507
 *         content = dict(kwargs)
 *         for old, new in self._obsolete.items():
 *             try:             # <<<<<<<<<<<<<<
 *                 content[old] = content[new]
 *             except KeyError:
*/
      }
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L12_try_end;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/basic.pyx":509
 *             try:
 *                 content[old] = content[new]
 *             except KeyError:             # <<<<<<<<<<<<<<
 *                 pass
 *         super(Info, self).__init__(content)
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
      if (__pyx_t_7) {
        __Pyx_ErrRestore(0,0,0);
        goto __pyx_L6_exception_handled;
      }
      goto __pyx_L7_except_error;

      /* "cython/core/basic.pyx":507
 *         content = dict(kwargs)
 *         for old, new in self._obsolete.items():
 *             try:             # <<<<<<<<<<<<<<
 *                 content[old] = content[new]
 *             except KeyError:
*/
      __pyx_L7_except_error:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L6_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      __pyx_L12_try_end:;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":511
 *             except KeyError:
 *                 pass
 *         super(Info, self).__init__(content)             # <<<<<<<<<<<<<<
 *         self.__dict__.update(kwargs)
 * 
*/
  __pyx_t_11 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_Info); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_13 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_11, __pyx_t_12, __pyx_v_self};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_super, __pyx_callargs+__pyx_t_13, (3-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_5 = __pyx_t_6;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_13 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_content};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_init, __pyx_callargs+__pyx_t_13, (2-__pyx_t_13) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":512
 *                 pass
 *         super(Info, self).__init__(content)
 *         self.__dict__.update(kwargs)             # <<<<<<<<<<<<<<
 * 
 *     def _immutable(self, *args):
*/
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_dict); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __pyx_t_5;
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_13 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_kwargs};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_update, __pyx_callargs+__pyx_t_13, (2-__pyx_t_13) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 512, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":503
 *     Initialize with keyword arguments, or **dict.
 *     """
 *     def __init__(self, **kwargs):             # <<<<<<<<<<<<<<
 *         # Hack to support obsolete keys
 *         content = dict(kwargs)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.Info.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_content);
  __Pyx_XDECREF(__pyx_v_old);
  __Pyx_XDECREF(__pyx_v_new);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":514
 *         self.__dict__.update(kwargs)
 * 
 *     def _immutable(self, *args):             # <<<<<<<<<<<<<<
 *         raise AttributeError('Info objects are immutable.')
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_4Info_3_immutable(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_4Info_3_immutable = {"_immutable", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_4Info_3_immutable, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_4Info_3_immutable(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_immutable (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_args)) {
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_args);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 514, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        default:
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 514, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, used_pos_args, __pyx_kwds_len, "_immutable", 0) < (0)) __PYX_ERR(3, 514, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_immutable", 0, 1, 1, i); __PYX_ERR(3, 514, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs < 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 514, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_immutable", 0, 1, 1, __pyx_nargs); __PYX_ERR(3, 514, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_AddTraceback("SnapPy.Info._immutable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_4Info_2_immutable(__pyx_self, __pyx_v_self, __pyx_v_args);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_4Info_2_immutable(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_immutable", 0);

  /* "cython/core/basic.pyx":515
 * 
 *     def _immutable(self, *args):
 *         raise AttributeError('Info objects are immutable.')             # <<<<<<<<<<<<<<
 * 
 *     def keys(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Info_objects_are_immutable};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_AttributeError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 515, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(3, 515, __pyx_L1_error)

  /* "cython/core/basic.pyx":514
 *         self.__dict__.update(kwargs)
 * 
 *     def _immutable(self, *args):             # <<<<<<<<<<<<<<
 *         raise AttributeError('Info objects are immutable.')
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Info._immutable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":517
 *         raise AttributeError('Info objects are immutable.')
 * 
 *     def keys(self):             # <<<<<<<<<<<<<<
 *         return self.__dict__.keys()
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_4Info_5keys(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_4Info_5keys = {"keys", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_4Info_5keys, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_4Info_5keys(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("keys (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 517, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 517, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "keys", 0) < (0)) __PYX_ERR(3, 517, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("keys", 1, 1, 1, i); __PYX_ERR(3, 517, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 517, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("keys", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 517, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Info.keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_4Info_4keys(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_4Info_4keys(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("keys", 0);

  /* "cython/core/basic.pyx":518
 * 
 *     def keys(self):
 *         return self.__dict__.keys()             # <<<<<<<<<<<<<<
 * 
 *     __setattr__ = __delattr__ = __setitem__ = __delitem__ = _immutable
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_dict); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_keys, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":517
 *         raise AttributeError('Info objects are immutable.')
 * 
 *     def keys(self):             # <<<<<<<<<<<<<<
 *         return self.__dict__.keys()
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Info.keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":526
 * 
 * class CuspInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.is_complete:
 *             if 'shape' in self:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8CuspInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8CuspInfo_1__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8CuspInfo_1__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8CuspInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 526, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 526, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 526, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 526, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 526, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 526, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CuspInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8CuspInfo___repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8CuspInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6[6];
  PyObject *__pyx_t_7[5];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":527
 * class CuspInfo(Info):
 *     def __repr__(self):
 *         if self.is_complete:             # <<<<<<<<<<<<<<
 *             if 'shape' in self:
 *                 return ('Cusp %-2d: complete %s of shape %s' %
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_is_complete); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 527, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":528
 *     def __repr__(self):
 *         if self.is_complete:
 *             if 'shape' in self:             # <<<<<<<<<<<<<<
 *                 return ('Cusp %-2d: complete %s of shape %s' %
 *                         (self.index, self.topology, self.shape) )
*/
    __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_shape, __pyx_v_self, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 528, __pyx_L1_error)
    if (__pyx_t_2) {

      /* "cython/core/basic.pyx":529
 *         if self.is_complete:
 *             if 'shape' in self:
 *                 return ('Cusp %-2d: complete %s of shape %s' %             # <<<<<<<<<<<<<<
 *                         (self.index, self.topology, self.shape) )
 *             else:
*/
      __Pyx_XDECREF(__pyx_r);

      /* "cython/core/basic.pyx":530
 *             if 'shape' in self:
 *                 return ('Cusp %-2d: complete %s of shape %s' %
 *                         (self.index, self.topology, self.shape) )             # <<<<<<<<<<<<<<
 *             else:
 *                 return ('Cusp %-2d: %s, not filled'%
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_kp_u_2d); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_topology); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_1), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_shape); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_1), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 530, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_6[0] = __pyx_mstate_global->__pyx_kp_u_Cusp;
      __pyx_t_6[1] = __pyx_t_3;
      __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u_complete;
      __pyx_t_6[3] = __pyx_t_4;
      __pyx_t_6[4] = __pyx_mstate_global->__pyx_kp_u_of_shape;
      __pyx_t_6[5] = __pyx_t_5;

      /* "cython/core/basic.pyx":529
 *         if self.is_complete:
 *             if 'shape' in self:
 *                 return ('Cusp %-2d: complete %s of shape %s' %             # <<<<<<<<<<<<<<
 *                         (self.index, self.topology, self.shape) )
 *             else:
*/
      __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_6, 6, 5 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 11 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 10 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5));
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 529, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* "cython/core/basic.pyx":528
 *     def __repr__(self):
 *         if self.is_complete:
 *             if 'shape' in self:             # <<<<<<<<<<<<<<
 *                 return ('Cusp %-2d: complete %s of shape %s' %
 *                         (self.index, self.topology, self.shape) )
*/
    }

    /* "cython/core/basic.pyx":532
 *                         (self.index, self.topology, self.shape) )
 *             else:
 *                 return ('Cusp %-2d: %s, not filled'%             # <<<<<<<<<<<<<<
 *                         (self.index, self.topology) )
 *         else:
*/
    /*else*/ {
      __Pyx_XDECREF(__pyx_r);

      /* "cython/core/basic.pyx":533
 *             else:
 *                 return ('Cusp %-2d: %s, not filled'%
 *                         (self.index, self.topology) )             # <<<<<<<<<<<<<<
 *         else:
 *             return ('Cusp %-2d: %s with Dehn filling coefficients (M, L) = %s'%
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 533, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_5 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_kp_u_2d); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 533, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_topology); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 533, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_1), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 533, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_Cusp;
      __pyx_t_7[1] = __pyx_t_5;
      __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__11;
      __pyx_t_7[3] = __pyx_t_4;
      __pyx_t_7[4] = __pyx_mstate_global->__pyx_kp_u_not_filled;

      /* "cython/core/basic.pyx":532
 *                         (self.index, self.topology, self.shape) )
 *             else:
 *                 return ('Cusp %-2d: %s, not filled'%             # <<<<<<<<<<<<<<
 *                         (self.index, self.topology) )
 *         else:
*/
      __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_7, 5, 5 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 12, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4));
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 532, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;
    }

    /* "cython/core/basic.pyx":527
 * class CuspInfo(Info):
 *     def __repr__(self):
 *         if self.is_complete:             # <<<<<<<<<<<<<<
 *             if 'shape' in self:
 *                 return ('Cusp %-2d: complete %s of shape %s' %
*/
  }

  /* "cython/core/basic.pyx":535
 *                         (self.index, self.topology) )
 *         else:
 *             return ('Cusp %-2d: %s with Dehn filling coefficients (M, L) = %s'%             # <<<<<<<<<<<<<<
 *                     (self.index, self.topology, self.filling) )
 *     _obsolete = {'complete?'          : 'is_complete',
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);

    /* "cython/core/basic.pyx":536
 *         else:
 *             return ('Cusp %-2d: %s with Dehn filling coefficients (M, L) = %s'%
 *                     (self.index, self.topology, self.filling) )             # <<<<<<<<<<<<<<
 *     _obsolete = {'complete?'          : 'is_complete',
 *                  'holonomy precision' : 'holonomy_accuracy',
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_kp_u_2d); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_topology); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_1), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_filling); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_1), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_6[0] = __pyx_mstate_global->__pyx_kp_u_Cusp;
    __pyx_t_6[1] = __pyx_t_4;
    __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u__11;
    __pyx_t_6[3] = __pyx_t_5;
    __pyx_t_6[4] = __pyx_mstate_global->__pyx_kp_u_with_Dehn_filling_coefficients;
    __pyx_t_6[5] = __pyx_t_3;

    /* "cython/core/basic.pyx":535
 *                         (self.index, self.topology) )
 *         else:
 *             return ('Cusp %-2d: %s with Dehn filling coefficients (M, L) = %s'%             # <<<<<<<<<<<<<<
 *                     (self.index, self.topology, self.filling) )
 *     _obsolete = {'complete?'          : 'is_complete',
*/
    __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_6, 6, 5 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 41 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3));
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 535, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/basic.pyx":526
 * 
 * class CuspInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.is_complete:
 *             if 'shape' in self:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.CuspInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":543
 * 
 * class DualCurveInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ('%3d: %s curve of length %s'%
 *                 (self.index, MatrixParity[self.parity], self.filled_length))
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13DualCurveInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13DualCurveInfo_1__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13DualCurveInfo_1__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13DualCurveInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 543, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 543, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 543, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 543, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 543, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 543, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.DualCurveInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13DualCurveInfo___repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13DualCurveInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5[5];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":544
 * class DualCurveInfo(Info):
 *     def __repr__(self):
 *         return ('%3d: %s curve of length %s'%             # <<<<<<<<<<<<<<
 *                 (self.index, MatrixParity[self.parity], self.filled_length))
 *     _obsolete = {'complete length' : 'complete_length',
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/basic.pyx":545
 *     def __repr__(self):
 *         return ('%3d: %s curve of length %s'%
 *                 (self.index, MatrixParity[self.parity], self.filled_length))             # <<<<<<<<<<<<<<
 *     _obsolete = {'complete length' : 'complete_length',
 *                  'filled length' : 'filled_length'}
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_kp_u_3d); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_MatrixParity); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_parity); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_filled_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5[0] = __pyx_t_2;
  __pyx_t_5[1] = __pyx_mstate_global->__pyx_kp_u__11;
  __pyx_t_5[2] = __pyx_t_3;
  __pyx_t_5[3] = __pyx_mstate_global->__pyx_kp_u_curve_of_length;
  __pyx_t_5[4] = __pyx_t_1;

  /* "cython/core/basic.pyx":544
 * class DualCurveInfo(Info):
 *     def __repr__(self):
 *         return ('%3d: %s curve of length %s'%             # <<<<<<<<<<<<<<
 *                 (self.index, MatrixParity[self.parity], self.filled_length))
 *     _obsolete = {'complete length' : 'complete_length',
*/
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 17 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1));
  if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":543
 * 
 * class DualCurveInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ('%3d: %s curve of length %s'%
 *                 (self.index, MatrixParity[self.parity], self.filled_length))
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.DualCurveInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":550
 * 
 * 
 * def _StrLongestLen(l):             # <<<<<<<<<<<<<<
 *     return str(max(len(e) for e in l))
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_25_StrLongestLen(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_25_StrLongestLen = {"_StrLongestLen", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_25_StrLongestLen, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_25_StrLongestLen(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_l = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_StrLongestLen (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_l,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 550, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 550, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_StrLongestLen", 0) < (0)) __PYX_ERR(3, 550, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_StrLongestLen", 1, 1, 1, i); __PYX_ERR(3, 550, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 550, __pyx_L3_error)
    }
    __pyx_v_l = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_StrLongestLen", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 550, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy._StrLongestLen", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_24_StrLongestLen(__pyx_self, __pyx_v_l);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_6SnapPy_14_StrLongestLen_2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cython/core/basic.pyx":551
 * 
 * def _StrLongestLen(l):
 *     return str(max(len(e) for e in l))             # <<<<<<<<<<<<<<
 * 
 * 
*/

static PyObject *__pyx_pf_6SnapPy_14_StrLongestLen_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *)__pyx_tp_new_6SnapPy___pyx_scope_struct__genexpr(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(3, 551, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_6SnapPy_14_StrLongestLen_2generator, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_StrLongestLen_locals_genexpr, __pyx_mstate_global->__pyx_n_u_SnapPy); if (unlikely(!gen)) __PYX_ERR(3, 551, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy._StrLongestLen.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_6SnapPy_14_StrLongestLen_2generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *__pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(3, 551, __pyx_L1_error)
  }
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(3, 551, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 551, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 551, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 551, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 551, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(3, 551, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_e);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_e, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_5 = PyObject_Length(__pyx_cur_scope->__pyx_v_e); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(3, 551, __pyx_L1_error)
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(3, 551, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":550
 * 
 * 
 * def _StrLongestLen(l):             # <<<<<<<<<<<<<<
 *     return str(max(len(e) for e in l))
 * 
*/

static PyObject *__pyx_pf_6SnapPy_24_StrLongestLen(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_l) {
  PyObject *__pyx_gb_6SnapPy_14_StrLongestLen_2generator = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_StrLongestLen", 0);

  /* "cython/core/basic.pyx":551
 * 
 * def _StrLongestLen(l):
 *     return str(max(len(e) for e in l))             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __pyx_t_3 = __pyx_pf_6SnapPy_14_StrLongestLen_genexpr(NULL, __pyx_v_l); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_max, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":550
 * 
 * 
 * def _StrLongestLen(l):             # <<<<<<<<<<<<<<
 *     return str(max(len(e) for e in l))
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy._StrLongestLen", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_gb_6SnapPy_14_StrLongestLen_2generator);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":572
 * 
 * class LengthSpectrumInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         lenStr = "%17.14f" % self.length.real()
 *         absImag = abs(self.length.imag())
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18LengthSpectrumInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_18LengthSpectrumInfo_1__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18LengthSpectrumInfo_1__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_18LengthSpectrumInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 572, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 572, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 572, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 572, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 572, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 572, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.LengthSpectrumInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_18LengthSpectrumInfo___repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18LengthSpectrumInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_v_lenStr = NULL;
  PyObject *__pyx_v_absImag = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":573
 * class LengthSpectrumInfo(Info):
 *     def __repr__(self):
 *         lenStr = "%17.14f" % self.length.real()             # <<<<<<<<<<<<<<
 *         absImag = abs(self.length.imag())
 *         if absImag > 1e-9:
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_real, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_17_14f, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_lenStr = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cython/core/basic.pyx":574
 *     def __repr__(self):
 *         lenStr = "%17.14f" % self.length.real()
 *         absImag = abs(self.length.imag())             # <<<<<<<<<<<<<<
 *         if absImag > 1e-9:
 *             if self.length.imag() > 0:
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __pyx_t_2;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_imag, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __Pyx_PyNumber_Absolute(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_absImag = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":575
 *         lenStr = "%17.14f" % self.length.real()
 *         absImag = abs(self.length.imag())
 *         if absImag > 1e-9:             # <<<<<<<<<<<<<<
 *             if self.length.imag() > 0:
 *                 lenStr += " + "
*/
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_absImag, __pyx_mstate_global->__pyx_float_1eneg_9, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 575, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(3, 575, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_5) {

    /* "cython/core/basic.pyx":576
 *         absImag = abs(self.length.imag())
 *         if absImag > 1e-9:
 *             if self.length.imag() > 0:             # <<<<<<<<<<<<<<
 *                 lenStr += " + "
 *             else:
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __pyx_t_1;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_imag, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 576, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_mstate_global->__pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 576, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(3, 576, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_5) {

      /* "cython/core/basic.pyx":577
 *         if absImag > 1e-9:
 *             if self.length.imag() > 0:
 *                 lenStr += " + "             # <<<<<<<<<<<<<<
 *             else:
 *                 lenStr += " - "
*/
      __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_v_lenStr, __pyx_mstate_global->__pyx_kp_u__12); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 577, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_lenStr, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "cython/core/basic.pyx":576
 *         absImag = abs(self.length.imag())
 *         if absImag > 1e-9:
 *             if self.length.imag() > 0:             # <<<<<<<<<<<<<<
 *                 lenStr += " + "
 *             else:
*/
      goto __pyx_L4;
    }

    /* "cython/core/basic.pyx":579
 *                 lenStr += " + "
 *             else:
 *                 lenStr += " - "             # <<<<<<<<<<<<<<
 *             lenStr += "%16.14f*I" % absImag
 * 
*/
    /*else*/ {
      __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_v_lenStr, __pyx_mstate_global->__pyx_kp_u__13); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_lenStr, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;
    }
    __pyx_L4:;

    /* "cython/core/basic.pyx":580
 *             else:
 *                 lenStr += " - "
 *             lenStr += "%16.14f*I" % absImag             # <<<<<<<<<<<<<<
 * 
 *         if 'word' in self:
*/
    __pyx_t_1 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_16_14f_I, __pyx_v_absImag); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_v_lenStr, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_lenStr, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "cython/core/basic.pyx":575
 *         lenStr = "%17.14f" % self.length.real()
 *         absImag = abs(self.length.imag())
 *         if absImag > 1e-9:             # <<<<<<<<<<<<<<
 *             if self.length.imag() > 0:
 *                 lenStr += " + "
*/
  }

  /* "cython/core/basic.pyx":582
 *             lenStr += "%16.14f*I" % absImag
 * 
 *         if 'word' in self:             # <<<<<<<<<<<<<<
 *             return LengthSpectrumFormatStringWithWord % (
 *                 self.multiplicity,
*/
  __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_word, __pyx_v_self, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(3, 582, __pyx_L1_error)
  if (__pyx_t_5) {

    /* "cython/core/basic.pyx":583
 * 
 *         if 'word' in self:
 *             return LengthSpectrumFormatStringWithWord % (             # <<<<<<<<<<<<<<
 *                 self.multiplicity,
 *                 lenStr,
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatStringWithWo); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cython/core/basic.pyx":584
 *         if 'word' in self:
 *             return LengthSpectrumFormatStringWithWord % (
 *                 self.multiplicity,             # <<<<<<<<<<<<<<
 *                 lenStr,
 *                 self.topology,
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_multiplicity); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/basic.pyx":586
 *                 self.multiplicity,
 *                 lenStr,
 *                 self.topology,             # <<<<<<<<<<<<<<
 *                 ShortMatrixParity[self.parity],
 *                 self.word)
*/
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_topology); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 586, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "cython/core/basic.pyx":587
 *                 lenStr,
 *                 self.topology,
 *                 ShortMatrixParity[self.parity],             # <<<<<<<<<<<<<<
 *                 self.word)
 *         else:
*/
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ShortMatrixParity); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_parity); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/basic.pyx":588
 *                 self.topology,
 *                 ShortMatrixParity[self.parity],
 *                 self.word)             # <<<<<<<<<<<<<<
 *         else:
 *             return LengthSpectrumFormatString % (
*/
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_word); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "cython/core/basic.pyx":584
 *         if 'word' in self:
 *             return LengthSpectrumFormatStringWithWord % (
 *                 self.multiplicity,             # <<<<<<<<<<<<<<
 *                 lenStr,
 *                 self.topology,
*/
    __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(3, 584, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_lenStr);
    __Pyx_GIVEREF(__pyx_v_lenStr);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_lenStr) != (0)) __PYX_ERR(3, 584, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_3) != (0)) __PYX_ERR(3, 584, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_8) != (0)) __PYX_ERR(3, 584, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_t_7) != (0)) __PYX_ERR(3, 584, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_3 = 0;
    __pyx_t_8 = 0;
    __pyx_t_7 = 0;

    /* "cython/core/basic.pyx":583
 * 
 *         if 'word' in self:
 *             return LengthSpectrumFormatStringWithWord % (             # <<<<<<<<<<<<<<
 *                 self.multiplicity,
 *                 lenStr,
*/
    __pyx_t_7 = PyNumber_Remainder(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "cython/core/basic.pyx":582
 *             lenStr += "%16.14f*I" % absImag
 * 
 *         if 'word' in self:             # <<<<<<<<<<<<<<
 *             return LengthSpectrumFormatStringWithWord % (
 *                 self.multiplicity,
*/
  }

  /* "cython/core/basic.pyx":590
 *                 self.word)
 *         else:
 *             return LengthSpectrumFormatString % (             # <<<<<<<<<<<<<<
 *                 self.multiplicity,
 *                 lenStr,
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatString); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "cython/core/basic.pyx":591
 *         else:
 *             return LengthSpectrumFormatString % (
 *                 self.multiplicity,             # <<<<<<<<<<<<<<
 *                 lenStr,
 *                 self.topology,
*/
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_multiplicity); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);

    /* "cython/core/basic.pyx":593
 *                 self.multiplicity,
 *                 lenStr,
 *                 self.topology,             # <<<<<<<<<<<<<<
 *                 ShortMatrixParity[self.parity] )
 * 
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_topology); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 593, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cython/core/basic.pyx":594
 *                 lenStr,
 *                 self.topology,
 *                 ShortMatrixParity[self.parity] )             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_ShortMatrixParity); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_parity); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/basic.pyx":591
 *         else:
 *             return LengthSpectrumFormatString % (
 *                 self.multiplicity,             # <<<<<<<<<<<<<<
 *                 lenStr,
 *                 self.topology,
*/
    __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6) != (0)) __PYX_ERR(3, 591, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_lenStr);
    __Pyx_GIVEREF(__pyx_v_lenStr);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_lenStr) != (0)) __PYX_ERR(3, 591, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2) != (0)) __PYX_ERR(3, 591, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_1) != (0)) __PYX_ERR(3, 591, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":590
 *                 self.word)
 *         else:
 *             return LengthSpectrumFormatString % (             # <<<<<<<<<<<<<<
 *                 self.multiplicity,
 *                 lenStr,
*/
    __pyx_t_1 = PyNumber_Remainder(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/basic.pyx":572
 * 
 * class LengthSpectrumInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         lenStr = "%17.14f" % self.length.real()
 *         absImag = abs(self.length.imag())
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.LengthSpectrumInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_lenStr);
  __Pyx_XDECREF(__pyx_v_absImag);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":600
 *     _obsolete = {'precision' : 'accuracies'}
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(self.__dict__)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_9ShapeInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_9ShapeInfo_1__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_9ShapeInfo_1__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_9ShapeInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 600, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 600, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 600, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 600, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 600, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 600, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ShapeInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_9ShapeInfo___repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_9ShapeInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__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("__repr__", 0);

  /* "cython/core/basic.pyx":601
 * 
 *     def __repr__(self):
 *         return repr(self.__dict__)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":600
 *     _obsolete = {'precision' : 'accuracies'}
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(self.__dict__)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.ShapeInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":605
 * 
 * class NormalSurfaceInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         orient = 'Orientable' if self.orientable else 'Non-orientable'
 *         sided = 'two-sided' if self.two_sided else 'one-sided'
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17NormalSurfaceInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17NormalSurfaceInfo_1__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17NormalSurfaceInfo_1__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17NormalSurfaceInfo_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 605, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 605, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 605, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 605, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 605, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 605, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.NormalSurfaceInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17NormalSurfaceInfo___repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17NormalSurfaceInfo___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_v_orient = NULL;
  PyObject *__pyx_v_sided = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6[5];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":606
 * class NormalSurfaceInfo(Info):
 *     def __repr__(self):
 *         orient = 'Orientable' if self.orientable else 'Non-orientable'             # <<<<<<<<<<<<<<
 *         sided = 'two-sided' if self.two_sided else 'one-sided'
 *         return '%s %s with euler = %s' % (orient, sided, self.euler)
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_orientable); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(3, 606, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_Orientable);
    __pyx_t_1 = __pyx_mstate_global->__pyx_n_u_Orientable;
  } else {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Non_orientable);
    __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u_Non_orientable;
  }
  __pyx_v_orient = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":607
 *     def __repr__(self):
 *         orient = 'Orientable' if self.orientable else 'Non-orientable'
 *         sided = 'two-sided' if self.two_sided else 'one-sided'             # <<<<<<<<<<<<<<
 *         return '%s %s with euler = %s' % (orient, sided, self.euler)
 * 
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_two_sided); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(3, 607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_two_sided_2);
    __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u_two_sided_2;
  } else {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_one_sided);
    __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u_one_sided;
  }
  __pyx_v_sided = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":608
 *         orient = 'Orientable' if self.orientable else 'Non-orientable'
 *         sided = 'two-sided' if self.two_sided else 'one-sided'
 *         return '%s %s with euler = %s' % (orient, sided, self.euler)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_orient); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyUnicode_Unicode(__pyx_v_sided); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_euler); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6[0] = __pyx_t_1;
  __pyx_t_6[1] = __pyx_mstate_global->__pyx_kp_u__9;
  __pyx_t_6[2] = __pyx_t_2;
  __pyx_t_6[3] = __pyx_mstate_global->__pyx_kp_u_with_euler;
  __pyx_t_6[4] = __pyx_t_5;
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_6, 5, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 14 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5));
  if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":605
 * 
 * class NormalSurfaceInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         orient = 'Orientable' if self.orientable else 'Non-orientable'
 *         sided = 'two-sided' if self.two_sided else 'one-sided'
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.NormalSurfaceInfo.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_orient);
  __Pyx_XDECREF(__pyx_v_sided);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":612
 * 
 * class LengthSpectrum(list):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if len(self) > 0 and 'word' in self[0]:
 *             base = LengthSpectrumFormatStringWithWord % (
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14LengthSpectrum_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14LengthSpectrum_1__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14LengthSpectrum_1__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14LengthSpectrum_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 612, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 612, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 612, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 612, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 612, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 612, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.LengthSpectrum.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14LengthSpectrum___repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14LengthSpectrum___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_v_base = NULL;
  PyObject *__pyx_8genexpr6__pyx_v_s = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":613
 * class LengthSpectrum(list):
 *     def __repr__(self):
 *         if len(self) > 0 and 'word' in self[0]:             # <<<<<<<<<<<<<<
 *             base = LengthSpectrumFormatStringWithWord % (
 *                 'mult', ' length', 'topology', 'parity', 'word')
*/
  __pyx_t_2 = PyObject_Length(__pyx_v_self); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(3, 613, __pyx_L1_error)
  __pyx_t_3 = (__pyx_t_2 > 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_self, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_word, __pyx_t_4, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(3, 613, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/basic.pyx":614
 *     def __repr__(self):
 *         if len(self) > 0 and 'word' in self[0]:
 *             base = LengthSpectrumFormatStringWithWord % (             # <<<<<<<<<<<<<<
 *                 'mult', ' length', 'topology', 'parity', 'word')
 *         else:
*/
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatStringWithWo); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);

    /* "cython/core/basic.pyx":615
 *         if len(self) > 0 and 'word' in self[0]:
 *             base = LengthSpectrumFormatStringWithWord % (
 *                 'mult', ' length', 'topology', 'parity', 'word')             # <<<<<<<<<<<<<<
 *         else:
 *             base = LengthSpectrumFormatString % (
*/
    __pyx_t_5 = PyNumber_Remainder(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[1]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_base = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/basic.pyx":613
 * class LengthSpectrum(list):
 *     def __repr__(self):
 *         if len(self) > 0 and 'word' in self[0]:             # <<<<<<<<<<<<<<
 *             base = LengthSpectrumFormatStringWithWord % (
 *                 'mult', ' length', 'topology', 'parity', 'word')
*/
    goto __pyx_L3;
  }

  /* "cython/core/basic.pyx":617
 *                 'mult', ' length', 'topology', 'parity', 'word')
 *         else:
 *             base = LengthSpectrumFormatString % (             # <<<<<<<<<<<<<<
 *                 'mult', ' length', 'topology', 'parity')
 *         return '\n'.join([base] + [repr(s) for s in self])
*/
  /*else*/ {
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatString); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "cython/core/basic.pyx":618
 *         else:
 *             base = LengthSpectrumFormatString % (
 *                 'mult', ' length', 'topology', 'parity')             # <<<<<<<<<<<<<<
 *         return '\n'.join([base] + [repr(s) for s in self])
 * 
*/
    __pyx_t_4 = PyNumber_Remainder(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[2]); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_base = __pyx_t_4;
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cython/core/basic.pyx":619
 *             base = LengthSpectrumFormatString % (
 *                 'mult', ' length', 'topology', 'parity')
 *         return '\n'.join([base] + [repr(s) for s in self])             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_base);
  __Pyx_GIVEREF(__pyx_v_base);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_4, 0, __pyx_v_base) != (0)) __PYX_ERR(3, 619, __pyx_L1_error);
  { /* enter inner scope */
    __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 619, __pyx_L8_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (likely(PyList_CheckExact(__pyx_v_self)) || PyTuple_CheckExact(__pyx_v_self)) {
      __pyx_t_6 = __pyx_v_self; __Pyx_INCREF(__pyx_t_6);
      __pyx_t_2 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_2 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_self); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 619, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 619, __pyx_L8_error)
    }
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_6))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 619, __pyx_L8_error)
            #endif
            if (__pyx_t_2 >= __pyx_temp) break;
          }
          __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_2;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 619, __pyx_L8_error)
            #endif
            if (__pyx_t_2 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_8 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_2));
          #else
          __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_2);
          #endif
          ++__pyx_t_2;
        }
        if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 619, __pyx_L8_error)
      } else {
        __pyx_t_8 = __pyx_t_7(__pyx_t_6);
        if (unlikely(!__pyx_t_8)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(3, 619, __pyx_L8_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_XDECREF_SET(__pyx_8genexpr6__pyx_v_s, __pyx_t_8);
      __pyx_t_8 = 0;
      __pyx_t_8 = PyObject_Repr(__pyx_8genexpr6__pyx_v_s); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 619, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_8);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_8))) __PYX_ERR(3, 619, __pyx_L8_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_s); __pyx_8genexpr6__pyx_v_s = 0;
    goto __pyx_L12_exit_scope;
    __pyx_L8_error:;
    __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_s); __pyx_8genexpr6__pyx_v_s = 0;
    goto __pyx_L1_error;
    __pyx_L12_exit_scope:;
  } /* exit inner scope */
  __pyx_t_6 = PyNumber_Add(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u_, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":612
 * 
 * class LengthSpectrum(list):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if len(self) > 0 and 'word' in self[0]:
 *             base = LengthSpectrumFormatStringWithWord % (
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.LengthSpectrum.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_base);
  __Pyx_XDECREF(__pyx_8genexpr6__pyx_v_s);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":623
 * 
 * class ListOnePerLine(list):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '[' + ',\n '.join([repr(s) for s in self]) + ']'
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14ListOnePerLine_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14ListOnePerLine_1__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14ListOnePerLine_1__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14ListOnePerLine_1__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 623, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 623, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 623, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 623, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 623, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 623, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ListOnePerLine.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14ListOnePerLine___repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14ListOnePerLine___repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_8genexpr7__pyx_v_s = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":624
 * class ListOnePerLine(list):
 *     def __repr__(self):
 *         return '[' + ',\n '.join([repr(s) for s in self]) + ']'             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 624, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_self)) || PyTuple_CheckExact(__pyx_v_self)) {
      __pyx_t_2 = __pyx_v_self; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = 0;
      __pyx_t_4 = NULL;
    } else {
      __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 624, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 624, __pyx_L5_error)
    }
    for (;;) {
      if (likely(!__pyx_t_4)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 624, __pyx_L5_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_3;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(3, 624, __pyx_L5_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3);
          #endif
          ++__pyx_t_3;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 624, __pyx_L5_error)
      } else {
        __pyx_t_5 = __pyx_t_4(__pyx_t_2);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(3, 624, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_8genexpr7__pyx_v_s, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_5 = PyObject_Repr(__pyx_8genexpr7__pyx_v_s); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 624, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(3, 624, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_s); __pyx_8genexpr7__pyx_v_s = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_s); __pyx_8genexpr7__pyx_v_s = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__15, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u__14, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__5); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":623
 * 
 * class ListOnePerLine(list):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '[' + ',\n '.join([repr(s) for s in self]) + ']'
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.ListOnePerLine.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_8genexpr7__pyx_v_s);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":629
 * # Isometry
 * 
 * def format_two_by_two(mat):             # <<<<<<<<<<<<<<
 *     a,b,c,d = ['%d' % x for x in [mat[0,0], mat[0,1], mat[1,0], mat[1,1]]]
 *     w0 = max(len(a), len(c))
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_27format_two_by_two(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_27format_two_by_two = {"format_two_by_two", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_27format_two_by_two, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_27format_two_by_two(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_mat = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("format_two_by_two (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_mat,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 629, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 629, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "format_two_by_two", 0) < (0)) __PYX_ERR(3, 629, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("format_two_by_two", 1, 1, 1, i); __PYX_ERR(3, 629, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 629, __pyx_L3_error)
    }
    __pyx_v_mat = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("format_two_by_two", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 629, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.format_two_by_two", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_26format_two_by_two(__pyx_self, __pyx_v_mat);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_26format_two_by_two(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_mat) {
  PyObject *__pyx_v_a = NULL;
  PyObject *__pyx_v_b = NULL;
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_v_d = NULL;
  PyObject *__pyx_v_w0 = NULL;
  PyObject *__pyx_v_w1 = NULL;
  PyObject *__pyx_8genexpr8__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  int __pyx_t_10;
  size_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("format_two_by_two", 0);

  /* "cython/core/basic.pyx":630
 * 
 * def format_two_by_two(mat):
 *     a,b,c,d = ['%d' % x for x in [mat[0,0], mat[0,1], mat[1,0], mat[1,1]]]             # <<<<<<<<<<<<<<
 *     w0 = max(len(a), len(c))
 *     w1 = max(len(b), len(d))
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 630, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_mat, __pyx_mstate_global->__pyx_tuple[3]); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 630, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_mat, __pyx_mstate_global->__pyx_tuple[4]); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 630, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_mat, __pyx_mstate_global->__pyx_tuple[5]); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 630, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_mat, __pyx_mstate_global->__pyx_tuple[6]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 630, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 630, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2) != (0)) __PYX_ERR(3, 630, __pyx_L5_error);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3) != (0)) __PYX_ERR(3, 630, __pyx_L5_error);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4) != (0)) __PYX_ERR(3, 630, __pyx_L5_error);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_5) != (0)) __PYX_ERR(3, 630, __pyx_L5_error);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = __pyx_t_6; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    for (;;) {
      if (__pyx_t_7 >= 4) break;
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_7));
      #else
      __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_7);
      #endif
      ++__pyx_t_7;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 630, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_8genexpr8__pyx_v_x, __pyx_t_6);
      __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d, __pyx_8genexpr8__pyx_v_x); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 630, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(3, 630, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_8genexpr8__pyx_v_x); __pyx_8genexpr8__pyx_v_x = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_8genexpr8__pyx_v_x); __pyx_8genexpr8__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  if (1) {
    PyObject* sequence = __pyx_t_1;
    Py_ssize_t size = __Pyx_PyList_GET_SIZE(sequence);
    if (unlikely(size != 4)) {
      if (size > 4) __Pyx_RaiseTooManyValuesError(4);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(3, 630, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
    if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 630, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 630, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_t_6);
    __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
    if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 630, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
    if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 630, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_t_3);
    #else
    {
      Py_ssize_t i;
      PyObject** temps[4] = {&__pyx_t_5,&__pyx_t_6,&__pyx_t_4,&__pyx_t_3};
      for (i=0; i < 4; i++) {
        PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(3, 630, __pyx_L1_error)
        __Pyx_GOTREF(item);
        *(temps[i]) = item;
      }
    }
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __pyx_v_a = __pyx_t_5;
  __pyx_t_5 = 0;
  __pyx_v_b = __pyx_t_6;
  __pyx_t_6 = 0;
  __pyx_v_c = __pyx_t_4;
  __pyx_t_4 = 0;
  __pyx_v_d = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/basic.pyx":631
 * def format_two_by_two(mat):
 *     a,b,c,d = ['%d' % x for x in [mat[0,0], mat[0,1], mat[1,0], mat[1,1]]]
 *     w0 = max(len(a), len(c))             # <<<<<<<<<<<<<<
 *     w1 = max(len(b), len(d))
 *     return ('[' + a.rjust(w0) + ' ' + b.rjust(w1) + ']',
*/
  __pyx_t_7 = PyObject_Length(__pyx_v_c); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 631, __pyx_L1_error)
  __pyx_t_8 = PyObject_Length(__pyx_v_a); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(3, 631, __pyx_L1_error)
  __pyx_t_10 = (__pyx_t_7 > __pyx_t_8);
  if (__pyx_t_10) {
    __pyx_t_9 = __pyx_t_7;
  } else {
    __pyx_t_9 = __pyx_t_8;
  }
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_w0 = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":632
 *     a,b,c,d = ['%d' % x for x in [mat[0,0], mat[0,1], mat[1,0], mat[1,1]]]
 *     w0 = max(len(a), len(c))
 *     w1 = max(len(b), len(d))             # <<<<<<<<<<<<<<
 *     return ('[' + a.rjust(w0) + ' ' + b.rjust(w1) + ']',
 *             '[' + c.rjust(w0) + ' ' + d.rjust(w1) + ']')
*/
  __pyx_t_9 = PyObject_Length(__pyx_v_d); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(3, 632, __pyx_L1_error)
  __pyx_t_7 = PyObject_Length(__pyx_v_b); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(3, 632, __pyx_L1_error)
  __pyx_t_10 = (__pyx_t_9 > __pyx_t_7);
  if (__pyx_t_10) {
    __pyx_t_8 = __pyx_t_9;
  } else {
    __pyx_t_8 = __pyx_t_7;
  }
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_w1 = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":633
 *     w0 = max(len(a), len(c))
 *     w1 = max(len(b), len(d))
 *     return ('[' + a.rjust(w0) + ' ' + b.rjust(w1) + ']',             # <<<<<<<<<<<<<<
 *             '[' + c.rjust(w0) + ' ' + d.rjust(w1) + ']')
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __pyx_v_a;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_11 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_w0};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rjust, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_3 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__14, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__9); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __pyx_v_b;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_11 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_w1};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rjust, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__5); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/basic.pyx":634
 *     w1 = max(len(b), len(d))
 *     return ('[' + a.rjust(w0) + ' ' + b.rjust(w1) + ']',
 *             '[' + c.rjust(w0) + ' ' + d.rjust(w1) + ']')             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_1 = __pyx_v_c;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_11 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_w0};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rjust, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 634, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_1 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__14, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyNumber_Add(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__9); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_6 = __pyx_v_d;
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_11 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_w1};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_rjust, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 634, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_6 = PyNumber_Add(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_6, __pyx_mstate_global->__pyx_kp_u__5); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":633
 *     w0 = max(len(a), len(c))
 *     w1 = max(len(b), len(d))
 *     return ('[' + a.rjust(w0) + ' ' + b.rjust(w1) + ']',             # <<<<<<<<<<<<<<
 *             '[' + c.rjust(w0) + ' ' + d.rjust(w1) + ']')
 * 
*/
  __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(3, 633, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1) != (0)) __PYX_ERR(3, 633, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":629
 * # Isometry
 * 
 * def format_two_by_two(mat):             # <<<<<<<<<<<<<<
 *     a,b,c,d = ['%d' % x for x in [mat[0,0], mat[0,1], mat[1,0], mat[1,1]]]
 *     w0 = max(len(a), len(c))
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.format_two_by_two", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_a);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XDECREF(__pyx_v_d);
  __Pyx_XDECREF(__pyx_v_w0);
  __Pyx_XDECREF(__pyx_v_w1);
  __Pyx_XDECREF(__pyx_8genexpr8__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":641
 *     Represents an isometry from one manifold to another.
 *     """
 *     def __init__(self, cusp_images, cusp_maps, extends_to_link):             # <<<<<<<<<<<<<<
 *         self._cusp_images, self._cusp_maps = cusp_images, cusp_maps
 *         self._extends_to_link = extends_to_link
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Isometry_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Isometry_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Isometry_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Isometry_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_cusp_images = 0;
  PyObject *__pyx_v_cusp_maps = 0;
  PyObject *__pyx_v_extends_to_link = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_cusp_images,&__pyx_mstate_global->__pyx_n_u_cusp_maps,&__pyx_mstate_global->__pyx_n_u_extends_to_link,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 641, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 641, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 641, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 641, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 641, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(3, 641, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, i); __PYX_ERR(3, 641, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 641, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 641, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 641, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(3, 641, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_cusp_images = values[1];
    __pyx_v_cusp_maps = values[2];
    __pyx_v_extends_to_link = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, __pyx_nargs); __PYX_ERR(3, 641, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Isometry.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Isometry___init__(__pyx_self, __pyx_v_self, __pyx_v_cusp_images, __pyx_v_cusp_maps, __pyx_v_extends_to_link);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Isometry___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_cusp_images, PyObject *__pyx_v_cusp_maps, PyObject *__pyx_v_extends_to_link) {
  PyObject *__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);

  /* "cython/core/basic.pyx":642
 *     """
 *     def __init__(self, cusp_images, cusp_maps, extends_to_link):
 *         self._cusp_images, self._cusp_maps = cusp_images, cusp_maps             # <<<<<<<<<<<<<<
 *         self._extends_to_link = extends_to_link
 * 
*/
  __pyx_t_1 = __pyx_v_cusp_images;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = __pyx_v_cusp_maps;
  __Pyx_INCREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_cusp_images_2, __pyx_t_1) < (0)) __PYX_ERR(3, 642, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_cusp_maps_2, __pyx_t_2) < (0)) __PYX_ERR(3, 642, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":643
 *     def __init__(self, cusp_images, cusp_maps, extends_to_link):
 *         self._cusp_images, self._cusp_maps = cusp_images, cusp_maps
 *         self._extends_to_link = extends_to_link             # <<<<<<<<<<<<<<
 * 
 *     def cusp_images(self):
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_extends_to_link_2, __pyx_v_extends_to_link) < (0)) __PYX_ERR(3, 643, __pyx_L1_error)

  /* "cython/core/basic.pyx":641
 *     Represents an isometry from one manifold to another.
 *     """
 *     def __init__(self, cusp_images, cusp_maps, extends_to_link):             # <<<<<<<<<<<<<<
 *         self._cusp_images, self._cusp_maps = cusp_images, cusp_maps
 *         self._extends_to_link = extends_to_link
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Isometry.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":645
 *         self._extends_to_link = extends_to_link
 * 
 *     def cusp_images(self):             # <<<<<<<<<<<<<<
 *         return self._cusp_images
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Isometry_3cusp_images(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Isometry_3cusp_images = {"cusp_images", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Isometry_3cusp_images, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Isometry_3cusp_images(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cusp_images (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 645, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 645, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "cusp_images", 0) < (0)) __PYX_ERR(3, 645, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cusp_images", 1, 1, 1, i); __PYX_ERR(3, 645, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 645, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cusp_images", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 645, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Isometry.cusp_images", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Isometry_2cusp_images(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Isometry_2cusp_images(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  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("cusp_images", 0);

  /* "cython/core/basic.pyx":646
 * 
 *     def cusp_images(self):
 *         return self._cusp_images             # <<<<<<<<<<<<<<
 * 
 *     def cusp_maps(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_cusp_images_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 646, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":645
 *         self._extends_to_link = extends_to_link
 * 
 *     def cusp_images(self):             # <<<<<<<<<<<<<<
 *         return self._cusp_images
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.Isometry.cusp_images", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":648
 *         return self._cusp_images
 * 
 *     def cusp_maps(self):             # <<<<<<<<<<<<<<
 *         return self._cusp_maps
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Isometry_5cusp_maps(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Isometry_5cusp_maps = {"cusp_maps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Isometry_5cusp_maps, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Isometry_5cusp_maps(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cusp_maps (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 648, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 648, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "cusp_maps", 0) < (0)) __PYX_ERR(3, 648, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cusp_maps", 1, 1, 1, i); __PYX_ERR(3, 648, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 648, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cusp_maps", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 648, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Isometry.cusp_maps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Isometry_4cusp_maps(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Isometry_4cusp_maps(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  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("cusp_maps", 0);

  /* "cython/core/basic.pyx":649
 * 
 *     def cusp_maps(self):
 *         return self._cusp_maps             # <<<<<<<<<<<<<<
 * 
 *     def extends_to_link(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_cusp_maps_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":648
 *         return self._cusp_images
 * 
 *     def cusp_maps(self):             # <<<<<<<<<<<<<<
 *         return self._cusp_maps
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.Isometry.cusp_maps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":651
 *         return self._cusp_maps
 * 
 *     def extends_to_link(self):             # <<<<<<<<<<<<<<
 *         return self._extends_to_link
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Isometry_7extends_to_link(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Isometry_7extends_to_link = {"extends_to_link", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Isometry_7extends_to_link, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Isometry_7extends_to_link(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("extends_to_link (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 651, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 651, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "extends_to_link", 0) < (0)) __PYX_ERR(3, 651, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("extends_to_link", 1, 1, 1, i); __PYX_ERR(3, 651, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 651, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("extends_to_link", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 651, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Isometry.extends_to_link", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Isometry_6extends_to_link(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Isometry_6extends_to_link(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  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("extends_to_link", 0);

  /* "cython/core/basic.pyx":652
 * 
 *     def extends_to_link(self):
 *         return self._extends_to_link             # <<<<<<<<<<<<<<
 * 
 *     def num_cusps(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_extends_to_link_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":651
 *         return self._cusp_maps
 * 
 *     def extends_to_link(self):             # <<<<<<<<<<<<<<
 *         return self._extends_to_link
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.Isometry.extends_to_link", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":654
 *         return self._extends_to_link
 * 
 *     def num_cusps(self):             # <<<<<<<<<<<<<<
 *         return len(self.cusp_images())
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Isometry_9num_cusps(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Isometry_9num_cusps = {"num_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Isometry_9num_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Isometry_9num_cusps(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_cusps (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 654, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 654, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "num_cusps", 0) < (0)) __PYX_ERR(3, 654, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("num_cusps", 1, 1, 1, i); __PYX_ERR(3, 654, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 654, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("num_cusps", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 654, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Isometry.num_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Isometry_8num_cusps(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Isometry_8num_cusps(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("num_cusps", 0);

  /* "cython/core/basic.pyx":655
 * 
 *     def num_cusps(self):
 *         return len(self.cusp_images())             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_images, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(3, 655, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":654
 *         return self._extends_to_link
 * 
 *     def num_cusps(self):             # <<<<<<<<<<<<<<
 *         return len(self.cusp_images())
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Isometry.num_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":657
 *         return len(self.cusp_images())
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         images = self.cusp_images()
 *         maps = self.cusp_maps()
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Isometry_11__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Isometry_11__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Isometry_11__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Isometry_11__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 657, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 657, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(3, 657, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(3, 657, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 657, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 657, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Isometry.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Isometry_10__repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Isometry_10__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_v_images = NULL;
  PyObject *__pyx_v_maps = NULL;
  PyObject *__pyx_v_line0 = NULL;
  PyObject *__pyx_v_line1 = NULL;
  PyObject *__pyx_v_line2 = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_l0 = NULL;
  PyObject *__pyx_v_l1 = NULL;
  PyObject *__pyx_v_l2 = NULL;
  Py_ssize_t __pyx_v_L;
  PyObject *__pyx_v_line3 = NULL;
  PyObject *__pyx_8genexpr9__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7[3];
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  Py_ssize_t __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/basic.pyx":658
 * 
 *     def __repr__(self):
 *         images = self.cusp_images()             # <<<<<<<<<<<<<<
 *         maps = self.cusp_maps()
 *         line0, line1, line2 = [], [], []
*/
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_images, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_images = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":659
 *     def __repr__(self):
 *         images = self.cusp_images()
 *         maps = self.cusp_maps()             # <<<<<<<<<<<<<<
 *         line0, line1, line2 = [], [], []
 *         for i in range(self.num_cusps()):
*/
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_maps, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_maps = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":660
 *         images = self.cusp_images()
 *         maps = self.cusp_maps()
 *         line0, line1, line2 = [], [], []             # <<<<<<<<<<<<<<
 *         for i in range(self.num_cusps()):
 *             l0 = '%d -> %d' % (i, images[i])
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 660, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_line0 = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_v_line1 = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_v_line2 = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/basic.pyx":661
 *         maps = self.cusp_maps()
 *         line0, line1, line2 = [], [], []
 *         for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *             l0 = '%d -> %d' % (i, images[i])
 *             l1, l2 = format_two_by_two(maps[i])
*/
  __pyx_t_2 = NULL;
  __pyx_t_5 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_1};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 661, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  for (;;) {
    {
      __pyx_t_4 = __pyx_t_6(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(3, 661, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/basic.pyx":662
 *         line0, line1, line2 = [], [], []
 *         for i in range(self.num_cusps()):
 *             l0 = '%d -> %d' % (i, images[i])             # <<<<<<<<<<<<<<
 *             l1, l2 = format_two_by_two(maps[i])
 *             L = max(len(l0), len(l1), len(l2))
*/
    __pyx_t_4 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_i), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_images, __pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_2), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_7[0] = __pyx_t_4;
    __pyx_t_7[1] = __pyx_mstate_global->__pyx_kp_u__16;
    __pyx_t_7[2] = __pyx_t_5;
    __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 4 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5));
    if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_l0, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "cython/core/basic.pyx":663
 *         for i in range(self.num_cusps()):
 *             l0 = '%d -> %d' % (i, images[i])
 *             l1, l2 = format_two_by_two(maps[i])             # <<<<<<<<<<<<<<
 *             L = max(len(l0), len(l1), len(l2))
 *             line0.append(l0.ljust(L))
*/
    __pyx_t_5 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_format_two_by_two); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 663, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_v_maps, __pyx_v_i); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 663, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_3 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_5);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_3 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_8};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 663, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(3, 663, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_8);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 663, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 663, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
      }
      #else
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 663, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 663, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 663, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5);
      index = 0; __pyx_t_4 = __pyx_t_9(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_8 = __pyx_t_9(__pyx_t_5); if (unlikely(!__pyx_t_8)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_8);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_5), 2) < (0)) __PYX_ERR(3, 663, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(3, 663, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_l1, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_l2, __pyx_t_8);
    __pyx_t_8 = 0;

    /* "cython/core/basic.pyx":664
 *             l0 = '%d -> %d' % (i, images[i])
 *             l1, l2 = format_two_by_two(maps[i])
 *             L = max(len(l0), len(l1), len(l2))             # <<<<<<<<<<<<<<
 *             line0.append(l0.ljust(L))
 *             line1.append(l1.ljust(L))
*/
    __pyx_t_10 = PyObject_Length(__pyx_v_l1); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(3, 664, __pyx_L1_error)
    __pyx_t_11 = PyObject_Length(__pyx_v_l2); if (unlikely(__pyx_t_11 == ((Py_ssize_t)-1))) __PYX_ERR(3, 664, __pyx_L1_error)
    __pyx_t_12 = __Pyx_PyUnicode_GET_LENGTH(__pyx_v_l0); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(3, 664, __pyx_L1_error)
    __pyx_t_14 = (__pyx_t_10 > __pyx_t_12);
    if (__pyx_t_14) {
      __pyx_t_13 = __pyx_t_10;
    } else {
      __pyx_t_13 = __pyx_t_12;
    }
    __pyx_t_12 = __pyx_t_13;
    __pyx_t_14 = (__pyx_t_11 > __pyx_t_12);
    if (__pyx_t_14) {
      __pyx_t_13 = __pyx_t_11;
    } else {
      __pyx_t_13 = __pyx_t_12;
    }
    __pyx_v_L = __pyx_t_13;

    /* "cython/core/basic.pyx":665
 *             l1, l2 = format_two_by_two(maps[i])
 *             L = max(len(l0), len(l1), len(l2))
 *             line0.append(l0.ljust(L))             # <<<<<<<<<<<<<<
 *             line1.append(l1.ljust(L))
 *             line2.append(l2.ljust(L))
*/
    __pyx_t_2 = PyLong_FromSsize_t(__pyx_v_L); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 665, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyUnicode_Type__ljust, __pyx_v_l0, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 665, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_line0, __pyx_t_8); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 665, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cython/core/basic.pyx":666
 *             L = max(len(l0), len(l1), len(l2))
 *             line0.append(l0.ljust(L))
 *             line1.append(l1.ljust(L))             # <<<<<<<<<<<<<<
 *             line2.append(l2.ljust(L))
 *         line3 = 'Extends to link' if self.extends_to_link() else 'Does not extend to link'
*/
    __pyx_t_2 = __pyx_v_l1;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_v_L); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_ljust, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 666, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_line1, __pyx_t_8); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 666, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cython/core/basic.pyx":667
 *             line0.append(l0.ljust(L))
 *             line1.append(l1.ljust(L))
 *             line2.append(l2.ljust(L))             # <<<<<<<<<<<<<<
 *         line3 = 'Extends to link' if self.extends_to_link() else 'Does not extend to link'
 *         return '\n'.join(['  '.join(l).strip()
*/
    __pyx_t_4 = __pyx_v_l2;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_2 = PyLong_FromSsize_t(__pyx_v_L); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 667, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_2};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_ljust, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 667, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_line2, __pyx_t_8); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(3, 667, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cython/core/basic.pyx":661
 *         maps = self.cusp_maps()
 *         line0, line1, line2 = [], [], []
 *         for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *             l0 = '%d -> %d' % (i, images[i])
 *             l1, l2 = format_two_by_two(maps[i])
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":668
 *             line1.append(l1.ljust(L))
 *             line2.append(l2.ljust(L))
 *         line3 = 'Extends to link' if self.extends_to_link() else 'Does not extend to link'             # <<<<<<<<<<<<<<
 *         return '\n'.join(['  '.join(l).strip()
 *                           for l in [line0, line1, line2]] + [line3])
*/
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_extends_to_link, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(3, 668, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (__pyx_t_14) {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Extends_to_link);
    __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u_Extends_to_link;
  } else {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Does_not_extend_to_link);
    __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u_Does_not_extend_to_link;
  }
  __pyx_v_line3 = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":669
 *             line2.append(l2.ljust(L))
 *         line3 = 'Extends to link' if self.extends_to_link() else 'Does not extend to link'
 *         return '\n'.join(['  '.join(l).strip()             # <<<<<<<<<<<<<<
 *                           for l in [line0, line1, line2]] + [line3])
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 669, __pyx_L10_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/basic.pyx":670
 *         line3 = 'Extends to link' if self.extends_to_link() else 'Does not extend to link'
 *         return '\n'.join(['  '.join(l).strip()
 *                           for l in [line0, line1, line2]] + [line3])             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 670, __pyx_L10_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_INCREF(__pyx_v_line0);
    __Pyx_GIVEREF(__pyx_v_line0);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_line0) != (0)) __PYX_ERR(3, 670, __pyx_L10_error);
    __Pyx_INCREF(__pyx_v_line1);
    __Pyx_GIVEREF(__pyx_v_line1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_line1) != (0)) __PYX_ERR(3, 670, __pyx_L10_error);
    __Pyx_INCREF(__pyx_v_line2);
    __Pyx_GIVEREF(__pyx_v_line2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_v_line2) != (0)) __PYX_ERR(3, 670, __pyx_L10_error);
    __pyx_t_2 = __pyx_t_8; __Pyx_INCREF(__pyx_t_2);
    __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    for (;;) {
      if (__pyx_t_13 >= 3) break;
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_8 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_13));
      #else
      __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_13);
      #endif
      ++__pyx_t_13;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 670, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_XDECREF_SET(__pyx_8genexpr9__pyx_v_l, ((PyObject*)__pyx_t_8));
      __pyx_t_8 = 0;

      /* "cython/core/basic.pyx":669
 *             line2.append(l2.ljust(L))
 *         line3 = 'Extends to link' if self.extends_to_link() else 'Does not extend to link'
 *         return '\n'.join(['  '.join(l).strip()             # <<<<<<<<<<<<<<
 *                           for l in [line0, line1, line2]] + [line3])
 * 
*/
      __pyx_t_5 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__17, __pyx_8genexpr9__pyx_v_l); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 669, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = __pyx_t_5;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_3 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 669, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_8))) __PYX_ERR(3, 669, __pyx_L10_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cython/core/basic.pyx":670
 *         line3 = 'Extends to link' if self.extends_to_link() else 'Does not extend to link'
 *         return '\n'.join(['  '.join(l).strip()
 *                           for l in [line0, line1, line2]] + [line3])             # <<<<<<<<<<<<<<
 * 
 * 
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_8genexpr9__pyx_v_l); __pyx_8genexpr9__pyx_v_l = 0;
    goto __pyx_L14_exit_scope;
    __pyx_L10_error:;
    __Pyx_XDECREF(__pyx_8genexpr9__pyx_v_l); __pyx_8genexpr9__pyx_v_l = 0;
    goto __pyx_L1_error;
    __pyx_L14_exit_scope:;
  } /* exit inner scope */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_line3);
  __Pyx_GIVEREF(__pyx_v_line3);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_line3) != (0)) __PYX_ERR(3, 670, __pyx_L1_error);
  __pyx_t_8 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":669
 *             line2.append(l2.ljust(L))
 *         line3 = 'Extends to link' if self.extends_to_link() else 'Does not extend to link'
 *         return '\n'.join(['  '.join(l).strip()             # <<<<<<<<<<<<<<
 *                           for l in [line0, line1, line2]] + [line3])
 * 
*/
  __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u_, __pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":657
 *         return len(self.cusp_images())
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         images = self.cusp_images()
 *         maps = self.cusp_maps()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.Isometry.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_images);
  __Pyx_XDECREF(__pyx_v_maps);
  __Pyx_XDECREF(__pyx_v_line0);
  __Pyx_XDECREF(__pyx_v_line1);
  __Pyx_XDECREF(__pyx_v_line2);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_l0);
  __Pyx_XDECREF(__pyx_v_l1);
  __Pyx_XDECREF(__pyx_v_l2);
  __Pyx_XDECREF(__pyx_v_line3);
  __Pyx_XDECREF(__pyx_8genexpr9__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":673
 * 
 * 
 * cdef IsometryListToIsometries(IsometryList *isometries):             # <<<<<<<<<<<<<<
 *     cdef int n, c, i = 0, j = 0, c_cusp_image
 *     cdef MatrixInt22  c_cusp_map
*/

static PyObject *__pyx_f_6SnapPy_IsometryListToIsometries(IsometryList *__pyx_v_isometries) {
  int __pyx_v_n;
  int __pyx_v_c;
  int __pyx_v_i;
  int __pyx_v_j;
  int __pyx_v_c_cusp_image;
  MatrixInt22 __pyx_v_c_cusp_map;
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_v_cusp_images = NULL;
  PyObject *__pyx_v_cusp_maps = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  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;
  size_t __pyx_t_15;
  Boolean __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("IsometryListToIsometries", 0);

  /* "cython/core/basic.pyx":674
 * 
 * cdef IsometryListToIsometries(IsometryList *isometries):
 *     cdef int n, c, i = 0, j = 0, c_cusp_image             # <<<<<<<<<<<<<<
 *     cdef MatrixInt22  c_cusp_map
 *     n = isometry_list_size(isometries)
*/
  __pyx_v_i = 0;
  __pyx_v_j = 0;

  /* "cython/core/basic.pyx":676
 *     cdef int n, c, i = 0, j = 0, c_cusp_image
 *     cdef MatrixInt22  c_cusp_map
 *     n = isometry_list_size(isometries)             # <<<<<<<<<<<<<<
 *     c = isometry_list_num_cusps(isometries)
 * 
*/
  __pyx_t_1 = isometry_list_size(__pyx_v_isometries); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 676, __pyx_L1_error)
  __pyx_v_n = __pyx_t_1;

  /* "cython/core/basic.pyx":677
 *     cdef MatrixInt22  c_cusp_map
 *     n = isometry_list_size(isometries)
 *     c = isometry_list_num_cusps(isometries)             # <<<<<<<<<<<<<<
 * 
 *     ans = []
*/
  __pyx_t_1 = isometry_list_num_cusps(__pyx_v_isometries); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 677, __pyx_L1_error)
  __pyx_v_c = __pyx_t_1;

  /* "cython/core/basic.pyx":679
 *     c = isometry_list_num_cusps(isometries)
 * 
 *     ans = []             # <<<<<<<<<<<<<<
 *     for i in range(n):
 *         cusp_images = []
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_ans = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":680
 * 
 *     ans = []
 *     for i in range(n):             # <<<<<<<<<<<<<<
 *         cusp_images = []
 *         cusp_maps = []
*/
  __pyx_t_1 = __pyx_v_n;
  __pyx_t_3 = __pyx_t_1;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "cython/core/basic.pyx":681
 *     ans = []
 *     for i in range(n):
 *         cusp_images = []             # <<<<<<<<<<<<<<
 *         cusp_maps = []
 *         for j in range(c):
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_cusp_images, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "cython/core/basic.pyx":682
 *     for i in range(n):
 *         cusp_images = []
 *         cusp_maps = []             # <<<<<<<<<<<<<<
 *         for j in range(c):
 *             isometry_list_cusp_action(isometries, i, j, &c_cusp_image, c_cusp_map)
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 682, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_cusp_maps, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "cython/core/basic.pyx":683
 *         cusp_images = []
 *         cusp_maps = []
 *         for j in range(c):             # <<<<<<<<<<<<<<
 *             isometry_list_cusp_action(isometries, i, j, &c_cusp_image, c_cusp_map)
 *             cusp_images.append(c_cusp_image)
*/
    __pyx_t_5 = __pyx_v_c;
    __pyx_t_6 = __pyx_t_5;
    for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
      __pyx_v_j = __pyx_t_7;

      /* "cython/core/basic.pyx":684
 *         cusp_maps = []
 *         for j in range(c):
 *             isometry_list_cusp_action(isometries, i, j, &c_cusp_image, c_cusp_map)             # <<<<<<<<<<<<<<
 *             cusp_images.append(c_cusp_image)
 *             cusp_maps.append(matrix(
*/
      isometry_list_cusp_action(__pyx_v_isometries, __pyx_v_i, __pyx_v_j, (&__pyx_v_c_cusp_image), __pyx_v_c_cusp_map); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 684, __pyx_L1_error)

      /* "cython/core/basic.pyx":685
 *         for j in range(c):
 *             isometry_list_cusp_action(isometries, i, j, &c_cusp_image, c_cusp_map)
 *             cusp_images.append(c_cusp_image)             # <<<<<<<<<<<<<<
 *             cusp_maps.append(matrix(
 *                 [ [c_cusp_map[0][0], c_cusp_map[0][1]],
*/
      __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_c_cusp_image); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 685, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_cusp_images, __pyx_t_2); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 685, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":686
 *             isometry_list_cusp_action(isometries, i, j, &c_cusp_image, c_cusp_map)
 *             cusp_images.append(c_cusp_image)
 *             cusp_maps.append(matrix(             # <<<<<<<<<<<<<<
 *                 [ [c_cusp_map[0][0], c_cusp_map[0][1]],
 *                   [c_cusp_map[1][0], c_cusp_map[1][1]]] ))
*/
      __pyx_t_9 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_10)) __PYX_ERR(3, 686, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);

      /* "cython/core/basic.pyx":687
 *             cusp_images.append(c_cusp_image)
 *             cusp_maps.append(matrix(
 *                 [ [c_cusp_map[0][0], c_cusp_map[0][1]],             # <<<<<<<<<<<<<<
 *                   [c_cusp_map[1][0], c_cusp_map[1][1]]] ))
 * 
*/
      __pyx_t_11 = __Pyx_PyLong_From_int(((__pyx_v_c_cusp_map[0])[0])); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 687, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_12 = __Pyx_PyLong_From_int(((__pyx_v_c_cusp_map[0])[1])); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 687, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_13 = PyList_New(2); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 687, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_11);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_13, 0, __pyx_t_11) != (0)) __PYX_ERR(3, 687, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_12);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_13, 1, __pyx_t_12) != (0)) __PYX_ERR(3, 687, __pyx_L1_error);
      __pyx_t_11 = 0;
      __pyx_t_12 = 0;

      /* "cython/core/basic.pyx":688
 *             cusp_maps.append(matrix(
 *                 [ [c_cusp_map[0][0], c_cusp_map[0][1]],
 *                   [c_cusp_map[1][0], c_cusp_map[1][1]]] ))             # <<<<<<<<<<<<<<
 * 
 *         ans.append(Isometry(cusp_images, cusp_maps, B2B(isometry_extends_to_link(isometries, i))))
*/
      __pyx_t_12 = __Pyx_PyLong_From_int(((__pyx_v_c_cusp_map[1])[0])); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 688, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_11 = __Pyx_PyLong_From_int(((__pyx_v_c_cusp_map[1])[1])); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 688, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_14 = PyList_New(2); if (unlikely(!__pyx_t_14)) __PYX_ERR(3, 688, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_GIVEREF(__pyx_t_12);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_14, 0, __pyx_t_12) != (0)) __PYX_ERR(3, 688, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_11);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_14, 1, __pyx_t_11) != (0)) __PYX_ERR(3, 688, __pyx_L1_error);
      __pyx_t_12 = 0;
      __pyx_t_11 = 0;

      /* "cython/core/basic.pyx":687
 *             cusp_images.append(c_cusp_image)
 *             cusp_maps.append(matrix(
 *                 [ [c_cusp_map[0][0], c_cusp_map[0][1]],             # <<<<<<<<<<<<<<
 *                   [c_cusp_map[1][0], c_cusp_map[1][1]]] ))
 * 
*/
      __pyx_t_11 = PyList_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 687, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_GIVEREF(__pyx_t_13);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_t_13) != (0)) __PYX_ERR(3, 687, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_14);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 1, __pyx_t_14) != (0)) __PYX_ERR(3, 687, __pyx_L1_error);
      __pyx_t_13 = 0;
      __pyx_t_14 = 0;
      __pyx_t_15 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_10))) {
        __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_10);
        assert(__pyx_t_9);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
        __pyx_t_15 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_11};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 686, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }

      /* "cython/core/basic.pyx":686
 *             isometry_list_cusp_action(isometries, i, j, &c_cusp_image, c_cusp_map)
 *             cusp_images.append(c_cusp_image)
 *             cusp_maps.append(matrix(             # <<<<<<<<<<<<<<
 *                 [ [c_cusp_map[0][0], c_cusp_map[0][1]],
 *                   [c_cusp_map[1][0], c_cusp_map[1][1]]] ))
*/
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_cusp_maps, __pyx_t_2); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 686, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }

    /* "cython/core/basic.pyx":690
 *                   [c_cusp_map[1][0], c_cusp_map[1][1]]] ))
 * 
 *         ans.append(Isometry(cusp_images, cusp_maps, B2B(isometry_extends_to_link(isometries, i))))             # <<<<<<<<<<<<<<
 * 
 *     return ans
*/
    __pyx_t_10 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_Isometry); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_16 = isometry_extends_to_link(__pyx_v_isometries, __pyx_v_i); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 690, __pyx_L1_error)
    __pyx_t_9 = __pyx_f_6SnapPy_B2B(__pyx_t_16); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_15 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_11))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_11);
      assert(__pyx_t_10);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
      __Pyx_INCREF(__pyx_t_10);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
      __pyx_t_15 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_10, __pyx_v_cusp_images, __pyx_v_cusp_maps, __pyx_t_9};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_15, (4-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_ans, __pyx_t_2); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(3, 690, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }

  /* "cython/core/basic.pyx":692
 *         ans.append(Isometry(cusp_images, cusp_maps, B2B(isometry_extends_to_link(isometries, i))))
 * 
 *     return ans             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/basic.pyx":673
 * 
 * 
 * cdef IsometryListToIsometries(IsometryList *isometries):             # <<<<<<<<<<<<<<
 *     cdef int n, c, i = 0, j = 0, c_cusp_image
 *     cdef MatrixInt22  c_cusp_map
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __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_AddTraceback("SnapPy.IsometryListToIsometries", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XDECREF(__pyx_v_cusp_images);
  __Pyx_XDECREF(__pyx_v_cusp_maps);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":697
 * # PLink communication
 * 
 * def _plink_callback(LE):             # <<<<<<<<<<<<<<
 *     cdef Manifold manifold
 *     cdef c_Triangulation* c_triangulation = NULL
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_29_plink_callback(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_29_plink_callback = {"_plink_callback", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_29_plink_callback, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_29_plink_callback(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_LE = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_plink_callback (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_LE,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 697, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 697, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_plink_callback", 0) < (0)) __PYX_ERR(3, 697, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_plink_callback", 1, 1, 1, i); __PYX_ERR(3, 697, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 697, __pyx_L3_error)
    }
    __pyx_v_LE = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_plink_callback", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 697, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy._plink_callback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_28_plink_callback(__pyx_self, __pyx_v_LE);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_28_plink_callback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_LE) {
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_manifold = 0;
  Triangulation *__pyx_v_c_triangulation;
  PyObject *__pyx_v_klp = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Triangulation *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_plink_callback", 0);

  /* "cython/core/basic.pyx":699
 * def _plink_callback(LE):
 *     cdef Manifold manifold
 *     cdef c_Triangulation* c_triangulation = NULL             # <<<<<<<<<<<<<<
 *     if LE.manifold is None:
 *         LE.manifold = _manifold_class('empty')
*/
  __pyx_v_c_triangulation = NULL;

  /* "cython/core/basic.pyx":700
 *     cdef Manifold manifold
 *     cdef c_Triangulation* c_triangulation = NULL
 *     if LE.manifold is None:             # <<<<<<<<<<<<<<
 *         LE.manifold = _manifold_class('empty')
 *     manifold = LE.manifold
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_LE, __pyx_mstate_global->__pyx_n_u_manifold); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__pyx_t_1 == Py_None);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":701
 *     cdef c_Triangulation* c_triangulation = NULL
 *     if LE.manifold is None:
 *         LE.manifold = _manifold_class('empty')             # <<<<<<<<<<<<<<
 *     manifold = LE.manifold
 *     klp = LE.SnapPea_KLPProjection()
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_manifold_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 701, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_LE, __pyx_mstate_global->__pyx_n_u_manifold, __pyx_t_1) < (0)) __PYX_ERR(3, 701, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":700
 *     cdef Manifold manifold
 *     cdef c_Triangulation* c_triangulation = NULL
 *     if LE.manifold is None:             # <<<<<<<<<<<<<<
 *         LE.manifold = _manifold_class('empty')
 *     manifold = LE.manifold
*/
  }

  /* "cython/core/basic.pyx":702
 *     if LE.manifold is None:
 *         LE.manifold = _manifold_class('empty')
 *     manifold = LE.manifold             # <<<<<<<<<<<<<<
 *     klp = LE.SnapPea_KLPProjection()
 *     if klp is None:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_LE, __pyx_mstate_global->__pyx_n_u_manifold); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(3, 702, __pyx_L1_error)
  __pyx_v_manifold = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":703
 *         LE.manifold = _manifold_class('empty')
 *     manifold = LE.manifold
 *     klp = LE.SnapPea_KLPProjection()             # <<<<<<<<<<<<<<
 *     if klp is None:
 *         raise RuntimeError('Communication with PLink failed.')
*/
  __pyx_t_4 = __pyx_v_LE;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_SnapPea_KLPProjection, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_klp = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":704
 *     manifold = LE.manifold
 *     klp = LE.SnapPea_KLPProjection()
 *     if klp is None:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Communication with PLink failed.')
 *     elif klp == (0, 0, 0, []):
*/
  __pyx_t_2 = (__pyx_v_klp == Py_None);
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/basic.pyx":705
 *     klp = LE.SnapPea_KLPProjection()
 *     if klp is None:
 *         raise RuntimeError('Communication with PLink failed.')             # <<<<<<<<<<<<<<
 *     elif klp == (0, 0, 0, []):
 *         msg_stream.write('\nGot the empty link from PLink and so not changing the triangulation.\n')
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Communication_with_PLink_failed};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 705, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(3, 705, __pyx_L1_error)

    /* "cython/core/basic.pyx":704
 *     manifold = LE.manifold
 *     klp = LE.SnapPea_KLPProjection()
 *     if klp is None:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Communication with PLink failed.')
 *     elif klp == (0, 0, 0, []):
*/
  }

  /* "cython/core/basic.pyx":706
 *     if klp is None:
 *         raise RuntimeError('Communication with PLink failed.')
 *     elif klp == (0, 0, 0, []):             # <<<<<<<<<<<<<<
 *         msg_stream.write('\nGot the empty link from PLink and so not changing the triangulation.\n')
 *     else:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(3, 706, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(3, 706, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(3, 706, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_1) != (0)) __PYX_ERR(3, 706, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_klp, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 706, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 706, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":707
 *         raise RuntimeError('Communication with PLink failed.')
 *     elif klp == (0, 0, 0, []):
 *         msg_stream.write('\nGot the empty link from PLink and so not changing the triangulation.\n')             # <<<<<<<<<<<<<<
 *     else:
 *         manifold._set_DTcode(spherogram.DTcodec(*LE.DT_code()))
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_msg_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 707, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_write); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 707, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Got_the_empty_link_from_PLink_a};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 707, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":706
 *     if klp is None:
 *         raise RuntimeError('Communication with PLink failed.')
 *     elif klp == (0, 0, 0, []):             # <<<<<<<<<<<<<<
 *         msg_stream.write('\nGot the empty link from PLink and so not changing the triangulation.\n')
 *     else:
*/
    goto __pyx_L4;
  }

  /* "cython/core/basic.pyx":709
 *         msg_stream.write('\nGot the empty link from PLink and so not changing the triangulation.\n')
 *     else:
 *         manifold._set_DTcode(spherogram.DTcodec(*LE.DT_code()))             # <<<<<<<<<<<<<<
 *         manifold._set_PDcode(LE.PD_code())
 *         c_triangulation = get_triangulation_from_PythonKLP(klp)
*/
  /*else*/ {
    __pyx_t_6 = ((PyObject *)__pyx_v_manifold);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_7 = __pyx_v_LE;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 709, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = __Pyx_PySequence_Tuple(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_4};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_DTcode, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 709, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":710
 *     else:
 *         manifold._set_DTcode(spherogram.DTcodec(*LE.DT_code()))
 *         manifold._set_PDcode(LE.PD_code())             # <<<<<<<<<<<<<<
 *         c_triangulation = get_triangulation_from_PythonKLP(klp)
 *         if c_triangulation is not NULL:
*/
    __pyx_t_4 = ((PyObject *)__pyx_v_manifold);
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_7 = __pyx_v_LE;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_PD_code, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 710, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_6};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_PDcode, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 710, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":711
 *         manifold._set_DTcode(spherogram.DTcodec(*LE.DT_code()))
 *         manifold._set_PDcode(LE.PD_code())
 *         c_triangulation = get_triangulation_from_PythonKLP(klp)             # <<<<<<<<<<<<<<
 *         if c_triangulation is not NULL:
 *             find_complete_hyperbolic_structure(c_triangulation)
*/
    __pyx_t_8 = __pyx_f_6SnapPy_get_triangulation_from_PythonKLP(__pyx_v_klp, NULL); if (unlikely(__pyx_t_8 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(3, 711, __pyx_L1_error)
    __pyx_v_c_triangulation = __pyx_t_8;

    /* "cython/core/basic.pyx":712
 *         manifold._set_PDcode(LE.PD_code())
 *         c_triangulation = get_triangulation_from_PythonKLP(klp)
 *         if c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             find_complete_hyperbolic_structure(c_triangulation)
 *         if manifold.c_triangulation is not NULL:
*/
    __pyx_t_2 = (__pyx_v_c_triangulation != NULL);
    if (__pyx_t_2) {

      /* "cython/core/basic.pyx":713
 *         c_triangulation = get_triangulation_from_PythonKLP(klp)
 *         if c_triangulation is not NULL:
 *             find_complete_hyperbolic_structure(c_triangulation)             # <<<<<<<<<<<<<<
 *         if manifold.c_triangulation is not NULL:
 *             free_triangulation(manifold.c_triangulation)
*/
      find_complete_hyperbolic_structure(__pyx_v_c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 713, __pyx_L1_error)

      /* "cython/core/basic.pyx":712
 *         manifold._set_PDcode(LE.PD_code())
 *         c_triangulation = get_triangulation_from_PythonKLP(klp)
 *         if c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             find_complete_hyperbolic_structure(c_triangulation)
 *         if manifold.c_triangulation is not NULL:
*/
    }

    /* "cython/core/basic.pyx":714
 *         if c_triangulation is not NULL:
 *             find_complete_hyperbolic_structure(c_triangulation)
 *         if manifold.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(manifold.c_triangulation)
 *         manifold.set_c_triangulation(c_triangulation)
*/
    __pyx_t_2 = (__pyx_v_manifold->__pyx_base.c_triangulation != NULL);
    if (__pyx_t_2) {

      /* "cython/core/basic.pyx":715
 *             find_complete_hyperbolic_structure(c_triangulation)
 *         if manifold.c_triangulation is not NULL:
 *             free_triangulation(manifold.c_triangulation)             # <<<<<<<<<<<<<<
 *         manifold.set_c_triangulation(c_triangulation)
 *         manifold._cache.clear(message='plink_callback')
*/
      free_triangulation(__pyx_v_manifold->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 715, __pyx_L1_error)

      /* "cython/core/basic.pyx":714
 *         if c_triangulation is not NULL:
 *             find_complete_hyperbolic_structure(c_triangulation)
 *         if manifold.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(manifold.c_triangulation)
 *         manifold.set_c_triangulation(c_triangulation)
*/
    }

    /* "cython/core/basic.pyx":716
 *         if manifold.c_triangulation is not NULL:
 *             free_triangulation(manifold.c_triangulation)
 *         manifold.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         manifold._cache.clear(message='plink_callback')
 *         msg_stream.write('\nNew triangulation received from PLink!\n')
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_manifold->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_manifold), __pyx_v_c_triangulation); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 716, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":717
 *             free_triangulation(manifold.c_triangulation)
 *         manifold.set_c_triangulation(c_triangulation)
 *         manifold._cache.clear(message='plink_callback')             # <<<<<<<<<<<<<<
 *         msg_stream.write('\nNew triangulation received from PLink!\n')
 * 
*/
    __pyx_t_6 = __pyx_v_manifold->__pyx_base._cache;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_6, NULL};
      __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 717, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_n_u_plink_callback, __pyx_t_4, __pyx_callargs+1, 0) < (0)) __PYX_ERR(3, 717, __pyx_L1_error)
      __pyx_t_1 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 717, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/basic.pyx":718
 *         manifold.set_c_triangulation(c_triangulation)
 *         manifold._cache.clear(message='plink_callback')
 *         msg_stream.write('\nNew triangulation received from PLink!\n')             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_msg_stream); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_write); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_New_triangulation_received_from};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 718, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __pyx_L4:;

  /* "cython/core/basic.pyx":697
 * # PLink communication
 * 
 * def _plink_callback(LE):             # <<<<<<<<<<<<<<
 *     cdef Manifold manifold
 *     cdef c_Triangulation* c_triangulation = NULL
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy._plink_callback", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_manifold);
  __Pyx_XDECREF(__pyx_v_klp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":723
 * # Conversion functions Manifold <-> Triangulation
 * 
 * def Manifold_from_Triangulation(Triangulation T, recompute=True,             # <<<<<<<<<<<<<<
 *                                 manifold_class=None):
 *     cdef c_Triangulation *c_triangulation
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_31Manifold_from_Triangulation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_31Manifold_from_Triangulation = {"Manifold_from_Triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_31Manifold_from_Triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_31Manifold_from_Triangulation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_T = 0;
  PyObject *__pyx_v_recompute = 0;
  PyObject *__pyx_v_manifold_class = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Manifold_from_Triangulation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_T,&__pyx_mstate_global->__pyx_n_u_recompute,&__pyx_mstate_global->__pyx_n_u_manifold_class_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 723, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 723, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 723, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 723, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "Manifold_from_Triangulation", 0) < (0)) __PYX_ERR(3, 723, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_True)));

      /* "cython/core/basic.pyx":724
 * 
 * def Manifold_from_Triangulation(Triangulation T, recompute=True,
 *                                 manifold_class=None):             # <<<<<<<<<<<<<<
 *     cdef c_Triangulation *c_triangulation
 *     cdef Manifold M
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("Manifold_from_Triangulation", 0, 1, 3, i); __PYX_ERR(3, 723, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(3, 723, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(3, 723, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 723, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_True)));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_T = ((struct __pyx_obj_6SnapPy_Triangulation *)values[0]);
    __pyx_v_recompute = values[1];
    __pyx_v_manifold_class = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Manifold_from_Triangulation", 0, 1, 3, __pyx_nargs); __PYX_ERR(3, 723, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold_from_Triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_T), __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, 1, "T", 0))) __PYX_ERR(3, 723, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_30Manifold_from_Triangulation(__pyx_self, __pyx_v_T, __pyx_v_recompute, __pyx_v_manifold_class);

  /* "cython/core/basic.pyx":723
 * # Conversion functions Manifold <-> Triangulation
 * 
 * def Manifold_from_Triangulation(Triangulation T, recompute=True,             # <<<<<<<<<<<<<<
 *                                 manifold_class=None):
 *     cdef c_Triangulation *c_triangulation
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_30Manifold_from_Triangulation(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_T, PyObject *__pyx_v_recompute, PyObject *__pyx_v_manifold_class) {
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_M = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Manifold_from_Triangulation", 0);

  /* "cython/core/basic.pyx":728
 *     cdef Manifold M
 * 
 *     M = _manifold_class('empty') if manifold_class is None else manifold_class('empty')             # <<<<<<<<<<<<<<
 *     if T.c_triangulation is NULL:
 *         return M
*/
  __pyx_t_2 = (__pyx_v_manifold_class == Py_None);
  if (__pyx_t_2) {
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_manifold_class); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 728, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(3, 728, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __pyx_t_5 = NULL;
    __Pyx_INCREF(__pyx_v_manifold_class);
    __pyx_t_4 = __pyx_v_manifold_class; 
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_5);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 728, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(3, 728, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  }
  __pyx_v_M = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":729
 * 
 *     M = _manifold_class('empty') if manifold_class is None else manifold_class('empty')
 *     if T.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *         return M
 *     copy_triangulation(T.c_triangulation, &c_triangulation)
*/
  __pyx_t_2 = (__pyx_v_T->c_triangulation == NULL);
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":730
 *     M = _manifold_class('empty') if manifold_class is None else manifold_class('empty')
 *     if T.c_triangulation is NULL:
 *         return M             # <<<<<<<<<<<<<<
 *     copy_triangulation(T.c_triangulation, &c_triangulation)
 *     M.set_c_triangulation(c_triangulation)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_M);
    __pyx_r = ((PyObject *)__pyx_v_M);
    goto __pyx_L0;

    /* "cython/core/basic.pyx":729
 * 
 *     M = _manifold_class('empty') if manifold_class is None else manifold_class('empty')
 *     if T.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *         return M
 *     copy_triangulation(T.c_triangulation, &c_triangulation)
*/
  }

  /* "cython/core/basic.pyx":731
 *     if T.c_triangulation is NULL:
 *         return M
 *     copy_triangulation(T.c_triangulation, &c_triangulation)             # <<<<<<<<<<<<<<
 *     M.set_c_triangulation(c_triangulation)
 *     if recompute:
*/
  copy_triangulation(__pyx_v_T->c_triangulation, (&__pyx_v_c_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 731, __pyx_L1_error)

  /* "cython/core/basic.pyx":732
 *         return M
 *     copy_triangulation(T.c_triangulation, &c_triangulation)
 *     M.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *     if recompute:
 *         # Need to remove any finite vertices to be able to find a
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_M->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_M), __pyx_v_c_triangulation); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":733
 *     copy_triangulation(T.c_triangulation, &c_triangulation)
 *     M.set_c_triangulation(c_triangulation)
 *     if recompute:             # <<<<<<<<<<<<<<
 *         # Need to remove any finite vertices to be able to find a
 *         # hyperbolic structure.
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_recompute); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(3, 733, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cython/core/basic.pyx":736
 *         # Need to remove any finite vertices to be able to find a
 *         # hyperbolic structure.
 *         count_cusps(c_triangulation)             # <<<<<<<<<<<<<<
 *         if get_num_fake_cusps(c_triangulation) > 0:
 *             remove_finite_vertices(c_triangulation)
*/
    count_cusps(__pyx_v_c_triangulation);

    /* "cython/core/basic.pyx":737
 *         # hyperbolic structure.
 *         count_cusps(c_triangulation)
 *         if get_num_fake_cusps(c_triangulation) > 0:             # <<<<<<<<<<<<<<
 *             remove_finite_vertices(c_triangulation)
 *             count_cusps(c_triangulation)
*/
    __pyx_t_7 = get_num_fake_cusps(__pyx_v_c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 737, __pyx_L1_error)
    __pyx_t_2 = (__pyx_t_7 > 0);
    if (__pyx_t_2) {

      /* "cython/core/basic.pyx":738
 *         count_cusps(c_triangulation)
 *         if get_num_fake_cusps(c_triangulation) > 0:
 *             remove_finite_vertices(c_triangulation)             # <<<<<<<<<<<<<<
 *             count_cusps(c_triangulation)
 * 
*/
      remove_finite_vertices(__pyx_v_c_triangulation);

      /* "cython/core/basic.pyx":739
 *         if get_num_fake_cusps(c_triangulation) > 0:
 *             remove_finite_vertices(c_triangulation)
 *             count_cusps(c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         find_complete_hyperbolic_structure(c_triangulation)
*/
      count_cusps(__pyx_v_c_triangulation);

      /* "cython/core/basic.pyx":737
 *         # hyperbolic structure.
 *         count_cusps(c_triangulation)
 *         if get_num_fake_cusps(c_triangulation) > 0:             # <<<<<<<<<<<<<<
 *             remove_finite_vertices(c_triangulation)
 *             count_cusps(c_triangulation)
*/
    }

    /* "cython/core/basic.pyx":741
 *             count_cusps(c_triangulation)
 * 
 *         find_complete_hyperbolic_structure(c_triangulation)             # <<<<<<<<<<<<<<
 *         do_Dehn_filling(c_triangulation)
 * 
*/
    find_complete_hyperbolic_structure(__pyx_v_c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 741, __pyx_L1_error)

    /* "cython/core/basic.pyx":742
 * 
 *         find_complete_hyperbolic_structure(c_triangulation)
 *         do_Dehn_filling(c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     M.set_name(T.name())
*/
    do_Dehn_filling(__pyx_v_c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 742, __pyx_L1_error)

    /* "cython/core/basic.pyx":733
 *     copy_triangulation(T.c_triangulation, &c_triangulation)
 *     M.set_c_triangulation(c_triangulation)
 *     if recompute:             # <<<<<<<<<<<<<<
 *         # Need to remove any finite vertices to be able to find a
 *         # hyperbolic structure.
*/
  }

  /* "cython/core/basic.pyx":744
 *         do_Dehn_filling(c_triangulation)
 * 
 *     M.set_name(T.name())             # <<<<<<<<<<<<<<
 *     M._cover_info = T._cover_info
 *     return M
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_M);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_5 = ((PyObject *)__pyx_v_T);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 744, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 744, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":745
 * 
 *     M.set_name(T.name())
 *     M._cover_info = T._cover_info             # <<<<<<<<<<<<<<
 *     return M
 * 
*/
  __pyx_t_1 = __pyx_v_T->_cover_info;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_M->__pyx_base._cover_info);
  __Pyx_DECREF(__pyx_v_M->__pyx_base._cover_info);
  __pyx_v_M->__pyx_base._cover_info = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/basic.pyx":746
 *     M.set_name(T.name())
 *     M._cover_info = T._cover_info
 *     return M             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_M);
  __pyx_r = ((PyObject *)__pyx_v_M);
  goto __pyx_L0;

  /* "cython/core/basic.pyx":723
 * # Conversion functions Manifold <-> Triangulation
 * 
 * def Manifold_from_Triangulation(Triangulation T, recompute=True,             # <<<<<<<<<<<<<<
 *                                 manifold_class=None):
 *     cdef c_Triangulation *c_triangulation
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.Manifold_from_Triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_M);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/basic.pyx":749
 * 
 * 
 * def Triangulation_from_Manifold(Manifold M):             # <<<<<<<<<<<<<<
 *     cdef c_Triangulation *c_triangulation
 *     cdef Triangulation T
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_33Triangulation_from_Manifold(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_33Triangulation_from_Manifold = {"Triangulation_from_Manifold", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_33Triangulation_from_Manifold, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_33Triangulation_from_Manifold(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_M = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Triangulation_from_Manifold (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_M,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(3, 749, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 749, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "Triangulation_from_Manifold", 0) < (0)) __PYX_ERR(3, 749, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("Triangulation_from_Manifold", 1, 1, 1, i); __PYX_ERR(3, 749, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(3, 749, __pyx_L3_error)
    }
    __pyx_v_M = ((struct __pyx_obj_6SnapPy_Manifold *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Triangulation_from_Manifold", 1, 1, 1, __pyx_nargs); __PYX_ERR(3, 749, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation_from_Manifold", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_M), __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, 1, "M", 0))) __PYX_ERR(3, 749, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_32Triangulation_from_Manifold(__pyx_self, __pyx_v_M);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_32Triangulation_from_Manifold(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_M) {
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_T = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Triangulation_from_Manifold", 0);

  /* "cython/core/basic.pyx":753
 *     cdef Triangulation T
 * 
 *     if M.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *         return _triangulation_class('empty')
 * 
*/
  __pyx_t_1 = (__pyx_v_M->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/basic.pyx":754
 * 
 *     if M.c_triangulation is NULL:
 *         return _triangulation_class('empty')             # <<<<<<<<<<<<<<
 * 
 *     copy_triangulation(M.c_triangulation, &c_triangulation)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_triangulation_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 754, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/basic.pyx":753
 *     cdef Triangulation T
 * 
 *     if M.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *         return _triangulation_class('empty')
 * 
*/
  }

  /* "cython/core/basic.pyx":756
 *         return _triangulation_class('empty')
 * 
 *     copy_triangulation(M.c_triangulation, &c_triangulation)             # <<<<<<<<<<<<<<
 *     remove_hyperbolic_structures(c_triangulation)
 *     T = _triangulation_class('empty')
*/
  copy_triangulation(__pyx_v_M->__pyx_base.c_triangulation, (&__pyx_v_c_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 756, __pyx_L1_error)

  /* "cython/core/basic.pyx":757
 * 
 *     copy_triangulation(M.c_triangulation, &c_triangulation)
 *     remove_hyperbolic_structures(c_triangulation)             # <<<<<<<<<<<<<<
 *     T = _triangulation_class('empty')
 *     T.set_c_triangulation(c_triangulation)
*/
  remove_hyperbolic_structures(__pyx_v_c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(3, 757, __pyx_L1_error)

  /* "cython/core/basic.pyx":758
 *     copy_triangulation(M.c_triangulation, &c_triangulation)
 *     remove_hyperbolic_structures(c_triangulation)
 *     T = _triangulation_class('empty')             # <<<<<<<<<<<<<<
 *     T.set_c_triangulation(c_triangulation)
 *     T.set_name(M.name())
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_triangulation_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(3, 758, __pyx_L1_error)
  __pyx_v_T = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":759
 *     remove_hyperbolic_structures(c_triangulation)
 *     T = _triangulation_class('empty')
 *     T.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *     T.set_name(M.name())
 *     T._cover_info = M._cover_info
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_T->__pyx_vtab)->set_c_triangulation(__pyx_v_T, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":760
 *     T = _triangulation_class('empty')
 *     T.set_c_triangulation(c_triangulation)
 *     T.set_name(M.name())             # <<<<<<<<<<<<<<
 *     T._cover_info = M._cover_info
 *     return T
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_T);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_6 = ((PyObject *)__pyx_v_M);
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":761
 *     T.set_c_triangulation(c_triangulation)
 *     T.set_name(M.name())
 *     T._cover_info = M._cover_info             # <<<<<<<<<<<<<<
 *     return T
*/
  __pyx_t_2 = __pyx_v_M->__pyx_base._cover_info;
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_T->_cover_info);
  __Pyx_DECREF(__pyx_v_T->_cover_info);
  __pyx_v_T->_cover_info = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":762
 *     T.set_name(M.name())
 *     T._cover_info = M._cover_info
 *     return T             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_T);
  __pyx_r = ((PyObject *)__pyx_v_T);
  goto __pyx_L0;

  /* "cython/core/basic.pyx":749
 * 
 * 
 * def Triangulation_from_Manifold(Manifold M):             # <<<<<<<<<<<<<<
 *     cdef c_Triangulation *c_triangulation
 *     cdef Triangulation T
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation_from_Manifold", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_T);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":79
 *     cdef hyperbolic_structure_initialized
 * 
 *     def __cinit__(self, spec=None, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         if UI_callback is not None:
 *             uLongComputationBegins('Constructing a manifold', 1)
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_13Triangulation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6SnapPy_13Triangulation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_spec = 0;
  PyObject *__pyx_v_remove_finite_vertices = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_spec,&__pyx_mstate_global->__pyx_n_u_remove_finite_vertices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 79, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 79, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 79, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(4, 79, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 79, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 79, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_spec = values[0];
    __pyx_v_remove_finite_vertices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 2, __pyx_nargs); __PYX_ERR(4, 79, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation___cinit__(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_spec, __pyx_v_remove_finite_vertices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_13Triangulation___cinit__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_spec, PyObject *__pyx_v_remove_finite_vertices) {
  PyObject *__pyx_v_attr = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation __pyx_t_10;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);
  __Pyx_INCREF(__pyx_v_spec);

  /* "cython/core/triangulation.pyx":80
 * 
 *     def __cinit__(self, spec=None, remove_finite_vertices=True):
 *         if UI_callback is not None:             # <<<<<<<<<<<<<<
 *             uLongComputationBegins('Constructing a manifold', 1)
 *             UI_callback()
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_UI_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__pyx_t_1 != Py_None);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/triangulation.pyx":81
 *     def __cinit__(self, spec=None, remove_finite_vertices=True):
 *         if UI_callback is not None:
 *             uLongComputationBegins('Constructing a manifold', 1)             # <<<<<<<<<<<<<<
 *             UI_callback()
 *             uLongComputationEnds()
*/
    uLongComputationBegins(((const char*)"Constructing a manifold"), 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 81, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":82
 *         if UI_callback is not None:
 *             uLongComputationBegins('Constructing a manifold', 1)
 *             UI_callback()             # <<<<<<<<<<<<<<
 *             uLongComputationEnds()
 *         # Answers to potentially hard computations are cached
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_UI_callback); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 82, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 82, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":83
 *             uLongComputationBegins('Constructing a manifold', 1)
 *             UI_callback()
 *             uLongComputationEnds()             # <<<<<<<<<<<<<<
 *         # Answers to potentially hard computations are cached
 *         self.c_triangulation = NULL
*/
    uLongComputationEnds(); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 83, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":80
 * 
 *     def __cinit__(self, spec=None, remove_finite_vertices=True):
 *         if UI_callback is not None:             # <<<<<<<<<<<<<<
 *             uLongComputationBegins('Constructing a manifold', 1)
 *             UI_callback()
*/
  }

  /* "cython/core/triangulation.pyx":85
 *             uLongComputationEnds()
 *         # Answers to potentially hard computations are cached
 *         self.c_triangulation = NULL             # <<<<<<<<<<<<<<
 *         self._cache = SnapPyCache()
 *         self._DTcode = None
*/
  __pyx_v_self->c_triangulation = NULL;

  /* "cython/core/triangulation.pyx":86
 *         # Answers to potentially hard computations are cached
 *         self.c_triangulation = NULL
 *         self._cache = SnapPyCache()             # <<<<<<<<<<<<<<
 *         self._DTcode = None
 *         self._PDcode = None
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_SnapPyCache); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 86, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 86, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->_cache);
  __Pyx_DECREF(__pyx_v_self->_cache);
  __pyx_v_self->_cache = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":87
 *         self.c_triangulation = NULL
 *         self._cache = SnapPyCache()
 *         self._DTcode = None             # <<<<<<<<<<<<<<
 *         self._PDcode = None
 *         self._cover_info = None
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_DTcode);
  __Pyx_DECREF(__pyx_v_self->_DTcode);
  __pyx_v_self->_DTcode = Py_None;

  /* "cython/core/triangulation.pyx":88
 *         self._cache = SnapPyCache()
 *         self._DTcode = None
 *         self._PDcode = None             # <<<<<<<<<<<<<<
 *         self._cover_info = None
 *         self.LE = None
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_PDcode);
  __Pyx_DECREF(__pyx_v_self->_PDcode);
  __pyx_v_self->_PDcode = Py_None;

  /* "cython/core/triangulation.pyx":89
 *         self._DTcode = None
 *         self._PDcode = None
 *         self._cover_info = None             # <<<<<<<<<<<<<<
 *         self.LE = None
 *         self.hyperbolic_structure_initialized = False
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_cover_info);
  __Pyx_DECREF(__pyx_v_self->_cover_info);
  __pyx_v_self->_cover_info = Py_None;

  /* "cython/core/triangulation.pyx":90
 *         self._PDcode = None
 *         self._cover_info = None
 *         self.LE = None             # <<<<<<<<<<<<<<
 *         self.hyperbolic_structure_initialized = False
 *         self._link_file_full_path = None
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->LE);
  __Pyx_DECREF(__pyx_v_self->LE);
  __pyx_v_self->LE = Py_None;

  /* "cython/core/triangulation.pyx":91
 *         self._cover_info = None
 *         self.LE = None
 *         self.hyperbolic_structure_initialized = False             # <<<<<<<<<<<<<<
 *         self._link_file_full_path = None
 * 
*/
  __Pyx_INCREF(Py_False);
  __Pyx_GIVEREF(Py_False);
  __Pyx_GOTREF(__pyx_v_self->hyperbolic_structure_initialized);
  __Pyx_DECREF(__pyx_v_self->hyperbolic_structure_initialized);
  __pyx_v_self->hyperbolic_structure_initialized = Py_False;

  /* "cython/core/triangulation.pyx":92
 *         self.LE = None
 *         self.hyperbolic_structure_initialized = False
 *         self._link_file_full_path = None             # <<<<<<<<<<<<<<
 * 
 *         for attr in ['__snappy__', 'snapPea', '_to_string']:
*/
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_link_file_full_path);
  __Pyx_DECREF(__pyx_v_self->_link_file_full_path);
  __pyx_v_self->_link_file_full_path = Py_None;

  /* "cython/core/triangulation.pyx":94
 *         self._link_file_full_path = None
 * 
 *         for attr in ['__snappy__', 'snapPea', '_to_string']:             # <<<<<<<<<<<<<<
 *             if hasattr(spec, attr):
 *                 spec = getattr(spec, attr)()
*/
  __pyx_t_1 = __pyx_mstate_global->__pyx_tuple[7]; __Pyx_INCREF(__pyx_t_1);
  __pyx_t_6 = 0;
  for (;;) {
    if (__pyx_t_6 >= 3) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6));
    #else
    __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_6);
    #endif
    ++__pyx_t_6;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 94, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_attr, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":95
 * 
 *         for attr in ['__snappy__', 'snapPea', '_to_string']:
 *             if hasattr(spec, attr):             # <<<<<<<<<<<<<<
 *                 spec = getattr(spec, attr)()
 *                 break
*/
    __pyx_t_2 = __Pyx_HasAttr(__pyx_v_spec, __pyx_v_attr); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(4, 95, __pyx_L1_error)
    if (__pyx_t_2) {

      /* "cython/core/triangulation.pyx":96
 *         for attr in ['__snappy__', 'snapPea', '_to_string']:
 *             if hasattr(spec, attr):
 *                 spec = getattr(spec, attr)()             # <<<<<<<<<<<<<<
 *                 break
 * 
*/
      __pyx_t_4 = NULL;
      __pyx_t_7 = __Pyx_GetAttr(__pyx_v_spec, __pyx_v_attr); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 96, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_5 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7);
        assert(__pyx_t_4);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
        __pyx_t_5 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 96, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_DECREF_SET(__pyx_v_spec, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":97
 *             if hasattr(spec, attr):
 *                 spec = getattr(spec, attr)()
 *                 break             # <<<<<<<<<<<<<<
 * 
 *         if spec is None:
*/
      goto __pyx_L5_break;

      /* "cython/core/triangulation.pyx":95
 * 
 *         for attr in ['__snappy__', 'snapPea', '_to_string']:
 *             if hasattr(spec, attr):             # <<<<<<<<<<<<<<
 *                 spec = getattr(spec, attr)()
 *                 break
*/
    }

    /* "cython/core/triangulation.pyx":94
 *         self._link_file_full_path = None
 * 
 *         for attr in ['__snappy__', 'snapPea', '_to_string']:             # <<<<<<<<<<<<<<
 *             if hasattr(spec, attr):
 *                 spec = getattr(spec, attr)()
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  goto __pyx_L7_for_end;
  __pyx_L5_break:;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  goto __pyx_L7_for_end;
  __pyx_L7_for_end:;

  /* "cython/core/triangulation.pyx":99
 *                 break
 * 
 *         if spec is None:             # <<<<<<<<<<<<<<
 *             self.get_from_new_plink()
 *         elif spec == 'empty':
*/
  __pyx_t_2 = (__pyx_v_spec == Py_None);
  if (__pyx_t_2) {

    /* "cython/core/triangulation.pyx":100
 * 
 *         if spec is None:
 *             self.get_from_new_plink()             # <<<<<<<<<<<<<<
 *         elif spec == 'empty':
 *             pass
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->get_from_new_plink(__pyx_v_self, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":99
 *                 break
 * 
 *         if spec is None:             # <<<<<<<<<<<<<<
 *             self.get_from_new_plink()
 *         elif spec == 'empty':
*/
    goto __pyx_L8;
  }

  /* "cython/core/triangulation.pyx":101
 *         if spec is None:
 *             self.get_from_new_plink()
 *         elif spec == 'empty':             # <<<<<<<<<<<<<<
 *             pass
 *         else:
*/
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_spec, __pyx_mstate_global->__pyx_n_u_empty, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 101, __pyx_L1_error)
  if (__pyx_t_2) {
    goto __pyx_L8;
  }

  /* "cython/core/triangulation.pyx":104
 *             pass
 *         else:
 *             if not isinstance(spec, (str, bytes)):             # <<<<<<<<<<<<<<
 *                 raise TypeError(triangulation_help %
 *                                 self.__class__.__name__)
*/
  /*else*/ {
    __pyx_t_8 = PyUnicode_Check(__pyx_v_spec); 
    if (!__pyx_t_8) {
    } else {
      __pyx_t_2 = __pyx_t_8;
      goto __pyx_L10_bool_binop_done;
    }
    __pyx_t_8 = PyBytes_Check(__pyx_v_spec); 
    __pyx_t_2 = __pyx_t_8;
    __pyx_L10_bool_binop_done:;
    __pyx_t_8 = (!__pyx_t_2);
    if (unlikely(__pyx_t_8)) {

      /* "cython/core/triangulation.pyx":105
 *         else:
 *             if not isinstance(spec, (str, bytes)):
 *                 raise TypeError(triangulation_help %             # <<<<<<<<<<<<<<
 *                                 self.__class__.__name__)
 *             self.get_triangulation(spec, remove_finite_vertices)
*/
      __pyx_t_3 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_triangulation_help); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 105, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);

      /* "cython/core/triangulation.pyx":106
 *             if not isinstance(spec, (str, bytes)):
 *                 raise TypeError(triangulation_help %
 *                                 self.__class__.__name__)             # <<<<<<<<<<<<<<
 *             self.get_triangulation(spec, remove_finite_vertices)
 *             if self.c_triangulation == NULL:
*/
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 106, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_name_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 106, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "cython/core/triangulation.pyx":105
 *         else:
 *             if not isinstance(spec, (str, bytes)):
 *                 raise TypeError(triangulation_help %             # <<<<<<<<<<<<<<
 *                                 self.__class__.__name__)
 *             self.get_triangulation(spec, remove_finite_vertices)
*/
      __pyx_t_4 = PyNumber_Remainder(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 105, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 105, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(4, 105, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":104
 *             pass
 *         else:
 *             if not isinstance(spec, (str, bytes)):             # <<<<<<<<<<<<<<
 *                 raise TypeError(triangulation_help %
 *                                 self.__class__.__name__)
*/
    }

    /* "cython/core/triangulation.pyx":107
 *                 raise TypeError(triangulation_help %
 *                                 self.__class__.__name__)
 *             self.get_triangulation(spec, remove_finite_vertices)             # <<<<<<<<<<<<<<
 *             if self.c_triangulation == NULL:
 *                 raise RuntimeError('An empty triangulation was generated.')
*/
    __pyx_t_10.__pyx_n = 1;
    __pyx_t_10.remove_finite_vertices = __pyx_v_remove_finite_vertices;
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->get_triangulation(__pyx_v_self, __pyx_v_spec, &__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 107, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":108
 *                                 self.__class__.__name__)
 *             self.get_triangulation(spec, remove_finite_vertices)
 *             if self.c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError('An empty triangulation was generated.')
 * 
*/
    __pyx_t_8 = (__pyx_v_self->c_triangulation == NULL);
    if (unlikely(__pyx_t_8)) {

      /* "cython/core/triangulation.pyx":109
 *             self.get_triangulation(spec, remove_finite_vertices)
 *             if self.c_triangulation == NULL:
 *                 raise RuntimeError('An empty triangulation was generated.')             # <<<<<<<<<<<<<<
 * 
 *         if self.c_triangulation != NULL and not self.hyperbolic_structure_initialized:
*/
      __pyx_t_4 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_An_empty_triangulation_was_gener};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 109, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(4, 109, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":108
 *                                 self.__class__.__name__)
 *             self.get_triangulation(spec, remove_finite_vertices)
 *             if self.c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError('An empty triangulation was generated.')
 * 
*/
    }
  }
  __pyx_L8:;

  /* "cython/core/triangulation.pyx":111
 *                 raise RuntimeError('An empty triangulation was generated.')
 * 
 *         if self.c_triangulation != NULL and not self.hyperbolic_structure_initialized:             # <<<<<<<<<<<<<<
 *             remove_hyperbolic_structures(self.c_triangulation)
 * 
*/
  __pyx_t_2 = (__pyx_v_self->c_triangulation != NULL);
  if (__pyx_t_2) {
  } else {
    __pyx_t_8 = __pyx_t_2;
    goto __pyx_L14_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_self->hyperbolic_structure_initialized); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 111, __pyx_L1_error)
  __pyx_t_11 = (!__pyx_t_2);
  __pyx_t_8 = __pyx_t_11;
  __pyx_L14_bool_binop_done:;
  if (__pyx_t_8) {

    /* "cython/core/triangulation.pyx":112
 * 
 *         if self.c_triangulation != NULL and not self.hyperbolic_structure_initialized:
 *             remove_hyperbolic_structures(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     cdef get_from_new_plink(self, file_name=None):
*/
    remove_hyperbolic_structures(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 112, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":111
 *                 raise RuntimeError('An empty triangulation was generated.')
 * 
 *         if self.c_triangulation != NULL and not self.hyperbolic_structure_initialized:             # <<<<<<<<<<<<<<
 *             remove_hyperbolic_structures(self.c_triangulation)
 * 
*/
  }

  /* "cython/core/triangulation.pyx":79
 *     cdef hyperbolic_structure_initialized
 * 
 *     def __cinit__(self, spec=None, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         if UI_callback is not None:
 *             uLongComputationBegins('Constructing a manifold', 1)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Triangulation.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_attr);
  __Pyx_XDECREF(__pyx_v_spec);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":114
 *             remove_hyperbolic_structures(self.c_triangulation)
 * 
 *     cdef get_from_new_plink(self, file_name=None):             # <<<<<<<<<<<<<<
 *         if LinkEditor is None:
 *             raise RuntimeError('PLink was not imported.')
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_get_from_new_plink(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_new_plink *__pyx_optional_args) {
  PyObject *__pyx_v_file_name = ((PyObject *)Py_None);
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_from_new_plink", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_file_name = __pyx_optional_args->file_name;
    }
  }

  /* "cython/core/triangulation.pyx":115
 * 
 *     cdef get_from_new_plink(self, file_name=None):
 *         if LinkEditor is None:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('PLink was not imported.')
 *         self.LE = LinkEditor(no_arcs=True,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_LinkEditor); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__pyx_t_1 == Py_None);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/triangulation.pyx":116
 *     cdef get_from_new_plink(self, file_name=None):
 *         if LinkEditor is None:
 *             raise RuntimeError('PLink was not imported.')             # <<<<<<<<<<<<<<
 *         self.LE = LinkEditor(no_arcs=True,
 *                              callback=_plink_callback,
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_PLink_was_not_imported};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 116, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 116, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":115
 * 
 *     cdef get_from_new_plink(self, file_name=None):
 *         if LinkEditor is None:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('PLink was not imported.')
 *         self.LE = LinkEditor(no_arcs=True,
*/
  }

  /* "cython/core/triangulation.pyx":117
 *         if LinkEditor is None:
 *             raise RuntimeError('PLink was not imported.')
 *         self.LE = LinkEditor(no_arcs=True,             # <<<<<<<<<<<<<<
 *                              callback=_plink_callback,
 *                              cb_menu='Send to SnapPy',
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_LinkEditor); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "cython/core/triangulation.pyx":118
 *             raise RuntimeError('PLink was not imported.')
 *         self.LE = LinkEditor(no_arcs=True,
 *                              callback=_plink_callback,             # <<<<<<<<<<<<<<
 *                              cb_menu='Send to SnapPy',
 *                              file_name=file_name,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_plink_callback_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "cython/core/triangulation.pyx":121
 *                              cb_menu='Send to SnapPy',
 *                              file_name=file_name,
 *                              manifold=self)             # <<<<<<<<<<<<<<
 *         print('Starting the link editor.\n'
 *               'Select Tools->Send to SnapPy to load the '
*/
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 5 : 0)] = {__pyx_t_3, NULL};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(5); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_no_arcs, Py_True, __pyx_t_7, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 117, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_callback, __pyx_t_6, __pyx_t_7, __pyx_callargs+1, 1) < (0)) __PYX_ERR(4, 117, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_cb_menu, __pyx_mstate_global->__pyx_kp_u_Send_to_SnapPy, __pyx_t_7, __pyx_callargs+1, 2) < (0)) __PYX_ERR(4, 117, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_file_name, __pyx_v_file_name, __pyx_t_7, __pyx_callargs+1, 3) < (0)) __PYX_ERR(4, 117, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_manifold, ((PyObject *)__pyx_v_self), __pyx_t_7, __pyx_callargs+1, 4) < (0)) __PYX_ERR(4, 117, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "cython/core/triangulation.pyx":117
 *         if LinkEditor is None:
 *             raise RuntimeError('PLink was not imported.')
 *         self.LE = LinkEditor(no_arcs=True,             # <<<<<<<<<<<<<<
 *                              callback=_plink_callback,
 *                              cb_menu='Send to SnapPy',
*/
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->LE);
  __Pyx_DECREF(__pyx_v_self->LE);
  __pyx_v_self->LE = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":122
 *                              file_name=file_name,
 *                              manifold=self)
 *         print('Starting the link editor.\n'             # <<<<<<<<<<<<<<
 *               'Select Tools->Send to SnapPy to load the '
 *               'link complement.')
*/
  __pyx_t_5 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Starting_the_link_editor_Select};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":114
 *             remove_hyperbolic_structures(self.c_triangulation)
 * 
 *     cdef get_from_new_plink(self, file_name=None):             # <<<<<<<<<<<<<<
 *         if LinkEditor is None:
 *             raise RuntimeError('PLink was not imported.')
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation.get_from_new_plink", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":126
 *               'link complement.')
 * 
 *     cdef get_triangulation(self, spec, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         # Step -1 Check for an entire-triangulation-file-in-a-string
 *         if isinstance(spec, bytes) and spec.startswith(b'pickle:'):
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_get_triangulation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_spec, struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation *__pyx_optional_args) {
  PyObject *__pyx_v_remove_finite_vertices = ((PyObject *)Py_True);
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_fillings = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation_from_name __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_triangulation", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_remove_finite_vertices = __pyx_optional_args->remove_finite_vertices;
    }
  }

  /* "cython/core/triangulation.pyx":128
 *     cdef get_triangulation(self, spec, remove_finite_vertices=True):
 *         # Step -1 Check for an entire-triangulation-file-in-a-string
 *         if isinstance(spec, bytes) and spec.startswith(b'pickle:'):             # <<<<<<<<<<<<<<
 *             self._from_pickle(spec, remove_finite_vertices)
 *             return
*/
  __pyx_t_2 = PyBytes_Check(__pyx_v_spec); 
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = __pyx_v_spec;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_b_pickle};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_startswith, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":129
 *         # Step -1 Check for an entire-triangulation-file-in-a-string
 *         if isinstance(spec, bytes) and spec.startswith(b'pickle:'):
 *             self._from_pickle(spec, remove_finite_vertices)             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_4 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_spec, __pyx_v_remove_finite_vertices};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_pickle, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 129, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":130
 *         if isinstance(spec, bytes) and spec.startswith(b'pickle:'):
 *             self._from_pickle(spec, remove_finite_vertices)
 *             return             # <<<<<<<<<<<<<<
 * 
 *         if ( isinstance(spec, str) and spec.startswith('% Triangulation') or
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":128
 *     cdef get_triangulation(self, spec, remove_finite_vertices=True):
 *         # Step -1 Check for an entire-triangulation-file-in-a-string
 *         if isinstance(spec, bytes) and spec.startswith(b'pickle:'):             # <<<<<<<<<<<<<<
 *             self._from_pickle(spec, remove_finite_vertices)
 *             return
*/
  }

  /* "cython/core/triangulation.pyx":132
 *             return
 * 
 *         if ( isinstance(spec, str) and spec.startswith('% Triangulation') or             # <<<<<<<<<<<<<<
 *              isinstance(spec, bytes) and spec.startswith(b'% Triangulation')):
 *             self._from_string(spec, remove_finite_vertices)
*/
  __pyx_t_2 = PyUnicode_Check(__pyx_v_spec); 
  if (!__pyx_t_2) {
    goto __pyx_L8_next_or;
  } else {
  }
  __pyx_t_4 = __pyx_v_spec;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Triangulation};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_startswith, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 132, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 132, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_L8_next_or:;

  /* "cython/core/triangulation.pyx":133
 * 
 *         if ( isinstance(spec, str) and spec.startswith('% Triangulation') or
 *              isinstance(spec, bytes) and spec.startswith(b'% Triangulation')):             # <<<<<<<<<<<<<<
 *             self._from_string(spec, remove_finite_vertices)
 *             return
*/
  __pyx_t_2 = PyBytes_Check(__pyx_v_spec); 
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_4 = __pyx_v_spec;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_b_Triangulation};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_startswith, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 133, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __pyx_t_2;
  __pyx_L7_bool_binop_done:;

  /* "cython/core/triangulation.pyx":132
 *             return
 * 
 *         if ( isinstance(spec, str) and spec.startswith('% Triangulation') or             # <<<<<<<<<<<<<<
 *              isinstance(spec, bytes) and spec.startswith(b'% Triangulation')):
 *             self._from_string(spec, remove_finite_vertices)
*/
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":134
 *         if ( isinstance(spec, str) and spec.startswith('% Triangulation') or
 *              isinstance(spec, bytes) and spec.startswith(b'% Triangulation')):
 *             self._from_string(spec, remove_finite_vertices)             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_4 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_spec, __pyx_v_remove_finite_vertices};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_string, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 134, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":135
 *              isinstance(spec, bytes) and spec.startswith(b'% Triangulation')):
 *             self._from_string(spec, remove_finite_vertices)
 *             return             # <<<<<<<<<<<<<<
 * 
 *         # Get fillings, if any
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":132
 *             return
 * 
 *         if ( isinstance(spec, str) and spec.startswith('% Triangulation') or             # <<<<<<<<<<<<<<
 *              isinstance(spec, bytes) and spec.startswith(b'% Triangulation')):
 *             self._from_string(spec, remove_finite_vertices)
*/
  }

  /* "cython/core/triangulation.pyx":138
 * 
 *         # Get fillings, if any
 *         m = split_filling_info.match(spec)             # <<<<<<<<<<<<<<
 *         name = m.group(1)
 *         fillings = eval( '[' + m.group(2).replace(')(', '),(')+ ']', {})
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_split_filling_info); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_spec};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_v_m = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":139
 *         # Get fillings, if any
 *         m = split_filling_info.match(spec)
 *         name = m.group(1)             # <<<<<<<<<<<<<<
 *         fillings = eval( '[' + m.group(2).replace(')(', '),(')+ ']', {})
 * 
*/
  __pyx_t_7 = __pyx_v_m;
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_int_1};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 139, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_v_name = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":140
 *         m = split_filling_info.match(spec)
 *         name = m.group(1)
 *         fillings = eval( '[' + m.group(2).replace(')(', '),(')+ ']', {})             # <<<<<<<<<<<<<<
 * 
 *         self.get_triangulation_from_name(name, remove_finite_vertices)
*/
  __pyx_t_7 = NULL;
  __pyx_t_6 = __pyx_v_m;
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_int_2};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[8], NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__14, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyNumber_Add(__pyx_t_6, __pyx_mstate_global->__pyx_kp_u__5); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_t_4, __pyx_t_6};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_eval, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_v_fillings = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":142
 *         fillings = eval( '[' + m.group(2).replace(')(', '),(')+ ']', {})
 * 
 *         self.get_triangulation_from_name(name, remove_finite_vertices)             # <<<<<<<<<<<<<<
 * 
 *         # Set the dehn fillings
*/
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.remove_finite_vertices = __pyx_v_remove_finite_vertices;
  __pyx_t_3 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->get_triangulation_from_name(__pyx_v_self, __pyx_v_name, &__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":145
 * 
 *         # Set the dehn fillings
 *         Triangulation.dehn_fill(self, fillings)             # <<<<<<<<<<<<<<
 * 
 *     cdef get_triangulation_from_name(self, name, remove_finite_vertices=True):
*/
  __pyx_t_6 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_v_fillings};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":126
 *               'link complement.')
 * 
 *     cdef get_triangulation(self, spec, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         # Step -1 Check for an entire-triangulation-file-in-a-string
 *         if isinstance(spec, bytes) and spec.startswith(b'pickle:'):
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation.get_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_fillings);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":147
 *         Triangulation.dehn_fill(self, fillings)
 * 
 *     cdef get_triangulation_from_name(self, name, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 * 
 *         # Step 1. The easy databases.
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_get_triangulation_from_name(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_name, struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation_from_name *__pyx_optional_args) {
  PyObject *__pyx_v_remove_finite_vertices = ((PyObject *)Py_True);
  PyObject *__pyx_v_db = NULL;
  PyObject *__pyx_v_regex = NULL;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_rolfsen_name = NULL;
  PyObject *__pyx_v_word = NULL;
  PyObject *__pyx_v_num_strands = NULL;
  PyObject *__pyx_v_code = NULL;
  PyObject *__pyx_v_knot = NULL;
  PyObject *__pyx_v_klp = NULL;
  PyObject *__pyx_v_shortened_name = NULL;
  PyObject *__pyx_v_mb = NULL;
  PyObject *__pyx_v_ms = NULL;
  PyObject *__pyx_9genexpr10__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  size_t __pyx_t_11;
  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;
  int __pyx_t_17;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *(*__pyx_t_21)(PyObject *);
  PyObject *__pyx_t_22[5];
  PyObject *__pyx_t_23[3];
  Triangulation *__pyx_t_24;
  int __pyx_t_25;
  struct __pyx_opt_args_6SnapPy_get_triangulation_from_PythonKLP __pyx_t_26;
  struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_file __pyx_t_27;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_triangulation_from_name", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_remove_finite_vertices = __pyx_optional_args->remove_finite_vertices;
    }
  }

  /* "cython/core/triangulation.pyx":150
 * 
 *         # Step 1. The easy databases.
 *         for db in database.__all_tables__.values():             # <<<<<<<<<<<<<<
 *             try:
 *                 db._one_manifold(name, self)
*/
  __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_database); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_all_tables); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(__pyx_t_6 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(4, 150, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_t_6, 0, __pyx_mstate_global->__pyx_n_u_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(4, 150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_db, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":151
 *         # Step 1. The easy databases.
 *         for db in database.__all_tables__.values():
 *             try:             # <<<<<<<<<<<<<<
 *                 db._one_manifold(name, self)
 *                 return
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cython/core/triangulation.pyx":152
 *         for db in database.__all_tables__.values():
 *             try:
 *                 db._one_manifold(name, self)             # <<<<<<<<<<<<<<
 *                 return
 *             except KeyError:
*/
        __pyx_t_6 = __pyx_v_db;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_v_name, ((PyObject *)__pyx_v_self)};
          __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_one_manifold, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 152, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cython/core/triangulation.pyx":153
 *             try:
 *                 db._one_manifold(name, self)
 *                 return             # <<<<<<<<<<<<<<
 *             except KeyError:
 *                 # Whenever possible, we want knots to come from
*/
        __Pyx_XDECREF(__pyx_r);
        __pyx_r = Py_None; __Pyx_INCREF(Py_None);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L9_try_return;

        /* "cython/core/triangulation.pyx":151
 *         # Step 1. The easy databases.
 *         for db in database.__all_tables__.values():
 *             try:             # <<<<<<<<<<<<<<
 *                 db._one_manifold(name, self)
 *                 return
*/
      }
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/triangulation.pyx":154
 *                 db._one_manifold(name, self)
 *                 return
 *             except KeyError:             # <<<<<<<<<<<<<<
 *                 # Whenever possible, we want knots to come from
 *                 # HTLinkExteriors rather than (Non)AlternatingKnots as
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("SnapPy.Triangulation.get_triangulation_from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_12) < 0) __PYX_ERR(4, 154, __pyx_L7_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_12);

        /* "cython/core/triangulation.pyx":159
 *                 # the latter only have DT codes and so return many
 *                 # different triangulations.
 *                 if is_HT_knot.match(name):             # <<<<<<<<<<<<<<
 *                     try:
 *                         db._one_manifold('K' + name, self)
*/
        __pyx_t_14 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_15, __pyx_mstate_global->__pyx_n_u_is_HT_knot); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 159, __pyx_L7_except_error)
        __Pyx_GOTREF(__pyx_t_15);
        __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_16)) __PYX_ERR(4, 159, __pyx_L7_except_error)
        __Pyx_GOTREF(__pyx_t_16);
        __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        __pyx_t_11 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_16))) {
          __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_16);
          assert(__pyx_t_14);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_16);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_16, __pyx__function);
          __pyx_t_11 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_v_name};
          __pyx_t_13 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_16, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
          if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 159, __pyx_L7_except_error)
          __Pyx_GOTREF(__pyx_t_13);
        }
        __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_t_13); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 159, __pyx_L7_except_error)
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (__pyx_t_17) {

          /* "cython/core/triangulation.pyx":160
 *                 # different triangulations.
 *                 if is_HT_knot.match(name):
 *                     try:             # <<<<<<<<<<<<<<
 *                         db._one_manifold('K' + name, self)
 *                         self.set_name(name)
*/
          {
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __Pyx_ExceptionSave(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __Pyx_XGOTREF(__pyx_t_20);
            /*try:*/ {

              /* "cython/core/triangulation.pyx":161
 *                 if is_HT_knot.match(name):
 *                     try:
 *                         db._one_manifold('K' + name, self)             # <<<<<<<<<<<<<<
 *                         self.set_name(name)
 *                         return
*/
              __pyx_t_16 = __pyx_v_db;
              __Pyx_INCREF(__pyx_t_16);
              __pyx_t_14 = PyNumber_Add(__pyx_mstate_global->__pyx_n_u_K, __pyx_v_name); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 161, __pyx_L16_error)
              __Pyx_GOTREF(__pyx_t_14);
              __pyx_t_11 = 0;
              {
                PyObject *__pyx_callargs[3] = {__pyx_t_16, __pyx_t_14, ((PyObject *)__pyx_v_self)};
                __pyx_t_13 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_one_manifold, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
                __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
                if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 161, __pyx_L16_error)
                __Pyx_GOTREF(__pyx_t_13);
              }
              __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

              /* "cython/core/triangulation.pyx":162
 *                     try:
 *                         db._one_manifold('K' + name, self)
 *                         self.set_name(name)             # <<<<<<<<<<<<<<
 *                         return
 *                     except:
*/
              __pyx_t_14 = ((PyObject *)__pyx_v_self);
              __Pyx_INCREF(__pyx_t_14);
              __pyx_t_11 = 0;
              {
                PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_v_name};
                __pyx_t_13 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
                if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 162, __pyx_L16_error)
                __Pyx_GOTREF(__pyx_t_13);
              }
              __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

              /* "cython/core/triangulation.pyx":163
 *                         db._one_manifold('K' + name, self)
 *                         self.set_name(name)
 *                         return             # <<<<<<<<<<<<<<
 *                     except:
 *                         pass
*/
              __Pyx_XDECREF(__pyx_r);
              __pyx_r = Py_None; __Pyx_INCREF(Py_None);
              __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
              __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
              __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
              goto __pyx_L20_try_return;

              /* "cython/core/triangulation.pyx":160
 *                 # different triangulations.
 *                 if is_HT_knot.match(name):
 *                     try:             # <<<<<<<<<<<<<<
 *                         db._one_manifold('K' + name, self)
 *                         self.set_name(name)
*/
            }
            __pyx_L16_error:;
            __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
            __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
            __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
            __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;

            /* "cython/core/triangulation.pyx":164
 *                         self.set_name(name)
 *                         return
 *                     except:             # <<<<<<<<<<<<<<
 *                         pass
 * 
*/
            /*except:*/ {
              __Pyx_ErrRestore(0,0,0);
              goto __pyx_L17_exception_handled;
            }

            /* "cython/core/triangulation.pyx":160
 *                 # different triangulations.
 *                 if is_HT_knot.match(name):
 *                     try:             # <<<<<<<<<<<<<<
 *                         db._one_manifold('K' + name, self)
 *                         self.set_name(name)
*/
            __pyx_L20_try_return:;
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
            goto __pyx_L8_except_return;
            __pyx_L17_exception_handled:;
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_XGIVEREF(__pyx_t_20);
            __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20);
          }

          /* "cython/core/triangulation.pyx":159
 *                 # the latter only have DT codes and so return many
 *                 # different triangulations.
 *                 if is_HT_knot.match(name):             # <<<<<<<<<<<<<<
 *                     try:
 *                         db._one_manifold('K' + name, self)
*/
        }
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        goto __pyx_L6_exception_handled;
      }
      goto __pyx_L7_except_error;

      /* "cython/core/triangulation.pyx":151
 *         # Step 1. The easy databases.
 *         for db in database.__all_tables__.values():
 *             try:             # <<<<<<<<<<<<<<
 *                 db._one_manifold(name, self)
 *                 return
*/
      __pyx_L7_except_error:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L9_try_return:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      goto __pyx_L0;
      __pyx_L8_except_return:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      goto __pyx_L0;
      __pyx_L6_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":168
 * 
 *         # Step 2. Alternate names for the Rolfsen links
 *         for regex in rolfsen_link_regexs:             # <<<<<<<<<<<<<<
 *             m = regex.match(name)
 *             if m:
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_rolfsen_link_regexs); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_12 = __pyx_t_1; __Pyx_INCREF(__pyx_t_12);
    __pyx_t_3 = 0;
    __pyx_t_21 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_12 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_21 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12); if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 168, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_21)) {
      if (likely(PyList_CheckExact(__pyx_t_12))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_12);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 168, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_12, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_3;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_12);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 168, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_12, __pyx_t_3));
        #else
        __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_12, __pyx_t_3);
        #endif
        ++__pyx_t_3;
      }
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 168, __pyx_L1_error)
    } else {
      __pyx_t_1 = __pyx_t_21(__pyx_t_12);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 168, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_regex, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":169
 *         # Step 2. Alternate names for the Rolfsen links
 *         for regex in rolfsen_link_regexs:
 *             m = regex.match(name)             # <<<<<<<<<<<<<<
 *             if m:
 *                 if int(m.group('components')) > 1:
*/
    __pyx_t_6 = __pyx_v_regex;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_name};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_match, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 169, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":170
 *         for regex in rolfsen_link_regexs:
 *             m = regex.match(name)
 *             if m:             # <<<<<<<<<<<<<<
 *                 if int(m.group('components')) > 1:
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),
*/
    __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_v_m); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 170, __pyx_L1_error)
    if (__pyx_t_17) {

      /* "cython/core/triangulation.pyx":171
 *             m = regex.match(name)
 *             if m:
 *                 if int(m.group('components')) > 1:             # <<<<<<<<<<<<<<
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),
 *                                                  int(m.group('components')),
*/
      __pyx_t_6 = __pyx_v_m;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_11 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_n_u_components};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 171, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = PyObject_RichCompare(__pyx_t_6, __pyx_mstate_global->__pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 171, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 171, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_17) {

        /* "cython/core/triangulation.pyx":172
 *             if m:
 *                 if int(m.group('components')) > 1:
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),             # <<<<<<<<<<<<<<
 *                                                  int(m.group('components')),
 *                                                  int(m.group('index')))
*/
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_mstate_global->__pyx_n_u_group); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 172, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[9], NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 172, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 172, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 172, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cython/core/triangulation.pyx":173
 *                 if int(m.group('components')) > 1:
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),
 *                                                  int(m.group('components')),             # <<<<<<<<<<<<<<
 *                                                  int(m.group('index')))
 *                 else:
*/
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_mstate_global->__pyx_n_u_group); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 173, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[10], NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 173, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 173, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 173, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cython/core/triangulation.pyx":174
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),
 *                                                  int(m.group('components')),
 *                                                  int(m.group('index')))             # <<<<<<<<<<<<<<
 *                 else:
 *                     rolfsen_name = '%d_%d' % (int(m.group('crossings')),
*/
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_mstate_global->__pyx_n_u_group); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 174, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_13 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[11], NULL); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 174, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_13); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 174, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_t_13 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 174, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_22[0] = __pyx_t_6;
        __pyx_t_22[1] = __pyx_mstate_global->__pyx_kp_u__20;
        __pyx_t_22[2] = __pyx_t_5;
        __pyx_t_22[3] = __pyx_mstate_global->__pyx_n_u__21;
        __pyx_t_22[4] = __pyx_t_13;

        /* "cython/core/triangulation.pyx":172
 *             if m:
 *                 if int(m.group('components')) > 1:
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),             # <<<<<<<<<<<<<<
 *                                                  int(m.group('components')),
 *                                                  int(m.group('index')))
*/
        __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_22, 5, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 1 * 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13));
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 172, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_v_rolfsen_name = ((PyObject*)__pyx_t_1);
        __pyx_t_1 = 0;

        /* "cython/core/triangulation.pyx":171
 *             m = regex.match(name)
 *             if m:
 *                 if int(m.group('components')) > 1:             # <<<<<<<<<<<<<<
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),
 *                                                  int(m.group('components')),
*/
        goto __pyx_L29;
      }

      /* "cython/core/triangulation.pyx":176
 *                                                  int(m.group('index')))
 *                 else:
 *                     rolfsen_name = '%d_%d' % (int(m.group('crossings')),             # <<<<<<<<<<<<<<
 *                                               int(m.group('index')))
 *                 database.LinkExteriors._one_manifold(rolfsen_name, self)
*/
      /*else*/ {
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_mstate_global->__pyx_n_u_group); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 176, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_13 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[9], NULL); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 176, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_13); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 176, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_t_13 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 176, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cython/core/triangulation.pyx":177
 *                 else:
 *                     rolfsen_name = '%d_%d' % (int(m.group('crossings')),
 *                                               int(m.group('index')))             # <<<<<<<<<<<<<<
 *                 database.LinkExteriors._one_manifold(rolfsen_name, self)
 *                 return
*/
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_m, __pyx_mstate_global->__pyx_n_u_group); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 177, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[11], NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 177, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 177, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_1), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 177, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_23[0] = __pyx_t_13;
        __pyx_t_23[1] = __pyx_mstate_global->__pyx_n_u__21;
        __pyx_t_23[2] = __pyx_t_5;

        /* "cython/core/triangulation.pyx":176
 *                                                  int(m.group('index')))
 *                 else:
 *                     rolfsen_name = '%d_%d' % (int(m.group('crossings')),             # <<<<<<<<<<<<<<
 *                                               int(m.group('index')))
 *                 database.LinkExteriors._one_manifold(rolfsen_name, self)
*/
        __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_23, 3, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5));
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 176, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_v_rolfsen_name = ((PyObject*)__pyx_t_1);
        __pyx_t_1 = 0;
      }
      __pyx_L29:;

      /* "cython/core/triangulation.pyx":178
 *                     rolfsen_name = '%d_%d' % (int(m.group('crossings')),
 *                                               int(m.group('index')))
 *                 database.LinkExteriors._one_manifold(rolfsen_name, self)             # <<<<<<<<<<<<<<
 *                 return
 * 
*/
      __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_database); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 178, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_LinkExteriors); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 178, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __pyx_t_5 = __pyx_t_6;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_11 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_rolfsen_name, ((PyObject *)__pyx_v_self)};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_one_manifold, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 178, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cython/core/triangulation.pyx":179
 *                                               int(m.group('index')))
 *                 database.LinkExteriors._one_manifold(rolfsen_name, self)
 *                 return             # <<<<<<<<<<<<<<
 * 
 *         # Step 3. Hoste-Thistlethwaite knots
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L0;

      /* "cython/core/triangulation.pyx":170
 *         for regex in rolfsen_link_regexs:
 *             m = regex.match(name)
 *             if m:             # <<<<<<<<<<<<<<
 *                 if int(m.group('components')) > 1:
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),
*/
    }

    /* "cython/core/triangulation.pyx":168
 * 
 *         # Step 2. Alternate names for the Rolfsen links
 *         for regex in rolfsen_link_regexs:             # <<<<<<<<<<<<<<
 *             m = regex.match(name)
 *             if m:
*/
  }
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "cython/core/triangulation.pyx":182
 * 
 *         # Step 3. Hoste-Thistlethwaite knots
 *         m = is_HT_knot.match(name)             # <<<<<<<<<<<<<<
 *         if m:
 *             self.get_HT_knot(int(m.group('crossings')), m.group('alternation'),
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_is_HT_knot); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_name};
    __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 182, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
  }
  __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_12);
  __pyx_t_12 = 0;

  /* "cython/core/triangulation.pyx":183
 *         # Step 3. Hoste-Thistlethwaite knots
 *         m = is_HT_knot.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             self.get_HT_knot(int(m.group('crossings')), m.group('alternation'),
 *                              int(m.group('index')), remove_finite_vertices)
*/
  __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_v_m); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 183, __pyx_L1_error)
  if (__pyx_t_17) {

    /* "cython/core/triangulation.pyx":184
 *         m = is_HT_knot.match(name)
 *         if m:
 *             self.get_HT_knot(int(m.group('crossings')), m.group('alternation'),             # <<<<<<<<<<<<<<
 *                              int(m.group('index')), remove_finite_vertices)
 *             return
*/
    __pyx_t_5 = __pyx_v_m;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_crossings};
      __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
    }
    __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_1 = __pyx_v_m;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_n_u_alternation};
      __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
    }

    /* "cython/core/triangulation.pyx":185
 *         if m:
 *             self.get_HT_knot(int(m.group('crossings')), m.group('alternation'),
 *                              int(m.group('index')), remove_finite_vertices)             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_6 = __pyx_v_m;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_n_u_index};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 185, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 185, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":184
 *         m = is_HT_knot.match(name)
 *         if m:
 *             self.get_HT_knot(int(m.group('crossings')), m.group('alternation'),             # <<<<<<<<<<<<<<
 *                              int(m.group('index')), remove_finite_vertices)
 *             return
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->get_HT_knot(__pyx_v_self, __pyx_t_5, __pyx_t_12, __pyx_t_6, __pyx_v_remove_finite_vertices); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":186
 *             self.get_HT_knot(int(m.group('crossings')), m.group('alternation'),
 *                              int(m.group('index')), remove_finite_vertices)
 *             return             # <<<<<<<<<<<<<<
 * 
 *         # Step 4. Once-punctured torus bundles
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":183
 *         # Step 3. Hoste-Thistlethwaite knots
 *         m = is_HT_knot.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             self.get_HT_knot(int(m.group('crossings')), m.group('alternation'),
 *                              int(m.group('index')), remove_finite_vertices)
*/
  }

  /* "cython/core/triangulation.pyx":189
 * 
 *         # Step 4. Once-punctured torus bundles
 *         m = is_torus_bundle.match(name)             # <<<<<<<<<<<<<<
 *         if m:
 *             self.get_punctured_torus_bundle(m)
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_is_torus_bundle); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_name};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 189, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_m, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":190
 *         # Step 4. Once-punctured torus bundles
 *         m = is_torus_bundle.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             self.get_punctured_torus_bundle(m)
 *             if self.c_triangulation != NULL:
*/
  __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_v_m); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 190, __pyx_L1_error)
  if (__pyx_t_17) {

    /* "cython/core/triangulation.pyx":191
 *         m = is_torus_bundle.match(name)
 *         if m:
 *             self.get_punctured_torus_bundle(m)             # <<<<<<<<<<<<<<
 *             if self.c_triangulation != NULL:
 *                 return
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->get_punctured_torus_bundle(__pyx_v_self, __pyx_v_m); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 191, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":192
 *         if m:
 *             self.get_punctured_torus_bundle(m)
 *             if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *                 return
 * 
*/
    __pyx_t_17 = (__pyx_v_self->c_triangulation != NULL);
    if (__pyx_t_17) {

      /* "cython/core/triangulation.pyx":193
 *             self.get_punctured_torus_bundle(m)
 *             if self.c_triangulation != NULL:
 *                 return             # <<<<<<<<<<<<<<
 * 
 *         # Step 5. (fibered) braid complements
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      goto __pyx_L0;

      /* "cython/core/triangulation.pyx":192
 *         if m:
 *             self.get_punctured_torus_bundle(m)
 *             if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *                 return
 * 
*/
    }

    /* "cython/core/triangulation.pyx":190
 *         # Step 4. Once-punctured torus bundles
 *         m = is_torus_bundle.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             self.get_punctured_torus_bundle(m)
 *             if self.c_triangulation != NULL:
*/
  }

  /* "cython/core/triangulation.pyx":196
 * 
 *         # Step 5. (fibered) braid complements
 *         m = is_braid_complement.match(name)             # <<<<<<<<<<<<<<
 *         if m:
 *             word = eval(m.group(1), {})
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_is_braid_complement); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_12))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_12);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_name};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_m, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":197
 *         # Step 5. (fibered) braid complements
 *         m = is_braid_complement.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             word = eval(m.group(1), {})
 *             num_strands = max([abs(x) for x in word]) + 1
*/
  __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_v_m); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 197, __pyx_L1_error)
  if (__pyx_t_17) {

    /* "cython/core/triangulation.pyx":198
 *         m = is_braid_complement.match(name)
 *         if m:
 *             word = eval(m.group(1), {})             # <<<<<<<<<<<<<<
 *             num_strands = max([abs(x) for x in word]) + 1
 *             self.set_c_triangulation(get_fibered_manifold_associated_to_braid(num_strands, word))
*/
    __pyx_t_12 = NULL;
    __pyx_t_6 = __pyx_v_m;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_int_1};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 198, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_6 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_11 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_12, __pyx_t_5, __pyx_t_6};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_eval, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 198, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_v_word = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":199
 *         if m:
 *             word = eval(m.group(1), {})
 *             num_strands = max([abs(x) for x in word]) + 1             # <<<<<<<<<<<<<<
 *             self.set_c_triangulation(get_fibered_manifold_associated_to_braid(num_strands, word))
 *             return
*/
    __pyx_t_6 = NULL;
    { /* enter inner scope */
      __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 199, __pyx_L37_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (likely(PyList_CheckExact(__pyx_v_word)) || PyTuple_CheckExact(__pyx_v_word)) {
        __pyx_t_12 = __pyx_v_word; __Pyx_INCREF(__pyx_t_12);
        __pyx_t_3 = 0;
        __pyx_t_21 = NULL;
      } else {
        __pyx_t_3 = -1; __pyx_t_12 = PyObject_GetIter(__pyx_v_word); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 199, __pyx_L37_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_21 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12); if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 199, __pyx_L37_error)
      }
      for (;;) {
        if (likely(!__pyx_t_21)) {
          if (likely(PyList_CheckExact(__pyx_t_12))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_12);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 199, __pyx_L37_error)
              #endif
              if (__pyx_t_3 >= __pyx_temp) break;
            }
            __pyx_t_13 = __Pyx_PyList_GetItemRefFast(__pyx_t_12, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_3;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_12);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 199, __pyx_L37_error)
              #endif
              if (__pyx_t_3 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_13 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_12, __pyx_t_3));
            #else
            __pyx_t_13 = __Pyx_PySequence_ITEM(__pyx_t_12, __pyx_t_3);
            #endif
            ++__pyx_t_3;
          }
          if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 199, __pyx_L37_error)
        } else {
          __pyx_t_13 = __pyx_t_21(__pyx_t_12);
          if (unlikely(!__pyx_t_13)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 199, __pyx_L37_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_XDECREF_SET(__pyx_9genexpr10__pyx_v_x, __pyx_t_13);
        __pyx_t_13 = 0;
        __pyx_t_13 = __Pyx_PyNumber_Absolute(__pyx_9genexpr10__pyx_v_x); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 199, __pyx_L37_error)
        __Pyx_GOTREF(__pyx_t_13);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_13))) __PYX_ERR(4, 199, __pyx_L37_error)
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      }
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_9genexpr10__pyx_v_x); __pyx_9genexpr10__pyx_v_x = 0;
      goto __pyx_L41_exit_scope;
      __pyx_L37_error:;
      __Pyx_XDECREF(__pyx_9genexpr10__pyx_v_x); __pyx_9genexpr10__pyx_v_x = 0;
      goto __pyx_L1_error;
      __pyx_L41_exit_scope:;
    } /* exit inner scope */
    __pyx_t_11 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_max, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 199, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_num_strands = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":200
 *             word = eval(m.group(1), {})
 *             num_strands = max([abs(x) for x in word]) + 1
 *             self.set_c_triangulation(get_fibered_manifold_associated_to_braid(num_strands, word))             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_24 = __pyx_f_6SnapPy_get_fibered_manifold_associated_to_braid(__pyx_v_num_strands, __pyx_v_word); if (unlikely(__pyx_t_24 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 200, __pyx_L1_error)
    __pyx_t_5 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_t_24); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":201
 *             num_strands = max([abs(x) for x in word]) + 1
 *             self.set_c_triangulation(get_fibered_manifold_associated_to_braid(num_strands, word))
 *             return             # <<<<<<<<<<<<<<
 * 
 *         # Step 6. Dowker-Thistlethwaite codes
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":197
 *         # Step 5. (fibered) braid complements
 *         m = is_braid_complement.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             word = eval(m.group(1), {})
 *             num_strands = max([abs(x) for x in word]) + 1
*/
  }

  /* "cython/core/triangulation.pyx":204
 * 
 *         # Step 6. Dowker-Thistlethwaite codes
 *         m = is_int_DT_exterior.match(name)             # <<<<<<<<<<<<<<
 *         if m:
 *             code = eval(m.group(1), {})
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_is_int_DT_exterior); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_12))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_12);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_name};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 204, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __Pyx_DECREF_SET(__pyx_v_m, __pyx_t_5);
  __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":205
 *         # Step 6. Dowker-Thistlethwaite codes
 *         m = is_int_DT_exterior.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             code = eval(m.group(1), {})
 *             if isinstance(code, tuple):
*/
  __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_v_m); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 205, __pyx_L1_error)
  if (__pyx_t_17) {

    /* "cython/core/triangulation.pyx":206
 *         m = is_int_DT_exterior.match(name)
 *         if m:
 *             code = eval(m.group(1), {})             # <<<<<<<<<<<<<<
 *             if isinstance(code, tuple):
 *                 knot = spherogram.DTcodec(*code)
*/
    __pyx_t_12 = NULL;
    __pyx_t_6 = __pyx_v_m;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_int_1};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 206, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_6 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 206, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_11 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_12, __pyx_t_1, __pyx_t_6};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_eval, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 206, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_v_code = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":207
 *         if m:
 *             code = eval(m.group(1), {})
 *             if isinstance(code, tuple):             # <<<<<<<<<<<<<<
 *                 knot = spherogram.DTcodec(*code)
 *             elif isinstance(code, list) and isinstance(code[0], int):
*/
    __pyx_t_17 = PyTuple_Check(__pyx_v_code); 
    if (__pyx_t_17) {

      /* "cython/core/triangulation.pyx":208
 *             code = eval(m.group(1), {})
 *             if isinstance(code, tuple):
 *                 knot = spherogram.DTcodec(*code)             # <<<<<<<<<<<<<<
 *             elif isinstance(code, list) and isinstance(code[0], int):
 *                 knot = spherogram.DTcodec([tuple(code)])
*/
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 208, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 208, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PySequence_Tuple(__pyx_v_code); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 208, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 208, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_knot = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cython/core/triangulation.pyx":207
 *         if m:
 *             code = eval(m.group(1), {})
 *             if isinstance(code, tuple):             # <<<<<<<<<<<<<<
 *                 knot = spherogram.DTcodec(*code)
 *             elif isinstance(code, list) and isinstance(code[0], int):
*/
      goto __pyx_L43;
    }

    /* "cython/core/triangulation.pyx":209
 *             if isinstance(code, tuple):
 *                 knot = spherogram.DTcodec(*code)
 *             elif isinstance(code, list) and isinstance(code[0], int):             # <<<<<<<<<<<<<<
 *                 knot = spherogram.DTcodec([tuple(code)])
 *             else:
*/
    __pyx_t_25 = PyList_Check(__pyx_v_code); 
    if (__pyx_t_25) {
    } else {
      __pyx_t_17 = __pyx_t_25;
      goto __pyx_L44_bool_binop_done;
    }
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_code, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 209, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_25 = PyLong_Check(__pyx_t_1); 
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_17 = __pyx_t_25;
    __pyx_L44_bool_binop_done:;
    if (__pyx_t_17) {

      /* "cython/core/triangulation.pyx":210
 *                 knot = spherogram.DTcodec(*code)
 *             elif isinstance(code, list) and isinstance(code[0], int):
 *                 knot = spherogram.DTcodec([tuple(code)])             # <<<<<<<<<<<<<<
 *             else:
 *                 knot = spherogram.DTcodec(code)
*/
      __pyx_t_5 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PySequence_Tuple(__pyx_v_code); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_13 = PyList_New(1); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_13, 0, __pyx_t_6) != (0)) __PYX_ERR(4, 210, __pyx_L1_error);
      __pyx_t_6 = 0;
      __pyx_t_11 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_12))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_12);
        assert(__pyx_t_5);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
        __pyx_t_11 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_13};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 210, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_v_knot = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cython/core/triangulation.pyx":209
 *             if isinstance(code, tuple):
 *                 knot = spherogram.DTcodec(*code)
 *             elif isinstance(code, list) and isinstance(code[0], int):             # <<<<<<<<<<<<<<
 *                 knot = spherogram.DTcodec([tuple(code)])
 *             else:
*/
      goto __pyx_L43;
    }

    /* "cython/core/triangulation.pyx":212
 *                 knot = spherogram.DTcodec([tuple(code)])
 *             else:
 *                 knot = spherogram.DTcodec(code)             # <<<<<<<<<<<<<<
 *             klp = knot.KLPProjection()
 *             self.set_c_triangulation(
*/
    /*else*/ {
      __pyx_t_12 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __pyx_t_11 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_5);
        assert(__pyx_t_12);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_12);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
        __pyx_t_11 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_v_code};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 212, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_v_knot = __pyx_t_1;
      __pyx_t_1 = 0;
    }
    __pyx_L43:;

    /* "cython/core/triangulation.pyx":213
 *             else:
 *                 knot = spherogram.DTcodec(code)
 *             klp = knot.KLPProjection()             # <<<<<<<<<<<<<<
 *             self.set_c_triangulation(
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
*/
    __pyx_t_5 = __pyx_v_knot;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_KLPProjection, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_v_klp = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":215
 *             klp = knot.KLPProjection()
 *             self.set_c_triangulation(
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))             # <<<<<<<<<<<<<<
 *             self.set_name(name)
 *             self._set_DTcode(knot)
*/
    __pyx_t_26.__pyx_n = 1;
    __pyx_t_26.remove_finite_vertices = __pyx_v_remove_finite_vertices;
    __pyx_t_24 = __pyx_f_6SnapPy_get_triangulation_from_PythonKLP(__pyx_v_klp, &__pyx_t_26); if (unlikely(__pyx_t_24 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 215, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":214
 *                 knot = spherogram.DTcodec(code)
 *             klp = knot.KLPProjection()
 *             self.set_c_triangulation(             # <<<<<<<<<<<<<<
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
 *             self.set_name(name)
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_t_24); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":216
 *             self.set_c_triangulation(
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
 *             self.set_name(name)             # <<<<<<<<<<<<<<
 *             self._set_DTcode(knot)
 *             return
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_name};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 216, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":217
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
 *             self.set_name(name)
 *             self._set_DTcode(knot)             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_knot};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_DTcode, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 217, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":218
 *             self.set_name(name)
 *             self._set_DTcode(knot)
 *             return             # <<<<<<<<<<<<<<
 * 
 *         m = is_alpha_DT_exterior.match(name)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":205
 *         # Step 6. Dowker-Thistlethwaite codes
 *         m = is_int_DT_exterior.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             code = eval(m.group(1), {})
 *             if isinstance(code, tuple):
*/
  }

  /* "cython/core/triangulation.pyx":220
 *             return
 * 
 *         m = is_alpha_DT_exterior.match(name)             # <<<<<<<<<<<<<<
 *         if m:
 *             knot = spherogram.DTcodec(m.group(1))
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_is_alpha_DT_exterior); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_13))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_13);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_name};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_m, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":221
 * 
 *         m = is_alpha_DT_exterior.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             knot = spherogram.DTcodec(m.group(1))
 *             klp=knot.KLPProjection()
*/
  __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_v_m); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 221, __pyx_L1_error)
  if (__pyx_t_17) {

    /* "cython/core/triangulation.pyx":222
 *         m = is_alpha_DT_exterior.match(name)
 *         if m:
 *             knot = spherogram.DTcodec(m.group(1))             # <<<<<<<<<<<<<<
 *             klp=knot.KLPProjection()
 *             self.set_c_triangulation(
*/
    __pyx_t_13 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_6 = __pyx_v_m;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_int_1};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_11 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_12))) {
      __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
      assert(__pyx_t_13);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
      __Pyx_INCREF(__pyx_t_13);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
      __pyx_t_11 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_5};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_v_knot = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":223
 *         if m:
 *             knot = spherogram.DTcodec(m.group(1))
 *             klp=knot.KLPProjection()             # <<<<<<<<<<<<<<
 *             self.set_c_triangulation(
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
*/
    __pyx_t_12 = __pyx_v_knot;
    __Pyx_INCREF(__pyx_t_12);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_KLPProjection, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 223, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_v_klp = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":225
 *             klp=knot.KLPProjection()
 *             self.set_c_triangulation(
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))             # <<<<<<<<<<<<<<
 *             self.set_name(name)
 *             self._set_DTcode(knot)
*/
    __pyx_t_26.__pyx_n = 1;
    __pyx_t_26.remove_finite_vertices = __pyx_v_remove_finite_vertices;
    __pyx_t_24 = __pyx_f_6SnapPy_get_triangulation_from_PythonKLP(__pyx_v_klp, &__pyx_t_26); if (unlikely(__pyx_t_24 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 225, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":224
 *             knot = spherogram.DTcodec(m.group(1))
 *             klp=knot.KLPProjection()
 *             self.set_c_triangulation(             # <<<<<<<<<<<<<<
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
 *             self.set_name(name)
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_t_24); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 224, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":226
 *             self.set_c_triangulation(
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
 *             self.set_name(name)             # <<<<<<<<<<<<<<
 *             self._set_DTcode(knot)
 *             return
*/
    __pyx_t_12 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_12);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_v_name};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 226, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":227
 *                 get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
 *             self.set_name(name)
 *             self._set_DTcode(knot)             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_12 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_12);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_v_knot};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_DTcode, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 227, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":228
 *             self.set_name(name)
 *             self._set_DTcode(knot)
 *             return             # <<<<<<<<<<<<<<
 * 
 *         # Step 7.  Bundle or splitting is given in Twister's notation
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":221
 * 
 *         m = is_alpha_DT_exterior.match(name)
 *         if m:             # <<<<<<<<<<<<<<
 *             knot = spherogram.DTcodec(m.group(1))
 *             klp=knot.KLPProjection()
*/
  }

  /* "cython/core/triangulation.pyx":231
 * 
 *         # Step 7.  Bundle or splitting is given in Twister's notation
 *         shortened_name = name.replace(' ', '')             # <<<<<<<<<<<<<<
 *         mb = is_twister_bundle.match(shortened_name)
 *         if mb:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[0], NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_shortened_name = __pyx_t_12;
  __pyx_t_12 = 0;

  /* "cython/core/triangulation.pyx":232
 *         # Step 7.  Bundle or splitting is given in Twister's notation
 *         shortened_name = name.replace(' ', '')
 *         mb = is_twister_bundle.match(shortened_name)             # <<<<<<<<<<<<<<
 *         if mb:
 *             self._from_string(
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_twister_bundle); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_13))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_13);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_shortened_name};
    __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 232, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
  }
  __pyx_v_mb = __pyx_t_12;
  __pyx_t_12 = 0;

  /* "cython/core/triangulation.pyx":233
 *         shortened_name = name.replace(' ', '')
 *         mb = is_twister_bundle.match(shortened_name)
 *         if mb:             # <<<<<<<<<<<<<<
 *             self._from_string(
 *                 bundle_from_string(shortened_name), remove_finite_vertices)
*/
  __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_v_mb); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 233, __pyx_L1_error)
  if (__pyx_t_17) {

    /* "cython/core/triangulation.pyx":234
 *         mb = is_twister_bundle.match(shortened_name)
 *         if mb:
 *             self._from_string(             # <<<<<<<<<<<<<<
 *                 bundle_from_string(shortened_name), remove_finite_vertices)
 *             return
*/
    __pyx_t_13 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_13);

    /* "cython/core/triangulation.pyx":235
 *         if mb:
 *             self._from_string(
 *                 bundle_from_string(shortened_name), remove_finite_vertices)             # <<<<<<<<<<<<<<
 *             return
 *         ms = is_twister_splitting.match(shortened_name)
*/
    __pyx_t_5 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_bundle_from_string); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_11 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_5);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_11 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_shortened_name};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 235, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_t_1, __pyx_v_remove_finite_vertices};
      __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_string, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 234, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
    }
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

    /* "cython/core/triangulation.pyx":236
 *             self._from_string(
 *                 bundle_from_string(shortened_name), remove_finite_vertices)
 *             return             # <<<<<<<<<<<<<<
 *         ms = is_twister_splitting.match(shortened_name)
 *         if ms:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":233
 *         shortened_name = name.replace(' ', '')
 *         mb = is_twister_bundle.match(shortened_name)
 *         if mb:             # <<<<<<<<<<<<<<
 *             self._from_string(
 *                 bundle_from_string(shortened_name), remove_finite_vertices)
*/
  }

  /* "cython/core/triangulation.pyx":237
 *                 bundle_from_string(shortened_name), remove_finite_vertices)
 *             return
 *         ms = is_twister_splitting.match(shortened_name)             # <<<<<<<<<<<<<<
 *         if ms:
 *             self._from_string(
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_is_twister_splitting); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_shortened_name};
    __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
  }
  __pyx_v_ms = __pyx_t_12;
  __pyx_t_12 = 0;

  /* "cython/core/triangulation.pyx":238
 *             return
 *         ms = is_twister_splitting.match(shortened_name)
 *         if ms:             # <<<<<<<<<<<<<<
 *             self._from_string(
 *                 splitting_from_string(shortened_name), remove_finite_vertices)
*/
  __pyx_t_17 = __Pyx_PyObject_IsTrue(__pyx_v_ms); if (unlikely((__pyx_t_17 < 0))) __PYX_ERR(4, 238, __pyx_L1_error)
  if (__pyx_t_17) {

    /* "cython/core/triangulation.pyx":239
 *         ms = is_twister_splitting.match(shortened_name)
 *         if ms:
 *             self._from_string(             # <<<<<<<<<<<<<<
 *                 splitting_from_string(shortened_name), remove_finite_vertices)
 *             return
*/
    __pyx_t_6 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_6);

    /* "cython/core/triangulation.pyx":240
 *         if ms:
 *             self._from_string(
 *                 splitting_from_string(shortened_name), remove_finite_vertices)             # <<<<<<<<<<<<<<
 *             return
 * 
*/
    __pyx_t_13 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_splitting_from_string); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_11 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_13);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_13);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_11 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_v_shortened_name};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 240, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_t_1, __pyx_v_remove_finite_vertices};
      __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_string, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 239, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
    }
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

    /* "cython/core/triangulation.pyx":241
 *             self._from_string(
 *                 splitting_from_string(shortened_name), remove_finite_vertices)
 *             return             # <<<<<<<<<<<<<<
 * 
 *         # Step 8. Regina/Burton isomorphism signatures.
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":238
 *             return
 *         ms = is_twister_splitting.match(shortened_name)
 *         if ms:             # <<<<<<<<<<<<<<
 *             self._from_string(
 *                 splitting_from_string(shortened_name), remove_finite_vertices)
*/
  }

  /* "cython/core/triangulation.pyx":244
 * 
 *         # Step 8. Regina/Burton isomorphism signatures.
 *         self._from_isosig(name, remove_finite_vertices)             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             return
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_11 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_v_name, __pyx_v_remove_finite_vertices};
    __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_isosig, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 244, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
  }
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "cython/core/triangulation.pyx":245
 *         # Step 8. Regina/Burton isomorphism signatures.
 *         self._from_isosig(name, remove_finite_vertices)
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             return
 * 
*/
  __pyx_t_17 = (__pyx_v_self->c_triangulation != NULL);
  if (__pyx_t_17) {

    /* "cython/core/triangulation.pyx":246
 *         self._from_isosig(name, remove_finite_vertices)
 *         if self.c_triangulation != NULL:
 *             return             # <<<<<<<<<<<<<<
 * 
 *         # Step 9. If all else fails, try to load a manifold from a file.
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":245
 *         # Step 8. Regina/Burton isomorphism signatures.
 *         self._from_isosig(name, remove_finite_vertices)
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             return
 * 
*/
  }

  /* "cython/core/triangulation.pyx":249
 * 
 *         # Step 9. If all else fails, try to load a manifold from a file.
 *         self.get_from_file(name, remove_finite_vertices)             # <<<<<<<<<<<<<<
 * 
 *     cdef get_HT_knot(self, crossings, alternation, index, remove_finite_vertices):
*/
  __pyx_t_27.__pyx_n = 1;
  __pyx_t_27.remove_finite_vertices = __pyx_v_remove_finite_vertices;
  __pyx_t_12 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->get_from_file(__pyx_v_self, __pyx_v_name, &__pyx_t_27); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

  /* "cython/core/triangulation.pyx":147
 *         Triangulation.dehn_fill(self, fillings)
 * 
 *     cdef get_triangulation_from_name(self, name, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 * 
 *         # Step 1. The easy databases.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __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_AddTraceback("SnapPy.Triangulation.get_triangulation_from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_db);
  __Pyx_XDECREF(__pyx_v_regex);
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_rolfsen_name);
  __Pyx_XDECREF(__pyx_v_word);
  __Pyx_XDECREF(__pyx_v_num_strands);
  __Pyx_XDECREF(__pyx_v_code);
  __Pyx_XDECREF(__pyx_v_knot);
  __Pyx_XDECREF(__pyx_v_klp);
  __Pyx_XDECREF(__pyx_v_shortened_name);
  __Pyx_XDECREF(__pyx_v_mb);
  __Pyx_XDECREF(__pyx_v_ms);
  __Pyx_XDECREF(__pyx_9genexpr10__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":251
 *         self.get_from_file(name, remove_finite_vertices)
 * 
 *     cdef get_HT_knot(self, crossings, alternation, index, remove_finite_vertices):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         DT = [get_HT_knot_DT(crossings, alternation, index)]
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_get_HT_knot(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_crossings, PyObject *__pyx_v_alternation, PyObject *__pyx_v_index, PyObject *__pyx_v_remove_finite_vertices) {
  Triangulation *__pyx_v_c_triangulation;
  PyObject *__pyx_v_DT = NULL;
  PyObject *__pyx_v_knot = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Triangulation *__pyx_t_6;
  struct __pyx_opt_args_6SnapPy_get_triangulation_from_PythonKLP __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  char *__pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_HT_knot", 0);

  /* "cython/core/triangulation.pyx":253
 *     cdef get_HT_knot(self, crossings, alternation, index, remove_finite_vertices):
 *         cdef c_Triangulation* c_triangulation
 *         DT = [get_HT_knot_DT(crossings, alternation, index)]             # <<<<<<<<<<<<<<
 *         knot = spherogram.DTcodec(DT)
 *         c_triangulation = get_triangulation_from_PythonKLP(
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_get_HT_knot_DT); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_crossings, __pyx_v_alternation, __pyx_v_index};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(4, 253, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_v_DT = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":254
 *         cdef c_Triangulation* c_triangulation
 *         DT = [get_HT_knot_DT(crossings, alternation, index)]
 *         knot = spherogram.DTcodec(DT)             # <<<<<<<<<<<<<<
 *         c_triangulation = get_triangulation_from_PythonKLP(
 *             knot.KLPProjection(), remove_finite_vertices)
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_DT};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_v_knot = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":256
 *         knot = spherogram.DTcodec(DT)
 *         c_triangulation = get_triangulation_from_PythonKLP(
 *             knot.KLPProjection(), remove_finite_vertices)             # <<<<<<<<<<<<<<
 *         name = to_byte_str('%d' % crossings + alternation + '%d' % index)
 *         set_triangulation_name(c_triangulation, name)
*/
  __pyx_t_5 = __pyx_v_knot;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_KLPProjection, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }

  /* "cython/core/triangulation.pyx":255
 *         DT = [get_HT_knot_DT(crossings, alternation, index)]
 *         knot = spherogram.DTcodec(DT)
 *         c_triangulation = get_triangulation_from_PythonKLP(             # <<<<<<<<<<<<<<
 *             knot.KLPProjection(), remove_finite_vertices)
 *         name = to_byte_str('%d' % crossings + alternation + '%d' % index)
*/
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.remove_finite_vertices = __pyx_v_remove_finite_vertices;
  __pyx_t_6 = __pyx_f_6SnapPy_get_triangulation_from_PythonKLP(__pyx_t_3, &__pyx_t_7); if (unlikely(__pyx_t_6 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_c_triangulation = __pyx_t_6;

  /* "cython/core/triangulation.pyx":257
 *         c_triangulation = get_triangulation_from_PythonKLP(
 *             knot.KLPProjection(), remove_finite_vertices)
 *         name = to_byte_str('%d' % crossings + alternation + '%d' % index)             # <<<<<<<<<<<<<<
 *         set_triangulation_name(c_triangulation, name)
 *         self._set_DTcode(knot)
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d, __pyx_v_crossings); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = PyNumber_Add(__pyx_t_2, __pyx_v_alternation); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d, __pyx_v_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = PyNumber_Add(__pyx_t_8, __pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_9};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 257, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_v_name = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":258
 *             knot.KLPProjection(), remove_finite_vertices)
 *         name = to_byte_str('%d' % crossings + alternation + '%d' % index)
 *         set_triangulation_name(c_triangulation, name)             # <<<<<<<<<<<<<<
 *         self._set_DTcode(knot)
 *         self.set_c_triangulation(c_triangulation)
*/
  __pyx_t_10 = __Pyx_PyObject_AsWritableString(__pyx_v_name); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) __PYX_ERR(4, 258, __pyx_L1_error)
  set_triangulation_name(__pyx_v_c_triangulation, __pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 258, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":259
 *         name = to_byte_str('%d' % crossings + alternation + '%d' % index)
 *         set_triangulation_name(c_triangulation, name)
 *         self._set_DTcode(knot)             # <<<<<<<<<<<<<<
 *         self.set_c_triangulation(c_triangulation)
 * 
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_knot};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_DTcode, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":260
 *         set_triangulation_name(c_triangulation, name)
 *         self._set_DTcode(knot)
 *         self.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     cdef get_punctured_torus_bundle(self, match):
*/
  __pyx_t_3 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":251
 *         self.get_from_file(name, remove_finite_vertices)
 * 
 *     cdef get_HT_knot(self, crossings, alternation, index, remove_finite_vertices):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         DT = [get_HT_knot_DT(crossings, alternation, index)]
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Triangulation.get_HT_knot", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_DT);
  __Pyx_XDECREF(__pyx_v_knot);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":262
 *         self.set_c_triangulation(c_triangulation)
 * 
 *     cdef get_punctured_torus_bundle(self, match):             # <<<<<<<<<<<<<<
 *         cdef LRFactorization* gluing
 *         cdef size_t LRlength, i
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_get_punctured_torus_bundle(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_match) {
  LRFactorization *__pyx_v_gluing;
  size_t __pyx_v_LRlength;
  size_t __pyx_v_i;
  char *__pyx_v_LRstring;
  PyObject *__pyx_v_LRpart = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  char *__pyx_t_10;
  LRFactorization *__pyx_t_11;
  Boolean __pyx_t_12;
  int __pyx_t_13;
  int __pyx_t_14;
  Triangulation *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_punctured_torus_bundle", 0);

  /* "cython/core/triangulation.pyx":267
 *         cdef char* LRstring
 * 
 *         LRpart = to_byte_str(match.group(3).upper())             # <<<<<<<<<<<<<<
 *         LRlength = len(LRpart)
 *         LRstring = LRpart
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = __pyx_v_match;
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_int_3};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_5 = __pyx_t_6;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_upper, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_LRpart = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":268
 * 
 *         LRpart = to_byte_str(match.group(3).upper())
 *         LRlength = len(LRpart)             # <<<<<<<<<<<<<<
 *         LRstring = LRpart
 *         gluing = alloc_LR_factorization(<int>LRlength)
*/
  __pyx_t_9 = PyObject_Length(__pyx_v_LRpart); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(4, 268, __pyx_L1_error)
  __pyx_v_LRlength = __pyx_t_9;

  /* "cython/core/triangulation.pyx":269
 *         LRpart = to_byte_str(match.group(3).upper())
 *         LRlength = len(LRpart)
 *         LRstring = LRpart             # <<<<<<<<<<<<<<
 *         gluing = alloc_LR_factorization(<int>LRlength)
 *         gluing.is_available = True
*/
  __pyx_t_10 = __Pyx_PyObject_AsWritableString(__pyx_v_LRpart); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) __PYX_ERR(4, 269, __pyx_L1_error)
  __pyx_v_LRstring = __pyx_t_10;

  /* "cython/core/triangulation.pyx":270
 *         LRlength = len(LRpart)
 *         LRstring = LRpart
 *         gluing = alloc_LR_factorization(<int>LRlength)             # <<<<<<<<<<<<<<
 *         gluing.is_available = True
 *         gluing.negative_determinant = 1 if match.group(1) in ['-', 'n'] else 0
*/
  __pyx_t_11 = alloc_LR_factorization(((int)__pyx_v_LRlength)); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 270, __pyx_L1_error)
  __pyx_v_gluing = __pyx_t_11;

  /* "cython/core/triangulation.pyx":271
 *         LRstring = LRpart
 *         gluing = alloc_LR_factorization(<int>LRlength)
 *         gluing.is_available = True             # <<<<<<<<<<<<<<
 *         gluing.negative_determinant = 1 if match.group(1) in ['-', 'n'] else 0
 *         gluing.negative_trace = 0 if match.group(2) == '+' else 1
*/
  __pyx_v_gluing->is_available = 1;

  /* "cython/core/triangulation.pyx":272
 *         gluing = alloc_LR_factorization(<int>LRlength)
 *         gluing.is_available = True
 *         gluing.negative_determinant = 1 if match.group(1) in ['-', 'n'] else 0             # <<<<<<<<<<<<<<
 *         gluing.negative_trace = 0 if match.group(2) == '+' else 1
 *         for i from 0 <= i < LRlength:
*/
  __pyx_t_3 = __pyx_v_match;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_int_1};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 272, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_14 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__22, Py_EQ)); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(4, 272, __pyx_L1_error)
  if (!__pyx_t_14) {
  } else {
    __pyx_t_13 = __pyx_t_14;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_14 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_n, Py_EQ)); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(4, 272, __pyx_L1_error)
  __pyx_t_13 = __pyx_t_14;
  __pyx_L3_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_14 = __pyx_t_13;
  if (__pyx_t_14) {
    __pyx_t_12 = 1;
  } else {
    __pyx_t_12 = 0;
  }
  __pyx_v_gluing->negative_determinant = __pyx_t_12;

  /* "cython/core/triangulation.pyx":273
 *         gluing.is_available = True
 *         gluing.negative_determinant = 1 if match.group(1) in ['-', 'n'] else 0
 *         gluing.negative_trace = 0 if match.group(2) == '+' else 1             # <<<<<<<<<<<<<<
 *         for i from 0 <= i < LRlength:
 *             gluing.LR_factors[i] = LRstring[i]
*/
  __pyx_t_3 = __pyx_v_match;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_int_2};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_14 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__23, Py_EQ)); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(4, 273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_14) {
    __pyx_t_12 = 0;
  } else {
    __pyx_t_12 = 1;
  }
  __pyx_v_gluing->negative_trace = __pyx_t_12;

  /* "cython/core/triangulation.pyx":274
 *         gluing.negative_determinant = 1 if match.group(1) in ['-', 'n'] else 0
 *         gluing.negative_trace = 0 if match.group(2) == '+' else 1
 *         for i from 0 <= i < LRlength:             # <<<<<<<<<<<<<<
 *             gluing.LR_factors[i] = LRstring[i]
 *         self.set_c_triangulation(triangulate_punctured_torus_bundle(gluing))
*/
  __pyx_t_8 = __pyx_v_LRlength;
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_8; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":275
 *         gluing.negative_trace = 0 if match.group(2) == '+' else 1
 *         for i from 0 <= i < LRlength:
 *             gluing.LR_factors[i] = LRstring[i]             # <<<<<<<<<<<<<<
 *         self.set_c_triangulation(triangulate_punctured_torus_bundle(gluing))
 *         free_LR_factorization(gluing)
*/
    (__pyx_v_gluing->LR_factors[__pyx_v_i]) = (__pyx_v_LRstring[__pyx_v_i]);
  }

  /* "cython/core/triangulation.pyx":276
 *         for i from 0 <= i < LRlength:
 *             gluing.LR_factors[i] = LRstring[i]
 *         self.set_c_triangulation(triangulate_punctured_torus_bundle(gluing))             # <<<<<<<<<<<<<<
 *         free_LR_factorization(gluing)
 * 
*/
  __pyx_t_15 = triangulate_punctured_torus_bundle(__pyx_v_gluing); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 276, __pyx_L1_error)
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_t_15); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":277
 *             gluing.LR_factors[i] = LRstring[i]
 *         self.set_c_triangulation(triangulate_punctured_torus_bundle(gluing))
 *         free_LR_factorization(gluing)             # <<<<<<<<<<<<<<
 * 
 *     def _get_from_link_data(self, data, remove_finite_vertices=True):
*/
  free_LR_factorization(__pyx_v_gluing); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 277, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":262
 *         self.set_c_triangulation(c_triangulation)
 * 
 *     cdef get_punctured_torus_bundle(self, match):             # <<<<<<<<<<<<<<
 *         cdef LRFactorization* gluing
 *         cdef size_t LRlength, i
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_AddTraceback("SnapPy.Triangulation.get_punctured_torus_bundle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_LRpart);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":279
 *         free_LR_factorization(gluing)
 * 
 *     def _get_from_link_data(self, data, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_3_get_from_link_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_3_get_from_link_data = {"_get_from_link_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_3_get_from_link_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_3_get_from_link_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_data = 0;
  PyObject *__pyx_v_remove_finite_vertices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_get_from_link_data (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_data,&__pyx_mstate_global->__pyx_n_u_remove_finite_vertices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 279, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 279, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 279, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_get_from_link_data", 0) < (0)) __PYX_ERR(4, 279, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_get_from_link_data", 0, 1, 2, i); __PYX_ERR(4, 279, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 279, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 279, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_data = values[0];
    __pyx_v_remove_finite_vertices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_get_from_link_data", 0, 1, 2, __pyx_nargs); __PYX_ERR(4, 279, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._get_from_link_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_2_get_from_link_data(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_data, __pyx_v_remove_finite_vertices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_2_get_from_link_data(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_data, PyObject *__pyx_v_remove_finite_vertices) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Triangulation *__pyx_t_2;
  struct __pyx_opt_args_6SnapPy_get_triangulation_from_PythonKLP __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_get_from_link_data", 0);

  /* "cython/core/triangulation.pyx":280
 * 
 *     def _get_from_link_data(self, data, remove_finite_vertices=True):
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(self.c_triangulation)
 *         self.c_triangulation = get_triangulation_from_PythonKLP(data, remove_finite_vertices)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":281
 *     def _get_from_link_data(self, data, remove_finite_vertices=True):
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         self.c_triangulation = get_triangulation_from_PythonKLP(data, remove_finite_vertices)
 * 
*/
    free_triangulation(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 281, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":280
 * 
 *     def _get_from_link_data(self, data, remove_finite_vertices=True):
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(self.c_triangulation)
 *         self.c_triangulation = get_triangulation_from_PythonKLP(data, remove_finite_vertices)
*/
  }

  /* "cython/core/triangulation.pyx":282
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
 *         self.c_triangulation = get_triangulation_from_PythonKLP(data, remove_finite_vertices)             # <<<<<<<<<<<<<<
 * 
 *     cdef get_from_file(self, name, remove_finite_vertices=True):
*/
  __pyx_t_3.__pyx_n = 1;
  __pyx_t_3.remove_finite_vertices = __pyx_v_remove_finite_vertices;
  __pyx_t_2 = __pyx_f_6SnapPy_get_triangulation_from_PythonKLP(__pyx_v_data, &__pyx_t_3); if (unlikely(__pyx_t_2 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 282, __pyx_L1_error)
  __pyx_v_self->c_triangulation = __pyx_t_2;

  /* "cython/core/triangulation.pyx":279
 *         free_LR_factorization(gluing)
 * 
 *     def _get_from_link_data(self, data, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.Triangulation._get_from_link_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":284
 *         self.c_triangulation = get_triangulation_from_PythonKLP(data, remove_finite_vertices)
 * 
 *     cdef get_from_file(self, name, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         try:
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_get_from_file(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_name, struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_file *__pyx_optional_args) {
  PyObject *__pyx_v_remove_finite_vertices = ((PyObject *)Py_True);
  PyObject *__pyx_v_locations = NULL;
  PyObject *__pyx_v_location = NULL;
  PyObject *__pyx_v_pathname = NULL;
  PyObject *__pyx_v_file = NULL;
  PyObject *__pyx_v_first_line = NULL;
  PyObject *__pyx_v_LM = NULL;
  PyObject *__pyx_v_klp = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  Py_ssize_t __pyx_t_10;
  size_t __pyx_t_11;
  int __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  Triangulation *__pyx_t_15;
  struct __pyx_opt_args_6SnapPy_get_triangulation_from_PythonKLP __pyx_t_16;
  char *__pyx_t_17;
  PyObject *__pyx_t_18[4];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_from_file", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_remove_finite_vertices = __pyx_optional_args->remove_finite_vertices;
    }
  }

  /* "cython/core/triangulation.pyx":285
 * 
 *     cdef get_from_file(self, name, remove_finite_vertices=True):
 *         try:             # <<<<<<<<<<<<<<
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cython/core/triangulation.pyx":286
 *     cdef get_from_file(self, name, remove_finite_vertices=True):
 *         try:
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             locations = [os.curdir]
*/
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 286, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_curdir); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 286, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 286, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_environ); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 286, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_SNAPPEA_MANIFOLD_DIRECTORY); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 286, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 286, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_5);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_5) != (0)) __PYX_ERR(4, 286, __pyx_L3_error);
      __Pyx_GIVEREF(__pyx_t_4);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 1, __pyx_t_4) != (0)) __PYX_ERR(4, 286, __pyx_L3_error);
      __pyx_t_5 = 0;
      __pyx_t_4 = 0;
      __pyx_v_locations = ((PyObject*)__pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/triangulation.pyx":285
 * 
 *     cdef get_from_file(self, name, remove_finite_vertices=True):
 *         try:             # <<<<<<<<<<<<<<
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]
 *         except KeyError:
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/triangulation.pyx":287
 *         try:
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             locations = [os.curdir]
 *         for location in locations:
*/
    __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_7) {
      __Pyx_AddTraceback("SnapPy.Triangulation.get_from_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_4, &__pyx_t_5) < 0) __PYX_ERR(4, 287, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);

      /* "cython/core/triangulation.pyx":288
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]
 *         except KeyError:
 *             locations = [os.curdir]             # <<<<<<<<<<<<<<
 *         for location in locations:
 *             pathname = os.path.join(location, name)
*/
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 288, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_curdir); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 288, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 288, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GIVEREF(__pyx_t_9);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_9) != (0)) __PYX_ERR(4, 288, __pyx_L5_except_error);
      __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_locations, ((PyObject*)__pyx_t_8));
      __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cython/core/triangulation.pyx":285
 * 
 *     cdef get_from_file(self, name, remove_finite_vertices=True):
 *         try:             # <<<<<<<<<<<<<<
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]
 *         except KeyError:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    __pyx_L8_try_end:;
  }

  /* "cython/core/triangulation.pyx":289
 *         except KeyError:
 *             locations = [os.curdir]
 *         for location in locations:             # <<<<<<<<<<<<<<
 *             pathname = os.path.join(location, name)
 *             if os.path.isfile(pathname):
*/
  __pyx_t_5 = __pyx_v_locations; __Pyx_INCREF(__pyx_t_5);
  __pyx_t_10 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 289, __pyx_L1_error)
      #endif
      if (__pyx_t_10 >= __pyx_temp) break;
    }
    __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_10, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_10;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_location, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":290
 *             locations = [os.curdir]
 *         for location in locations:
 *             pathname = os.path.join(location, name)             # <<<<<<<<<<<<<<
 *             if os.path.isfile(pathname):
 *                 file = open(pathname, 'r')
*/
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_6 = __pyx_t_9;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_v_location, __pyx_v_name};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 290, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_pathname, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":291
 *         for location in locations:
 *             pathname = os.path.join(location, name)
 *             if os.path.isfile(pathname):             # <<<<<<<<<<<<<<
 *                 file = open(pathname, 'r')
 *                 first_line = file.readline()[:-1]
*/
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_9 = __pyx_t_8;
    __Pyx_INCREF(__pyx_t_9);
    __pyx_t_11 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_v_pathname};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_isfile, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 291, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 291, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (__pyx_t_12) {

      /* "cython/core/triangulation.pyx":292
 *             pathname = os.path.join(location, name)
 *             if os.path.isfile(pathname):
 *                 file = open(pathname, 'r')             # <<<<<<<<<<<<<<
 *                 first_line = file.readline()[:-1]
 *                 file.close()
*/
      __pyx_t_8 = NULL;
      __pyx_t_11 = 1;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_8, __pyx_v_pathname, __pyx_mstate_global->__pyx_n_u_r};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 292, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_XDECREF_SET(__pyx_v_file, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "cython/core/triangulation.pyx":293
 *             if os.path.isfile(pathname):
 *                 file = open(pathname, 'r')
 *                 first_line = file.readline()[:-1]             # <<<<<<<<<<<<<<
 *                 file.close()
 *                 if first_line.find('% Link Projection') > -1:
*/
      __pyx_t_8 = __pyx_v_file;
      __Pyx_INCREF(__pyx_t_8);
      __pyx_t_11 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_readline, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 293, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __pyx_t_8 = __Pyx_PyObject_GetSlice(__pyx_t_4, 0, -1L, NULL, NULL, &__pyx_mstate_global->__pyx_slice[2], 0, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 293, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF_SET(__pyx_v_first_line, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "cython/core/triangulation.pyx":294
 *                 file = open(pathname, 'r')
 *                 first_line = file.readline()[:-1]
 *                 file.close()             # <<<<<<<<<<<<<<
 *                 if first_line.find('% Link Projection') > -1:
 *                     LM = LinkManager()
*/
      __pyx_t_4 = __pyx_v_file;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_11 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_close, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 294, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cython/core/triangulation.pyx":295
 *                 first_line = file.readline()[:-1]
 *                 file.close()
 *                 if first_line.find('% Link Projection') > -1:             # <<<<<<<<<<<<<<
 *                     LM = LinkManager()
 *                     LM._from_string(open(pathname, 'r').read())
*/
      __pyx_t_4 = __pyx_v_first_line;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_11 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Link_Projection};
        __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_find, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 295, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __pyx_t_4 = PyObject_RichCompare(__pyx_t_8, __pyx_mstate_global->__pyx_int_neg_1, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 295, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 295, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_12) {

        /* "cython/core/triangulation.pyx":296
 *                 file.close()
 *                 if first_line.find('% Link Projection') > -1:
 *                     LM = LinkManager()             # <<<<<<<<<<<<<<
 *                     LM._from_string(open(pathname, 'r').read())
 *                     klp = LM.SnapPea_KLPProjection()
*/
        __pyx_t_8 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_LinkManager); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 296, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_11 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_9))) {
          __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9);
          assert(__pyx_t_8);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_8);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
          __pyx_t_11 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
          __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 296, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_XDECREF_SET(__pyx_v_LM, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":297
 *                 if first_line.find('% Link Projection') > -1:
 *                     LM = LinkManager()
 *                     LM._from_string(open(pathname, 'r').read())             # <<<<<<<<<<<<<<
 *                     klp = LM.SnapPea_KLPProjection()
 *                     self._link_file_full_path = os.path.abspath(pathname)
*/
        __pyx_t_9 = __pyx_v_LM;
        __Pyx_INCREF(__pyx_t_9);
        __pyx_t_14 = NULL;
        __pyx_t_11 = 1;
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_14, __pyx_v_pathname, __pyx_mstate_global->__pyx_n_u_r};
          __pyx_t_13 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_11, (3-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 297, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_13);
        }
        __pyx_t_6 = __pyx_t_13;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
          __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_read, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 297, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_8};
          __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_string, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 297, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":298
 *                     LM = LinkManager()
 *                     LM._from_string(open(pathname, 'r').read())
 *                     klp = LM.SnapPea_KLPProjection()             # <<<<<<<<<<<<<<
 *                     self._link_file_full_path = os.path.abspath(pathname)
 *                     self._set_DTcode(spherogram.DTcodec(*LM.DT_code()))
*/
        __pyx_t_8 = __pyx_v_LM;
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
          __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_SnapPea_KLPProjection, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 298, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_XDECREF_SET(__pyx_v_klp, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":299
 *                     LM._from_string(open(pathname, 'r').read())
 *                     klp = LM.SnapPea_KLPProjection()
 *                     self._link_file_full_path = os.path.abspath(pathname)             # <<<<<<<<<<<<<<
 *                     self._set_DTcode(spherogram.DTcodec(*LM.DT_code()))
 *                     self._set_PDcode(LM.PD_code())
*/
        __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 299, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 299, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __pyx_t_8 = __pyx_t_13;
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_pathname};
          __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_abspath, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 299, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_GIVEREF(__pyx_t_4);
        __Pyx_GOTREF(__pyx_v_self->_link_file_full_path);
        __Pyx_DECREF(__pyx_v_self->_link_file_full_path);
        __pyx_v_self->_link_file_full_path = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":300
 *                     klp = LM.SnapPea_KLPProjection()
 *                     self._link_file_full_path = os.path.abspath(pathname)
 *                     self._set_DTcode(spherogram.DTcodec(*LM.DT_code()))             # <<<<<<<<<<<<<<
 *                     self._set_PDcode(LM.PD_code())
 *                     self.set_c_triangulation(
*/
        __pyx_t_13 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_13);
        __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_6 = __pyx_v_LM;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
          __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 300, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        __pyx_t_6 = __Pyx_PySequence_Tuple(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_6, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_8};
          __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_DTcode, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 300, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":301
 *                     self._link_file_full_path = os.path.abspath(pathname)
 *                     self._set_DTcode(spherogram.DTcodec(*LM.DT_code()))
 *                     self._set_PDcode(LM.PD_code())             # <<<<<<<<<<<<<<
 *                     self.set_c_triangulation(
 *                         get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
*/
        __pyx_t_8 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_6 = __pyx_v_LM;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
          __pyx_t_13 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_PD_code, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 301, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_13);
        }
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_13};
          __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_PDcode, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 301, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":303
 *                     self._set_PDcode(LM.PD_code())
 *                     self.set_c_triangulation(
 *                         get_triangulation_from_PythonKLP(klp, remove_finite_vertices))             # <<<<<<<<<<<<<<
 *                 else:
 *                     self.set_c_triangulation(read_triangulation(to_byte_str(pathname)))
*/
        __pyx_t_16.__pyx_n = 1;
        __pyx_t_16.remove_finite_vertices = __pyx_v_remove_finite_vertices;
        __pyx_t_15 = __pyx_f_6SnapPy_get_triangulation_from_PythonKLP(__pyx_v_klp, &__pyx_t_16); if (unlikely(__pyx_t_15 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 303, __pyx_L1_error)

        /* "cython/core/triangulation.pyx":302
 *                     self._set_DTcode(spherogram.DTcodec(*LM.DT_code()))
 *                     self._set_PDcode(LM.PD_code())
 *                     self.set_c_triangulation(             # <<<<<<<<<<<<<<
 *                         get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
 *                 else:
*/
        __pyx_t_4 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_t_15); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 302, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":295
 *                 first_line = file.readline()[:-1]
 *                 file.close()
 *                 if first_line.find('% Link Projection') > -1:             # <<<<<<<<<<<<<<
 *                     LM = LinkManager()
 *                     LM._from_string(open(pathname, 'r').read())
*/
        goto __pyx_L14;
      }

      /* "cython/core/triangulation.pyx":305
 *                         get_triangulation_from_PythonKLP(klp, remove_finite_vertices))
 *                 else:
 *                     self.set_c_triangulation(read_triangulation(to_byte_str(pathname)))             # <<<<<<<<<<<<<<
 * 
 *         if self.c_triangulation == NULL:
*/
      /*else*/ {
        __pyx_t_13 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 305, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_11 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_8))) {
          __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_8);
          assert(__pyx_t_13);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_13);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
          __pyx_t_11 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_v_pathname};
          __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 305, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __pyx_t_17 = __Pyx_PyObject_AsWritableString(__pyx_t_4); if (unlikely((!__pyx_t_17) && PyErr_Occurred())) __PYX_ERR(4, 305, __pyx_L1_error)
        __pyx_t_8 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, read_triangulation(__pyx_t_17)); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 305, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      }
      __pyx_L14:;

      /* "cython/core/triangulation.pyx":291
 *         for location in locations:
 *             pathname = os.path.join(location, name)
 *             if os.path.isfile(pathname):             # <<<<<<<<<<<<<<
 *                 file = open(pathname, 'r')
 *                 first_line = file.readline()[:-1]
*/
    }

    /* "cython/core/triangulation.pyx":289
 *         except KeyError:
 *             locations = [os.curdir]
 *         for location in locations:             # <<<<<<<<<<<<<<
 *             pathname = os.path.join(location, name)
 *             if os.path.isfile(pathname):
*/
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":307
 *                     self.set_c_triangulation(read_triangulation(to_byte_str(pathname)))
 * 
 *         if self.c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             raise IOError('The manifold file %s was not found.\n%s'%
 *                           (name, triangulation_help % 'Triangulation or Manifold'))
*/
  __pyx_t_12 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_12)) {

    /* "cython/core/triangulation.pyx":308
 * 
 *         if self.c_triangulation == NULL:
 *             raise IOError('The manifold file %s was not found.\n%s'%             # <<<<<<<<<<<<<<
 *                           (name, triangulation_help % 'Triangulation or Manifold'))
 *         else:
*/
    __pyx_t_8 = NULL;

    /* "cython/core/triangulation.pyx":309
 *         if self.c_triangulation == NULL:
 *             raise IOError('The manifold file %s was not found.\n%s'%
 *                           (name, triangulation_help % 'Triangulation or Manifold'))             # <<<<<<<<<<<<<<
 *         else:
 *             if remove_finite_vertices:
*/
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_name), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_triangulation_help); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __pyx_t_6 = PyNumber_Remainder(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_Triangulation_or_Manifold); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_13 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_6), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_18[0] = __pyx_mstate_global->__pyx_kp_u_The_manifold_file;
    __pyx_t_18[1] = __pyx_t_4;
    __pyx_t_18[2] = __pyx_mstate_global->__pyx_kp_u_was_not_found;
    __pyx_t_18[3] = __pyx_t_13;

    /* "cython/core/triangulation.pyx":308
 * 
 *         if self.c_triangulation == NULL:
 *             raise IOError('The manifold file %s was not found.\n%s'%             # <<<<<<<<<<<<<<
 *                           (name, triangulation_help % 'Triangulation or Manifold'))
 *         else:
*/
    __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_18, 4, 18 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 16 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13));
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_11 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IOError)), __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 308, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_Raise(__pyx_t_5, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_ERR(4, 308, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":307
 *                     self.set_c_triangulation(read_triangulation(to_byte_str(pathname)))
 * 
 *         if self.c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             raise IOError('The manifold file %s was not found.\n%s'%
 *                           (name, triangulation_help % 'Triangulation or Manifold'))
*/
  }

  /* "cython/core/triangulation.pyx":311
 *                           (name, triangulation_help % 'Triangulation or Manifold'))
 *         else:
 *             if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *                 self._remove_finite_vertices()
 * 
*/
  /*else*/ {
    __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_v_remove_finite_vertices); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 311, __pyx_L1_error)
    if (__pyx_t_12) {

      /* "cython/core/triangulation.pyx":312
 *         else:
 *             if remove_finite_vertices:
 *                 self._remove_finite_vertices()             # <<<<<<<<<<<<<<
 * 
 *     def _remove_finite_vertices(self):
*/
      __pyx_t_6 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_11 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_remove_finite_vertices_2, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 312, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cython/core/triangulation.pyx":311
 *                           (name, triangulation_help % 'Triangulation or Manifold'))
 *         else:
 *             if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *                 self._remove_finite_vertices()
 * 
*/
    }
  }

  /* "cython/core/triangulation.pyx":284
 *         self.c_triangulation = get_triangulation_from_PythonKLP(data, remove_finite_vertices)
 * 
 *     cdef get_from_file(self, name, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         try:
 *             locations = [os.curdir, os.environ['SNAPPEA_MANIFOLD_DIRECTORY']]
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("SnapPy.Triangulation.get_from_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_locations);
  __Pyx_XDECREF(__pyx_v_location);
  __Pyx_XDECREF(__pyx_v_pathname);
  __Pyx_XDECREF(__pyx_v_file);
  __Pyx_XDECREF(__pyx_v_first_line);
  __Pyx_XDECREF(__pyx_v_LM);
  __Pyx_XDECREF(__pyx_v_klp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":314
 *                 self._remove_finite_vertices()
 * 
 *     def _remove_finite_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Removing any finite vertices by simplification and drilling.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_5_remove_finite_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_4_remove_finite_vertices, "\n        Removing any finite vertices by simplification and drilling.\n\n        >>> isosig = 'kLLLLMQkccfigghjijjlnabnwnpsii'\n        >>> T = Triangulation(isosig, remove_finite_vertices=False)\n        >>> T.triangulation_isosig(decorated=False) == isosig\n        True\n        >>> T.num_cusps(),  T._num_fake_cusps()\n        (0, 1)\n        >>> T._remove_finite_vertices()\n        >>> T.num_cusps(),  T._num_fake_cusps()\n        (1, 0)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_5_remove_finite_vertices = {"_remove_finite_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_5_remove_finite_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_4_remove_finite_vertices};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_5_remove_finite_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_remove_finite_vertices (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_remove_finite_vertices", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_remove_finite_vertices", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_4_remove_finite_vertices(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_4_remove_finite_vertices(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_remove_finite_vertices", 0);

  /* "cython/core/triangulation.pyx":328
 *         (1, 0)
 *         """
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             count_cusps(self.c_triangulation)
 *             if get_num_fake_cusps(self.c_triangulation) > 0:
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":329
 *         """
 *         if self.c_triangulation != NULL:
 *             count_cusps(self.c_triangulation)             # <<<<<<<<<<<<<<
 *             if get_num_fake_cusps(self.c_triangulation) > 0:
 *                 remove_finite_vertices(self.c_triangulation)
*/
    count_cusps(__pyx_v_self->c_triangulation);

    /* "cython/core/triangulation.pyx":330
 *         if self.c_triangulation != NULL:
 *             count_cusps(self.c_triangulation)
 *             if get_num_fake_cusps(self.c_triangulation) > 0:             # <<<<<<<<<<<<<<
 *                 remove_finite_vertices(self.c_triangulation)
 *                 count_cusps(self.c_triangulation)
*/
    __pyx_t_2 = get_num_fake_cusps(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 330, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 > 0);
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":331
 *             count_cusps(self.c_triangulation)
 *             if get_num_fake_cusps(self.c_triangulation) > 0:
 *                 remove_finite_vertices(self.c_triangulation)             # <<<<<<<<<<<<<<
 *                 count_cusps(self.c_triangulation)
 * 
*/
      remove_finite_vertices(__pyx_v_self->c_triangulation);

      /* "cython/core/triangulation.pyx":332
 *             if get_num_fake_cusps(self.c_triangulation) > 0:
 *                 remove_finite_vertices(self.c_triangulation)
 *                 count_cusps(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     def cover_info(self):
*/
      count_cusps(__pyx_v_self->c_triangulation);

      /* "cython/core/triangulation.pyx":330
 *         if self.c_triangulation != NULL:
 *             count_cusps(self.c_triangulation)
 *             if get_num_fake_cusps(self.c_triangulation) > 0:             # <<<<<<<<<<<<<<
 *                 remove_finite_vertices(self.c_triangulation)
 *                 count_cusps(self.c_triangulation)
*/
    }

    /* "cython/core/triangulation.pyx":328
 *         (1, 0)
 *         """
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             count_cusps(self.c_triangulation)
 *             if get_num_fake_cusps(self.c_triangulation) > 0:
*/
  }

  /* "cython/core/triangulation.pyx":314
 *                 self._remove_finite_vertices()
 * 
 *     def _remove_finite_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Removing any finite vertices by simplification and drilling.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.Triangulation._remove_finite_vertices", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":334
 *                 count_cusps(self.c_triangulation)
 * 
 *     def cover_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         If this is a manifold or triangulation which was constructed as
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_7cover_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_6cover_info, "\n        If this is a manifold or triangulation which was constructed as\n        a covering space, return a dictionary describing the cover.  Otherwise\n        return 0.  The dictionary keys are 'base', 'type' and 'degree'.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_7cover_info = {"cover_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_7cover_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_6cover_info};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_7cover_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cover_info (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("cover_info", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("cover_info", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_6cover_info(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_6cover_info(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cover_info", 0);

  /* "cython/core/triangulation.pyx":340
 *         return 0.  The dictionary keys are 'base', 'type' and 'degree'.
 *         """
 *         if self._cover_info:             # <<<<<<<<<<<<<<
 *             return dict(self._cover_info)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_self->_cover_info); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 340, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":341
 *         """
 *         if self._cover_info:
 *             return dict(self._cover_info)             # <<<<<<<<<<<<<<
 * 
 *     def plink(self):
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_self->_cover_info};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyDict_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":340
 *         return 0.  The dictionary keys are 'base', 'type' and 'degree'.
 *         """
 *         if self._cover_info:             # <<<<<<<<<<<<<<
 *             return dict(self._cover_info)
 * 
*/
  }

  /* "cython/core/triangulation.pyx":334
 *                 count_cusps(self.c_triangulation)
 * 
 *     def cover_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         If this is a manifold or triangulation which was constructed as
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.cover_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":343
 *             return dict(self._cover_info)
 * 
 *     def plink(self):             # <<<<<<<<<<<<<<
 *         """
 *         Brings up a link editor window if the manifold is stored
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_9plink(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_8plink, "\n        Brings up a link editor window if the manifold is stored\n        as a link complement in your current session.\n\n        >>> M = Manifold('4_1') # stored as a triangulation with a link\n        >>> M.link()\n        <Link: 1 comp; 4 cross>\n        >>> N = Manifold('m004') # stored as a triangulation without a link\n        >>> N.link() #doctest: +ELLIPSIS\n        Traceback (most recent call last):\n        ...\n        ValueError: No associated link known.\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_9plink = {"plink", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_9plink, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_8plink};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_9plink(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("plink (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("plink", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("plink", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_8plink(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_8plink(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_v_L = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_new_plink __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("plink", 0);

  /* "cython/core/triangulation.pyx":358
 * 
 *         """
 *         if self.LE is not None:             # <<<<<<<<<<<<<<
 *             self.LE.reopen()
 *         elif self._link_file_full_path is not None:
*/
  __pyx_t_1 = (__pyx_v_self->LE != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":359
 *         """
 *         if self.LE is not None:
 *             self.LE.reopen()             # <<<<<<<<<<<<<<
 *         elif self._link_file_full_path is not None:
 *             self.get_from_new_plink(self._link_file_full_path)
*/
    __pyx_t_3 = __pyx_v_self->LE;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_reopen, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 359, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":358
 * 
 *         """
 *         if self.LE is not None:             # <<<<<<<<<<<<<<
 *             self.LE.reopen()
 *         elif self._link_file_full_path is not None:
*/
    goto __pyx_L3;
  }

  /* "cython/core/triangulation.pyx":360
 *         if self.LE is not None:
 *             self.LE.reopen()
 *         elif self._link_file_full_path is not None:             # <<<<<<<<<<<<<<
 *             self.get_from_new_plink(self._link_file_full_path)
 *         elif self.DT_code() is not None:
*/
  __pyx_t_1 = (__pyx_v_self->_link_file_full_path != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":361
 *             self.LE.reopen()
 *         elif self._link_file_full_path is not None:
 *             self.get_from_new_plink(self._link_file_full_path)             # <<<<<<<<<<<<<<
 *         elif self.DT_code() is not None:
 *             self.get_from_new_plink()
*/
    __pyx_t_2 = __pyx_v_self->_link_file_full_path;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_5.__pyx_n = 1;
    __pyx_t_5.file_name = __pyx_t_2;
    __pyx_t_3 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->get_from_new_plink(__pyx_v_self, &__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 361, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":360
 *         if self.LE is not None:
 *             self.LE.reopen()
 *         elif self._link_file_full_path is not None:             # <<<<<<<<<<<<<<
 *             self.get_from_new_plink(self._link_file_full_path)
 *         elif self.DT_code() is not None:
*/
    goto __pyx_L3;
  }

  /* "cython/core/triangulation.pyx":362
 *         elif self._link_file_full_path is not None:
 *             self.get_from_new_plink(self._link_file_full_path)
 *         elif self.DT_code() is not None:             # <<<<<<<<<<<<<<
 *             self.get_from_new_plink()
 *             L = spherogram.DTcodec(*self.DT_code(flips=True)).link()
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 362, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_1 = (__pyx_t_3 != Py_None);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (likely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":363
 *             self.get_from_new_plink(self._link_file_full_path)
 *         elif self.DT_code() is not None:
 *             self.get_from_new_plink()             # <<<<<<<<<<<<<<
 *             L = spherogram.DTcodec(*self.DT_code(flips=True)).link()
 *             L.view(self.LE)
*/
    __pyx_t_3 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->get_from_new_plink(__pyx_v_self, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 363, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":364
 *         elif self.DT_code() is not None:
 *             self.get_from_new_plink()
 *             L = spherogram.DTcodec(*self.DT_code(flips=True)).link()             # <<<<<<<<<<<<<<
 *             L.view(self.LE)
 *         else:
*/
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_8 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
      __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 364, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_flips, Py_True, __pyx_t_9, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 364, __pyx_L1_error)
      __pyx_t_6 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 364, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_t_9 = __Pyx_PySequence_Tuple(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_2 = __pyx_t_6;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_link, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 364, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_L = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":365
 *             self.get_from_new_plink()
 *             L = spherogram.DTcodec(*self.DT_code(flips=True)).link()
 *             L.view(self.LE)             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError('No associated link known.')
*/
    __pyx_t_6 = __pyx_v_L;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_self->LE};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_view, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 365, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":362
 *         elif self._link_file_full_path is not None:
 *             self.get_from_new_plink(self._link_file_full_path)
 *         elif self.DT_code() is not None:             # <<<<<<<<<<<<<<
 *             self.get_from_new_plink()
 *             L = spherogram.DTcodec(*self.DT_code(flips=True)).link()
*/
    goto __pyx_L3;
  }

  /* "cython/core/triangulation.pyx":367
 *             L.view(self.LE)
 *         else:
 *             raise ValueError('No associated link known.')             # <<<<<<<<<<<<<<
 * 
 *     def link(self):
*/
  /*else*/ {
    __pyx_t_6 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_No_associated_link_known};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 367, __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_ERR(4, 367, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cython/core/triangulation.pyx":343
 *             return dict(self._cover_info)
 * 
 *     def plink(self):             # <<<<<<<<<<<<<<
 *         """
 *         Brings up a link editor window if the manifold is stored
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Triangulation.plink", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_L);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":369
 *             raise ValueError('No associated link known.')
 * 
 *     def link(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the manifold is stored as a link complement in your
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_11link(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_10link, "\n        If the manifold is stored as a link complement in your\n        current session then it returns the number of components\n        and crossing of the link. To view and interact with the\n        link see :meth:`spherogram.Link.view`\n        and :meth:`plink <snappy.Triangulation.plink>`.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_11link = {"link", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_11link, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_10link};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_11link(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("link (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("link", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("link", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_10link(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_10link(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("link", 0);

  /* "cython/core/triangulation.pyx":377
 *         and :meth:`plink <snappy.Triangulation.plink>`.
 *         """
 *         if self._PDcode is not None:             # <<<<<<<<<<<<<<
 *             return spherogram.Link(self._PDcode)
 *         elif self.DT_code() is not None:
*/
  __pyx_t_1 = (__pyx_v_self->_PDcode != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":378
 *         """
 *         if self._PDcode is not None:
 *             return spherogram.Link(self._PDcode)             # <<<<<<<<<<<<<<
 *         elif self.DT_code() is not None:
 *             return spherogram.DTcodec(*self.DT_code(flips=True)).link()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Link); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_self->_PDcode};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 378, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":377
 *         and :meth:`plink <snappy.Triangulation.plink>`.
 *         """
 *         if self._PDcode is not None:             # <<<<<<<<<<<<<<
 *             return spherogram.Link(self._PDcode)
 *         elif self.DT_code() is not None:
*/
  }

  /* "cython/core/triangulation.pyx":379
 *         if self._PDcode is not None:
 *             return spherogram.Link(self._PDcode)
 *         elif self.DT_code() is not None:             # <<<<<<<<<<<<<<
 *             return spherogram.DTcodec(*self.DT_code(flips=True)).link()
 *         else:
*/
  __pyx_t_5 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_1 = (__pyx_t_2 != Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (likely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":380
 *             return spherogram.Link(self._PDcode)
 *         elif self.DT_code() is not None:
 *             return spherogram.DTcodec(*self.DT_code(flips=True)).link()             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError('No associated link known.')
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 380, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 380, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, NULL};
      __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 380, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_flips, Py_True, __pyx_t_8, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 380, __pyx_L1_error)
      __pyx_t_3 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 380, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_8 = __Pyx_PySequence_Tuple(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 380, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 380, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_5 = __pyx_t_3;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_link, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 380, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":379
 *         if self._PDcode is not None:
 *             return spherogram.Link(self._PDcode)
 *         elif self.DT_code() is not None:             # <<<<<<<<<<<<<<
 *             return spherogram.DTcodec(*self.DT_code(flips=True)).link()
 *         else:
*/
  }

  /* "cython/core/triangulation.pyx":382
 *             return spherogram.DTcodec(*self.DT_code(flips=True)).link()
 *         else:
 *             raise ValueError('No associated link known.')             # <<<<<<<<<<<<<<
 * 
 *     cdef set_c_triangulation(self, c_Triangulation* c_triangulation):
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_No_associated_link_known};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 382, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 382, __pyx_L1_error)
  }

  /* "cython/core/triangulation.pyx":369
 *             raise ValueError('No associated link known.')
 * 
 *     def link(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the manifold is stored as a link complement in your
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.Triangulation.link", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":384
 *             raise ValueError('No associated link known.')
 * 
 *     cdef set_c_triangulation(self, c_Triangulation* c_triangulation):             # <<<<<<<<<<<<<<
 *         self.c_triangulation = c_triangulation
 * 
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_set_c_triangulation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, Triangulation *__pyx_v_c_triangulation) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_c_triangulation", 0);

  /* "cython/core/triangulation.pyx":385
 * 
 *     cdef set_c_triangulation(self, c_Triangulation* c_triangulation):
 *         self.c_triangulation = c_triangulation             # <<<<<<<<<<<<<<
 * 
 *     def num_cusps(self, cusp_type='all') -> int:
*/
  __pyx_v_self->c_triangulation = __pyx_v_c_triangulation;

  /* "cython/core/triangulation.pyx":384
 *             raise ValueError('No associated link known.')
 * 
 *     cdef set_c_triangulation(self, c_Triangulation* c_triangulation):             # <<<<<<<<<<<<<<
 *         self.c_triangulation = c_triangulation
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":387
 *         self.c_triangulation = c_triangulation
 * 
 *     def num_cusps(self, cusp_type='all') -> int:             # <<<<<<<<<<<<<<
 *         """
 *         Return the total number of cusps.  By giving the optional argument
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_13num_cusps(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_12num_cusps, "\n        Return the total number of cusps.  By giving the optional argument\n        'orientable' or 'nonorientable' it will only count cusps of that type.\n\n        >>> M = Triangulation('m125')\n        >>> M.num_cusps()\n        2\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_13num_cusps = {"num_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_13num_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_12num_cusps};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_13num_cusps(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_cusp_type = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_cusps (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cusp_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 387, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 387, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "num_cusps", 0) < (0)) __PYX_ERR(4, 387, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_all));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 387, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_all));
    }
    __pyx_v_cusp_type = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("num_cusps", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 387, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.num_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_12num_cusps(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_cusp_type);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_12num_cusps(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_cusp_type) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("num_cusps", 0);

  /* "cython/core/triangulation.pyx":396
 *         2
 *         """
 *         if cusp_type == 'all':             # <<<<<<<<<<<<<<
 *             return get_num_cusps(self.c_triangulation)
 *         elif cusp_type == 'orientable':
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_cusp_type, __pyx_mstate_global->__pyx_n_u_all, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 396, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":397
 *         """
 *         if cusp_type == 'all':
 *             return get_num_cusps(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         elif cusp_type == 'orientable':
 *             return get_num_or_cusps(self.c_triangulation)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = get_num_cusps(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 397, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(4, 397, __pyx_L1_error)
    __pyx_r = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":396
 *         2
 *         """
 *         if cusp_type == 'all':             # <<<<<<<<<<<<<<
 *             return get_num_cusps(self.c_triangulation)
 *         elif cusp_type == 'orientable':
*/
  }

  /* "cython/core/triangulation.pyx":398
 *         if cusp_type == 'all':
 *             return get_num_cusps(self.c_triangulation)
 *         elif cusp_type == 'orientable':             # <<<<<<<<<<<<<<
 *             return get_num_or_cusps(self.c_triangulation)
 *         elif cusp_type == 'nonorientable':
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_cusp_type, __pyx_mstate_global->__pyx_n_u_orientable, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 398, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":399
 *             return get_num_cusps(self.c_triangulation)
 *         elif cusp_type == 'orientable':
 *             return get_num_or_cusps(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         elif cusp_type == 'nonorientable':
 *             return get_num_nonor_cusps(self.c_triangulation)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = get_num_or_cusps(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 399, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(4, 399, __pyx_L1_error)
    __pyx_r = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":398
 *         if cusp_type == 'all':
 *             return get_num_cusps(self.c_triangulation)
 *         elif cusp_type == 'orientable':             # <<<<<<<<<<<<<<
 *             return get_num_or_cusps(self.c_triangulation)
 *         elif cusp_type == 'nonorientable':
*/
  }

  /* "cython/core/triangulation.pyx":400
 *         elif cusp_type == 'orientable':
 *             return get_num_or_cusps(self.c_triangulation)
 *         elif cusp_type == 'nonorientable':             # <<<<<<<<<<<<<<
 *             return get_num_nonor_cusps(self.c_triangulation)
 *         else:
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_cusp_type, __pyx_mstate_global->__pyx_n_u_nonorientable, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 400, __pyx_L1_error)
  if (likely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":401
 *             return get_num_or_cusps(self.c_triangulation)
 *         elif cusp_type == 'nonorientable':
 *             return get_num_nonor_cusps(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError("Acceptable cusp types are "
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = get_num_nonor_cusps(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 401, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 401, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(4, 401, __pyx_L1_error)
    __pyx_r = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":400
 *         elif cusp_type == 'orientable':
 *             return get_num_or_cusps(self.c_triangulation)
 *         elif cusp_type == 'nonorientable':             # <<<<<<<<<<<<<<
 *             return get_num_nonor_cusps(self.c_triangulation)
 *         else:
*/
  }

  /* "cython/core/triangulation.pyx":403
 *             return get_num_nonor_cusps(self.c_triangulation)
 *         else:
 *             raise ValueError("Acceptable cusp types are "             # <<<<<<<<<<<<<<
 *                              "['all', 'orientable', 'nonorientable'].")
 * 
*/
  /*else*/ {
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Acceptable_cusp_types_are_all_or};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 403, __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_ERR(4, 403, __pyx_L1_error)
  }

  /* "cython/core/triangulation.pyx":387
 *         self.c_triangulation = c_triangulation
 * 
 *     def num_cusps(self, cusp_type='all') -> int:             # <<<<<<<<<<<<<<
 *         """
 *         Return the total number of cusps.  By giving the optional argument
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation.num_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":406
 *                              "['all', 'orientable', 'nonorientable'].")
 * 
 *     def _num_fake_cusps(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the number of "fake" cusps, which is typically the number
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_15_num_fake_cusps(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_14_num_fake_cusps, "\n        Returns the number of \"fake\" cusps, which is typically the number\n        of finite vertices.\n\n        >>> M = Triangulation('m004(1,2)')\n        >>> F = M.filled_triangulation()\n        >>> F.num_cusps(),  F._num_fake_cusps()\n        (0, 1)\n        >>> S = Triangulation('bkaagb', remove_finite_vertices=False)\n        >>> S.num_cusps(),  S._num_fake_cusps()\n        (0, 2)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_15_num_fake_cusps = {"_num_fake_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_15_num_fake_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_14_num_fake_cusps};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_15_num_fake_cusps(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_num_fake_cusps (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_num_fake_cusps", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_num_fake_cusps", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_14_num_fake_cusps(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_14_num_fake_cusps(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_num_fake_cusps", 0);

  /* "cython/core/triangulation.pyx":419
 *         (0, 2)
 *         """
 *         count_cusps(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         return get_num_fake_cusps(self.c_triangulation)
 * 
*/
  count_cusps(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":420
 *         """
 *         count_cusps(self.c_triangulation)
 *         return get_num_fake_cusps(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     def orientation_cover(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = get_num_fake_cusps(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 420, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":406
 *                              "['all', 'orientable', 'nonorientable'].")
 * 
 *     def _num_fake_cusps(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the number of "fake" cusps, which is typically the number
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Triangulation._num_fake_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":422
 *         return get_num_fake_cusps(self.c_triangulation)
 * 
 *     def orientation_cover(self):             # <<<<<<<<<<<<<<
 *         """
 *         For a non-orientable Triangulation, returns the 2-fold cover which
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_17orientation_cover(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_16orientation_cover, "\n        For a non-orientable Triangulation, returns the 2-fold cover which\n        is orientable.\n\n        >>> X = Triangulation('x123')\n        >>> Y = X.orientation_cover()\n        >>> (X.is_orientable(), Y.is_orientable())\n        (False, True)\n        >>> Y\n        x123~(0,0)(0,0)\n        >>> Y.cover_info()['type']\n        'cyclic'\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_17orientation_cover = {"orientation_cover", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_17orientation_cover, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_16orientation_cover};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_17orientation_cover(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("orientation_cover (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("orientation_cover", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("orientation_cover", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_16orientation_cover(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_16orientation_cover(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  Triangulation *__pyx_v_cover_c_triangulation;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_new_tri = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  Triangulation *__pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("orientation_cover", 0);

  /* "cython/core/triangulation.pyx":436
 *         'cyclic'
 *         """
 *         if self.is_orientable():             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is already orientable.')
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 436, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(4, 436, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_4)) {

    /* "cython/core/triangulation.pyx":437
 *         """
 *         if self.is_orientable():
 *             raise ValueError('The Triangulation is already orientable.')             # <<<<<<<<<<<<<<
 * 
 *         cdef c_Triangulation* cover_c_triangulation = NULL
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_already_ori};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 437, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 437, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":436
 *         'cyclic'
 *         """
 *         if self.is_orientable():             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is already orientable.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":439
 *             raise ValueError('The Triangulation is already orientable.')
 * 
 *         cdef c_Triangulation* cover_c_triangulation = NULL             # <<<<<<<<<<<<<<
 *         cdef Triangulation new_tri
 * 
*/
  __pyx_v_cover_c_triangulation = NULL;

  /* "cython/core/triangulation.pyx":442
 *         cdef Triangulation new_tri
 * 
 *         cover_c_triangulation = double_cover(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         new_tri = self.__class__('empty')
 *         new_tri.set_c_triangulation(cover_c_triangulation)
*/
  __pyx_t_5 = double_cover(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 442, __pyx_L1_error)
  __pyx_v_cover_c_triangulation = __pyx_t_5;

  /* "cython/core/triangulation.pyx":443
 * 
 *         cover_c_triangulation = double_cover(self.c_triangulation)
 *         new_tri = self.__class__('empty')             # <<<<<<<<<<<<<<
 *         new_tri.set_c_triangulation(cover_c_triangulation)
 *         new_tri.set_name(self.name() + '~')
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 443, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(4, 443, __pyx_L1_error)
  __pyx_v_new_tri = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":444
 *         cover_c_triangulation = double_cover(self.c_triangulation)
 *         new_tri = self.__class__('empty')
 *         new_tri.set_c_triangulation(cover_c_triangulation)             # <<<<<<<<<<<<<<
 *         new_tri.set_name(self.name() + '~')
 *         new_tri._cover_info = {'base'   : self.name(),
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_new_tri->__pyx_vtab)->set_c_triangulation(__pyx_v_new_tri, __pyx_v_cover_c_triangulation); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":445
 *         new_tri = self.__class__('empty')
 *         new_tri.set_c_triangulation(cover_c_triangulation)
 *         new_tri.set_name(self.name() + '~')             # <<<<<<<<<<<<<<
 *         new_tri._cover_info = {'base'   : self.name(),
 *                                'type'   : 'cyclic',
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_new_tri);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_7 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_7 = PyNumber_Add(__pyx_t_6, __pyx_mstate_global->__pyx_kp_u__24); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":446
 *         new_tri.set_c_triangulation(cover_c_triangulation)
 *         new_tri.set_name(self.name() + '~')
 *         new_tri._cover_info = {'base'   : self.name(),             # <<<<<<<<<<<<<<
 *                                'type'   : 'cyclic',
 *                                'degree' : 2}
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 446, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_base, __pyx_t_7) < (0)) __PYX_ERR(4, 446, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_type, __pyx_mstate_global->__pyx_n_u_cyclic) < (0)) __PYX_ERR(4, 446, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_degree, __pyx_mstate_global->__pyx_int_2) < (0)) __PYX_ERR(4, 446, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_new_tri->_cover_info);
  __Pyx_DECREF(__pyx_v_new_tri->_cover_info);
  __pyx_v_new_tri->_cover_info = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":449
 *                                'type'   : 'cyclic',
 *                                'degree' : 2}
 *         return new_tri             # <<<<<<<<<<<<<<
 * 
 *     def is_orientable(self) -> bool:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_new_tri);
  __pyx_r = ((PyObject *)__pyx_v_new_tri);
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":422
 *         return get_num_fake_cusps(self.c_triangulation)
 * 
 *     def orientation_cover(self):             # <<<<<<<<<<<<<<
 *         """
 *         For a non-orientable Triangulation, returns the 2-fold cover which
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation.orientation_cover", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_new_tri);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":451
 *         return new_tri
 * 
 *     def is_orientable(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the underlying 3-manifold is orientable.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_19is_orientable(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_18is_orientable, "\n        Return whether the underlying 3-manifold is orientable.\n\n        >>> M = Triangulation('x124')\n        >>> M.is_orientable()\n        False\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_19is_orientable = {"is_orientable", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_19is_orientable, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_18is_orientable};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_19is_orientable(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_orientable (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_orientable", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_orientable", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_18is_orientable(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_18is_orientable(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_v_orientability = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Orientability __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_orientable", 0);

  /* "cython/core/triangulation.pyx":459
 *         False
 *         """
 *         orientability = Orientability[get_orientability(self.c_triangulation)]             # <<<<<<<<<<<<<<
 *         if orientability == 'orientable':
 *             return True
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_Orientability); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = get_orientability(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 459, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_From_Orientability(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_orientability = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":460
 *         """
 *         orientability = Orientability[get_orientability(self.c_triangulation)]
 *         if orientability == 'orientable':             # <<<<<<<<<<<<<<
 *             return True
 *         if orientability == 'nonorientable':
*/
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_orientability, __pyx_mstate_global->__pyx_n_u_orientable, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(4, 460, __pyx_L1_error)
  if (__pyx_t_5) {

    /* "cython/core/triangulation.pyx":461
 *         orientability = Orientability[get_orientability(self.c_triangulation)]
 *         if orientability == 'orientable':
 *             return True             # <<<<<<<<<<<<<<
 *         if orientability == 'nonorientable':
 *             return False
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":460
 *         """
 *         orientability = Orientability[get_orientability(self.c_triangulation)]
 *         if orientability == 'orientable':             # <<<<<<<<<<<<<<
 *             return True
 *         if orientability == 'nonorientable':
*/
  }

  /* "cython/core/triangulation.pyx":462
 *         if orientability == 'orientable':
 *             return True
 *         if orientability == 'nonorientable':             # <<<<<<<<<<<<<<
 *             return False
 *         return None
*/
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_orientability, __pyx_mstate_global->__pyx_n_u_nonorientable, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(4, 462, __pyx_L1_error)
  if (__pyx_t_5) {

    /* "cython/core/triangulation.pyx":463
 *             return True
 *         if orientability == 'nonorientable':
 *             return False             # <<<<<<<<<<<<<<
 *         return None
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":462
 *         if orientability == 'orientable':
 *             return True
 *         if orientability == 'nonorientable':             # <<<<<<<<<<<<<<
 *             return False
 *         return None
*/
  }

  /* "cython/core/triangulation.pyx":464
 *         if orientability == 'nonorientable':
 *             return False
 *         return None             # <<<<<<<<<<<<<<
 * 
 *     def copy(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":451
 *         return new_tri
 * 
 *     def is_orientable(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the underlying 3-manifold is orientable.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation.is_orientable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_orientability);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":466
 *         return None
 * 
 *     def copy(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a copy of the triangulation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_21copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_20copy, "\n        Returns a copy of the triangulation.\n\n        >>> M = Triangulation('m125')\n        >>> N = M.copy()\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_21copy = {"copy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_21copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_20copy};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_21copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("copy (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("copy", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("copy", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_20copy(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_20copy(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  Triangulation *__pyx_v_copy_c_triangulation;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_new_tri = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("copy", 0);

  /* "cython/core/triangulation.pyx":473
 *         >>> N = M.copy()
 *         """
 *         cdef c_Triangulation* copy_c_triangulation = NULL             # <<<<<<<<<<<<<<
 *         cdef Triangulation new_tri
 * 
*/
  __pyx_v_copy_c_triangulation = NULL;

  /* "cython/core/triangulation.pyx":476
 *         cdef Triangulation new_tri
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return self.__class__('empty')
 *         copy_triangulation(self.c_triangulation, &copy_c_triangulation)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":477
 * 
 *         if self.c_triangulation is NULL:
 *             return self.__class__('empty')             # <<<<<<<<<<<<<<
 *         copy_triangulation(self.c_triangulation, &copy_c_triangulation)
 *         new_tri = self.__class__('empty')
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 477, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":476
 *         cdef Triangulation new_tri
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return self.__class__('empty')
 *         copy_triangulation(self.c_triangulation, &copy_c_triangulation)
*/
  }

  /* "cython/core/triangulation.pyx":478
 *         if self.c_triangulation is NULL:
 *             return self.__class__('empty')
 *         copy_triangulation(self.c_triangulation, &copy_c_triangulation)             # <<<<<<<<<<<<<<
 *         new_tri = self.__class__('empty')
 *         new_tri.set_c_triangulation(copy_c_triangulation)
*/
  copy_triangulation(__pyx_v_self->c_triangulation, (&__pyx_v_copy_c_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 478, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":479
 *             return self.__class__('empty')
 *         copy_triangulation(self.c_triangulation, &copy_c_triangulation)
 *         new_tri = self.__class__('empty')             # <<<<<<<<<<<<<<
 *         new_tri.set_c_triangulation(copy_c_triangulation)
 *         return new_tri
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 479, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(4, 479, __pyx_L1_error)
  __pyx_v_new_tri = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":480
 *         copy_triangulation(self.c_triangulation, &copy_c_triangulation)
 *         new_tri = self.__class__('empty')
 *         new_tri.set_c_triangulation(copy_c_triangulation)             # <<<<<<<<<<<<<<
 *         return new_tri
 * 
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_new_tri->__pyx_vtab)->set_c_triangulation(__pyx_v_new_tri, __pyx_v_copy_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":481
 *         new_tri = self.__class__('empty')
 *         new_tri.set_c_triangulation(copy_c_triangulation)
 *         return new_tri             # <<<<<<<<<<<<<<
 * 
 *     def randomize(self, blowup_multiple=4, passes_at_fours=6):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_new_tri);
  __pyx_r = ((PyObject *)__pyx_v_new_tri);
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":466
 *         return None
 * 
 *     def copy(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a copy of the triangulation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_new_tri);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":483
 *         return new_tri
 * 
 *     def randomize(self, blowup_multiple=4, passes_at_fours=6):             # <<<<<<<<<<<<<<
 *         """
 *         Perform random Pachner moves on the underlying triangulation,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_23randomize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_22randomize, "\n        Perform random Pachner moves on the underlying triangulation,\n        including some initial 3 -> 2 moves that increase the number of\n        tetrahedra by blowup_multiple.\n\n        >>> M = Triangulation('Braid:[1,2,-3,-3,1,2]')\n        >>> M.randomize()\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_23randomize = {"randomize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_23randomize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_22randomize};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_23randomize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_blowup_multiple = 0;
  PyObject *__pyx_v_passes_at_fours = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("randomize (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_blowup_multiple,&__pyx_mstate_global->__pyx_n_u_passes_at_fours,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 483, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 483, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 483, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "randomize", 0) < (0)) __PYX_ERR(4, 483, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_4));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_6));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 483, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 483, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_4));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_6));
    }
    __pyx_v_blowup_multiple = values[0];
    __pyx_v_passes_at_fours = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("randomize", 0, 0, 2, __pyx_nargs); __PYX_ERR(4, 483, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.randomize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_22randomize(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_blowup_multiple, __pyx_v_passes_at_fours);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_22randomize(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_blowup_multiple, PyObject *__pyx_v_passes_at_fours) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("randomize", 0);

  /* "cython/core/triangulation.pyx":492
 *         >>> M.randomize()
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return
 *         randomize_triangulation_with_options(self.c_triangulation, passes_at_fours, blowup_multiple)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":493
 *         """
 *         if self.c_triangulation is NULL:
 *             return             # <<<<<<<<<<<<<<
 *         randomize_triangulation_with_options(self.c_triangulation, passes_at_fours, blowup_multiple)
 *         self._cache.clear(message='randomize')
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":492
 *         >>> M.randomize()
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return
 *         randomize_triangulation_with_options(self.c_triangulation, passes_at_fours, blowup_multiple)
*/
  }

  /* "cython/core/triangulation.pyx":494
 *         if self.c_triangulation is NULL:
 *             return
 *         randomize_triangulation_with_options(self.c_triangulation, passes_at_fours, blowup_multiple)             # <<<<<<<<<<<<<<
 *         self._cache.clear(message='randomize')
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_v_passes_at_fours); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 494, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_v_blowup_multiple); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 494, __pyx_L1_error)
  randomize_triangulation_with_options(__pyx_v_self->c_triangulation, __pyx_t_2, __pyx_t_3); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 494, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":495
 *             return
 *         randomize_triangulation_with_options(self.c_triangulation, passes_at_fours, blowup_multiple)
 *         self._cache.clear(message='randomize')             # <<<<<<<<<<<<<<
 * 
 *     def simplify(self, passes_at_fours=6):
*/
  __pyx_t_5 = __pyx_v_self->_cache;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_n_u_randomize, __pyx_t_7, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 495, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":483
 *         return new_tri
 * 
 *     def randomize(self, blowup_multiple=4, passes_at_fours=6):             # <<<<<<<<<<<<<<
 *         """
 *         Perform random Pachner moves on the underlying triangulation,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation.randomize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":497
 *         self._cache.clear(message='randomize')
 * 
 *     def simplify(self, passes_at_fours=6):             # <<<<<<<<<<<<<<
 *         """
 *         Try to simplify the triangulation by doing Pachner moves.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_25simplify(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_24simplify, "\n        Try to simplify the triangulation by doing Pachner moves.\n\n        >>> M = Triangulation('12n123')\n        >>> M.simplify()\n\n        It does four kinds of moves that reduce the number of\n        tetrahedra:\n\n        * 3 -> 2 and 2 -> 0 Pacher moves, which eliminate one or two\n          tetrahedra respectively.\n\n        * On suitable valence-1 edges, does a 2 -> 3 and then 2 -> 0 move,\n          which removes a tetrahedron and creates a new valence-1 edge.\n\n        * When a 2-simplex has two edges of valence-4 giving rise to the\n          suspension of a pentagon, replace these 6 tetrahedra with a\n          single edge of valence 5.\n\n        It also does random 4 -> 4 moves in hopes of setting up a\n        simplfication.  The argument passes_at_fours is the number of\n        times it goes through the valence-4 edges without progress\n        before giving up.\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_25simplify = {"simplify", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_25simplify, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_24simplify};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_25simplify(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_passes_at_fours = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("simplify (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_passes_at_fours,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 497, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "simplify", 0) < (0)) __PYX_ERR(4, 497, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_6));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_6));
    }
    __pyx_v_passes_at_fours = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("simplify", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 497, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.simplify", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_24simplify(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_passes_at_fours);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_24simplify(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_passes_at_fours) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("simplify", 0);

  /* "cython/core/triangulation.pyx":523
 * 
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return
 *         basic_simplification_with_options(self.c_triangulation, passes_at_fours)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":524
 *         """
 *         if self.c_triangulation is NULL:
 *             return             # <<<<<<<<<<<<<<
 *         basic_simplification_with_options(self.c_triangulation, passes_at_fours)
 *         self._cache.clear(message='simplify')
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":523
 * 
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return
 *         basic_simplification_with_options(self.c_triangulation, passes_at_fours)
*/
  }

  /* "cython/core/triangulation.pyx":525
 *         if self.c_triangulation is NULL:
 *             return
 *         basic_simplification_with_options(self.c_triangulation, passes_at_fours)             # <<<<<<<<<<<<<<
 *         self._cache.clear(message='simplify')
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_v_passes_at_fours); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 525, __pyx_L1_error)
  basic_simplification_with_options(__pyx_v_self->c_triangulation, __pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 525, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":526
 *             return
 *         basic_simplification_with_options(self.c_triangulation, passes_at_fours)
 *         self._cache.clear(message='simplify')             # <<<<<<<<<<<<<<
 * 
 *     def _two_to_three(self, tet_num, face_index):
*/
  __pyx_t_4 = __pyx_v_self->_cache;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, NULL};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_n_u_simplify, __pyx_t_6, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 526, __pyx_L1_error)
    __pyx_t_3 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":497
 *         self._cache.clear(message='randomize')
 * 
 *     def simplify(self, passes_at_fours=6):             # <<<<<<<<<<<<<<
 *         """
 *         Try to simplify the triangulation by doing Pachner moves.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation.simplify", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":528
 *         self._cache.clear(message='simplify')
 * 
 *     def _two_to_three(self, tet_num, face_index):             # <<<<<<<<<<<<<<
 *         """
 *         Performs a 2-3 move which removes a given face.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_27_two_to_three(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_26_two_to_three, "\n        Performs a 2-3 move which removes a given face.\n\n        The face is specified by giving the index of one of the\n        tetrahedra which contains the face, as well as the index of that\n        face within the tetrahedron (i.e. the index of the vertex\n        opposite the face).\n\n        If the face is not adjacent to two distinct tetrahedra, this\n        function does nothing and returns a non-zero value.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_27_two_to_three = {"_two_to_three", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_27_two_to_three, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_26_two_to_three};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_27_two_to_three(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tet_num = 0;
  PyObject *__pyx_v_face_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_two_to_three (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tet_num,&__pyx_mstate_global->__pyx_n_u_face_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 528, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 528, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 528, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_two_to_three", 0) < (0)) __PYX_ERR(4, 528, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_two_to_three", 1, 2, 2, i); __PYX_ERR(4, 528, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 528, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 528, __pyx_L3_error)
    }
    __pyx_v_tet_num = values[0];
    __pyx_v_face_index = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_two_to_three", 1, 2, 2, __pyx_nargs); __PYX_ERR(4, 528, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._two_to_three", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_26_two_to_three(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_tet_num, __pyx_v_face_index);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_26_two_to_three(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_tet_num, PyObject *__pyx_v_face_index) {
  FuncResult __pyx_v_result;
  Tetrahedron *__pyx_v_tet;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_f = NULL;
  CYTHON_UNUSED PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  Tetrahedron *__pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_two_to_three", 0);

  /* "cython/core/triangulation.pyx":544
 *         cdef c_Tetrahedron* tet
 * 
 *         n = valid_index(             # <<<<<<<<<<<<<<
 *             tet_num, self.num_tetrahedra(),
 *             "The specified tetrahedron (%s) does not exist.")
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/triangulation.pyx":545
 * 
 *         n = valid_index(
 *             tet_num, self.num_tetrahedra(),             # <<<<<<<<<<<<<<
 *             "The specified tetrahedron (%s) does not exist.")
 * 
*/
  __pyx_t_5 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_tet_num, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_specified_tetrahedron_s_does};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":548
 *             "The specified tetrahedron (%s) does not exist.")
 * 
 *         f = valid_index(             # <<<<<<<<<<<<<<
 *             face_index, 4,
 *             "The specified face index (%s) is invalid.")
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/triangulation.pyx":549
 * 
 *         f = valid_index(
 *             face_index, 4,             # <<<<<<<<<<<<<<
 *             "The specified face index (%s) is invalid.")
 * 
*/
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_face_index, __pyx_mstate_global->__pyx_int_4, __pyx_mstate_global->__pyx_kp_u_The_specified_face_index_s_is_in};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_f = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":552
 *             "The specified face index (%s) is invalid.")
 * 
 *         tet = self.c_triangulation.tet_list_begin.next             # <<<<<<<<<<<<<<
 *         for i in range(n):
 *             tet = tet.next
*/
  __pyx_t_7 = __pyx_v_self->c_triangulation->tet_list_begin.next;
  __pyx_v_tet = __pyx_t_7;

  /* "cython/core/triangulation.pyx":553
 * 
 *         tet = self.c_triangulation.tet_list_begin.next
 *         for i in range(n):             # <<<<<<<<<<<<<<
 *             tet = tet.next
 *         result = two_to_three(tet, f, &self.c_triangulation.num_tetrahedra)
*/
  __pyx_t_4 = NULL;
  __pyx_t_6 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_n};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 553, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 553, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    {
      __pyx_t_1 = __pyx_t_8(__pyx_t_4);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 553, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":554
 *         tet = self.c_triangulation.tet_list_begin.next
 *         for i in range(n):
 *             tet = tet.next             # <<<<<<<<<<<<<<
 *         result = two_to_three(tet, f, &self.c_triangulation.num_tetrahedra)
 * 
*/
    __pyx_t_7 = __pyx_v_tet->next;
    __pyx_v_tet = __pyx_t_7;

    /* "cython/core/triangulation.pyx":553
 * 
 *         tet = self.c_triangulation.tet_list_begin.next
 *         for i in range(n):             # <<<<<<<<<<<<<<
 *             tet = tet.next
 *         result = two_to_three(tet, f, &self.c_triangulation.num_tetrahedra)
*/
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":555
 *         for i in range(n):
 *             tet = tet.next
 *         result = two_to_three(tet, f, &self.c_triangulation.num_tetrahedra)             # <<<<<<<<<<<<<<
 * 
 *         if result == func_OK:
*/
  __pyx_t_9 = __Pyx_PyLong_As_int(__pyx_v_f); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 555, __pyx_L1_error)
  __pyx_v_result = two_to_three(__pyx_v_tet, __pyx_t_9, (&__pyx_v_self->c_triangulation->num_tetrahedra));

  /* "cython/core/triangulation.pyx":557
 *         result = two_to_three(tet, f, &self.c_triangulation.num_tetrahedra)
 * 
 *         if result == func_OK:             # <<<<<<<<<<<<<<
 *             self._cache.clear(message = '2-3 move')
 *             self._polish_hyperbolic_structures()
*/
  __pyx_t_10 = (__pyx_v_result == func_OK);
  if (__pyx_t_10) {

    /* "cython/core/triangulation.pyx":558
 * 
 *         if result == func_OK:
 *             self._cache.clear(message = '2-3 move')             # <<<<<<<<<<<<<<
 *             self._polish_hyperbolic_structures()
 * 
*/
    __pyx_t_1 = __pyx_v_self->_cache;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_1, NULL};
      __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 558, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_kp_u_2_3_move, __pyx_t_3, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 558, __pyx_L1_error)
      __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 558, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":559
 *         if result == func_OK:
 *             self._cache.clear(message = '2-3 move')
 *             self._polish_hyperbolic_structures()             # <<<<<<<<<<<<<<
 * 
 *         return result
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_polish_hyperbolic_structures, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 559, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":557
 *         result = two_to_three(tet, f, &self.c_triangulation.num_tetrahedra)
 * 
 *         if result == func_OK:             # <<<<<<<<<<<<<<
 *             self._cache.clear(message = '2-3 move')
 *             self._polish_hyperbolic_structures()
*/
  }

  /* "cython/core/triangulation.pyx":561
 *             self._polish_hyperbolic_structures()
 * 
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def _three_to_two(self, tet_num, edge_index):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyLong_From_FuncResult(__pyx_v_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":528
 *         self._cache.clear(message='simplify')
 * 
 *     def _two_to_three(self, tet_num, face_index):             # <<<<<<<<<<<<<<
 *         """
 *         Performs a 2-3 move which removes a given face.
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.Triangulation._two_to_three", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":563
 *         return result
 * 
 *     def _three_to_two(self, tet_num, edge_index):             # <<<<<<<<<<<<<<
 *         r"""
 *         Perform a 3-2 move which removes a given 3-valent edge.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_29_three_to_two(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_28_three_to_two, "\n        Perform a 3-2 move which removes a given 3-valent edge.\n\n        The edge is specified by giving the index of one of the tetrahedra which\n        contains the edge, as well as the index of that edge within the\n        tetrahedron (see below).\n\n        If specified edge is not 3-valent or the three adjacent tetrahedra are\n        not distinct, the function does nothing and returns a non-zero value.\n\n                 1\n                /|\\\n               / | \\\n              2  5  1\n             /   |   \\\n            2--0-|----3\n             \\   |   /\n              4  |  3\n               \\ | /\n                \\|/\n                 0\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_29_three_to_two = {"_three_to_two", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_29_three_to_two, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_28_three_to_two};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_29_three_to_two(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tet_num = 0;
  PyObject *__pyx_v_edge_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_three_to_two (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tet_num,&__pyx_mstate_global->__pyx_n_u_edge_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 563, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 563, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 563, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_three_to_two", 0) < (0)) __PYX_ERR(4, 563, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_three_to_two", 1, 2, 2, i); __PYX_ERR(4, 563, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 563, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 563, __pyx_L3_error)
    }
    __pyx_v_tet_num = values[0];
    __pyx_v_edge_index = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_three_to_two", 1, 2, 2, __pyx_nargs); __PYX_ERR(4, 563, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._three_to_two", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_28_three_to_two(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_tet_num, __pyx_v_edge_index);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_28_three_to_two(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_tet_num, PyObject *__pyx_v_edge_index) {
  FuncResult __pyx_v_result;
  Tetrahedron *__pyx_v_tet;
  EdgeClass *__pyx_v_where_to_resume;
  CYTHON_UNUSED PyObject *__pyx_v__ = NULL;
  PyObject *__pyx_v_e = NULL;
  CYTHON_UNUSED PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  Tetrahedron *__pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  Py_ssize_t __pyx_t_9;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_three_to_two", 0);

  /* "cython/core/triangulation.pyx":590
 *         cdef EdgeClass* where_to_resume
 * 
 *         _ = valid_index(             # <<<<<<<<<<<<<<
 *             tet_num, self.num_tetrahedra(),
 *             "The specified tetrahedron (%s) does not exist.")
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/triangulation.pyx":591
 * 
 *         _ = valid_index(
 *             tet_num, self.num_tetrahedra(),             # <<<<<<<<<<<<<<
 *             "The specified tetrahedron (%s) does not exist.")
 * 
*/
  __pyx_t_5 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_tet_num, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_specified_tetrahedron_s_does};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v__ = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":594
 *             "The specified tetrahedron (%s) does not exist.")
 * 
 *         e = valid_index(             # <<<<<<<<<<<<<<
 *             edge_index, 6,
 *             "The specified edge index (%s) is invalid.")
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/triangulation.pyx":595
 * 
 *         e = valid_index(
 *             edge_index, 6,             # <<<<<<<<<<<<<<
 *             "The specified edge index (%s) is invalid.")
 * 
*/
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_edge_index, __pyx_mstate_global->__pyx_int_6, __pyx_mstate_global->__pyx_kp_u_The_specified_edge_index_s_is_in};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 594, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_e = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":598
 *             "The specified edge index (%s) is invalid.")
 * 
 *         tet = self.c_triangulation.tet_list_begin.next             # <<<<<<<<<<<<<<
 *         for i in range(tet_num):
 *             tet = tet.next
*/
  __pyx_t_7 = __pyx_v_self->c_triangulation->tet_list_begin.next;
  __pyx_v_tet = __pyx_t_7;

  /* "cython/core/triangulation.pyx":599
 * 
 *         tet = self.c_triangulation.tet_list_begin.next
 *         for i in range(tet_num):             # <<<<<<<<<<<<<<
 *             tet = tet.next
 * 
*/
  __pyx_t_4 = NULL;
  __pyx_t_6 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_tet_num};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 599, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 599, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    {
      __pyx_t_1 = __pyx_t_8(__pyx_t_4);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 599, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":600
 *         tet = self.c_triangulation.tet_list_begin.next
 *         for i in range(tet_num):
 *             tet = tet.next             # <<<<<<<<<<<<<<
 * 
 *         if tet.edge_class[e].order != 3:
*/
    __pyx_t_7 = __pyx_v_tet->next;
    __pyx_v_tet = __pyx_t_7;

    /* "cython/core/triangulation.pyx":599
 * 
 *         tet = self.c_triangulation.tet_list_begin.next
 *         for i in range(tet_num):             # <<<<<<<<<<<<<<
 *             tet = tet.next
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":602
 *             tet = tet.next
 * 
 *         if tet.edge_class[e].order != 3:             # <<<<<<<<<<<<<<
 *             return func_failed
 * 
*/
  __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_e); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 602, __pyx_L1_error)
  __pyx_t_10 = ((__pyx_v_tet->edge_class[__pyx_t_9])->order != 3);
  if (__pyx_t_10) {

    /* "cython/core/triangulation.pyx":603
 * 
 *         if tet.edge_class[e].order != 3:
 *             return func_failed             # <<<<<<<<<<<<<<
 * 
 *         result = three_to_two(tet.edge_class[e], &where_to_resume,
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyLong_From_FuncResult(func_failed); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":602
 *             tet = tet.next
 * 
 *         if tet.edge_class[e].order != 3:             # <<<<<<<<<<<<<<
 *             return func_failed
 * 
*/
  }

  /* "cython/core/triangulation.pyx":605
 *             return func_failed
 * 
 *         result = three_to_two(tet.edge_class[e], &where_to_resume,             # <<<<<<<<<<<<<<
 *                               &self.c_triangulation.num_tetrahedra)
 * 
*/
  __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_e); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 605, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":606
 * 
 *         result = three_to_two(tet.edge_class[e], &where_to_resume,
 *                               &self.c_triangulation.num_tetrahedra)             # <<<<<<<<<<<<<<
 * 
 *         if result == func_OK:
*/
  __pyx_v_result = three_to_two((__pyx_v_tet->edge_class[__pyx_t_9]), (&__pyx_v_where_to_resume), (&__pyx_v_self->c_triangulation->num_tetrahedra));

  /* "cython/core/triangulation.pyx":608
 *                               &self.c_triangulation.num_tetrahedra)
 * 
 *         if result == func_OK:             # <<<<<<<<<<<<<<
 *             self._cache.clear(message = '3-2 move')
 *             self._polish_hyperbolic_structures()
*/
  __pyx_t_10 = (__pyx_v_result == func_OK);
  if (__pyx_t_10) {

    /* "cython/core/triangulation.pyx":609
 * 
 *         if result == func_OK:
 *             self._cache.clear(message = '3-2 move')             # <<<<<<<<<<<<<<
 *             self._polish_hyperbolic_structures()
 * 
*/
    __pyx_t_1 = __pyx_v_self->_cache;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_1, NULL};
      __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 609, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_kp_u_3_2_move, __pyx_t_3, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 609, __pyx_L1_error)
      __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 609, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":610
 *         if result == func_OK:
 *             self._cache.clear(message = '3-2 move')
 *             self._polish_hyperbolic_structures()             # <<<<<<<<<<<<<<
 * 
 *         return result
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_polish_hyperbolic_structures, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 610, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":608
 *                               &self.c_triangulation.num_tetrahedra)
 * 
 *         if result == func_OK:             # <<<<<<<<<<<<<<
 *             self._cache.clear(message = '3-2 move')
 *             self._polish_hyperbolic_structures()
*/
  }

  /* "cython/core/triangulation.pyx":612
 *             self._polish_hyperbolic_structures()
 * 
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def with_hyperbolic_structure(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyLong_From_FuncResult(__pyx_v_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":563
 *         return result
 * 
 *     def _three_to_two(self, tet_num, edge_index):             # <<<<<<<<<<<<<<
 *         r"""
 *         Perform a 3-2 move which removes a given 3-valent edge.
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.Triangulation._three_to_two", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v__);
  __Pyx_XDECREF(__pyx_v_e);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":614
 *         return result
 * 
 *     def with_hyperbolic_structure(self):             # <<<<<<<<<<<<<<
 *         """
 *         Add a (possibly degenerate) hyperbolic structure, turning the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_31with_hyperbolic_structure(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_30with_hyperbolic_structure, "\n        Add a (possibly degenerate) hyperbolic structure, turning the\n        :class:`Triangulation` into a :class:`Manifold`.\n\n        >>> M = Triangulation('m004')\n        >>> N = M.with_hyperbolic_structure()\n        >>> N.volume() # doctest: +NUMERIC6\n        2.02988321\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_31with_hyperbolic_structure = {"with_hyperbolic_structure", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_31with_hyperbolic_structure, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_30with_hyperbolic_structure};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_31with_hyperbolic_structure(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("with_hyperbolic_structure (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("with_hyperbolic_structure", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("with_hyperbolic_structure", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_30with_hyperbolic_structure(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_30with_hyperbolic_structure(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("with_hyperbolic_structure", 0);

  /* "cython/core/triangulation.pyx":624
 *         2.02988321
 *         """
 *         return Manifold_from_Triangulation(self)             # <<<<<<<<<<<<<<
 * 
 *     def _polish_hyperbolic_structures(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Manifold_from_Triangulation); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 624, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":614
 *         return result
 * 
 *     def with_hyperbolic_structure(self):             # <<<<<<<<<<<<<<
 *         """
 *         Add a (possibly degenerate) hyperbolic structure, turning the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.with_hyperbolic_structure", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":626
 *         return Manifold_from_Triangulation(self)
 * 
 *     def _polish_hyperbolic_structures(self):             # <<<<<<<<<<<<<<
 *         """
 *         This function does nothing for Triangulation. It is overloaded in
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_33_polish_hyperbolic_structures(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_32_polish_hyperbolic_structures, "\n        This function does nothing for Triangulation. It is overloaded in\n        Manifold.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_33_polish_hyperbolic_structures = {"_polish_hyperbolic_structures", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_33_polish_hyperbolic_structures, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_32_polish_hyperbolic_structures};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_33_polish_hyperbolic_structures(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_polish_hyperbolic_structures (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_polish_hyperbolic_structures", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_polish_hyperbolic_structures", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_32_polish_hyperbolic_structures(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_32_polish_hyperbolic_structures(CYTHON_UNUSED struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_polish_hyperbolic_structures", 0);

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":633
 *         pass
 * 
 *     def _empty_save(self):             # <<<<<<<<<<<<<<
 *         """
 *         Called by save when no file name is specified, so that in
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_35_empty_save(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_34_empty_save, "\n        Called by save when no file name is specified, so that in\n        theory it can be overloaded by the UI.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_35_empty_save = {"_empty_save", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_35_empty_save, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_34_empty_save};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_35_empty_save(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_empty_save (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_empty_save", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_empty_save", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_34_empty_save(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_34_empty_save(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_v_savefile = NULL;
  PyObject *__pyx_v_filename = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_empty_save", 0);

  /* "cython/core/triangulation.pyx":638
 *         theory it can be overloaded by the UI.
 *         """
 *         if asksaveasfile:             # <<<<<<<<<<<<<<
 *             savefile = asksaveasfile(
 *                 mode='w', title='Save Triangulation', defaultextension='.tri',
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_asksaveasfile); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 638, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/triangulation.pyx":639
 *         """
 *         if asksaveasfile:
 *             savefile = asksaveasfile(             # <<<<<<<<<<<<<<
 *                 mode='w', title='Save Triangulation', defaultextension='.tri',
 *                 filetypes = [
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_asksaveasfile); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);

    /* "cython/core/triangulation.pyx":641
 *             savefile = asksaveasfile(
 *                 mode='w', title='Save Triangulation', defaultextension='.tri',
 *                 filetypes = [             # <<<<<<<<<<<<<<
 *                     ('Triangulation and text files', '*.tri *.txt', 'TEXT'),
 *                     ('All text files', '', 'TEXT'),
*/
    __pyx_t_5 = PyList_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 641, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[12]);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[12]);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_mstate_global->__pyx_tuple[12]) != (0)) __PYX_ERR(4, 641, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[13]);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[13]);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 1, __pyx_mstate_global->__pyx_tuple[13]) != (0)) __PYX_ERR(4, 641, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[14]);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[14]);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 2, __pyx_mstate_global->__pyx_tuple[14]) != (0)) __PYX_ERR(4, 641, __pyx_L1_error);
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 4 : 0)] = {__pyx_t_3, NULL};
      __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 639, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_mode, __pyx_mstate_global->__pyx_n_u_w, __pyx_t_7, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 639, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_title, __pyx_mstate_global->__pyx_kp_u_Save_Triangulation, __pyx_t_7, __pyx_callargs+1, 1) < (0)) __PYX_ERR(4, 639, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_defaultextension, __pyx_mstate_global->__pyx_kp_u_tri, __pyx_t_7, __pyx_callargs+1, 2) < (0)) __PYX_ERR(4, 639, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_filetypes, __pyx_t_5, __pyx_t_7, __pyx_callargs+1, 3) < (0)) __PYX_ERR(4, 639, __pyx_L1_error)
      __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 639, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_v_savefile = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":645
 *                     ('All text files', '', 'TEXT'),
 *                     ('All files', '')])
 *             if savefile:             # <<<<<<<<<<<<<<
 *                 filename = savefile.name
 *                 savefile.close()
*/
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_savefile); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 645, __pyx_L1_error)
    if (__pyx_t_2) {

      /* "cython/core/triangulation.pyx":646
 *                     ('All files', '')])
 *             if savefile:
 *                 filename = savefile.name             # <<<<<<<<<<<<<<
 *                 savefile.close()
 *                 self.save(filename)
*/
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_savefile, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_filename = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "cython/core/triangulation.pyx":647
 *             if savefile:
 *                 filename = savefile.name
 *                 savefile.close()             # <<<<<<<<<<<<<<
 *                 self.save(filename)
 *                 return
*/
      __pyx_t_4 = __pyx_v_savefile;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_close, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 647, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cython/core/triangulation.pyx":648
 *                 filename = savefile.name
 *                 savefile.close()
 *                 self.save(filename)             # <<<<<<<<<<<<<<
 *                 return
 * 
*/
      __pyx_t_4 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_filename};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_save, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 648, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cython/core/triangulation.pyx":649
 *                 savefile.close()
 *                 self.save(filename)
 *                 return             # <<<<<<<<<<<<<<
 * 
 *         raise ValueError('Please specify a file name.')
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      goto __pyx_L0;

      /* "cython/core/triangulation.pyx":645
 *                     ('All text files', '', 'TEXT'),
 *                     ('All files', '')])
 *             if savefile:             # <<<<<<<<<<<<<<
 *                 filename = savefile.name
 *                 savefile.close()
*/
    }

    /* "cython/core/triangulation.pyx":638
 *         theory it can be overloaded by the UI.
 *         """
 *         if asksaveasfile:             # <<<<<<<<<<<<<<
 *             savefile = asksaveasfile(
 *                 mode='w', title='Save Triangulation', defaultextension='.tri',
*/
  }

  /* "cython/core/triangulation.pyx":651
 *                 return
 * 
 *         raise ValueError('Please specify a file name.')             # <<<<<<<<<<<<<<
 * 
 *     def save(self, file_name=None):
*/
  __pyx_t_4 = NULL;
  __pyx_t_6 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Please_specify_a_file_name};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(4, 651, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":633
 *         pass
 * 
 *     def _empty_save(self):             # <<<<<<<<<<<<<<
 *         """
 *         Called by save when no file name is specified, so that in
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation._empty_save", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_savefile);
  __Pyx_XDECREF(__pyx_v_filename);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":653
 *         raise ValueError('Please specify a file name.')
 * 
 *     def save(self, file_name=None):             # <<<<<<<<<<<<<<
 *         """
 *         Save the triangulation as a SnapPea triangulation file.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_37save(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_36save, "\n        Save the triangulation as a SnapPea triangulation file.\n\n        >>> M = Triangulation('m004')\n        >>> M.save('fig-eight.tri')     #doctest: +SKIP\n\n        To retrieve a SnapPea triangulation from the saved file\n        you can do the following. The first command creates a cusped\n        manifold M. The second one creates the filled manifold M1\n        with Dehn coefficients (2,3).\n\n        >>> M = Manifold('fig-eight.tri')   #doctest: +SKIP\n        >>> M1 = Manifold('fig-eight.tri(2,3)')   #doctest: +SKIP\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_37save = {"save", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_37save, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_36save};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_37save(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_file_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("save (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_file_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 653, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 653, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "save", 0) < (0)) __PYX_ERR(4, 653, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 653, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_file_name = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("save", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 653, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.save", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_36save(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_file_name);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_36save(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_file_name) {
  PyObject *__pyx_v_b_file_name = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  char *__pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("save", 0);

  /* "cython/core/triangulation.pyx":669
 * 
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if file_name is None:
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":670
 *         """
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         if file_name is None:
 *             self._empty_save()
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 670, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 670, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":669
 * 
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if file_name is None:
*/
  }

  /* "cython/core/triangulation.pyx":671
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if file_name is None:             # <<<<<<<<<<<<<<
 *             self._empty_save()
 *         else:
*/
  __pyx_t_1 = (__pyx_v_file_name == Py_None);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":672
 *             raise ValueError('The Triangulation is empty.')
 *         if file_name is None:
 *             self._empty_save()             # <<<<<<<<<<<<<<
 *         else:
 *             b_file_name = to_byte_str(file_name)
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_empty_save, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 672, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":671
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if file_name is None:             # <<<<<<<<<<<<<<
 *             self._empty_save()
 *         else:
*/
    goto __pyx_L4;
  }

  /* "cython/core/triangulation.pyx":674
 *             self._empty_save()
 *         else:
 *             b_file_name = to_byte_str(file_name)             # <<<<<<<<<<<<<<
 *             write_triangulation(self.c_triangulation, b_file_name)
 * 
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 674, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_file_name};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 674, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_b_file_name = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":675
 *         else:
 *             b_file_name = to_byte_str(file_name)
 *             write_triangulation(self.c_triangulation, b_file_name)             # <<<<<<<<<<<<<<
 * 
 *     def _to_string(self):
*/
    __pyx_t_6 = __Pyx_PyObject_AsWritableString(__pyx_v_b_file_name); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(4, 675, __pyx_L1_error)
    (void)(write_triangulation(__pyx_v_self->c_triangulation, __pyx_t_6));
  }
  __pyx_L4:;

  /* "cython/core/triangulation.pyx":653
 *         raise ValueError('Please specify a file name.')
 * 
 *     def save(self, file_name=None):             # <<<<<<<<<<<<<<
 *         """
 *         Save the triangulation as a SnapPea triangulation file.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.Triangulation.save", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_b_file_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":677
 *             write_triangulation(self.c_triangulation, b_file_name)
 * 
 *     def _to_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a string containing the contents of a SnapPea triangulation
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_39_to_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_38_to_string, "\n        Return a string containing the contents of a SnapPea triangulation\n        file.\n        >>> M = Manifold('7_4')\n        >>> seed = M._to_string()\n        >>> N = Manifold(seed)\n        >>> N == M\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_39_to_string = {"_to_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_39_to_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_38_to_string};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_39_to_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_to_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_to_string", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_to_string", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_38_to_string(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_38_to_string(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  char *__pyx_v_c_string;
  PyObject *__pyx_v_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  char const *__pyx_t_7;
  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;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_to_string", 0);

  /* "cython/core/triangulation.pyx":689
 *         cdef char *c_string
 *         cdef result
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         else:
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":690
 *         cdef result
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         else:
 *             try:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 690, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 690, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":689
 *         cdef char *c_string
 *         cdef result
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         else:
*/
  }

  /* "cython/core/triangulation.pyx":692
 *             raise ValueError('The Triangulation is empty.')
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 c_string = string_triangulation(self.c_triangulation)
 *                 result = c_string
*/
  /*else*/ {
    /*try:*/ {

      /* "cython/core/triangulation.pyx":693
 *         else:
 *             try:
 *                 c_string = string_triangulation(self.c_triangulation)             # <<<<<<<<<<<<<<
 *                 result = c_string
 *             finally:
*/
      __pyx_v_c_string = string_triangulation(__pyx_v_self->c_triangulation);

      /* "cython/core/triangulation.pyx":694
 *             try:
 *                 c_string = string_triangulation(self.c_triangulation)
 *                 result = c_string             # <<<<<<<<<<<<<<
 *             finally:
 *                 free(c_string)
*/
      __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_c_string); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 694, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_result = __pyx_t_2;
      __pyx_t_2 = 0;
    }

    /* "cython/core/triangulation.pyx":696
 *                 result = c_string
 *             finally:
 *                 free(c_string)             # <<<<<<<<<<<<<<
 *             return to_str(result)
 * 
*/
    /*finally:*/ {
      /*normal exit:*/{
        free(__pyx_v_c_string);
        goto __pyx_L6;
      }
      __pyx_L5_error:;
      /*exception exit:*/{
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
         __Pyx_ExceptionSwap(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
        if ( unlikely(__Pyx_GetException(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10) < 0)) __Pyx_ErrFetch(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_12);
        __Pyx_XGOTREF(__pyx_t_13);
        __pyx_t_5 = __pyx_lineno; __pyx_t_6 = __pyx_clineno; __pyx_t_7 = __pyx_filename;
        {
          free(__pyx_v_c_string);
        }
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_XGIVEREF(__pyx_t_12);
        __Pyx_XGIVEREF(__pyx_t_13);
        __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_ErrRestore(__pyx_t_8, __pyx_t_9, __pyx_t_10);
        __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0;
        __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_6; __pyx_filename = __pyx_t_7;
        goto __pyx_L1_error;
      }
      __pyx_L6:;
    }

    /* "cython/core/triangulation.pyx":697
 *             finally:
 *                 free(c_string)
 *             return to_str(result)             # <<<<<<<<<<<<<<
 * 
 *     def _from_string(self, string, remove_finite_vertices=True):
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_to_str); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 697, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_14))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_14);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_14);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_14, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_result};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_14, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 697, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/triangulation.pyx":677
 *             write_triangulation(self.c_triangulation, b_file_name)
 * 
 *     def _to_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a string containing the contents of a SnapPea triangulation
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("SnapPy.Triangulation._to_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":699
 *             return to_str(result)
 * 
 *     def _from_string(self, string, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_41_from_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_40_from_string, "\n        WARNING: Users should not use this function directly.  To\n        create a Triangulation or Manifold or ManifoldHP from a string\n        containing the contents of a triangulation file, simply do:\n\n        >>> M = Manifold('7_4')\n        >>> seed = M._to_string()\n        >>> N = Manifold(seed)\n        >>> N == M\n        True\n\n        Fill an empty Triangulation from a string generated by\n        _to_string.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_41_from_string = {"_from_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_41_from_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_40_from_string};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_41_from_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_string = 0;
  PyObject *__pyx_v_remove_finite_vertices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_string,&__pyx_mstate_global->__pyx_n_u_remove_finite_vertices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 699, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 699, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 699, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_from_string", 0) < (0)) __PYX_ERR(4, 699, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_from_string", 0, 1, 2, i); __PYX_ERR(4, 699, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 699, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 699, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_string = values[0];
    __pyx_v_remove_finite_vertices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_string", 0, 1, 2, __pyx_nargs); __PYX_ERR(4, 699, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_40_from_string(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_string, __pyx_v_remove_finite_vertices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_40_from_string(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_string, PyObject *__pyx_v_remove_finite_vertices) {
  Triangulation *__pyx_v_c_triangulation;
  PyObject *__pyx_v_b_string = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  char *__pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_from_string", 0);

  /* "cython/core/triangulation.pyx":714
 *         _to_string.
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')
*/
  __pyx_v_c_triangulation = NULL;

  /* "cython/core/triangulation.pyx":715
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 *         b_string = to_byte_str(string)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":716
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')             # <<<<<<<<<<<<<<
 *         b_string = to_byte_str(string)
 *         c_triangulation = read_triangulation_from_string(b_string)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_must_be_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 716, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 716, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":715
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 *         b_string = to_byte_str(string)
*/
  }

  /* "cython/core/triangulation.pyx":717
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')
 *         b_string = to_byte_str(string)             # <<<<<<<<<<<<<<
 *         c_triangulation = read_triangulation_from_string(b_string)
 *         self.set_c_triangulation(c_triangulation)
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_string};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_b_string = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":718
 *             raise ValueError('The Triangulation must be empty.')
 *         b_string = to_byte_str(string)
 *         c_triangulation = read_triangulation_from_string(b_string)             # <<<<<<<<<<<<<<
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:
*/
  __pyx_t_6 = __Pyx_PyObject_AsWritableString(__pyx_v_b_string); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(4, 718, __pyx_L1_error)
  __pyx_v_c_triangulation = read_triangulation_from_string(__pyx_t_6);

  /* "cython/core/triangulation.pyx":719
 *         b_string = to_byte_str(string)
 *         c_triangulation = read_triangulation_from_string(b_string)
 *         self.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         if remove_finite_vertices:
 *             self._remove_finite_vertices()
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":720
 *         c_triangulation = read_triangulation_from_string(b_string)
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *             self._remove_finite_vertices()
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_remove_finite_vertices); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 720, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":721
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:
 *             self._remove_finite_vertices()             # <<<<<<<<<<<<<<
 * 
 *     def _to_bytes(self):
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_remove_finite_vertices_2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 721, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":720
 *         c_triangulation = read_triangulation_from_string(b_string)
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *             self._remove_finite_vertices()
 * 
*/
  }

  /* "cython/core/triangulation.pyx":699
 *             return to_str(result)
 * 
 *     def _from_string(self, string, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.Triangulation._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_b_string);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":723
 *             self._remove_finite_vertices()
 * 
 *     def _to_bytes(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a reasonably short byte sequence which encodes the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_43_to_bytes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_42_to_bytes, "\n        Return a reasonably short byte sequence which encodes the\n        combinatorics of this triangulation.\n        >>> M = Manifold('m125')\n        >>> seed = M._to_bytes()\n        >>> len(seed)\n        12\n        >>> N = Manifold('empty')\n        >>> N._from_bytes(seed)\n        >>> N == M\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_43_to_bytes = {"_to_bytes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_43_to_bytes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_42_to_bytes};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_43_to_bytes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_to_bytes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_to_bytes", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_to_bytes", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_42_to_bytes(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_42_to_bytes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  TerseTriangulation *__pyx_v_c_terse;
  int __pyx_v_n;
  int __pyx_v_byte;
  PyObject *__pyx_v_byteseq = NULL;
  PyObject *__pyx_v_bit = NULL;
  PyObject *__pyx_9genexpr11__pyx_v_c = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  TerseTriangulation *__pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  long __pyx_t_11;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_to_bytes", 0);

  /* "cython/core/triangulation.pyx":738
 *         cdef TerseTriangulation* c_terse
 *         cdef int n, byte
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if False in [ c.is_complete for c in self.cusp_info()]:
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":739
 *         cdef int n, byte
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         if False in [ c.is_complete for c in self.cusp_info()]:
 *             raise ValueError('Byte encoding requires complete cusps.')
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 739, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 739, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":738
 *         cdef TerseTriangulation* c_terse
 *         cdef int n, byte
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if False in [ c.is_complete for c in self.cusp_info()]:
*/
  }

  /* "cython/core/triangulation.pyx":740
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if False in [ c.is_complete for c in self.cusp_info()]:             # <<<<<<<<<<<<<<
 *             raise ValueError('Byte encoding requires complete cusps.')
 *         c_terse = tri_to_terse(self.c_triangulation)
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 740, __pyx_L7_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 740, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
      __pyx_t_5 = __pyx_t_3; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 740, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 740, __pyx_L7_error)
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 740, __pyx_L7_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 740, __pyx_L7_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 740, __pyx_L7_error)
      } else {
        __pyx_t_3 = __pyx_t_7(__pyx_t_5);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 740, __pyx_L7_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_9genexpr11__pyx_v_c, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_9genexpr11__pyx_v_c, __pyx_mstate_global->__pyx_n_u_is_complete); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 740, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) __PYX_ERR(4, 740, __pyx_L7_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_9genexpr11__pyx_v_c); __pyx_9genexpr11__pyx_v_c = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_9genexpr11__pyx_v_c); __pyx_9genexpr11__pyx_v_c = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(Py_False, __pyx_t_2, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 740, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":741
 *             raise ValueError('The Triangulation is empty.')
 *         if False in [ c.is_complete for c in self.cusp_info()]:
 *             raise ValueError('Byte encoding requires complete cusps.')             # <<<<<<<<<<<<<<
 *         c_terse = tri_to_terse(self.c_triangulation)
 *         byteseq = bytearray([c_terse.num_tetrahedra])
*/
    __pyx_t_5 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Byte_encoding_requires_complete};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 741, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 741, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":740
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if False in [ c.is_complete for c in self.cusp_info()]:             # <<<<<<<<<<<<<<
 *             raise ValueError('Byte encoding requires complete cusps.')
 *         c_terse = tri_to_terse(self.c_triangulation)
*/
  }

  /* "cython/core/triangulation.pyx":742
 *         if False in [ c.is_complete for c in self.cusp_info()]:
 *             raise ValueError('Byte encoding requires complete cusps.')
 *         c_terse = tri_to_terse(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         byteseq = bytearray([c_terse.num_tetrahedra])
 *         byte, bit = 0, 0
*/
  __pyx_t_8 = tri_to_terse(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 742, __pyx_L1_error)
  __pyx_v_c_terse = __pyx_t_8;

  /* "cython/core/triangulation.pyx":743
 *             raise ValueError('Byte encoding requires complete cusps.')
 *         c_terse = tri_to_terse(self.c_triangulation)
 *         byteseq = bytearray([c_terse.num_tetrahedra])             # <<<<<<<<<<<<<<
 *         byte, bit = 0, 0
 *         for n from 0 <= n < 2*c_terse.num_tetrahedra:
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_c_terse->num_tetrahedra); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_t_3) != (0)) __PYX_ERR(4, 743, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_9};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyByteArray_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_byteseq = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":744
 *         c_terse = tri_to_terse(self.c_triangulation)
 *         byteseq = bytearray([c_terse.num_tetrahedra])
 *         byte, bit = 0, 0             # <<<<<<<<<<<<<<
 *         for n from 0 <= n < 2*c_terse.num_tetrahedra:
 *             if c_terse.glues_to_old_tet[n]:
*/
  __pyx_t_10 = 0;
  __pyx_t_2 = __pyx_mstate_global->__pyx_int_0;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_v_byte = __pyx_t_10;
  __pyx_v_bit = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":745
 *         byteseq = bytearray([c_terse.num_tetrahedra])
 *         byte, bit = 0, 0
 *         for n from 0 <= n < 2*c_terse.num_tetrahedra:             # <<<<<<<<<<<<<<
 *             if c_terse.glues_to_old_tet[n]:
 *                 byte |= 1 << bit
*/
  __pyx_t_11 = (2 * __pyx_v_c_terse->num_tetrahedra);
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_11; __pyx_v_n++) {

    /* "cython/core/triangulation.pyx":746
 *         byte, bit = 0, 0
 *         for n from 0 <= n < 2*c_terse.num_tetrahedra:
 *             if c_terse.glues_to_old_tet[n]:             # <<<<<<<<<<<<<<
 *                 byte |= 1 << bit
 *             bit += 1
*/
    __pyx_t_1 = ((__pyx_v_c_terse->glues_to_old_tet[__pyx_v_n]) != 0);
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":747
 *         for n from 0 <= n < 2*c_terse.num_tetrahedra:
 *             if c_terse.glues_to_old_tet[n]:
 *                 byte |= 1 << bit             # <<<<<<<<<<<<<<
 *             bit += 1
 *             if bit % 8 == 0:
*/
      __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_byte); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 747, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_9 = PyNumber_Lshift(__pyx_mstate_global->__pyx_int_1, __pyx_v_bit); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 747, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_5 = PyNumber_InPlaceOr(__pyx_t_2, __pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 747, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_t_5); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 747, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_byte = __pyx_t_10;

      /* "cython/core/triangulation.pyx":746
 *         byte, bit = 0, 0
 *         for n from 0 <= n < 2*c_terse.num_tetrahedra:
 *             if c_terse.glues_to_old_tet[n]:             # <<<<<<<<<<<<<<
 *                 byte |= 1 << bit
 *             bit += 1
*/
    }

    /* "cython/core/triangulation.pyx":748
 *             if c_terse.glues_to_old_tet[n]:
 *                 byte |= 1 << bit
 *             bit += 1             # <<<<<<<<<<<<<<
 *             if bit % 8 == 0:
 *                 byteseq.append(byte)
*/
    __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_v_bit, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 748, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF_SET(__pyx_v_bit, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":749
 *                 byte |= 1 << bit
 *             bit += 1
 *             if bit % 8 == 0:             # <<<<<<<<<<<<<<
 *                 byteseq.append(byte)
 *                 byte, bit = 0, 0
*/
    __pyx_t_5 = __Pyx_PyLong_RemainderObjC(__pyx_v_bit, __pyx_mstate_global->__pyx_int_8, 8, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 749, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_5, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 749, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":750
 *             bit += 1
 *             if bit % 8 == 0:
 *                 byteseq.append(byte)             # <<<<<<<<<<<<<<
 *                 byte, bit = 0, 0
 *         if bit:
*/
      __pyx_t_12 = __Pyx_PyByteArray_Append(__pyx_v_byteseq, __pyx_v_byte); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(4, 750, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":751
 *             if bit % 8 == 0:
 *                 byteseq.append(byte)
 *                 byte, bit = 0, 0             # <<<<<<<<<<<<<<
 *         if bit:
 *             byteseq.append(byte)
*/
      __pyx_t_10 = 0;
      __pyx_t_5 = __pyx_mstate_global->__pyx_int_0;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_v_byte = __pyx_t_10;
      __Pyx_DECREF_SET(__pyx_v_bit, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "cython/core/triangulation.pyx":749
 *                 byte |= 1 << bit
 *             bit += 1
 *             if bit % 8 == 0:             # <<<<<<<<<<<<<<
 *                 byteseq.append(byte)
 *                 byte, bit = 0, 0
*/
    }
  }

  /* "cython/core/triangulation.pyx":752
 *                 byteseq.append(byte)
 *                 byte, bit = 0, 0
 *         if bit:             # <<<<<<<<<<<<<<
 *             byteseq.append(byte)
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_bit); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 752, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":753
 *                 byte, bit = 0, 0
 *         if bit:
 *             byteseq.append(byte)             # <<<<<<<<<<<<<<
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
 *             byteseq.append(c_terse.which_old_tet[n])
*/
    __pyx_t_12 = __Pyx_PyByteArray_Append(__pyx_v_byteseq, __pyx_v_byte); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(4, 753, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":752
 *                 byteseq.append(byte)
 *                 byte, bit = 0, 0
 *         if bit:             # <<<<<<<<<<<<<<
 *             byteseq.append(byte)
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
*/
  }

  /* "cython/core/triangulation.pyx":754
 *         if bit:
 *             byteseq.append(byte)
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:             # <<<<<<<<<<<<<<
 *             byteseq.append(c_terse.which_old_tet[n])
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
*/
  __pyx_t_11 = (1 + __pyx_v_c_terse->num_tetrahedra);
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_11; __pyx_v_n++) {

    /* "cython/core/triangulation.pyx":755
 *             byteseq.append(byte)
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
 *             byteseq.append(c_terse.which_old_tet[n])             # <<<<<<<<<<<<<<
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
 *             byteseq.append(c_terse.which_gluing[n])
*/
    __pyx_t_12 = __Pyx_PyByteArray_Append(__pyx_v_byteseq, (__pyx_v_c_terse->which_old_tet[__pyx_v_n])); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(4, 755, __pyx_L1_error)
  }

  /* "cython/core/triangulation.pyx":756
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
 *             byteseq.append(c_terse.which_old_tet[n])
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:             # <<<<<<<<<<<<<<
 *             byteseq.append(c_terse.which_gluing[n])
 *         free_terse_triangulation(c_terse)
*/
  __pyx_t_11 = (1 + __pyx_v_c_terse->num_tetrahedra);
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_11; __pyx_v_n++) {

    /* "cython/core/triangulation.pyx":757
 *             byteseq.append(c_terse.which_old_tet[n])
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
 *             byteseq.append(c_terse.which_gluing[n])             # <<<<<<<<<<<<<<
 *         free_terse_triangulation(c_terse)
 *         return bytearray_to_bytes(byteseq)
*/
    __pyx_t_12 = __Pyx_PyByteArray_Append(__pyx_v_byteseq, (__pyx_v_c_terse->which_gluing[__pyx_v_n])); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(4, 757, __pyx_L1_error)
  }

  /* "cython/core/triangulation.pyx":758
 *         for n from 0 <= n < 1 + c_terse.num_tetrahedra:
 *             byteseq.append(c_terse.which_gluing[n])
 *         free_terse_triangulation(c_terse)             # <<<<<<<<<<<<<<
 *         return bytearray_to_bytes(byteseq)
 * 
*/
  free_terse_triangulation(__pyx_v_c_terse); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 758, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":759
 *             byteseq.append(c_terse.which_gluing[n])
 *         free_terse_triangulation(c_terse)
 *         return bytearray_to_bytes(byteseq)             # <<<<<<<<<<<<<<
 * 
 *     def _from_bytes(self, bytestring, *args):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_bytearray_to_bytes); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_v_byteseq};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":723
 *             self._remove_finite_vertices()
 * 
 *     def _to_bytes(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a reasonably short byte sequence which encodes the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Triangulation._to_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_byteseq);
  __Pyx_XDECREF(__pyx_v_bit);
  __Pyx_XDECREF(__pyx_9genexpr11__pyx_v_c);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":761
 *         return bytearray_to_bytes(byteseq)
 * 
 *     def _from_bytes(self, bytestring, *args):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty triangulation from a byte sequence generated by
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_45_from_bytes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_44_from_bytes, "\n        Fill an empty triangulation from a byte sequence generated by\n        _to_bytes.\n        >>> M = Manifold('m125')\n        >>> seed = M._to_bytes()\n        >>> len(seed)\n        12\n        >>> N = Manifold('empty')\n        >>> N._from_bytes(seed)\n        >>> N == M\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_45_from_bytes = {"_from_bytes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_45_from_bytes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_44_from_bytes};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_45_from_bytes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_bytestring = 0;
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_bytes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_args)) {
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_args);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_bytestring,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 761, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        default:
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 761, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, used_pos_args, __pyx_kwds_len, "_from_bytes", 0) < (0)) __PYX_ERR(4, 761, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_from_bytes", 0, 1, 1, i); __PYX_ERR(4, 761, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs < 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 761, __pyx_L3_error)
    }
    __pyx_v_bytestring = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_bytes", 0, 1, 1, __pyx_nargs); __PYX_ERR(4, 761, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_AddTraceback("SnapPy.Triangulation._from_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_44_from_bytes(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_bytestring, __pyx_v_args);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_44_from_bytes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_bytestring, CYTHON_UNUSED PyObject *__pyx_v_args) {
  Triangulation *__pyx_v_c_triangulation;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Triangulation *__pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_from_bytes", 0);

  /* "cython/core/triangulation.pyx":774
 *         True
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')
*/
  __pyx_v_c_triangulation = NULL;

  /* "cython/core/triangulation.pyx":775
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = triangulation_from_bytes(bytestring)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":776
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')             # <<<<<<<<<<<<<<
 *         c_triangulation = triangulation_from_bytes(bytestring)
 *         self.set_c_triangulation(c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_must_be_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 776, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 776, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":775
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = triangulation_from_bytes(bytestring)
*/
  }

  /* "cython/core/triangulation.pyx":777
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = triangulation_from_bytes(bytestring)             # <<<<<<<<<<<<<<
 *         self.set_c_triangulation(c_triangulation)
 * 
*/
  __pyx_t_5 = __pyx_f_6SnapPy_triangulation_from_bytes(__pyx_v_bytestring); if (unlikely(__pyx_t_5 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 777, __pyx_L1_error)
  __pyx_v_c_triangulation = __pyx_t_5;

  /* "cython/core/triangulation.pyx":778
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = triangulation_from_bytes(bytestring)
 *         self.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     def _from_pickle(self, bytestring, remove_finite_vertices=True):
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":761
 *         return bytearray_to_bytes(byteseq)
 * 
 *     def _from_bytes(self, bytestring, *args):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty triangulation from a byte sequence generated by
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation._from_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":780
 *         self.set_c_triangulation(c_triangulation)
 * 
 *     def _from_pickle(self, bytestring, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_47_from_pickle(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_46_from_pickle, "\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_47_from_pickle = {"_from_pickle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_47_from_pickle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_46_from_pickle};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_47_from_pickle(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_bytestring = 0;
  PyObject *__pyx_v_remove_finite_vertices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_pickle (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_bytestring,&__pyx_mstate_global->__pyx_n_u_remove_finite_vertices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 780, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 780, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 780, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_from_pickle", 0) < (0)) __PYX_ERR(4, 780, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_from_pickle", 0, 1, 2, i); __PYX_ERR(4, 780, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 780, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 780, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_bytestring = values[0];
    __pyx_v_remove_finite_vertices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_pickle", 0, 1, 2, __pyx_nargs); __PYX_ERR(4, 780, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._from_pickle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_46_from_pickle(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_bytestring, __pyx_v_remove_finite_vertices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_46_from_pickle(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_bytestring, PyObject *__pyx_v_remove_finite_vertices) {
  Triangulation *__pyx_v_c_triangulation;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Triangulation *__pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_from_pickle", 0);

  /* "cython/core/triangulation.pyx":783
 *         """
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')
*/
  __pyx_v_c_triangulation = NULL;

  /* "cython/core/triangulation.pyx":784
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = unpickle_triangulation(bytestring)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":785
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')             # <<<<<<<<<<<<<<
 *         c_triangulation = unpickle_triangulation(bytestring)
 *         self.set_c_triangulation(c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_must_be_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 785, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 785, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":784
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = unpickle_triangulation(bytestring)
*/
  }

  /* "cython/core/triangulation.pyx":786
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = unpickle_triangulation(bytestring)             # <<<<<<<<<<<<<<
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:
*/
  __pyx_t_2 = __pyx_v_bytestring;
  __Pyx_INCREF(__pyx_t_2);
  if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_2))) __PYX_ERR(4, 786, __pyx_L1_error)
  __pyx_t_5 = __pyx_f_6SnapPy_unpickle_triangulation(((PyObject*)__pyx_t_2)); if (unlikely(__pyx_t_5 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 786, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_c_triangulation = __pyx_t_5;

  /* "cython/core/triangulation.pyx":787
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = unpickle_triangulation(bytestring)
 *         self.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         if remove_finite_vertices:
 *             self._remove_finite_vertices()
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":788
 *         c_triangulation = unpickle_triangulation(bytestring)
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *             self._remove_finite_vertices()
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_remove_finite_vertices); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 788, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":789
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:
 *             self._remove_finite_vertices()             # <<<<<<<<<<<<<<
 * 
 *     def _from_tetrahedra_gluing_data(self, tetrahedra_data,
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_remove_finite_vertices_2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 789, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":788
 *         c_triangulation = unpickle_triangulation(bytestring)
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *             self._remove_finite_vertices()
 * 
*/
  }

  /* "cython/core/triangulation.pyx":780
 *         self.set_c_triangulation(c_triangulation)
 * 
 *     def _from_pickle(self, bytestring, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         """
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation._from_pickle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":791
 *             self._remove_finite_vertices()
 * 
 *     def _from_tetrahedra_gluing_data(self, tetrahedra_data,             # <<<<<<<<<<<<<<
 *                                      num_or_cusps=0,
 *                                      num_nonor_cusps=0,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_49_from_tetrahedra_gluing_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_48_from_tetrahedra_gluing_data, "\n        >>> data = [([1, 1, 2, 2], [[0, 1, 3, 2], [2, 3, 1, 0], [0, 1, 3, 2], [3, 0, 1, 2]]),\n        ...         ([0, 2, 2, 0], [[0, 1, 3, 2], [1, 0, 2, 3], [2, 3, 1, 0], [3, 2, 0, 1]]),\n        ...         ([1, 1, 0, 0], [[1, 0, 2, 3], [3, 2, 0, 1], [1, 2, 3, 0], [0, 1, 3, 2]])]\n        >>> M = Triangulation('empty')\n        >>> M._from_tetrahedra_gluing_data(data)\n        >>> N = Triangulation('m007')\n        >>> M == N\n        True\n\n        Check that cusp indices are transmitted. This manfiold has two\n        cusps and trivial symmetry group and we interchange the two\n        cusps.\n\n        >>> M = Manifold('o9_44133')\n        >>> tet_data = M._get_tetrahedra_gluing_data()\n        >>> cusp_data = M._get_cusp_indices_and_peripheral_curve_data()[0]\n        >>> cusp_data = [[1 - c for c in tet_cusps] for tet_cusps in cusp_data]\n        >>> N = Manifold('empty')\n        >>> N._from_tetrahedra_gluing_data(tet_data, num_or_cusps=2, cusp_indices=cusp_data)\n        >>> M.is_isometric_to(N, True)[0].cusp_images()\n        [1, 0]\n\n        A nonorientable example.\n\n        >>> Y = Triangulation('y885')\n        >>> Y.set_peripheral_curves([([1, 0], [0, 1]), ([-1, 0], [0, -1]), ([1, 7], [1, 8])])\n        >>> tets = Y._get_tetrahedra_gluing_data()\n        >>> cusps, curves = Y._get_cusp_indices_and_peripheral_curve_data()\n        >>> max(sum(curves, []))\n        9\n        >>> X = Triangulation('empty')\n        >>> X._from_tetrahedra_gluing_data(tets, 1, 2, cusps, curves)\n        >>> X._get_cusp_indices_and_peripheral_curve_data() == (cusps, curves)\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_49_from_tetrahedra_gluing_data = {"_from_tetrahedra_gluing_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_49_from_tetrahedra_gluing_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_48_from_tetrahedra_gluing_data};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_49_from_tetrahedra_gluing_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_tetrahedra_data = 0;
  PyObject *__pyx_v_num_or_cusps = 0;
  PyObject *__pyx_v_num_nonor_cusps = 0;
  PyObject *__pyx_v_cusp_indices = 0;
  PyObject *__pyx_v_peripheral_curves = 0;
  PyObject *__pyx_v_remove_finite_vertices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_tetrahedra_gluing_data (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tetrahedra_data,&__pyx_mstate_global->__pyx_n_u_num_or_cusps,&__pyx_mstate_global->__pyx_n_u_num_nonor_cusps,&__pyx_mstate_global->__pyx_n_u_cusp_indices,&__pyx_mstate_global->__pyx_n_u_peripheral_curves,&__pyx_mstate_global->__pyx_n_u_remove_finite_vertices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 791, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_from_tetrahedra_gluing_data", 0) < (0)) __PYX_ERR(4, 791, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));

      /* "cython/core/triangulation.pyx":794
 *                                      num_or_cusps=0,
 *                                      num_nonor_cusps=0,
 *                                      cusp_indices=None,             # <<<<<<<<<<<<<<
 *                                      peripheral_curves=None,
 *                                      remove_finite_vertices=True):
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/triangulation.pyx":795
 *                                      num_nonor_cusps=0,
 *                                      cusp_indices=None,
 *                                      peripheral_curves=None,             # <<<<<<<<<<<<<<
 *                                      remove_finite_vertices=True):
 *         """
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/triangulation.pyx":796
 *                                      cusp_indices=None,
 *                                      peripheral_curves=None,
 *                                      remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         >>> data = [([1, 1, 2, 2], [[0, 1, 3, 2], [2, 3, 1, 0], [0, 1, 3, 2], [3, 0, 1, 2]]),
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_from_tetrahedra_gluing_data", 0, 1, 6, i); __PYX_ERR(4, 791, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 791, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 791, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));

      /* "cython/core/triangulation.pyx":794
 *                                      num_or_cusps=0,
 *                                      num_nonor_cusps=0,
 *                                      cusp_indices=None,             # <<<<<<<<<<<<<<
 *                                      peripheral_curves=None,
 *                                      remove_finite_vertices=True):
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/triangulation.pyx":795
 *                                      num_nonor_cusps=0,
 *                                      cusp_indices=None,
 *                                      peripheral_curves=None,             # <<<<<<<<<<<<<<
 *                                      remove_finite_vertices=True):
 *         """
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/triangulation.pyx":796
 *                                      cusp_indices=None,
 *                                      peripheral_curves=None,
 *                                      remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         >>> data = [([1, 1, 2, 2], [[0, 1, 3, 2], [2, 3, 1, 0], [0, 1, 3, 2], [3, 0, 1, 2]]),
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_tetrahedra_data = values[0];
    __pyx_v_num_or_cusps = values[1];
    __pyx_v_num_nonor_cusps = values[2];
    __pyx_v_cusp_indices = values[3];
    __pyx_v_peripheral_curves = values[4];
    __pyx_v_remove_finite_vertices = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_tetrahedra_gluing_data", 0, 1, 6, __pyx_nargs); __PYX_ERR(4, 791, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._from_tetrahedra_gluing_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_48_from_tetrahedra_gluing_data(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_tetrahedra_data, __pyx_v_num_or_cusps, __pyx_v_num_nonor_cusps, __pyx_v_cusp_indices, __pyx_v_peripheral_curves, __pyx_v_remove_finite_vertices);

  /* "cython/core/triangulation.pyx":791
 *             self._remove_finite_vertices()
 * 
 *     def _from_tetrahedra_gluing_data(self, tetrahedra_data,             # <<<<<<<<<<<<<<
 *                                      num_or_cusps=0,
 *                                      num_nonor_cusps=0,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_48_from_tetrahedra_gluing_data(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_tetrahedra_data, PyObject *__pyx_v_num_or_cusps, PyObject *__pyx_v_num_nonor_cusps, PyObject *__pyx_v_cusp_indices, PyObject *__pyx_v_peripheral_curves, PyObject *__pyx_v_remove_finite_vertices) {
  Triangulation *__pyx_v_c_triangulation;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Triangulation *__pyx_t_5;
  struct __pyx_opt_args_6SnapPy_listlike_to_triangulation __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_from_tetrahedra_gluing_data", 0);

  /* "cython/core/triangulation.pyx":833
 *         True
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')
*/
  __pyx_v_c_triangulation = NULL;

  /* "cython/core/triangulation.pyx":834
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = listlike_to_triangulation(tetrahedra_data,
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":835
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')             # <<<<<<<<<<<<<<
 *         c_triangulation = listlike_to_triangulation(tetrahedra_data,
 *                                                     num_or_cusps,
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_must_be_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 835, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 835, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":834
 *         """
 *         cdef c_Triangulation* c_triangulation = NULL
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = listlike_to_triangulation(tetrahedra_data,
*/
  }

  /* "cython/core/triangulation.pyx":836
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')
 *         c_triangulation = listlike_to_triangulation(tetrahedra_data,             # <<<<<<<<<<<<<<
 *                                                     num_or_cusps,
 *                                                     num_nonor_cusps,
*/
  __pyx_t_6.__pyx_n = 4;
  __pyx_t_6.num_or_cusps = __pyx_v_num_or_cusps;
  __pyx_t_6.num_nonor_cusps = __pyx_v_num_nonor_cusps;
  __pyx_t_6.cusp_indices = __pyx_v_cusp_indices;
  __pyx_t_6.peripheral_curves = __pyx_v_peripheral_curves;
  __pyx_t_5 = __pyx_f_6SnapPy_listlike_to_triangulation(__pyx_v_tetrahedra_data, &__pyx_t_6); if (unlikely(__pyx_t_5 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 836, __pyx_L1_error)
  __pyx_v_c_triangulation = __pyx_t_5;

  /* "cython/core/triangulation.pyx":841
 *                                                     cusp_indices,
 *                                                     peripheral_curves)
 *         self.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         if remove_finite_vertices:
 *             self._remove_finite_vertices()
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 841, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":842
 *                                                     peripheral_curves)
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *             self._remove_finite_vertices()
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_remove_finite_vertices); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 842, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":843
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:
 *             self._remove_finite_vertices()             # <<<<<<<<<<<<<<
 * 
 *     def _from_isosig(self, isosig, remove_finite_vertices=True):
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_remove_finite_vertices_2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 843, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":842
 *                                                     peripheral_curves)
 *         self.set_c_triangulation(c_triangulation)
 *         if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *             self._remove_finite_vertices()
 * 
*/
  }

  /* "cython/core/triangulation.pyx":791
 *             self._remove_finite_vertices()
 * 
 *     def _from_tetrahedra_gluing_data(self, tetrahedra_data,             # <<<<<<<<<<<<<<
 *                                      num_or_cusps=0,
 *                                      num_nonor_cusps=0,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation._from_tetrahedra_gluing_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":845
 *             self._remove_finite_vertices()
 * 
 *     def _from_isosig(self, isosig, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_51_from_isosig(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_50_from_isosig, "\n        WARNING: Users should not use this function directly.  To\n        create a Triangulation or Manifold or ManifoldHP from an isosig,\n        simply do:\n\n        >>> M = Manifold('empty')\n        >>> M._from_isosig('jLAwLMQbcbdghgiiixxnxhhxkwv')\n        >>> N = Manifold('o9_10894')\n        >>> M == N\n        True\n\n        Fill an empty Triangulation from an isosig generated by\n        triangulation_isosig.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_51_from_isosig = {"_from_isosig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_51_from_isosig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_50_from_isosig};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_51_from_isosig(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_isosig = 0;
  PyObject *__pyx_v_remove_finite_vertices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_isosig (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_isosig,&__pyx_mstate_global->__pyx_n_u_remove_finite_vertices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 845, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 845, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 845, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_from_isosig", 0) < (0)) __PYX_ERR(4, 845, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_from_isosig", 0, 1, 2, i); __PYX_ERR(4, 845, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 845, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 845, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_isosig = values[0];
    __pyx_v_remove_finite_vertices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_isosig", 0, 1, 2, __pyx_nargs); __PYX_ERR(4, 845, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._from_isosig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_50_from_isosig(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_isosig, __pyx_v_remove_finite_vertices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_50_from_isosig(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_isosig, PyObject *__pyx_v_remove_finite_vertices) {
  PyObject *__pyx_v_match = NULL;
  PyObject *__pyx_v_decoration = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  char *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_from_isosig", 0);
  __Pyx_INCREF(__pyx_v_isosig);

  /* "cython/core/triangulation.pyx":861
 *         """
 * 
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":862
 * 
 *         if self.c_triangulation is not NULL:
 *             raise ValueError('The Triangulation must be empty.')             # <<<<<<<<<<<<<<
 * 
 *         match = is_decorated_isosig.match(isosig)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_must_be_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 862, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 862, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":861
 *         """
 * 
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation must be empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":864
 *             raise ValueError('The Triangulation must be empty.')
 * 
 *         match = is_decorated_isosig.match(isosig)             # <<<<<<<<<<<<<<
 *         if match:
 *             isosig, decoration = match.groups()
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_decorated_isosig); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_isosig};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 864, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_match = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":865
 * 
 *         match = is_decorated_isosig.match(isosig)
 *         if match:             # <<<<<<<<<<<<<<
 *             isosig, decoration = match.groups()
 *         elif is_isosig.match(isosig):
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_match); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 865, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":866
 *         match = is_decorated_isosig.match(isosig)
 *         if match:
 *             isosig, decoration = match.groups()             # <<<<<<<<<<<<<<
 *         elif is_isosig.match(isosig):
 *             decoration = None
*/
    __pyx_t_6 = __pyx_v_match;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_groups, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 866, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 866, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_3);
      } else {
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 866, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_6);
        __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 866, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_3);
      }
      #else
      __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 866, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 866, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 866, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5);
      index = 0; __pyx_t_6 = __pyx_t_7(__pyx_t_5); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 1; __pyx_t_3 = __pyx_t_7(__pyx_t_5); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_3);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_5), 2) < (0)) __PYX_ERR(4, 866, __pyx_L1_error)
      __pyx_t_7 = NULL;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_7 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 866, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_DECREF_SET(__pyx_v_isosig, __pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_v_decoration = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":865
 * 
 *         match = is_decorated_isosig.match(isosig)
 *         if match:             # <<<<<<<<<<<<<<
 *             isosig, decoration = match.groups()
 *         elif is_isosig.match(isosig):
*/
    goto __pyx_L4;
  }

  /* "cython/core/triangulation.pyx":867
 *         if match:
 *             isosig, decoration = match.groups()
 *         elif is_isosig.match(isosig):             # <<<<<<<<<<<<<<
 *             decoration = None
 *         else:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_is_isosig); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_isosig};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 867, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":868
 *             isosig, decoration = match.groups()
 *         elif is_isosig.match(isosig):
 *             decoration = None             # <<<<<<<<<<<<<<
 *         else:
 *             # Did not match regular expression, bail
*/
    __Pyx_INCREF(Py_None);
    __pyx_v_decoration = Py_None;

    /* "cython/core/triangulation.pyx":867
 *         if match:
 *             isosig, decoration = match.groups()
 *         elif is_isosig.match(isosig):             # <<<<<<<<<<<<<<
 *             decoration = None
 *         else:
*/
    goto __pyx_L4;
  }

  /* "cython/core/triangulation.pyx":871
 *         else:
 *             # Did not match regular expression, bail
 *             return             # <<<<<<<<<<<<<<
 * 
 *         self.set_c_triangulation(
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;
  }
  __pyx_L4:;

  /* "cython/core/triangulation.pyx":874
 * 
 *         self.set_c_triangulation(
 *             triangulation_from_isomorphism_signature(isosig.encode('ascii')))             # <<<<<<<<<<<<<<
 * 
 *         # Not a valid isomorphism signature, bail
*/
  __pyx_t_5 = __pyx_v_isosig;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ascii};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 874, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_8 = __Pyx_PyObject_AsWritableString(__pyx_t_2); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(4, 874, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":873
 *             return
 * 
 *         self.set_c_triangulation(             # <<<<<<<<<<<<<<
 *             triangulation_from_isomorphism_signature(isosig.encode('ascii')))
 * 
*/
  __pyx_t_5 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->set_c_triangulation(__pyx_v_self, triangulation_from_isomorphism_signature(__pyx_t_8)); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":877
 * 
 *         # Not a valid isomorphism signature, bail
 *         if self.c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             return
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":878
 *         # Not a valid isomorphism signature, bail
 *         if self.c_triangulation == NULL:
 *             return             # <<<<<<<<<<<<<<
 * 
 *         if decoration:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":877
 * 
 *         # Not a valid isomorphism signature, bail
 *         if self.c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             return
 * 
*/
  }

  /* "cython/core/triangulation.pyx":880
 *             return
 * 
 *         if decoration:             # <<<<<<<<<<<<<<
 *             decorated_isosig.set_peripheral_from_decoration(self, decoration)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_decoration); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 880, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":881
 * 
 *         if decoration:
 *             decorated_isosig.set_peripheral_from_decoration(self, decoration)             # <<<<<<<<<<<<<<
 * 
 *         if remove_finite_vertices:
*/
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_decorated_isosig); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_set_peripheral_from_decoration); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_decoration};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 881, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":880
 *             return
 * 
 *         if decoration:             # <<<<<<<<<<<<<<
 *             decorated_isosig.set_peripheral_from_decoration(self, decoration)
 * 
*/
  }

  /* "cython/core/triangulation.pyx":883
 *             decorated_isosig.set_peripheral_from_decoration(self, decoration)
 * 
 *         if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *             self._remove_finite_vertices()
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_remove_finite_vertices); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 883, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":884
 * 
 *         if remove_finite_vertices:
 *             self._remove_finite_vertices()             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __pyx_t_6 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_remove_finite_vertices_2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 884, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":883
 *             decorated_isosig.set_peripheral_from_decoration(self, decoration)
 * 
 *         if remove_finite_vertices:             # <<<<<<<<<<<<<<
 *             self._remove_finite_vertices()
 * 
*/
  }

  /* "cython/core/triangulation.pyx":845
 *             self._remove_finite_vertices()
 * 
 *     def _from_isosig(self, isosig, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation._from_isosig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_match);
  __Pyx_XDECREF(__pyx_v_decoration);
  __Pyx_XDECREF(__pyx_v_isosig);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":888
 * 
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Used by pickle.dumps.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_53__reduce__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_52__reduce__, "\n        Used by pickle.dumps.\n\n        >>> from pickle import loads, dumps\n        >>> from spherogram import random_link\n        >>> M = Manifold('m125')\n        >>> M == loads(dumps(M))\n        True\n        >>> M.dehn_fill((2,3),0)\n        >>> len(dumps(M)) < len(M._to_string())\n        True\n        >>> N = loads(dumps(M))\n        >>> N\n        m125(2,3)(0,0)\n        >>> M.is_isometric_to(N)\n        True\n        >>> M = Manifold('m024')\n        >>> M.is_orientable()\n        False\n        >>> N = loads(dumps(M))\n        >>> N == M\n        True\n        >>> N.volume() == M.volume()\n        True\n        >>> while True:\n        ...    M = random_link(500).exterior()\n        ...    if M.num_tetrahedra() > 256:\n        ...       break\n        ...\n        >>> M == loads(dumps(M))\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_53__reduce__ = {"__reduce__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_53__reduce__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_52__reduce__};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_53__reduce__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_52__reduce__(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_52__reduce__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce__", 0);

  /* "cython/core/triangulation.pyx":921
 *         True
 *         """
 *         return (self.__class__, (self.pickle(),))             # <<<<<<<<<<<<<<
 * 
 *     def pickle(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_pickle_2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 921, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2) != (0)) __PYX_ERR(4, 921, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 921, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(4, 921, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3) != (0)) __PYX_ERR(4, 921, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":888
 * 
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Used by pickle.dumps.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.__reduce__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":923
 *         return (self.__class__, (self.pickle(),))
 * 
 *     def pickle(self):             # <<<<<<<<<<<<<<
 *         try:
 *             return pickle_triangulation(self.c_triangulation)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_55pickle(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_55pickle = {"pickle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_55pickle, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_55pickle(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pickle (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pickle", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pickle", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_54pickle(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_54pickle(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pickle", 0);

  /* "cython/core/triangulation.pyx":924
 * 
 *     def pickle(self):
 *         try:             # <<<<<<<<<<<<<<
 *             return pickle_triangulation(self.c_triangulation)
 *         except ValueError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cython/core/triangulation.pyx":925
 *     def pickle(self):
 *         try:
 *             return pickle_triangulation(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         except ValueError:
 *             # When M has > 255 cusps or does not have integer filling
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __pyx_f_6SnapPy_pickle_triangulation(__pyx_v_self->c_triangulation); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 925, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "cython/core/triangulation.pyx":924
 * 
 *     def pickle(self):
 *         try:             # <<<<<<<<<<<<<<
 *             return pickle_triangulation(self.c_triangulation)
 *         except ValueError:
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":926
 *         try:
 *             return pickle_triangulation(self.c_triangulation)
 *         except ValueError:             # <<<<<<<<<<<<<<
 *             # When M has > 255 cusps or does not have integer filling
 *             # coefficients and curve weights in the interval [-128, 127] we use
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("SnapPy.Triangulation.pickle", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(4, 926, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);

      /* "cython/core/triangulation.pyx":930
 *             # coefficients and curve weights in the interval [-128, 127] we use
 *             # _to_string.
 *             return self._to_string()             # <<<<<<<<<<<<<<
 * 
 *     def _reindex_cusps(self, permutation):
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_9 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_10 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL};
        __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_string, __pyx_callargs+__pyx_t_10, (1-__pyx_t_10) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 930, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __pyx_r = __pyx_t_8;
      __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L6_except_return;
    }
    goto __pyx_L5_except_error;

    /* "cython/core/triangulation.pyx":924
 * 
 *     def pickle(self):
 *         try:             # <<<<<<<<<<<<<<
 *             return pickle_triangulation(self.c_triangulation)
 *         except ValueError:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "cython/core/triangulation.pyx":923
 *         return (self.__class__, (self.pickle(),))
 * 
 *     def pickle(self):             # <<<<<<<<<<<<<<
 *         try:
 *             return pickle_triangulation(self.c_triangulation)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Triangulation.pickle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":932
 *             return self._to_string()
 * 
 *     def _reindex_cusps(self, permutation):             # <<<<<<<<<<<<<<
 *         """
 *         >>> import itertools
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_57_reindex_cusps(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_56_reindex_cusps, "\n        >>> import itertools\n        >>> M = Manifold('L14n62484')\n        >>> ['%.5f' % z.real() for z in M.cusp_info('shape')]\n        ['0.10384', '1.17955', '-1.89674', '0.86324']\n        >>> perms = itertools.permutations(range(4))\n        >>> for perm in perms:\n        ...     shapes = M.cusp_info('shape')\n        ...     M._reindex_cusps(perm)\n        ...     new_shapes = M.cusp_info('shape')\n        ...     for i in range(4):\n        ...         assert new_shapes[perm[i]] == shapes[i]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_57_reindex_cusps = {"_reindex_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_57_reindex_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_56_reindex_cusps};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_57_reindex_cusps(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_permutation = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_reindex_cusps (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_permutation,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 932, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 932, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_reindex_cusps", 0) < (0)) __PYX_ERR(4, 932, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_reindex_cusps", 1, 1, 1, i); __PYX_ERR(4, 932, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 932, __pyx_L3_error)
    }
    __pyx_v_permutation = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_reindex_cusps", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 932, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._reindex_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_56_reindex_cusps(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_permutation);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_56_reindex_cusps(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_permutation) {
  int *__pyx_v_indices;
  int __pyx_v_n;
  int __pyx_v_num;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_reindex_cusps", 0);

  /* "cython/core/triangulation.pyx":947
 *         """
 *         cdef int* indices
 *         cdef int n, num = self.num_cusps()             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 947, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 947, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_num = __pyx_t_4;

  /* "cython/core/triangulation.pyx":948
 *         cdef int* indices
 *         cdef int n, num = self.num_cusps()
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if ( len(permutation) != num or set(permutation) != set(range(num)) ):
*/
  __pyx_t_5 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/triangulation.pyx":949
 *         cdef int n, num = self.num_cusps()
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         if ( len(permutation) != num or set(permutation) != set(range(num)) ):
 *             raise ValueError('Not a valid permutation')
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 949, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 949, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":948
 *         cdef int* indices
 *         cdef int n, num = self.num_cusps()
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if ( len(permutation) != num or set(permutation) != set(range(num)) ):
*/
  }

  /* "cython/core/triangulation.pyx":950
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if ( len(permutation) != num or set(permutation) != set(range(num)) ):             # <<<<<<<<<<<<<<
 *             raise ValueError('Not a valid permutation')
 *         indices = <int *>malloc(num*sizeof(int))
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_permutation); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(4, 950, __pyx_L1_error)
  __pyx_t_7 = (__pyx_t_6 != __pyx_v_num);
  if (!__pyx_t_7) {
  } else {
    __pyx_t_5 = __pyx_t_7;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_1 = PySet_New(__pyx_v_permutation); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = NULL;
  __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_v_num); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_9};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 950, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_9 = PySet_New(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_t_9, Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 950, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(4, 950, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __pyx_t_7;
  __pyx_L5_bool_binop_done:;
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/triangulation.pyx":951
 *             raise ValueError('The Triangulation is empty.')
 *         if ( len(permutation) != num or set(permutation) != set(range(num)) ):
 *             raise ValueError('Not a valid permutation')             # <<<<<<<<<<<<<<
 *         indices = <int *>malloc(num*sizeof(int))
 *         for n in range(num):
*/
    __pyx_t_9 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Not_a_valid_permutation};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 951, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 951, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":950
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if ( len(permutation) != num or set(permutation) != set(range(num)) ):             # <<<<<<<<<<<<<<
 *             raise ValueError('Not a valid permutation')
 *         indices = <int *>malloc(num*sizeof(int))
*/
  }

  /* "cython/core/triangulation.pyx":952
 *         if ( len(permutation) != num or set(permutation) != set(range(num)) ):
 *             raise ValueError('Not a valid permutation')
 *         indices = <int *>malloc(num*sizeof(int))             # <<<<<<<<<<<<<<
 *         for n in range(num):
 *             indices[n] = permutation[n]
*/
  __pyx_v_indices = ((int *)malloc((__pyx_v_num * (sizeof(int)))));

  /* "cython/core/triangulation.pyx":953
 *             raise ValueError('Not a valid permutation')
 *         indices = <int *>malloc(num*sizeof(int))
 *         for n in range(num):             # <<<<<<<<<<<<<<
 *             indices[n] = permutation[n]
 *         reindex_cusps(self.c_triangulation, indices)
*/
  __pyx_t_4 = __pyx_v_num;
  __pyx_t_10 = __pyx_t_4;
  for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {
    __pyx_v_n = __pyx_t_11;

    /* "cython/core/triangulation.pyx":954
 *         indices = <int *>malloc(num*sizeof(int))
 *         for n in range(num):
 *             indices[n] = permutation[n]             # <<<<<<<<<<<<<<
 *         reindex_cusps(self.c_triangulation, indices)
 *         free(indices)
*/
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_permutation, __pyx_v_n, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 954, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 954, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    (__pyx_v_indices[__pyx_v_n]) = __pyx_t_12;
  }

  /* "cython/core/triangulation.pyx":955
 *         for n in range(num):
 *             indices[n] = permutation[n]
 *         reindex_cusps(self.c_triangulation, indices)             # <<<<<<<<<<<<<<
 *         free(indices)
 * 
*/
  reindex_cusps(__pyx_v_self->c_triangulation, __pyx_v_indices);

  /* "cython/core/triangulation.pyx":956
 *             indices[n] = permutation[n]
 *         reindex_cusps(self.c_triangulation, indices)
 *         free(indices)             # <<<<<<<<<<<<<<
 * 
 *     def _get_cusp_indices_and_peripheral_curve_data(self):
*/
  free(__pyx_v_indices);

  /* "cython/core/triangulation.pyx":932
 *             return self._to_string()
 * 
 *     def _reindex_cusps(self, permutation):             # <<<<<<<<<<<<<<
 *         """
 *         >>> import itertools
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Triangulation._reindex_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":958
 *         free(indices)
 * 
 *     def _get_cusp_indices_and_peripheral_curve_data(self):             # <<<<<<<<<<<<<<
 *         cdef int i, j, k, v, f
 *         cdef TriangulationData* data
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_59_get_cusp_indices_and_peripheral_curve_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_59_get_cusp_indices_and_peripheral_curve_data = {"_get_cusp_indices_and_peripheral_curve_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_59_get_cusp_indices_and_peripheral_curve_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_59_get_cusp_indices_and_peripheral_curve_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_get_cusp_indices_and_peripheral_curve_data (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_get_cusp_indices_and_peripheral_curve_data", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_get_cusp_indices_and_peripheral_curve_data", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_58_get_cusp_indices_and_peripheral_curve_data(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_58_get_cusp_indices_and_peripheral_curve_data(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  int __pyx_v_i;
  int __pyx_v_j;
  int __pyx_v_k;
  TriangulationData *__pyx_v_data;
  PyObject *__pyx_v_result_cusp_indices = NULL;
  PyObject *__pyx_v_row = NULL;
  PyObject *__pyx_v_result_curves = NULL;
  int (*__pyx_v_data_ijk)[4];
  int __pyx_9genexpr12__pyx_v_v;
  int __pyx_9genexpr13__pyx_v_v;
  int __pyx_9genexpr13__pyx_v_f;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_get_cusp_indices_and_peripheral_curve_data", 0);

  /* "cython/core/triangulation.pyx":961
 *         cdef int i, j, k, v, f
 *         cdef TriangulationData* data
 *         triangulation_to_data(self.c_triangulation, &data)             # <<<<<<<<<<<<<<
 * 
 *         result_cusp_indices = []
*/
  triangulation_to_data(__pyx_v_self->c_triangulation, (&__pyx_v_data)); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 961, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":963
 *         triangulation_to_data(self.c_triangulation, &data)
 * 
 *         result_cusp_indices = []             # <<<<<<<<<<<<<<
 *         for i in range(self.num_tetrahedra()):
 *             row = [data.tetrahedron_data[i].cusp_index[v]
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result_cusp_indices = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":964
 * 
 *         result_cusp_indices = []
 *         for i in range(self.num_tetrahedra()):             # <<<<<<<<<<<<<<
 *             row = [data.tetrahedron_data[i].cusp_index[v]
 *                    for v in range(4)]
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 964, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 964, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = __pyx_t_4;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "cython/core/triangulation.pyx":965
 *         result_cusp_indices = []
 *         for i in range(self.num_tetrahedra()):
 *             row = [data.tetrahedron_data[i].cusp_index[v]             # <<<<<<<<<<<<<<
 *                    for v in range(4)]
 *             result_cusp_indices.append(row)
*/
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 965, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "cython/core/triangulation.pyx":966
 *         for i in range(self.num_tetrahedra()):
 *             row = [data.tetrahedron_data[i].cusp_index[v]
 *                    for v in range(4)]             # <<<<<<<<<<<<<<
 *             result_cusp_indices.append(row)
 * 
*/
      for (__pyx_t_7 = 0; __pyx_t_7 < 4; __pyx_t_7+=1) {
        __pyx_9genexpr12__pyx_v_v = __pyx_t_7;

        /* "cython/core/triangulation.pyx":965
 *         result_cusp_indices = []
 *         for i in range(self.num_tetrahedra()):
 *             row = [data.tetrahedron_data[i].cusp_index[v]             # <<<<<<<<<<<<<<
 *                    for v in range(4)]
 *             result_cusp_indices.append(row)
*/
        __pyx_t_2 = __Pyx_PyLong_From_int(((__pyx_v_data->tetrahedron_data[__pyx_v_i]).cusp_index[__pyx_9genexpr12__pyx_v_v])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 965, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) __PYX_ERR(4, 965, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
    } /* exit inner scope */
    __Pyx_XDECREF_SET(__pyx_v_row, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":967
 *             row = [data.tetrahedron_data[i].cusp_index[v]
 *                    for v in range(4)]
 *             result_cusp_indices.append(row)             # <<<<<<<<<<<<<<
 * 
 *         result_curves = []
*/
    __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_result_cusp_indices, __pyx_v_row); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(4, 967, __pyx_L1_error)
  }

  /* "cython/core/triangulation.pyx":969
 *             result_cusp_indices.append(row)
 * 
 *         result_curves = []             # <<<<<<<<<<<<<<
 *         for i in range(self.num_tetrahedra()):
 *             for j in range(2):         # meridian, longitude
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result_curves = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":970
 * 
 *         result_curves = []
 *         for i in range(self.num_tetrahedra()):             # <<<<<<<<<<<<<<
 *             for j in range(2):         # meridian, longitude
 *                 for k in range(2):     # righthanded, lefthanded
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 970, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 970, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = __pyx_t_4;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "cython/core/triangulation.pyx":971
 *         result_curves = []
 *         for i in range(self.num_tetrahedra()):
 *             for j in range(2):         # meridian, longitude             # <<<<<<<<<<<<<<
 *                 for k in range(2):     # righthanded, lefthanded
 *                     data_ijk = data.tetrahedron_data[i].curve[j][k]
*/
    for (__pyx_t_7 = 0; __pyx_t_7 < 2; __pyx_t_7+=1) {
      __pyx_v_j = __pyx_t_7;

      /* "cython/core/triangulation.pyx":972
 *         for i in range(self.num_tetrahedra()):
 *             for j in range(2):         # meridian, longitude
 *                 for k in range(2):     # righthanded, lefthanded             # <<<<<<<<<<<<<<
 *                     data_ijk = data.tetrahedron_data[i].curve[j][k]
 *                     row = [data_ijk[v][f] for v in range(4) for f in range(4)]
*/
      for (__pyx_t_9 = 0; __pyx_t_9 < 2; __pyx_t_9+=1) {
        __pyx_v_k = __pyx_t_9;

        /* "cython/core/triangulation.pyx":973
 *             for j in range(2):         # meridian, longitude
 *                 for k in range(2):     # righthanded, lefthanded
 *                     data_ijk = data.tetrahedron_data[i].curve[j][k]             # <<<<<<<<<<<<<<
 *                     row = [data_ijk[v][f] for v in range(4) for f in range(4)]
 *                     result_curves.append(row)
*/
        __pyx_v_data_ijk = (((__pyx_v_data->tetrahedron_data[__pyx_v_i]).curve[__pyx_v_j])[__pyx_v_k]);

        /* "cython/core/triangulation.pyx":974
 *                 for k in range(2):     # righthanded, lefthanded
 *                     data_ijk = data.tetrahedron_data[i].curve[j][k]
 *                     row = [data_ijk[v][f] for v in range(4) for f in range(4)]             # <<<<<<<<<<<<<<
 *                     result_curves.append(row)
 * 
*/
        { /* enter inner scope */
          __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 974, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          for (__pyx_t_10 = 0; __pyx_t_10 < 4; __pyx_t_10+=1) {
            __pyx_9genexpr13__pyx_v_v = __pyx_t_10;
            for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
              __pyx_9genexpr13__pyx_v_f = __pyx_t_11;
              __pyx_t_2 = __Pyx_PyLong_From_int(((__pyx_v_data_ijk[__pyx_9genexpr13__pyx_v_v])[__pyx_9genexpr13__pyx_v_f])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 974, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_2);
              if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) __PYX_ERR(4, 974, __pyx_L1_error)
              __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            }
          }
        } /* exit inner scope */
        __Pyx_XDECREF_SET(__pyx_v_row, ((PyObject*)__pyx_t_1));
        __pyx_t_1 = 0;

        /* "cython/core/triangulation.pyx":975
 *                     data_ijk = data.tetrahedron_data[i].curve[j][k]
 *                     row = [data_ijk[v][f] for v in range(4) for f in range(4)]
 *                     result_curves.append(row)             # <<<<<<<<<<<<<<
 * 
 *         free_triangulation_data(data)
*/
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_result_curves, __pyx_v_row); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(4, 975, __pyx_L1_error)
      }
    }
  }

  /* "cython/core/triangulation.pyx":977
 *                     result_curves.append(row)
 * 
 *         free_triangulation_data(data)             # <<<<<<<<<<<<<<
 *         return (result_cusp_indices, result_curves)
 * 
*/
  free_triangulation_data(__pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 977, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":978
 * 
 *         free_triangulation_data(data)
 *         return (result_cusp_indices, result_curves)             # <<<<<<<<<<<<<<
 * 
 *     def _get_tetrahedra_gluing_data(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_result_cusp_indices);
  __Pyx_GIVEREF(__pyx_v_result_cusp_indices);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result_cusp_indices) != (0)) __PYX_ERR(4, 978, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_result_curves);
  __Pyx_GIVEREF(__pyx_v_result_curves);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_result_curves) != (0)) __PYX_ERR(4, 978, __pyx_L1_error);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":958
 *         free(indices)
 * 
 *     def _get_cusp_indices_and_peripheral_curve_data(self):             # <<<<<<<<<<<<<<
 *         cdef int i, j, k, v, f
 *         cdef TriangulationData* data
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Triangulation._get_cusp_indices_and_peripheral_curve_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result_cusp_indices);
  __Pyx_XDECREF(__pyx_v_row);
  __Pyx_XDECREF(__pyx_v_result_curves);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":980
 *         return (result_cusp_indices, result_curves)
 * 
 *     def _get_tetrahedra_gluing_data(self):             # <<<<<<<<<<<<<<
 *         cdef int i, j, k
 *         cdef TriangulationData* data
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_61_get_tetrahedra_gluing_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_61_get_tetrahedra_gluing_data = {"_get_tetrahedra_gluing_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_61_get_tetrahedra_gluing_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_61_get_tetrahedra_gluing_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_get_tetrahedra_gluing_data (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_get_tetrahedra_gluing_data", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_get_tetrahedra_gluing_data", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_60_get_tetrahedra_gluing_data(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_60_get_tetrahedra_gluing_data(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  int __pyx_v_i;
  TriangulationData *__pyx_v_data;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_neighbors = NULL;
  PyObject *__pyx_v_perms = NULL;
  int __pyx_9genexpr14__pyx_v_j;
  int __pyx_9genexpr15__pyx_v_j;
  int __pyx_9genexpr16__pyx_v_k;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_get_tetrahedra_gluing_data", 0);

  /* "cython/core/triangulation.pyx":983
 *         cdef int i, j, k
 *         cdef TriangulationData* data
 *         triangulation_to_data(self.c_triangulation, &data)             # <<<<<<<<<<<<<<
 *         result = []
 *         for i from 0 <= i < data.num_tetrahedra:
*/
  triangulation_to_data(__pyx_v_self->c_triangulation, (&__pyx_v_data)); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 983, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":984
 *         cdef TriangulationData* data
 *         triangulation_to_data(self.c_triangulation, &data)
 *         result = []             # <<<<<<<<<<<<<<
 *         for i from 0 <= i < data.num_tetrahedra:
 *             neighbors = [data.tetrahedron_data[i].neighbor_index[j]
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":985
 *         triangulation_to_data(self.c_triangulation, &data)
 *         result = []
 *         for i from 0 <= i < data.num_tetrahedra:             # <<<<<<<<<<<<<<
 *             neighbors = [data.tetrahedron_data[i].neighbor_index[j]
 *                          for j in range(4)]
*/
  __pyx_t_2 = __pyx_v_data->num_tetrahedra;
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_2; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":986
 *         result = []
 *         for i from 0 <= i < data.num_tetrahedra:
 *             neighbors = [data.tetrahedron_data[i].neighbor_index[j]             # <<<<<<<<<<<<<<
 *                          for j in range(4)]
 *             perms = [[data.tetrahedron_data[i].gluing[j][k]
*/
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 986, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "cython/core/triangulation.pyx":987
 *         for i from 0 <= i < data.num_tetrahedra:
 *             neighbors = [data.tetrahedron_data[i].neighbor_index[j]
 *                          for j in range(4)]             # <<<<<<<<<<<<<<
 *             perms = [[data.tetrahedron_data[i].gluing[j][k]
 *                       for k in range(4)] for j in range(4)]
*/
      for (__pyx_t_3 = 0; __pyx_t_3 < 4; __pyx_t_3+=1) {
        __pyx_9genexpr14__pyx_v_j = __pyx_t_3;

        /* "cython/core/triangulation.pyx":986
 *         result = []
 *         for i from 0 <= i < data.num_tetrahedra:
 *             neighbors = [data.tetrahedron_data[i].neighbor_index[j]             # <<<<<<<<<<<<<<
 *                          for j in range(4)]
 *             perms = [[data.tetrahedron_data[i].gluing[j][k]
*/
        __pyx_t_4 = __Pyx_PyLong_From_int(((__pyx_v_data->tetrahedron_data[__pyx_v_i]).neighbor_index[__pyx_9genexpr14__pyx_v_j])); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 986, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) __PYX_ERR(4, 986, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    } /* exit inner scope */
    __Pyx_XDECREF_SET(__pyx_v_neighbors, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":988
 *             neighbors = [data.tetrahedron_data[i].neighbor_index[j]
 *                          for j in range(4)]
 *             perms = [[data.tetrahedron_data[i].gluing[j][k]             # <<<<<<<<<<<<<<
 *                       for k in range(4)] for j in range(4)]
 * 
*/
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 988, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "cython/core/triangulation.pyx":989
 *                          for j in range(4)]
 *             perms = [[data.tetrahedron_data[i].gluing[j][k]
 *                       for k in range(4)] for j in range(4)]             # <<<<<<<<<<<<<<
 * 
 *             result.append((neighbors, perms))
*/
      for (__pyx_t_3 = 0; __pyx_t_3 < 4; __pyx_t_3+=1) {
        __pyx_9genexpr15__pyx_v_j = __pyx_t_3;
        { /* enter inner scope */

          /* "cython/core/triangulation.pyx":988
 *             neighbors = [data.tetrahedron_data[i].neighbor_index[j]
 *                          for j in range(4)]
 *             perms = [[data.tetrahedron_data[i].gluing[j][k]             # <<<<<<<<<<<<<<
 *                       for k in range(4)] for j in range(4)]
 * 
*/
          __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 988, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);

          /* "cython/core/triangulation.pyx":989
 *                          for j in range(4)]
 *             perms = [[data.tetrahedron_data[i].gluing[j][k]
 *                       for k in range(4)] for j in range(4)]             # <<<<<<<<<<<<<<
 * 
 *             result.append((neighbors, perms))
*/
          for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
            __pyx_9genexpr16__pyx_v_k = __pyx_t_5;

            /* "cython/core/triangulation.pyx":988
 *             neighbors = [data.tetrahedron_data[i].neighbor_index[j]
 *                          for j in range(4)]
 *             perms = [[data.tetrahedron_data[i].gluing[j][k]             # <<<<<<<<<<<<<<
 *                       for k in range(4)] for j in range(4)]
 * 
*/
            __pyx_t_6 = __Pyx_PyLong_From_int((((__pyx_v_data->tetrahedron_data[__pyx_v_i]).gluing[__pyx_9genexpr15__pyx_v_j])[__pyx_9genexpr16__pyx_v_k])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 988, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_t_6))) __PYX_ERR(4, 988, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          }
        } /* exit inner scope */
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) __PYX_ERR(4, 988, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    } /* exit inner scope */
    __Pyx_XDECREF_SET(__pyx_v_perms, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/triangulation.pyx":991
 *                       for k in range(4)] for j in range(4)]
 * 
 *             result.append((neighbors, perms))             # <<<<<<<<<<<<<<
 *         free_triangulation_data(data)
 *         return result
*/
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 991, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_neighbors);
    __Pyx_GIVEREF(__pyx_v_neighbors);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_neighbors) != (0)) __PYX_ERR(4, 991, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_perms);
    __Pyx_GIVEREF(__pyx_v_perms);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_perms) != (0)) __PYX_ERR(4, 991, __pyx_L1_error);
    __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_result, __pyx_t_1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(4, 991, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "cython/core/triangulation.pyx":992
 * 
 *             result.append((neighbors, perms))
 *         free_triangulation_data(data)             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
  free_triangulation_data(__pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 992, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":993
 *             result.append((neighbors, perms))
 *         free_triangulation_data(data)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def _isomorphisms_to(self, Triangulation other not None):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":980
 *         return (result_cusp_indices, result_curves)
 * 
 *     def _get_tetrahedra_gluing_data(self):             # <<<<<<<<<<<<<<
 *         cdef int i, j, k
 *         cdef TriangulationData* data
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation._get_tetrahedra_gluing_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_neighbors);
  __Pyx_XDECREF(__pyx_v_perms);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":995
 *         return result
 * 
 *     def _isomorphisms_to(self, Triangulation other not None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a complete list of combinatorial isomorphisms between
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_63_isomorphisms_to(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_62_isomorphisms_to, "\n        Returns a complete list of combinatorial isomorphisms between\n        the two triangulations:\n\n        >>> M = Manifold('5^2_1')\n        >>> N = Manifold('5^2_1')\n        >>> N.set_peripheral_curves([[[2,3],[-1,-1]],[[1,1],[0,1]]])\n        >>> isoms = M.isomorphisms_to(N)\n        >>> isoms[6]\n        0 -> 1  1 -> 0\n        [ 1 0]  [-1 1]\n        [-1 1]  [-3 2]\n        Does not extend to link\n\n        Each transformation between cusps is given by a matrix which\n        acts on the left.  That is, the two *columns* of the matrix\n        give the image of the meridian and longitude respectively.  In\n        the above example, the meridian of cusp 0 is sent to the\n        meridian of cusp 1.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_63_isomorphisms_to = {"_isomorphisms_to", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_63_isomorphisms_to, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_62_isomorphisms_to};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_63_isomorphisms_to(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_isomorphisms_to (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 995, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 995, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_isomorphisms_to", 0) < (0)) __PYX_ERR(4, 995, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_isomorphisms_to", 1, 1, 1, i); __PYX_ERR(4, 995, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 995, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_6SnapPy_Triangulation *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_isomorphisms_to", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 995, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._isomorphisms_to", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, 0, "other", 0))) __PYX_ERR(4, 995, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_62_isomorphisms_to(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_62_isomorphisms_to(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_other) {
  IsometryList *__pyx_v_isometries;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_isomorphisms_to", 0);

  /* "cython/core/triangulation.pyx":1016
 *         meridian of cusp 1.
 *         """
 *         cdef IsometryList *isometries = NULL             # <<<<<<<<<<<<<<
 * 
 *         if self.c_triangulation is NULL or other.c_triangulation is NULL:
*/
  __pyx_v_isometries = NULL;

  /* "cython/core/triangulation.pyx":1018
 *         cdef IsometryList *isometries = NULL
 * 
 *         if self.c_triangulation is NULL or other.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('Manifolds must be non-empty.')
 * 
*/
  __pyx_t_2 = (__pyx_v_self->c_triangulation == NULL);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_other->c_triangulation == NULL);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1019
 * 
 *         if self.c_triangulation is NULL or other.c_triangulation is NULL:
 *             raise ValueError('Manifolds must be non-empty.')             # <<<<<<<<<<<<<<
 * 
 *         compute_cusped_isomorphisms(self.c_triangulation,
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Manifolds_must_be_non_empty};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1019, __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_ERR(4, 1019, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1018
 *         cdef IsometryList *isometries = NULL
 * 
 *         if self.c_triangulation is NULL or other.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('Manifolds must be non-empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1021
 *             raise ValueError('Manifolds must be non-empty.')
 * 
 *         compute_cusped_isomorphisms(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                     other.c_triangulation,
 *                                     &isometries,
*/
  compute_cusped_isomorphisms(__pyx_v_self->c_triangulation, __pyx_v_other->c_triangulation, (&__pyx_v_isometries), NULL);

  /* "cython/core/triangulation.pyx":1026
 *                                     NULL)
 * 
 *         if isometry_list_size(isometries) == 0:             # <<<<<<<<<<<<<<
 *             result = []
 *         else:
*/
  __pyx_t_6 = isometry_list_size(__pyx_v_isometries); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1026, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_6 == 0);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1027
 * 
 *         if isometry_list_size(isometries) == 0:
 *             result = []             # <<<<<<<<<<<<<<
 *         else:
 *             result = IsometryListToIsometries(isometries)
*/
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_result = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":1026
 *                                     NULL)
 * 
 *         if isometry_list_size(isometries) == 0:             # <<<<<<<<<<<<<<
 *             result = []
 *         else:
*/
    goto __pyx_L6;
  }

  /* "cython/core/triangulation.pyx":1029
 *             result = []
 *         else:
 *             result = IsometryListToIsometries(isometries)             # <<<<<<<<<<<<<<
 *         free_isometry_list(isometries)
 *         return result
*/
  /*else*/ {
    __pyx_t_3 = __pyx_f_6SnapPy_IsometryListToIsometries(__pyx_v_isometries); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1029, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_result = __pyx_t_3;
    __pyx_t_3 = 0;
  }
  __pyx_L6:;

  /* "cython/core/triangulation.pyx":1030
 *         else:
 *             result = IsometryListToIsometries(isometries)
 *         free_isometry_list(isometries)             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
  free_isometry_list(__pyx_v_isometries); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1030, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":1031
 *             result = IsometryListToIsometries(isometries)
 *         free_isometry_list(isometries)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def isomorphisms_to(self, Triangulation other not None):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":995
 *         return result
 * 
 *     def _isomorphisms_to(self, Triangulation other not None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a complete list of combinatorial isomorphisms between
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation._isomorphisms_to", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1033
 *         return result
 * 
 *     def isomorphisms_to(self, Triangulation other not None):             # <<<<<<<<<<<<<<
 *         """
 *         This is only here to make the tests that use SnapPy.Triangulation work.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_65isomorphisms_to(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_64isomorphisms_to, "\n        This is only here to make the tests that use SnapPy.Triangulation work.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_65isomorphisms_to = {"isomorphisms_to", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_65isomorphisms_to, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_64isomorphisms_to};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_65isomorphisms_to(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_other = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("isomorphisms_to (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1033, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1033, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "isomorphisms_to", 0) < (0)) __PYX_ERR(4, 1033, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("isomorphisms_to", 1, 1, 1, i); __PYX_ERR(4, 1033, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1033, __pyx_L3_error)
    }
    __pyx_v_other = ((struct __pyx_obj_6SnapPy_Triangulation *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("isomorphisms_to", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 1033, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.isomorphisms_to", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, 0, "other", 0))) __PYX_ERR(4, 1033, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_64isomorphisms_to(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_other);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_64isomorphisms_to(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("isomorphisms_to", 0);

  /* "cython/core/triangulation.pyx":1037
 *         This is only here to make the tests that use SnapPy.Triangulation work.
 *         """
 *         return self._isomorphisms_to(other)             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_other)};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_isomorphisms_to, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1033
 *         return result
 * 
 *     def isomorphisms_to(self, Triangulation other not None):             # <<<<<<<<<<<<<<
 *         """
 *         This is only here to make the tests that use SnapPy.Triangulation work.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Triangulation.isomorphisms_to", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1039
 *         return self._isomorphisms_to(other)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is not NULL:
 *             free_triangulation(self.c_triangulation)
*/

/* Python wrapper */
static void __pyx_pw_6SnapPy_13Triangulation_67__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_6SnapPy_13Triangulation_67__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_6SnapPy_13Triangulation_66__dealloc__(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_6SnapPy_13Triangulation_66__dealloc__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cython/core/triangulation.pyx":1040
 * 
 *     def __dealloc__(self):
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(self.c_triangulation)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1041
 *     def __dealloc__(self):
 *         if self.c_triangulation is not NULL:
 *             free_triangulation(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     def __richcmp__(Triangulation self, Triangulation other, op):
*/
    free_triangulation(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1041, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1040
 * 
 *     def __dealloc__(self):
 *         if self.c_triangulation is not NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(self.c_triangulation)
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1039
 *         return self._isomorphisms_to(other)
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is not NULL:
 *             free_triangulation(self.c_triangulation)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("SnapPy.Triangulation.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
}

/* "cython/core/triangulation.pyx":1043
 *             free_triangulation(self.c_triangulation)
 * 
 *     def __richcmp__(Triangulation self, Triangulation other, op):             # <<<<<<<<<<<<<<
 *         """
 *         Two triangulations are equal if they are combinatorially
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_69__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_arg_op); /*proto*/
static PyObject *__pyx_pw_6SnapPy_13Triangulation_69__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_arg_op) {
  PyObject *__pyx_v_op = 0;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__richcmp__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_v_op = __Pyx_PyLong_From_int(__pyx_arg_op); if (unlikely(!__pyx_v_op)) __PYX_ERR(4, 1043, __pyx_L3_error)
  __Pyx_GOTREF(__pyx_v_op);
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("SnapPy.Triangulation.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, 1, "other", 0))) __PYX_ERR(4, 1043, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_68__richcmp__(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_other), ((PyObject *)__pyx_v_op));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_DECREF(__pyx_v_op);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_68__richcmp__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_other, PyObject *__pyx_v_op) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Boolean __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__richcmp__", 0);

  /* "cython/core/triangulation.pyx":1057
 *         ValueError: Can't compare triangulations of manifolds with Dehn fillings.
 *         """
 *         if op != 2:             # <<<<<<<<<<<<<<
 *             return NotImplemented
 *         if type(self) != type(other):
*/
  __pyx_t_1 = (__Pyx_PyLong_BoolNeObjC(__pyx_v_op, __pyx_mstate_global->__pyx_int_2, 2, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1057, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1058
 *         """
 *         if op != 2:
 *             return NotImplemented             # <<<<<<<<<<<<<<
 *         if type(self) != type(other):
 *             return False
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_builtin_NotImplemented);
    __pyx_r = __pyx_builtin_NotImplemented;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1057
 *         ValueError: Can't compare triangulations of manifolds with Dehn fillings.
 *         """
 *         if op != 2:             # <<<<<<<<<<<<<<
 *             return NotImplemented
 *         if type(self) != type(other):
*/
  }

  /* "cython/core/triangulation.pyx":1059
 *         if op != 2:
 *             return NotImplemented
 *         if type(self) != type(other):             # <<<<<<<<<<<<<<
 *             return False
 *         if False in ( self.cusp_info('is_complete') +
*/
  __pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))), ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_other))), Py_NE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1059, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1059, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1060
 *             return NotImplemented
 *         if type(self) != type(other):
 *             return False             # <<<<<<<<<<<<<<
 *         if False in ( self.cusp_info('is_complete') +
 *                       other.cusp_info('is_complete') ):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1059
 *         if op != 2:
 *             return NotImplemented
 *         if type(self) != type(other):             # <<<<<<<<<<<<<<
 *             return False
 *         if False in ( self.cusp_info('is_complete') +
*/
  }

  /* "cython/core/triangulation.pyx":1061
 *         if type(self) != type(other):
 *             return False
 *         if False in ( self.cusp_info('is_complete') +             # <<<<<<<<<<<<<<
 *                       other.cusp_info('is_complete') ):
 *             raise ValueError("Can't compare triangulations of manifolds "
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_is_complete};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }

  /* "cython/core/triangulation.pyx":1062
 *             return False
 *         if False in ( self.cusp_info('is_complete') +
 *                       other.cusp_info('is_complete') ):             # <<<<<<<<<<<<<<
 *             raise ValueError("Can't compare triangulations of manifolds "
 *                              "with Dehn fillings.")
*/
  __pyx_t_5 = ((PyObject *)__pyx_v_other);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_complete};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1062, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }

  /* "cython/core/triangulation.pyx":1061
 *         if type(self) != type(other):
 *             return False
 *         if False in ( self.cusp_info('is_complete') +             # <<<<<<<<<<<<<<
 *                       other.cusp_info('is_complete') ):
 *             raise ValueError("Can't compare triangulations of manifolds "
*/
  __pyx_t_5 = PyNumber_Add(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(Py_False, __pyx_t_5, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1061, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1063
 *         if False in ( self.cusp_info('is_complete') +
 *                       other.cusp_info('is_complete') ):
 *             raise ValueError("Can't compare triangulations of manifolds "             # <<<<<<<<<<<<<<
 *                              "with Dehn fillings.")
 *         return bool(same_triangulation(self.c_triangulation,
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Can_t_compare_triangulations_of};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1063, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_Raise(__pyx_t_5, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_ERR(4, 1063, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1061
 *         if type(self) != type(other):
 *             return False
 *         if False in ( self.cusp_info('is_complete') +             # <<<<<<<<<<<<<<
 *                       other.cusp_info('is_complete') ):
 *             raise ValueError("Can't compare triangulations of manifolds "
*/
  }

  /* "cython/core/triangulation.pyx":1065
 *             raise ValueError("Can't compare triangulations of manifolds "
 *                              "with Dehn fillings.")
 *         return bool(same_triangulation(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                        other.c_triangulation))
 * 
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/triangulation.pyx":1066
 *                              "with Dehn fillings.")
 *         return bool(same_triangulation(self.c_triangulation,
 *                                        other.c_triangulation))             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_6 = same_triangulation(__pyx_v_self->c_triangulation, __pyx_v_other->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1065, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":1065
 *             raise ValueError("Can't compare triangulations of manifolds "
 *                              "with Dehn fillings.")
 *         return bool(same_triangulation(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                        other.c_triangulation))
 * 
*/
  __pyx_t_5 = __Pyx_PyBool_FromLong((!(!(__pyx_t_6 != 0)))); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1043
 *             free_triangulation(self.c_triangulation)
 * 
 *     def __richcmp__(Triangulation self, Triangulation other, op):             # <<<<<<<<<<<<<<
 *         """
 *         Two triangulations are equal if they are combinatorially
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.Triangulation.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1068
 *                                        other.c_triangulation))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is NULL:
 *             return 'Empty Triangulation'
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_71__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_13Triangulation_71__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_70__repr__(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_70__repr__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_v_repr = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_info = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/triangulation.pyx":1069
 * 
 *     def __repr__(self):
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 'Empty Triangulation'
 *         else:
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1070
 *     def __repr__(self):
 *         if self.c_triangulation is NULL:
 *             return 'Empty Triangulation'             # <<<<<<<<<<<<<<
 *         else:
 *             repr = self.name()
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Empty_Triangulation);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u_Empty_Triangulation;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1069
 * 
 *     def __repr__(self):
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 'Empty Triangulation'
 *         else:
*/
  }

  /* "cython/core/triangulation.pyx":1072
 *             return 'Empty Triangulation'
 *         else:
 *             repr = self.name()             # <<<<<<<<<<<<<<
 *             for i in range(self.num_cusps()):
 *                 info = self.cusp_info(i)
*/
  /*else*/ {
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1072, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_repr = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1073
 *         else:
 *             repr = self.name()
 *             for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                 info = self.cusp_info(i)
 *                 if info.is_complete:
*/
    __pyx_t_3 = NULL;
    __pyx_t_6 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1073, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_5};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1073, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1073, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_7(__pyx_t_5);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1073, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":1074
 *             repr = self.name()
 *             for i in range(self.num_cusps()):
 *                 info = self.cusp_info(i)             # <<<<<<<<<<<<<<
 *                 if info.is_complete:
 *                     repr += '(0,0)'
*/
      __pyx_t_3 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_i};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1074, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_XDECREF_SET(__pyx_v_info, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":1075
 *             for i in range(self.num_cusps()):
 *                 info = self.cusp_info(i)
 *                 if info.is_complete:             # <<<<<<<<<<<<<<
 *                     repr += '(0,0)'
 *                 else:
*/
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_info, __pyx_mstate_global->__pyx_n_u_is_complete); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1075, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1075, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":1076
 *                 info = self.cusp_info(i)
 *                 if info.is_complete:
 *                     repr += '(0,0)'             # <<<<<<<<<<<<<<
 *                 else:
 *                     repr += '(%g,%g)'% info['filling']
*/
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_repr, __pyx_mstate_global->__pyx_kp_u_0_0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1076, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF_SET(__pyx_v_repr, __pyx_t_2);
        __pyx_t_2 = 0;

        /* "cython/core/triangulation.pyx":1075
 *             for i in range(self.num_cusps()):
 *                 info = self.cusp_info(i)
 *                 if info.is_complete:             # <<<<<<<<<<<<<<
 *                     repr += '(0,0)'
 *                 else:
*/
        goto __pyx_L6;
      }

      /* "cython/core/triangulation.pyx":1078
 *                     repr += '(0,0)'
 *                 else:
 *                     repr += '(%g,%g)'% info['filling']             # <<<<<<<<<<<<<<
 *             return repr
 * 
*/
      /*else*/ {
        __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_info, __pyx_mstate_global->__pyx_n_u_filling); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1078, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_g_g, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1078, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_repr, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1078, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF_SET(__pyx_v_repr, __pyx_t_2);
        __pyx_t_2 = 0;
      }
      __pyx_L6:;

      /* "cython/core/triangulation.pyx":1073
 *         else:
 *             repr = self.name()
 *             for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                 info = self.cusp_info(i)
 *                 if info.is_complete:
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":1079
 *                 else:
 *                     repr += '(%g,%g)'% info['filling']
 *             return repr             # <<<<<<<<<<<<<<
 * 
 *     def name(self) -> str:
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_repr);
    __pyx_r = __pyx_v_repr;
    goto __pyx_L0;
  }

  /* "cython/core/triangulation.pyx":1068
 *                                        other.c_triangulation))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is NULL:
 *             return 'Empty Triangulation'
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_repr);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_info);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1081
 *             return repr
 * 
 *     def name(self) -> str:             # <<<<<<<<<<<<<<
 *         """
 *         Return the name of the triangulation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_73name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_72name, "\n        Return the name of the triangulation.\n\n        >>> M = Triangulation('4_1')\n        >>> M.name()\n        '4_1'\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_73name = {"name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_73name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_72name};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_73name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("name (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("name", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("name", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_72name(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_72name(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  char *__pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("name", 0);

  /* "cython/core/triangulation.pyx":1089
 *         '4_1'
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return
 *         return to_str(get_triangulation_name(self.c_triangulation))
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1090
 *         """
 *         if self.c_triangulation is NULL:
 *             return             # <<<<<<<<<<<<<<
 *         return to_str(get_triangulation_name(self.c_triangulation))
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1089
 *         '4_1'
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return
 *         return to_str(get_triangulation_name(self.c_triangulation))
*/
  }

  /* "cython/core/triangulation.pyx":1091
 *         if self.c_triangulation is NULL:
 *             return
 *         return to_str(get_triangulation_name(self.c_triangulation))             # <<<<<<<<<<<<<<
 * 
 *     def set_name(self, new_name : str) -> None:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_to_str); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = get_triangulation_name(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1091, __pyx_L1_error)
  __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(4, 1091, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1081
 *             return repr
 * 
 *     def name(self) -> str:             # <<<<<<<<<<<<<<
 *         """
 *         Return the name of the triangulation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation.name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1093
 *         return to_str(get_triangulation_name(self.c_triangulation))
 * 
 *     def set_name(self, new_name : str) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Give the triangulation a new name.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_75set_name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_74set_name, "\n        Give the triangulation a new name.\n\n        >>> M = Triangulation('4_1')\n        >>> M.set_name('figure-eight-comp')\n        >>> M\n        figure-eight-comp(0,0)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_75set_name = {"set_name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_75set_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_74set_name};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_75set_name(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_new_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_name (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_new_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1093, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1093, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_name", 0) < (0)) __PYX_ERR(4, 1093, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_name", 1, 1, 1, i); __PYX_ERR(4, 1093, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1093, __pyx_L3_error)
    }
    __pyx_v_new_name = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_name", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 1093, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.set_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_new_name), (&PyUnicode_Type), 0, "new_name", 2))) __PYX_ERR(4, 1093, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_74set_name(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_new_name);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_74set_name(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_new_name) {
  PyObject *__pyx_v_b_new_name = NULL;
  char *__pyx_v_c_new_name;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  char *__pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_name", 0);

  /* "cython/core/triangulation.pyx":1102
 *         figure-eight-comp(0,0)
 *         """
 *         b_new_name = to_byte_str(new_name)             # <<<<<<<<<<<<<<
 *         cdef char* c_new_name = b_new_name
 *         if self.c_triangulation is NULL:
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_new_name};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_b_new_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":1103
 *         """
 *         b_new_name = to_byte_str(new_name)
 *         cdef char* c_new_name = b_new_name             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The empty triangulation has no name.')
*/
  __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_v_b_new_name); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(4, 1103, __pyx_L1_error)
  __pyx_v_c_new_name = __pyx_t_5;

  /* "cython/core/triangulation.pyx":1104
 *         b_new_name = to_byte_str(new_name)
 *         cdef char* c_new_name = b_new_name
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The empty triangulation has no name.')
 *         set_triangulation_name(self.c_triangulation, c_new_name)
*/
  __pyx_t_6 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_6)) {

    /* "cython/core/triangulation.pyx":1105
 *         cdef char* c_new_name = b_new_name
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The empty triangulation has no name.')             # <<<<<<<<<<<<<<
 *         set_triangulation_name(self.c_triangulation, c_new_name)
 * 
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_empty_triangulation_has_no_n};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1105, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 1105, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1104
 *         b_new_name = to_byte_str(new_name)
 *         cdef char* c_new_name = b_new_name
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The empty triangulation has no name.')
 *         set_triangulation_name(self.c_triangulation, c_new_name)
*/
  }

  /* "cython/core/triangulation.pyx":1106
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The empty triangulation has no name.')
 *         set_triangulation_name(self.c_triangulation, c_new_name)             # <<<<<<<<<<<<<<
 * 
 *     def DT_code(self, alpha=False, flips=False):
*/
  set_triangulation_name(__pyx_v_self->c_triangulation, __pyx_v_c_new_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1106, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":1093
 *         return to_str(get_triangulation_name(self.c_triangulation))
 * 
 *     def set_name(self, new_name : str) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Give the triangulation a new name.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.set_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_b_new_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1108
 *         set_triangulation_name(self.c_triangulation, c_new_name)
 * 
 *     def DT_code(self, alpha=False, flips=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the Dowker-Thistlethwaite code of this link complement,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_77DT_code(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_76DT_code, "\n        Return the Dowker-Thistlethwaite code of this link complement,\n        if it is a link complement. The DT code is intended to be an\n        immutable attribute, for use with knot and link exteriors\n        only, which is set only when the manifold was created.\n\n        Here is the Whitehead link:\n\n        >>> M = Manifold('L5a1')\n        >>> M.DT_code()\n        [(6, 8), (2, 10, 4)]\n        >>> M.DT_code(alpha=True)\n        'ebbccdaeb'\n        >>> M.DT_code(alpha=True, flips=True)\n        'ebbccdaeb.01110'\n        >>> M.DT_code(flips=True)\n        ([(6, 8), (2, 10, 4)], [0, 1, 1, 1, 0])\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_77DT_code = {"DT_code", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_77DT_code, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_76DT_code};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_77DT_code(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_alpha = 0;
  PyObject *__pyx_v_flips = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("DT_code (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_alpha,&__pyx_mstate_global->__pyx_n_u_flips,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1108, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "DT_code", 0) < (0)) __PYX_ERR(4, 1108, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_alpha = values[0];
    __pyx_v_flips = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("DT_code", 0, 0, 2, __pyx_nargs); __PYX_ERR(4, 1108, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.DT_code", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_76DT_code(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_alpha, __pyx_v_flips);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_76DT_code(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_alpha, PyObject *__pyx_v_flips) {
  PyObject *__pyx_v_codec = NULL;
  PyObject *__pyx_9genexpr17__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("DT_code", 0);

  /* "cython/core/triangulation.pyx":1127
 *         ([(6, 8), (2, 10, 4)], [0, 1, 1, 1, 0])
 *         """
 *         codec = self._DTcode             # <<<<<<<<<<<<<<
 *         if codec is None:
 *             return None
*/
  __pyx_t_1 = __pyx_v_self->_DTcode;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_codec = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":1128
 *         """
 *         codec = self._DTcode
 *         if codec is None:             # <<<<<<<<<<<<<<
 *             return None
 *         elif not isinstance(codec, spherogram.DTcodec):
*/
  __pyx_t_2 = (__pyx_v_codec == Py_None);
  if (__pyx_t_2) {

    /* "cython/core/triangulation.pyx":1129
 *         codec = self._DTcode
 *         if codec is None:
 *             return None             # <<<<<<<<<<<<<<
 *         elif not isinstance(codec, spherogram.DTcodec):
 *             self._DTcode = codec = spherogram.DTcodec(codec)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1128
 *         """
 *         codec = self._DTcode
 *         if codec is None:             # <<<<<<<<<<<<<<
 *             return None
 *         elif not isinstance(codec, spherogram.DTcodec):
*/
  }

  /* "cython/core/triangulation.pyx":1130
 *         if codec is None:
 *             return None
 *         elif not isinstance(codec, spherogram.DTcodec):             # <<<<<<<<<<<<<<
 *             self._DTcode = codec = spherogram.DTcodec(codec)
 *         if alpha:
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_codec, __pyx_t_3); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(4, 1130, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = (!__pyx_t_2);
  if (__pyx_t_4) {

    /* "cython/core/triangulation.pyx":1131
 *             return None
 *         elif not isinstance(codec, spherogram.DTcodec):
 *             self._DTcode = codec = spherogram.DTcodec(codec)             # <<<<<<<<<<<<<<
 *         if alpha:
 *             return codec.encode(header=False, flips=flips)
*/
    __pyx_t_1 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_1);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_codec};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1131, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->_DTcode);
    __Pyx_DECREF(__pyx_v_self->_DTcode);
    __pyx_v_self->_DTcode = __pyx_t_3;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_codec, __pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":1130
 *         if codec is None:
 *             return None
 *         elif not isinstance(codec, spherogram.DTcodec):             # <<<<<<<<<<<<<<
 *             self._DTcode = codec = spherogram.DTcodec(codec)
 *         if alpha:
*/
  }

  /* "cython/core/triangulation.pyx":1132
 *         elif not isinstance(codec, spherogram.DTcodec):
 *             self._DTcode = codec = spherogram.DTcodec(codec)
 *         if alpha:             # <<<<<<<<<<<<<<
 *             return codec.encode(header=False, flips=flips)
 *         else:
*/
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_alpha); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(4, 1132, __pyx_L1_error)
  if (__pyx_t_4) {

    /* "cython/core/triangulation.pyx":1133
 *             self._DTcode = codec = spherogram.DTcodec(codec)
 *         if alpha:
 *             return codec.encode(header=False, flips=flips)             # <<<<<<<<<<<<<<
 *         else:
 *             if flips:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = __pyx_v_codec;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_6, NULL};
      __pyx_t_1 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1133, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_header, Py_False, __pyx_t_1, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 1133, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_flips, __pyx_v_flips, __pyx_t_1, __pyx_callargs+1, 1) < (0)) __PYX_ERR(4, 1133, __pyx_L1_error)
      __pyx_t_3 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_1);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1133, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1132
 *         elif not isinstance(codec, spherogram.DTcodec):
 *             self._DTcode = codec = spherogram.DTcodec(codec)
 *         if alpha:             # <<<<<<<<<<<<<<
 *             return codec.encode(header=False, flips=flips)
 *         else:
*/
  }

  /* "cython/core/triangulation.pyx":1135
 *             return codec.encode(header=False, flips=flips)
 *         else:
 *             if flips:             # <<<<<<<<<<<<<<
 *                 return codec.code, [int(x) for x in codec.flips]
 *             else:
*/
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_flips); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(4, 1135, __pyx_L1_error)
    if (__pyx_t_4) {

      /* "cython/core/triangulation.pyx":1136
 *         else:
 *             if flips:
 *                 return codec.code, [int(x) for x in codec.flips]             # <<<<<<<<<<<<<<
 *             else:
 *                 return codec.code
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_codec, __pyx_mstate_global->__pyx_n_u_code); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      { /* enter inner scope */
        __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1136, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_codec, __pyx_mstate_global->__pyx_n_u_flips); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1136, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (likely(PyList_CheckExact(__pyx_t_6)) || PyTuple_CheckExact(__pyx_t_6)) {
          __pyx_t_5 = __pyx_t_6; __Pyx_INCREF(__pyx_t_5);
          __pyx_t_8 = 0;
          __pyx_t_9 = NULL;
        } else {
          __pyx_t_8 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1136, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1136, __pyx_L8_error)
        }
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        for (;;) {
          if (likely(!__pyx_t_9)) {
            if (likely(PyList_CheckExact(__pyx_t_5))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1136, __pyx_L8_error)
                #endif
                if (__pyx_t_8 >= __pyx_temp) break;
              }
              __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_8;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1136, __pyx_L8_error)
                #endif
                if (__pyx_t_8 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_8));
              #else
              __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_8);
              #endif
              ++__pyx_t_8;
            }
            if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1136, __pyx_L8_error)
          } else {
            __pyx_t_6 = __pyx_t_9(__pyx_t_5);
            if (unlikely(!__pyx_t_6)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1136, __pyx_L8_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_XDECREF_SET(__pyx_9genexpr17__pyx_v_x, __pyx_t_6);
          __pyx_t_6 = 0;
          __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_9genexpr17__pyx_v_x); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1136, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_6);
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(4, 1136, __pyx_L8_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_9genexpr17__pyx_v_x); __pyx_9genexpr17__pyx_v_x = 0;
        goto __pyx_L12_exit_scope;
        __pyx_L8_error:;
        __Pyx_XDECREF(__pyx_9genexpr17__pyx_v_x); __pyx_9genexpr17__pyx_v_x = 0;
        goto __pyx_L1_error;
        __pyx_L12_exit_scope:;
      } /* exit inner scope */
      __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1136, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_3);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3) != (0)) __PYX_ERR(4, 1136, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1) != (0)) __PYX_ERR(4, 1136, __pyx_L1_error);
      __pyx_t_3 = 0;
      __pyx_t_1 = 0;
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      goto __pyx_L0;

      /* "cython/core/triangulation.pyx":1135
 *             return codec.encode(header=False, flips=flips)
 *         else:
 *             if flips:             # <<<<<<<<<<<<<<
 *                 return codec.code, [int(x) for x in codec.flips]
 *             else:
*/
    }

    /* "cython/core/triangulation.pyx":1138
 *                 return codec.code, [int(x) for x in codec.flips]
 *             else:
 *                 return codec.code             # <<<<<<<<<<<<<<
 * 
 *     def _set_DTcode(self, code, lazy=True):
*/
    /*else*/ {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_codec, __pyx_mstate_global->__pyx_n_u_code); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1138, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      goto __pyx_L0;
    }
  }

  /* "cython/core/triangulation.pyx":1108
 *         set_triangulation_name(self.c_triangulation, c_new_name)
 * 
 *     def DT_code(self, alpha=False, flips=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the Dowker-Thistlethwaite code of this link complement,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation.DT_code", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_codec);
  __Pyx_XDECREF(__pyx_9genexpr17__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1140
 *                 return codec.code
 * 
 *     def _set_DTcode(self, code, lazy=True):             # <<<<<<<<<<<<<<
 *         if not lazy and not isinstance(code, spherogram.DTcodec):
 *             code = spherogram.DTcodec(code)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_79_set_DTcode(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_79_set_DTcode = {"_set_DTcode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_79_set_DTcode, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_79_set_DTcode(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_v_lazy = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_set_DTcode (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_code,&__pyx_mstate_global->__pyx_n_u_lazy,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1140, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1140, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1140, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_set_DTcode", 0) < (0)) __PYX_ERR(4, 1140, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_set_DTcode", 0, 1, 2, i); __PYX_ERR(4, 1140, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1140, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1140, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_code = values[0];
    __pyx_v_lazy = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_set_DTcode", 0, 1, 2, __pyx_nargs); __PYX_ERR(4, 1140, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._set_DTcode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_78_set_DTcode(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_code, __pyx_v_lazy);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_78_set_DTcode(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_code, PyObject *__pyx_v_lazy) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_set_DTcode", 0);
  __Pyx_INCREF(__pyx_v_code);

  /* "cython/core/triangulation.pyx":1141
 * 
 *     def _set_DTcode(self, code, lazy=True):
 *         if not lazy and not isinstance(code, spherogram.DTcodec):             # <<<<<<<<<<<<<<
 *             code = spherogram.DTcodec(code)
 *         self._DTcode = code
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_lazy); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 1141, __pyx_L1_error)
  __pyx_t_3 = (!__pyx_t_2);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = PyObject_IsInstance(__pyx_v_code, __pyx_t_5); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(4, 1141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_2 = (!__pyx_t_3);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1142
 *     def _set_DTcode(self, code, lazy=True):
 *         if not lazy and not isinstance(code, spherogram.DTcodec):
 *             code = spherogram.DTcodec(code)             # <<<<<<<<<<<<<<
 *         self._DTcode = code
 * 
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_spherogram); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DTcodec); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_8 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_8 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_code};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1142, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF_SET(__pyx_v_code, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":1141
 * 
 *     def _set_DTcode(self, code, lazy=True):
 *         if not lazy and not isinstance(code, spherogram.DTcodec):             # <<<<<<<<<<<<<<
 *             code = spherogram.DTcodec(code)
 *         self._DTcode = code
*/
  }

  /* "cython/core/triangulation.pyx":1143
 *         if not lazy and not isinstance(code, spherogram.DTcodec):
 *             code = spherogram.DTcodec(code)
 *         self._DTcode = code             # <<<<<<<<<<<<<<
 * 
 *     def _set_PDcode(self, code):
*/
  __Pyx_INCREF(__pyx_v_code);
  __Pyx_GIVEREF(__pyx_v_code);
  __Pyx_GOTREF(__pyx_v_self->_DTcode);
  __Pyx_DECREF(__pyx_v_self->_DTcode);
  __pyx_v_self->_DTcode = __pyx_v_code;

  /* "cython/core/triangulation.pyx":1140
 *                 return codec.code
 * 
 *     def _set_DTcode(self, code, lazy=True):             # <<<<<<<<<<<<<<
 *         if not lazy and not isinstance(code, spherogram.DTcodec):
 *             code = spherogram.DTcodec(code)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation._set_DTcode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_code);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1145
 *         self._DTcode = code
 * 
 *     def _set_PDcode(self, code):             # <<<<<<<<<<<<<<
 *         self._PDcode = code
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_81_set_PDcode(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_81_set_PDcode = {"_set_PDcode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_81_set_PDcode, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_81_set_PDcode(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_code = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_set_PDcode (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_code,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1145, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1145, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_set_PDcode", 0) < (0)) __PYX_ERR(4, 1145, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_set_PDcode", 1, 1, 1, i); __PYX_ERR(4, 1145, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1145, __pyx_L3_error)
    }
    __pyx_v_code = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_set_PDcode", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 1145, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._set_PDcode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_80_set_PDcode(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_code);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_80_set_PDcode(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_code) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_set_PDcode", 0);

  /* "cython/core/triangulation.pyx":1146
 * 
 *     def _set_PDcode(self, code):
 *         self._PDcode = code             # <<<<<<<<<<<<<<
 * 
 *     def num_tetrahedra(self) -> int:
*/
  __Pyx_INCREF(__pyx_v_code);
  __Pyx_GIVEREF(__pyx_v_code);
  __Pyx_GOTREF(__pyx_v_self->_PDcode);
  __Pyx_DECREF(__pyx_v_self->_PDcode);
  __pyx_v_self->_PDcode = __pyx_v_code;

  /* "cython/core/triangulation.pyx":1145
 *         self._DTcode = code
 * 
 *     def _set_PDcode(self, code):             # <<<<<<<<<<<<<<
 *         self._PDcode = code
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1148
 *         self._PDcode = code
 * 
 *     def num_tetrahedra(self) -> int:             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of tetrahedra in the triangulation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_83num_tetrahedra(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_82num_tetrahedra, "\n        Return the number of tetrahedra in the triangulation.\n\n        >>> M = Triangulation('m004')\n        >>> M.num_tetrahedra()\n        2\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_83num_tetrahedra = {"num_tetrahedra", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_83num_tetrahedra, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_82num_tetrahedra};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_83num_tetrahedra(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_tetrahedra (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_tetrahedra", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_tetrahedra", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_82num_tetrahedra(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_82num_tetrahedra(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("num_tetrahedra", 0);

  /* "cython/core/triangulation.pyx":1156
 *         2
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 0
 *         return get_num_tetrahedra(self.c_triangulation)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1157
 *         """
 *         if self.c_triangulation is NULL:
 *             return 0             # <<<<<<<<<<<<<<
 *         return get_num_tetrahedra(self.c_triangulation)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_r = __pyx_mstate_global->__pyx_int_0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1156
 *         2
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 0
 *         return get_num_tetrahedra(self.c_triangulation)
*/
  }

  /* "cython/core/triangulation.pyx":1158
 *         if self.c_triangulation is NULL:
 *             return 0
 *         return get_num_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     def dehn_fill(self, filling_data, which_cusp=None) -> None:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = get_num_tetrahedra(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1158, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 0) < (0)) __PYX_ERR(4, 1158, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1148
 *         self._PDcode = code
 * 
 *     def num_tetrahedra(self) -> int:             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of tetrahedra in the triangulation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.num_tetrahedra", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1160
 *         return get_num_tetrahedra(self.c_triangulation)
 * 
 *     def dehn_fill(self, filling_data, which_cusp=None) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Set the Dehn filling coefficients of the cusps.  This can be
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_85dehn_fill(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_84dehn_fill, "\n        Set the Dehn filling coefficients of the cusps.  This can be\n        specified in the following ways, where the cusps are numbered\n        by 0,1,...,(num_cusps - 1).\n\n        - Fill cusp 2:\n\n          >>> M = Triangulation('8^4_1')\n          >>> M.dehn_fill((2,3), 2)\n          >>> M\n          8^4_1(0,0)(0,0)(2,3)(0,0)\n\n        - Fill the last cusp:\n\n          >>> M.dehn_fill((1,5), -1)\n          >>> M\n          8^4_1(0,0)(0,0)(2,3)(1,5)\n\n        - Fill the first two cusps:\n\n          >>> M.dehn_fill( [ (3,0), (1, -4) ])\n          >>> M\n          8^4_1(3,0)(1,-4)(2,3)(1,5)\n\n        - When there is only one cusp, there's a shortcut\n\n          >>> N = Triangulation('m004')\n          >>> N.dehn_fill( (-3,4) )\n          >>> N\n          m004(-3,4)\n\n        Does not return a new :class:`Triangulation`.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_85dehn_fill = {"dehn_fill", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_85dehn_fill, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_84dehn_fill};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_85dehn_fill(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_filling_data = 0;
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dehn_fill (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_filling_data,&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1160, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1160, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1160, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "dehn_fill", 0) < (0)) __PYX_ERR(4, 1160, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("dehn_fill", 0, 1, 2, i); __PYX_ERR(4, 1160, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1160, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1160, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_filling_data = values[0];
    __pyx_v_which_cusp = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("dehn_fill", 0, 1, 2, __pyx_nargs); __PYX_ERR(4, 1160, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.dehn_fill", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_84dehn_fill(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_filling_data, __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_84dehn_fill(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_filling_data, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_num_cusps = NULL;
  PyObject *__pyx_v_meridian = NULL;
  PyObject *__pyx_v_longitude = NULL;
  PyObject *__pyx_v_complete = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_fill = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *(*__pyx_t_6)(PyObject *);
  int __pyx_t_7;
  Boolean __pyx_t_8;
  __pyx_t_6SnapPy_Real __pyx_t_9;
  __pyx_t_6SnapPy_Real __pyx_t_10;
  int __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  int __pyx_t_13;
  PyObject *(*__pyx_t_14)(PyObject *);
  PyObject *__pyx_t_15 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dehn_fill", 0);
  __Pyx_INCREF(__pyx_v_which_cusp);

  /* "cython/core/triangulation.pyx":1194
 *         Does not return a new :class:`Triangulation`.
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1195
 *         """
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         num_cusps = self.num_cusps()
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1195, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1195, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1194
 *         Does not return a new :class:`Triangulation`.
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1197
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         num_cusps = self.num_cusps()             # <<<<<<<<<<<<<<
 * 
 *         if which_cusp is not None:
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1197, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_num_cusps = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1199
 *         num_cusps = self.num_cusps()
 * 
 *         if which_cusp is not None:             # <<<<<<<<<<<<<<
 *             which_cusp = valid_index(
 *                 which_cusp, num_cusps,
*/
  __pyx_t_1 = (__pyx_v_which_cusp != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1200
 * 
 *         if which_cusp is not None:
 *             which_cusp = valid_index(             # <<<<<<<<<<<<<<
 *                 which_cusp, num_cusps,
 *                 'The specified cusp (%s) does not exist.')
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "cython/core/triangulation.pyx":1201
 *         if which_cusp is not None:
 *             which_cusp = valid_index(
 *                 which_cusp, num_cusps,             # <<<<<<<<<<<<<<
 *                 'The specified cusp (%s) does not exist.')
 * 
*/
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_which_cusp, __pyx_v_num_cusps, __pyx_mstate_global->__pyx_kp_u_The_specified_cusp_s_does_not_ex};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1200, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF_SET(__pyx_v_which_cusp, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1204
 *                 'The specified cusp (%s) does not exist.')
 * 
 *             meridian, longitude = filling_data             # <<<<<<<<<<<<<<
 *             complete = ( meridian == 0 and longitude == 0)
 *             set_cusp_info(self.c_triangulation,
*/
    if ((likely(PyTuple_CheckExact(__pyx_v_filling_data))) || (PyList_CheckExact(__pyx_v_filling_data))) {
      PyObject* sequence = __pyx_v_filling_data;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 1204, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
      } else {
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1204, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1204, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
      }
      #else
      __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1204, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1204, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
    } else {
      Py_ssize_t index = -1;
      __pyx_t_3 = PyObject_GetIter(__pyx_v_filling_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1204, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3);
      index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_3); if (unlikely(!__pyx_t_2)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_2);
      index = 1; __pyx_t_5 = __pyx_t_6(__pyx_t_3); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_3), 2) < (0)) __PYX_ERR(4, 1204, __pyx_L1_error)
      __pyx_t_6 = NULL;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 1204, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __pyx_v_meridian = __pyx_t_2;
    __pyx_t_2 = 0;
    __pyx_v_longitude = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":1205
 * 
 *             meridian, longitude = filling_data
 *             complete = ( meridian == 0 and longitude == 0)             # <<<<<<<<<<<<<<
 *             set_cusp_info(self.c_triangulation,
 *                           which_cusp, complete,
*/
    __pyx_t_2 = __Pyx_PyLong_EqObjC(__pyx_v_meridian, __pyx_mstate_global->__pyx_int_0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1205, __pyx_L1_error)
    if (__pyx_t_1) {
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_5 = __pyx_t_2;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_2 = __Pyx_PyLong_EqObjC(__pyx_v_longitude, __pyx_mstate_global->__pyx_int_0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_5 = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_L7_bool_binop_done:;
    __pyx_v_complete = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":1207
 *             complete = ( meridian == 0 and longitude == 0)
 *             set_cusp_info(self.c_triangulation,
 *                           which_cusp, complete,             # <<<<<<<<<<<<<<
 *                           Object2Real(meridian),
 *                           Object2Real(longitude))
*/
    __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_v_which_cusp); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1207, __pyx_L1_error)
    __pyx_t_8 = __Pyx_PyLong_As_Boolean(__pyx_v_complete); if (unlikely((__pyx_t_8 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(4, 1207, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1208
 *             set_cusp_info(self.c_triangulation,
 *                           which_cusp, complete,
 *                           Object2Real(meridian),             # <<<<<<<<<<<<<<
 *                           Object2Real(longitude))
 *             self._cache.clear(message='dehn_fill')
*/
    __pyx_t_9 = __pyx_f_6SnapPy_Object2Real(__pyx_v_meridian); if (unlikely(__pyx_t_9 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(4, 1208, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1209
 *                           which_cusp, complete,
 *                           Object2Real(meridian),
 *                           Object2Real(longitude))             # <<<<<<<<<<<<<<
 *             self._cache.clear(message='dehn_fill')
 *         else:
*/
    __pyx_t_10 = __pyx_f_6SnapPy_Object2Real(__pyx_v_longitude); if (unlikely(__pyx_t_10 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(4, 1209, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1206
 *             meridian, longitude = filling_data
 *             complete = ( meridian == 0 and longitude == 0)
 *             set_cusp_info(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                           which_cusp, complete,
 *                           Object2Real(meridian),
*/
    set_cusp_info(__pyx_v_self->c_triangulation, __pyx_t_7, __pyx_t_8, __pyx_t_9, __pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1206, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1210
 *                           Object2Real(meridian),
 *                           Object2Real(longitude))
 *             self._cache.clear(message='dehn_fill')             # <<<<<<<<<<<<<<
 *         else:
 *             if num_cusps > 1 and len(filling_data) == 2:
*/
    __pyx_t_2 = __pyx_v_self->_cache;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
      __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_t_3, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 1210, __pyx_L1_error)
      __pyx_t_5 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":1199
 *         num_cusps = self.num_cusps()
 * 
 *         if which_cusp is not None:             # <<<<<<<<<<<<<<
 *             which_cusp = valid_index(
 *                 which_cusp, num_cusps,
*/
    goto __pyx_L4;
  }

  /* "cython/core/triangulation.pyx":1212
 *             self._cache.clear(message='dehn_fill')
 *         else:
 *             if num_cusps > 1 and len(filling_data) == 2:             # <<<<<<<<<<<<<<
 *                 if ( not hasattr(filling_data, '__getitem__')
 *                      or not hasattr(filling_data[0], '__getitem__') ):
*/
  /*else*/ {
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_num_cusps, __pyx_mstate_global->__pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1212, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(4, 1212, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (__pyx_t_11) {
    } else {
      __pyx_t_1 = __pyx_t_11;
      goto __pyx_L10_bool_binop_done;
    }
    __pyx_t_12 = PyObject_Length(__pyx_v_filling_data); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(4, 1212, __pyx_L1_error)
    __pyx_t_11 = (__pyx_t_12 == 2);
    __pyx_t_1 = __pyx_t_11;
    __pyx_L10_bool_binop_done:;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":1213
 *         else:
 *             if num_cusps > 1 and len(filling_data) == 2:
 *                 if ( not hasattr(filling_data, '__getitem__')             # <<<<<<<<<<<<<<
 *                      or not hasattr(filling_data[0], '__getitem__') ):
 *                     raise IndexError('If there is more than one cusp '
*/
      __pyx_t_11 = __Pyx_HasAttr(__pyx_v_filling_data, __pyx_mstate_global->__pyx_n_u_getitem); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(4, 1213, __pyx_L1_error)
      __pyx_t_13 = (!__pyx_t_11);
      if (!__pyx_t_13) {
      } else {
        __pyx_t_1 = __pyx_t_13;
        goto __pyx_L13_bool_binop_done;
      }

      /* "cython/core/triangulation.pyx":1214
 *             if num_cusps > 1 and len(filling_data) == 2:
 *                 if ( not hasattr(filling_data, '__getitem__')
 *                      or not hasattr(filling_data[0], '__getitem__') ):             # <<<<<<<<<<<<<<
 *                     raise IndexError('If there is more than one cusp '
 *                                      'you must specify which one you\n'
*/
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_filling_data, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1214, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_13 = __Pyx_HasAttr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_getitem); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(4, 1214, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_11 = (!__pyx_t_13);
      __pyx_t_1 = __pyx_t_11;
      __pyx_L13_bool_binop_done:;

      /* "cython/core/triangulation.pyx":1213
 *         else:
 *             if num_cusps > 1 and len(filling_data) == 2:
 *                 if ( not hasattr(filling_data, '__getitem__')             # <<<<<<<<<<<<<<
 *                      or not hasattr(filling_data[0], '__getitem__') ):
 *                     raise IndexError('If there is more than one cusp '
*/
      if (unlikely(__pyx_t_1)) {

        /* "cython/core/triangulation.pyx":1215
 *                 if ( not hasattr(filling_data, '__getitem__')
 *                      or not hasattr(filling_data[0], '__getitem__') ):
 *                     raise IndexError('If there is more than one cusp '             # <<<<<<<<<<<<<<
 *                                      'you must specify which one you\n'
 *                                      'are filling, e.g. M.dehn_fill((2,3),1)')
*/
        __pyx_t_3 = NULL;
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_If_there_is_more_than_one_cusp_y};
          __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1215, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_Raise(__pyx_t_5, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __PYX_ERR(4, 1215, __pyx_L1_error)

        /* "cython/core/triangulation.pyx":1213
 *         else:
 *             if num_cusps > 1 and len(filling_data) == 2:
 *                 if ( not hasattr(filling_data, '__getitem__')             # <<<<<<<<<<<<<<
 *                      or not hasattr(filling_data[0], '__getitem__') ):
 *                     raise IndexError('If there is more than one cusp '
*/
      }

      /* "cython/core/triangulation.pyx":1212
 *             self._cache.clear(message='dehn_fill')
 *         else:
 *             if num_cusps > 1 and len(filling_data) == 2:             # <<<<<<<<<<<<<<
 *                 if ( not hasattr(filling_data, '__getitem__')
 *                      or not hasattr(filling_data[0], '__getitem__') ):
*/
    }

    /* "cython/core/triangulation.pyx":1218
 *                                      'you must specify which one you\n'
 *                                      'are filling, e.g. M.dehn_fill((2,3),1)')
 *             if num_cusps == 1 and len(filling_data) == 2:             # <<<<<<<<<<<<<<
 *                 Triangulation.dehn_fill(self, filling_data, 0)
 *                 return
*/
    __pyx_t_11 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_num_cusps, __pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(4, 1218, __pyx_L1_error)
    if (__pyx_t_11) {
    } else {
      __pyx_t_1 = __pyx_t_11;
      goto __pyx_L16_bool_binop_done;
    }
    __pyx_t_12 = PyObject_Length(__pyx_v_filling_data); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(4, 1218, __pyx_L1_error)
    __pyx_t_11 = (__pyx_t_12 == 2);
    __pyx_t_1 = __pyx_t_11;
    __pyx_L16_bool_binop_done:;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":1219
 *                                      'are filling, e.g. M.dehn_fill((2,3),1)')
 *             if num_cusps == 1 and len(filling_data) == 2:
 *                 Triangulation.dehn_fill(self, filling_data, 0)             # <<<<<<<<<<<<<<
 *                 return
 *             if len(filling_data) > num_cusps:
*/
      __pyx_t_3 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_3, ((PyObject *)__pyx_v_self), __pyx_v_filling_data, __pyx_mstate_global->__pyx_int_0};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1219, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cython/core/triangulation.pyx":1220
 *             if num_cusps == 1 and len(filling_data) == 2:
 *                 Triangulation.dehn_fill(self, filling_data, 0)
 *                 return             # <<<<<<<<<<<<<<
 *             if len(filling_data) > num_cusps:
 *                 raise IndexError('You provided filling data for too '
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      goto __pyx_L0;

      /* "cython/core/triangulation.pyx":1218
 *                                      'you must specify which one you\n'
 *                                      'are filling, e.g. M.dehn_fill((2,3),1)')
 *             if num_cusps == 1 and len(filling_data) == 2:             # <<<<<<<<<<<<<<
 *                 Triangulation.dehn_fill(self, filling_data, 0)
 *                 return
*/
    }

    /* "cython/core/triangulation.pyx":1221
 *                 Triangulation.dehn_fill(self, filling_data, 0)
 *                 return
 *             if len(filling_data) > num_cusps:             # <<<<<<<<<<<<<<
 *                 raise IndexError('You provided filling data for too '
 *                                  'many cusps.  There are only %s.'%
*/
    __pyx_t_12 = PyObject_Length(__pyx_v_filling_data); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(4, 1221, __pyx_L1_error)
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_v_num_cusps, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1221, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1221, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/triangulation.pyx":1222
 *                 return
 *             if len(filling_data) > num_cusps:
 *                 raise IndexError('You provided filling data for too '             # <<<<<<<<<<<<<<
 *                                  'many cusps.  There are only %s.'%
 *                                  num_cusps)
*/
      __pyx_t_5 = NULL;

      /* "cython/core/triangulation.pyx":1223
 *             if len(filling_data) > num_cusps:
 *                 raise IndexError('You provided filling data for too '
 *                                  'many cusps.  There are only %s.'%             # <<<<<<<<<<<<<<
 *                                  num_cusps)
 *             for i, fill in enumerate(filling_data):
*/
      __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_You_provided_filling_data_for_to, __pyx_v_num_cusps); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1223, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_2};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1222, __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_ERR(4, 1222, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":1221
 *                 Triangulation.dehn_fill(self, filling_data, 0)
 *                 return
 *             if len(filling_data) > num_cusps:             # <<<<<<<<<<<<<<
 *                 raise IndexError('You provided filling data for too '
 *                                  'many cusps.  There are only %s.'%
*/
    }

    /* "cython/core/triangulation.pyx":1225
 *                                  'many cusps.  There are only %s.'%
 *                                  num_cusps)
 *             for i, fill in enumerate(filling_data):             # <<<<<<<<<<<<<<
 *                 Triangulation.dehn_fill(self, fill, i)
 * 
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_filling_data)) || PyTuple_CheckExact(__pyx_v_filling_data)) {
      __pyx_t_2 = __pyx_v_filling_data; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_12 = 0;
      __pyx_t_14 = NULL;
    } else {
      __pyx_t_12 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_filling_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1225, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 1225, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_14)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1225, __pyx_L1_error)
            #endif
            if (__pyx_t_12 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_12, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_12;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1225, __pyx_L1_error)
            #endif
            if (__pyx_t_12 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_12));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_12);
          #endif
          ++__pyx_t_12;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1225, __pyx_L1_error)
      } else {
        __pyx_t_5 = __pyx_t_14(__pyx_t_2);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1225, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_v_fill, __pyx_t_5);
      __pyx_t_5 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1225, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_5;
      __pyx_t_5 = 0;

      /* "cython/core/triangulation.pyx":1226
 *                                  num_cusps)
 *             for i, fill in enumerate(filling_data):
 *                 Triangulation.dehn_fill(self, fill, i)             # <<<<<<<<<<<<<<
 * 
 *     # When doctesting, the M,L coefficients acquire an accuracy of 8.
*/
      __pyx_t_15 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
      __Pyx_INCREF(__pyx_t_15);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_15, ((PyObject *)__pyx_v_self), __pyx_v_fill, __pyx_v_i};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1226, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cython/core/triangulation.pyx":1225
 *                                  'many cusps.  There are only %s.'%
 *                                  num_cusps)
 *             for i, fill in enumerate(filling_data):             # <<<<<<<<<<<<<<
 *                 Triangulation.dehn_fill(self, fill, i)
 * 
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L4:;

  /* "cython/core/triangulation.pyx":1160
 *         return get_num_tetrahedra(self.c_triangulation)
 * 
 *     def dehn_fill(self, filling_data, which_cusp=None) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Set the Dehn filling coefficients of the cusps.  This can be
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_AddTraceback("SnapPy.Triangulation.dehn_fill", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_num_cusps);
  __Pyx_XDECREF(__pyx_v_meridian);
  __Pyx_XDECREF(__pyx_v_longitude);
  __Pyx_XDECREF(__pyx_v_complete);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_fill);
  __Pyx_XDECREF(__pyx_v_which_cusp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1230
 *     # When doctesting, the M,L coefficients acquire an accuracy of 8.
 *     # So we have to include the zeros in the doctest string.
 *     def cusp_info(self, data_spec=None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an info object containing information about the given
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_87cusp_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_86cusp_info, "\n        Returns an info object containing information about the given\n        cusp.   Usage:\n\n        >>> M = Triangulation('v3227(0,0)(1,2)(3,2)')\n        >>> M.cusp_info(1)\n        Cusp 1 : torus cusp with Dehn filling coefficients (M, L) = (1.0, 2.0)\n        >>> c = M.cusp_info(1)\n        >>> c.is_complete\n        False\n        >>> sorted(c.keys())\n        ['filling', 'index', 'is_complete', 'topology']\n\n        You can get information about multiple cusps at once:\n\n        >>> M.cusp_info()\n        [Cusp 0 : torus cusp, not filled,\n         Cusp 1 : torus cusp with Dehn filling coefficients (M, L) = (1.0, 2.0),\n         Cusp 2 : torus cusp with Dehn filling coefficients (M, L) = (3.0, 2.0)]\n        >>> M.cusp_info('is_complete')\n        [True, False, False]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_87cusp_info = {"cusp_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_87cusp_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_86cusp_info};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_87cusp_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_data_spec = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cusp_info (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_data_spec,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1230, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1230, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "cusp_info", 0) < (0)) __PYX_ERR(4, 1230, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1230, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_data_spec = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cusp_info", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 1230, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.cusp_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_86cusp_info(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_data_spec);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_86cusp_info(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_data_spec) {
  int __pyx_v_cusp_index;
  CuspTopology __pyx_v_topology;
  Boolean __pyx_v_is_complete;
  __pyx_t_6SnapPy_Real __pyx_v_m;
  __pyx_t_6SnapPy_Real __pyx_v_l;
  Complex __pyx_v_initial_shape;
  Complex __pyx_v_current_shape;
  int __pyx_v_initial_shape_accuracy;
  int __pyx_v_current_shape_accuracy;
  Complex __pyx_v_initial_modulus;
  Complex __pyx_v_current_modulus;
  PyObject *__pyx_v_info = NULL;
  PyObject *__pyx_9genexpr18__pyx_v_i = NULL;
  PyObject *__pyx_9genexpr19__pyx_v_c = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  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)(PyObject *);
  Py_ssize_t __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cusp_info", 0);

  /* "cython/core/triangulation.pyx":1261
 *         cdef Complex initial_modulus, current_modulus
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if data_spec is None:
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1262
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1262, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1262, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1261
 *         cdef Complex initial_modulus, current_modulus
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if data_spec is None:
*/
  }

  /* "cython/core/triangulation.pyx":1263
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if data_spec is None:             # <<<<<<<<<<<<<<
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])
*/
  __pyx_t_1 = (__pyx_v_data_spec == Py_None);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1264
 *             raise ValueError('The Triangulation is empty.')
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)             # <<<<<<<<<<<<<<
 *                                    for i in range(self.num_cusps())])
 *         if isinstance(data_spec, str):
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ListOnePerLine); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    { /* enter inner scope */
      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1264, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_6);

      /* "cython/core/triangulation.pyx":1265
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])             # <<<<<<<<<<<<<<
 *         if isinstance(data_spec, str):
 *             return [c[data_spec] for c in self.cusp_info()]
*/
      __pyx_t_8 = NULL;
      __pyx_t_10 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_10);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL};
        __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1265, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_9);
      }
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_9};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1265, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __pyx_t_9 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1265, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 1265, __pyx_L7_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      for (;;) {
        {
          __pyx_t_7 = __pyx_t_11(__pyx_t_9);
          if (unlikely(!__pyx_t_7)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1265, __pyx_L7_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_XDECREF_SET(__pyx_9genexpr18__pyx_v_i, __pyx_t_7);
        __pyx_t_7 = 0;

        /* "cython/core/triangulation.pyx":1264
 *             raise ValueError('The Triangulation is empty.')
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)             # <<<<<<<<<<<<<<
 *                                    for i in range(self.num_cusps())])
 *         if isinstance(data_spec, str):
*/
        __pyx_t_8 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_9genexpr18__pyx_v_i};
          __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1264, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(4, 1264, __pyx_L7_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "cython/core/triangulation.pyx":1265
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])             # <<<<<<<<<<<<<<
 *         if isinstance(data_spec, str):
 *             return [c[data_spec] for c in self.cusp_info()]
*/
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_9genexpr18__pyx_v_i); __pyx_9genexpr18__pyx_v_i = 0;
      goto __pyx_L11_exit_scope;
      __pyx_L7_error:;
      __Pyx_XDECREF(__pyx_9genexpr18__pyx_v_i); __pyx_9genexpr18__pyx_v_i = 0;
      goto __pyx_L1_error;
      __pyx_L11_exit_scope:;
    } /* exit inner scope */
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1263
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if data_spec is None:             # <<<<<<<<<<<<<<
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])
*/
  }

  /* "cython/core/triangulation.pyx":1266
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])
 *         if isinstance(data_spec, str):             # <<<<<<<<<<<<<<
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(
*/
  __pyx_t_1 = PyUnicode_Check(__pyx_v_data_spec); 
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1267
 *                                    for i in range(self.num_cusps())])
 *         if isinstance(data_spec, str):
 *             return [c[data_spec] for c in self.cusp_info()]             # <<<<<<<<<<<<<<
 *         cusp_index = valid_index(
 *             data_spec, self.num_cusps(),
*/
    __Pyx_XDECREF(__pyx_r);
    { /* enter inner scope */
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1267, __pyx_L15_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_6 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1267, __pyx_L15_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
        __pyx_t_6 = __pyx_t_5; __Pyx_INCREF(__pyx_t_6);
        __pyx_t_12 = 0;
        __pyx_t_11 = NULL;
      } else {
        __pyx_t_12 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1267, __pyx_L15_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 1267, __pyx_L15_error)
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      for (;;) {
        if (likely(!__pyx_t_11)) {
          if (likely(PyList_CheckExact(__pyx_t_6))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1267, __pyx_L15_error)
              #endif
              if (__pyx_t_12 >= __pyx_temp) break;
            }
            __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_12, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_12;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1267, __pyx_L15_error)
              #endif
              if (__pyx_t_12 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_12));
            #else
            __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_12);
            #endif
            ++__pyx_t_12;
          }
          if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1267, __pyx_L15_error)
        } else {
          __pyx_t_5 = __pyx_t_11(__pyx_t_6);
          if (unlikely(!__pyx_t_5)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1267, __pyx_L15_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_XDECREF_SET(__pyx_9genexpr19__pyx_v_c, __pyx_t_5);
        __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_9genexpr19__pyx_v_c, __pyx_v_data_spec); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1267, __pyx_L15_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_5))) __PYX_ERR(4, 1267, __pyx_L15_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_9genexpr19__pyx_v_c); __pyx_9genexpr19__pyx_v_c = 0;
      goto __pyx_L19_exit_scope;
      __pyx_L15_error:;
      __Pyx_XDECREF(__pyx_9genexpr19__pyx_v_c); __pyx_9genexpr19__pyx_v_c = 0;
      goto __pyx_L1_error;
      __pyx_L19_exit_scope:;
    } /* exit inner scope */
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1266
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])
 *         if isinstance(data_spec, str):             # <<<<<<<<<<<<<<
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(
*/
  }

  /* "cython/core/triangulation.pyx":1268
 *         if isinstance(data_spec, str):
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(             # <<<<<<<<<<<<<<
 *             data_spec, self.num_cusps(),
 *             'The specified cusp (%s) does not exist.')
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "cython/core/triangulation.pyx":1269
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(
 *             data_spec, self.num_cusps(),             # <<<<<<<<<<<<<<
 *             'The specified cusp (%s) does not exist.')
 * 
*/
  __pyx_t_9 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_9);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1269, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_6, __pyx_v_data_spec, __pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_specified_cusp_s_does_not_ex};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1268, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }

  /* "cython/core/triangulation.pyx":1268
 *         if isinstance(data_spec, str):
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(             # <<<<<<<<<<<<<<
 *             data_spec, self.num_cusps(),
 *             'The specified cusp (%s) does not exist.')
*/
  __pyx_t_13 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1268, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_cusp_index = __pyx_t_13;

  /* "cython/core/triangulation.pyx":1272
 *             'The specified cusp (%s) does not exist.')
 * 
 *         get_cusp_info(self.c_triangulation, cusp_index,             # <<<<<<<<<<<<<<
 *                       &topology, &is_complete, &m, &l,
 *                       &initial_shape, &current_shape,
*/
  get_cusp_info(__pyx_v_self->c_triangulation, __pyx_v_cusp_index, (&__pyx_v_topology), (&__pyx_v_is_complete), (&__pyx_v_m), (&__pyx_v_l), (&__pyx_v_initial_shape), (&__pyx_v_current_shape), (&__pyx_v_initial_shape_accuracy), (&__pyx_v_current_shape_accuracy), (&__pyx_v_initial_modulus), (&__pyx_v_current_modulus));

  /* "cython/core/triangulation.pyx":1278
 *                       &initial_modulus, &current_modulus)
 *         info = {
 *            'index' : cusp_index,             # <<<<<<<<<<<<<<
 *            'topology' : CuspTopology[topology],
 *            'is_complete' : B2B(is_complete),
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_cusp_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_5) < (0)) __PYX_ERR(4, 1278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1279
 *         info = {
 *            'index' : cusp_index,
 *            'topology' : CuspTopology[topology],             # <<<<<<<<<<<<<<
 *            'is_complete' : B2B(is_complete),
 *            'filling' : (Real2float(m), Real2float(l))
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_CuspTopology); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyLong_From_CuspTopology(__pyx_v_topology); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_topology, __pyx_t_6) < (0)) __PYX_ERR(4, 1278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1280
 *            'index' : cusp_index,
 *            'topology' : CuspTopology[topology],
 *            'is_complete' : B2B(is_complete),             # <<<<<<<<<<<<<<
 *            'filling' : (Real2float(m), Real2float(l))
 *            }
*/
  __pyx_t_6 = __pyx_f_6SnapPy_B2B(__pyx_v_is_complete); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_is_complete, __pyx_t_6) < (0)) __PYX_ERR(4, 1278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1281
 *            'topology' : CuspTopology[topology],
 *            'is_complete' : B2B(is_complete),
 *            'filling' : (Real2float(m), Real2float(l))             # <<<<<<<<<<<<<<
 *            }
 * 
*/
  __pyx_t_6 = __pyx_f_6SnapPy_Real2float(__pyx_v_m); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = __pyx_f_6SnapPy_Real2float(__pyx_v_l); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(4, 1281, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3) != (0)) __PYX_ERR(4, 1281, __pyx_L1_error);
  __pyx_t_6 = 0;
  __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_filling, __pyx_t_5) < (0)) __PYX_ERR(4, 1278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_v_info = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1284
 *            }
 * 
 *         return CuspInfo(**info)             # <<<<<<<<<<<<<<
 * 
 *     def reverse_orientation(self) -> None:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_CuspInfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyDict_Copy(__pyx_v_info); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1230
 *     # When doctesting, the M,L coefficients acquire an accuracy of 8.
 *     # So we have to include the zeros in the doctest string.
 *     def cusp_info(self, data_spec=None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an info object containing information about the given
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __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_AddTraceback("SnapPy.Triangulation.cusp_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_info);
  __Pyx_XDECREF(__pyx_9genexpr18__pyx_v_i);
  __Pyx_XDECREF(__pyx_9genexpr19__pyx_v_c);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1286
 *         return CuspInfo(**info)
 * 
 *     def reverse_orientation(self) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Reverses the orientation of the Triangulation, presuming that
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_89reverse_orientation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_88reverse_orientation, "\n        Reverses the orientation of the Triangulation, presuming that\n        it is orientable.\n\n        >>> M = Manifold('m015')\n        >>> cs = M.chern_simons()\n        >>> M.reverse_orientation()\n        >>> abs(cs + M.chern_simons()) # doctest: +NUMERIC9\n        0.0\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_89reverse_orientation = {"reverse_orientation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_89reverse_orientation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_88reverse_orientation};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_89reverse_orientation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reverse_orientation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("reverse_orientation", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("reverse_orientation", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_88reverse_orientation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_88reverse_orientation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("reverse_orientation", 0);

  /* "cython/core/triangulation.pyx":1297
 *         0.0
 *         """
 *         if not self.is_orientable():             # <<<<<<<<<<<<<<
 *             raise ValueError("The Manifold is not orientable, so its "
 *                              "orientation can't be reversed.")
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(4, 1297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = (!__pyx_t_4);
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/triangulation.pyx":1298
 *         """
 *         if not self.is_orientable():
 *             raise ValueError("The Manifold is not orientable, so its "             # <<<<<<<<<<<<<<
 *                              "orientation can't be reversed.")
 *         reorient(self.c_triangulation)
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_Manifold_is_not_orientable_s};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1298, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 1298, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1297
 *         0.0
 *         """
 *         if not self.is_orientable():             # <<<<<<<<<<<<<<
 *             raise ValueError("The Manifold is not orientable, so its "
 *                              "orientation can't be reversed.")
*/
  }

  /* "cython/core/triangulation.pyx":1300
 *             raise ValueError("The Manifold is not orientable, so its "
 *                              "orientation can't be reversed.")
 *         reorient(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         self._cache.clear(message='reverse_orientation')
 * 
*/
  reorient(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1300, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":1301
 *                              "orientation can't be reversed.")
 *         reorient(self.c_triangulation)
 *         self._cache.clear(message='reverse_orientation')             # <<<<<<<<<<<<<<
 * 
 *     def filled_triangulation(
*/
  __pyx_t_2 = __pyx_v_self->_cache;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_n_u_reverse_orientation, __pyx_t_6, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 1301, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":1286
 *         return CuspInfo(**info)
 * 
 *     def reverse_orientation(self) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Reverses the orientation of the Triangulation, presuming that
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation.reverse_orientation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1303
 *         self._cache.clear(message='reverse_orientation')
 * 
 *     def filled_triangulation(             # <<<<<<<<<<<<<<
 *             self, cusps_to_fill='all') -> 'snappy.Triangulation':
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_91filled_triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_90filled_triangulation, "\n        Return a new manifold where the specified cusps have been\n        permanently filled in.  Examples:\n\n        Filling all the cusps:\n\n        >>> M = Triangulation('m125(1,2)(3,4)')\n        >>> N = M.filled_triangulation()\n        >>> N.num_cusps()\n        0\n\n        Filling cusps 0 and 2 :\n\n        >>> M = Triangulation('v3227(1,2)(3,4)(5,6)')\n        >>> M.filled_triangulation([0,2])\n        v3227_filled(3,4)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_91filled_triangulation = {"filled_triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_91filled_triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_90filled_triangulation};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_91filled_triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_cusps_to_fill = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("filled_triangulation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cusps_to_fill,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1303, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1303, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "filled_triangulation", 0) < (0)) __PYX_ERR(4, 1303, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_all));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1303, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_all));
    }
    __pyx_v_cusps_to_fill = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("filled_triangulation", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 1303, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.filled_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_90filled_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_cusps_to_fill);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_90filled_triangulation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_cusps_to_fill) {
  PyObject *__pyx_v_n = NULL;
  Triangulation *__pyx_v_c_filled_tri;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_filled_tri = 0;
  Boolean *__pyx_v_fill_cusp_spec;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_fill_all = NULL;
  PyObject *__pyx_9genexpr20__pyx_v_c = NULL;
  PyObject *__pyx_9genexpr21__pyx_v_c = NULL;
  PyObject *__pyx_9genexpr22__pyx_v_c = NULL;
  PyObject *__pyx_9genexpr23__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *(*__pyx_t_6)(PyObject *);
  int __pyx_t_7;
  Boolean __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  Triangulation *__pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("filled_triangulation", 0);
  __Pyx_INCREF(__pyx_v_cusps_to_fill);

  /* "cython/core/triangulation.pyx":1322
 *         v3227_filled(3,4)
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1323
 *         """
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         n = self.num_cusps()
 *         if cusps_to_fill == 'all':
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1323, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1323, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1322
 *         v3227_filled(3,4)
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
*/
  }

  /* "cython/core/triangulation.pyx":1324
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()             # <<<<<<<<<<<<<<
 *         if cusps_to_fill == 'all':
 *             cusps_to_fill = [c for c in range(n) if cusp_is_fillable(self.c_triangulation, c)]
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1324, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_n = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1325
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
 *         if cusps_to_fill == 'all':             # <<<<<<<<<<<<<<
 *             cusps_to_fill = [c for c in range(n) if cusp_is_fillable(self.c_triangulation, c)]
 * 
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_cusps_to_fill, __pyx_mstate_global->__pyx_n_u_all, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1325, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1326
 *         n = self.num_cusps()
 *         if cusps_to_fill == 'all':
 *             cusps_to_fill = [c for c in range(n) if cusp_is_fillable(self.c_triangulation, c)]             # <<<<<<<<<<<<<<
 * 
 *         if False in [(c in range(n)) for c in cusps_to_fill]:
*/
    { /* enter inner scope */
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1326, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_n};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1326, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_5 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1326, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1326, __pyx_L7_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      for (;;) {
        {
          __pyx_t_3 = __pyx_t_6(__pyx_t_5);
          if (unlikely(!__pyx_t_3)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1326, __pyx_L7_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_XDECREF_SET(__pyx_9genexpr20__pyx_v_c, __pyx_t_3);
        __pyx_t_3 = 0;
        __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_9genexpr20__pyx_v_c); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1326, __pyx_L7_error)
        __pyx_t_8 = cusp_is_fillable(__pyx_v_self->c_triangulation, __pyx_t_7); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1326, __pyx_L7_error)
        __pyx_t_1 = (__pyx_t_8 != 0);
        if (__pyx_t_1) {
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_9genexpr20__pyx_v_c))) __PYX_ERR(4, 1326, __pyx_L7_error)
        }
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_9genexpr20__pyx_v_c); __pyx_9genexpr20__pyx_v_c = 0;
      goto __pyx_L12_exit_scope;
      __pyx_L7_error:;
      __Pyx_XDECREF(__pyx_9genexpr20__pyx_v_c); __pyx_9genexpr20__pyx_v_c = 0;
      goto __pyx_L1_error;
      __pyx_L12_exit_scope:;
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_cusps_to_fill, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1325
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
 *         if cusps_to_fill == 'all':             # <<<<<<<<<<<<<<
 *             cusps_to_fill = [c for c in range(n) if cusp_is_fillable(self.c_triangulation, c)]
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1328
 *             cusps_to_fill = [c for c in range(n) if cusp_is_fillable(self.c_triangulation, c)]
 * 
 *         if False in [(c in range(n)) for c in cusps_to_fill]:             # <<<<<<<<<<<<<<
 *             raise IndexError('The specified indices to be filled are beyond '
 *                              'the actual number of cusps.')
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1328, __pyx_L16_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (likely(PyList_CheckExact(__pyx_v_cusps_to_fill)) || PyTuple_CheckExact(__pyx_v_cusps_to_fill)) {
      __pyx_t_5 = __pyx_v_cusps_to_fill; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_9 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_cusps_to_fill); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1328, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1328, __pyx_L16_error)
    }
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1328, __pyx_L16_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1328, __pyx_L16_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_9));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1328, __pyx_L16_error)
      } else {
        __pyx_t_3 = __pyx_t_6(__pyx_t_5);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1328, __pyx_L16_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_9genexpr21__pyx_v_c, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_10 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_v_n};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1328, __pyx_L16_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_9genexpr21__pyx_v_c, __pyx_t_3, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1328, __pyx_L16_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1328, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) __PYX_ERR(4, 1328, __pyx_L16_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_9genexpr21__pyx_v_c); __pyx_9genexpr21__pyx_v_c = 0;
    goto __pyx_L20_exit_scope;
    __pyx_L16_error:;
    __Pyx_XDECREF(__pyx_9genexpr21__pyx_v_c); __pyx_9genexpr21__pyx_v_c = 0;
    goto __pyx_L1_error;
    __pyx_L20_exit_scope:;
  } /* exit inner scope */
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(Py_False, __pyx_t_2, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1329
 * 
 *         if False in [(c in range(n)) for c in cusps_to_fill]:
 *             raise IndexError('The specified indices to be filled are beyond '             # <<<<<<<<<<<<<<
 *                              'the actual number of cusps.')
 *         if 0 in [cusp_is_fillable(self.c_triangulation, c)
*/
    __pyx_t_5 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_The_specified_indices_to_be_fill};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1329, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1329, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1328
 *             cusps_to_fill = [c for c in range(n) if cusp_is_fillable(self.c_triangulation, c)]
 * 
 *         if False in [(c in range(n)) for c in cusps_to_fill]:             # <<<<<<<<<<<<<<
 *             raise IndexError('The specified indices to be filled are beyond '
 *                              'the actual number of cusps.')
*/
  }

  /* "cython/core/triangulation.pyx":1331
 *             raise IndexError('The specified indices to be filled are beyond '
 *                              'the actual number of cusps.')
 *         if 0 in [cusp_is_fillable(self.c_triangulation, c)             # <<<<<<<<<<<<<<
 *                  for c in cusps_to_fill]:
 *             raise IndexError('To permanently fill a cusp, the Dehn '
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1331, __pyx_L24_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cython/core/triangulation.pyx":1332
 *                              'the actual number of cusps.')
 *         if 0 in [cusp_is_fillable(self.c_triangulation, c)
 *                  for c in cusps_to_fill]:             # <<<<<<<<<<<<<<
 *             raise IndexError('To permanently fill a cusp, the Dehn '
 *                              'filling coefficients must be relatively '
*/
    if (likely(PyList_CheckExact(__pyx_v_cusps_to_fill)) || PyTuple_CheckExact(__pyx_v_cusps_to_fill)) {
      __pyx_t_5 = __pyx_v_cusps_to_fill; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_9 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_cusps_to_fill); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1332, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1332, __pyx_L24_error)
    }
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1332, __pyx_L24_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1332, __pyx_L24_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_9));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1332, __pyx_L24_error)
      } else {
        __pyx_t_3 = __pyx_t_6(__pyx_t_5);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1332, __pyx_L24_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_9genexpr22__pyx_v_c, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":1331
 *             raise IndexError('The specified indices to be filled are beyond '
 *                              'the actual number of cusps.')
 *         if 0 in [cusp_is_fillable(self.c_triangulation, c)             # <<<<<<<<<<<<<<
 *                  for c in cusps_to_fill]:
 *             raise IndexError('To permanently fill a cusp, the Dehn '
*/
      __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_9genexpr22__pyx_v_c); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1331, __pyx_L24_error)
      __pyx_t_8 = cusp_is_fillable(__pyx_v_self->c_triangulation, __pyx_t_7); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1331, __pyx_L24_error)
      __pyx_t_3 = __Pyx_PyLong_From_Boolean(__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1331, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) __PYX_ERR(4, 1331, __pyx_L24_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":1332
 *                              'the actual number of cusps.')
 *         if 0 in [cusp_is_fillable(self.c_triangulation, c)
 *                  for c in cusps_to_fill]:             # <<<<<<<<<<<<<<
 *             raise IndexError('To permanently fill a cusp, the Dehn '
 *                              'filling coefficients must be relatively '
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_9genexpr22__pyx_v_c); __pyx_9genexpr22__pyx_v_c = 0;
    goto __pyx_L28_exit_scope;
    __pyx_L24_error:;
    __Pyx_XDECREF(__pyx_9genexpr22__pyx_v_c); __pyx_9genexpr22__pyx_v_c = 0;
    goto __pyx_L1_error;
    __pyx_L28_exit_scope:;
  } /* exit inner scope */
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_int_0, __pyx_t_2, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1331
 *             raise IndexError('The specified indices to be filled are beyond '
 *                              'the actual number of cusps.')
 *         if 0 in [cusp_is_fillable(self.c_triangulation, c)             # <<<<<<<<<<<<<<
 *                  for c in cusps_to_fill]:
 *             raise IndexError('To permanently fill a cusp, the Dehn '
*/
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1333
 *         if 0 in [cusp_is_fillable(self.c_triangulation, c)
 *                  for c in cusps_to_fill]:
 *             raise IndexError('To permanently fill a cusp, the Dehn '             # <<<<<<<<<<<<<<
 *                              'filling coefficients must be relatively '
 *                              'prime integers.')
*/
    __pyx_t_5 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_To_permanently_fill_a_cusp_the_D};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1333, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1333, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1331
 *             raise IndexError('The specified indices to be filled are beyond '
 *                              'the actual number of cusps.')
 *         if 0 in [cusp_is_fillable(self.c_triangulation, c)             # <<<<<<<<<<<<<<
 *                  for c in cusps_to_fill]:
 *             raise IndexError('To permanently fill a cusp, the Dehn '
*/
  }

  /* "cython/core/triangulation.pyx":1337
 *                              'prime integers.')
 * 
 *         cdef c_Triangulation* c_filled_tri = NULL             # <<<<<<<<<<<<<<
 *         cdef Triangulation filled_tri
 *         cdef Boolean *fill_cusp_spec = NULL
*/
  __pyx_v_c_filled_tri = NULL;

  /* "cython/core/triangulation.pyx":1339
 *         cdef c_Triangulation* c_filled_tri = NULL
 *         cdef Triangulation filled_tri
 *         cdef Boolean *fill_cusp_spec = NULL             # <<<<<<<<<<<<<<
 * 
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))
*/
  __pyx_v_fill_cusp_spec = NULL;

  /* "cython/core/triangulation.pyx":1341
 *         cdef Boolean *fill_cusp_spec = NULL
 * 
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))             # <<<<<<<<<<<<<<
 *         for i in range(n):
 *             fill_cusp_spec[i] = True if i in cusps_to_fill else False
*/
  __pyx_t_2 = __Pyx_PyLong_FromSize_t((sizeof(Boolean))); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Multiply(__pyx_v_n, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_5); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 1341, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_v_fill_cusp_spec = ((Boolean *)malloc(__pyx_t_4));

  /* "cython/core/triangulation.pyx":1342
 * 
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))
 *         for i in range(n):             # <<<<<<<<<<<<<<
 *             fill_cusp_spec[i] = True if i in cusps_to_fill else False
 *         fill_all = all([i in cusps_to_fill for i in range(n)])
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_n};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_2 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1342, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  for (;;) {
    {
      __pyx_t_5 = __pyx_t_6(__pyx_t_2);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1342, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":1343
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))
 *         for i in range(n):
 *             fill_cusp_spec[i] = True if i in cusps_to_fill else False             # <<<<<<<<<<<<<<
 *         fill_all = all([i in cusps_to_fill for i in range(n)])
 *         c_filled_tri = fill_cusps(self.c_triangulation,
*/
    __pyx_t_11 = (__Pyx_PySequence_ContainsTF(__pyx_v_i, __pyx_v_cusps_to_fill, Py_EQ)); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(4, 1343, __pyx_L1_error)
    if (__pyx_t_11) {
      __pyx_t_1 = 1;
    } else {
      __pyx_t_1 = 0;
    }
    __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 1343, __pyx_L1_error)
    (__pyx_v_fill_cusp_spec[__pyx_t_9]) = __pyx_t_1;

    /* "cython/core/triangulation.pyx":1342
 * 
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))
 *         for i in range(n):             # <<<<<<<<<<<<<<
 *             fill_cusp_spec[i] = True if i in cusps_to_fill else False
 *         fill_all = all([i in cusps_to_fill for i in range(n)])
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1344
 *         for i in range(n):
 *             fill_cusp_spec[i] = True if i in cusps_to_fill else False
 *         fill_all = all([i in cusps_to_fill for i in range(n)])             # <<<<<<<<<<<<<<
 *         c_filled_tri = fill_cusps(self.c_triangulation,
 *                                   fill_cusp_spec, '', fill_all)
*/
  __pyx_t_5 = NULL;
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1344, __pyx_L34_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_v_n};
      __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 1344, __pyx_L34_error)
      __Pyx_GOTREF(__pyx_t_10);
    }
    __pyx_t_12 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 1344, __pyx_L34_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1344, __pyx_L34_error)
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    for (;;) {
      {
        __pyx_t_10 = __pyx_t_6(__pyx_t_12);
        if (unlikely(!__pyx_t_10)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1344, __pyx_L34_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_XDECREF_SET(__pyx_9genexpr23__pyx_v_i, __pyx_t_10);
      __pyx_t_10 = 0;
      __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_9genexpr23__pyx_v_i, __pyx_v_cusps_to_fill, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1344, __pyx_L34_error)
      __pyx_t_10 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 1344, __pyx_L34_error)
      __Pyx_GOTREF(__pyx_t_10);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_10))) __PYX_ERR(4, 1344, __pyx_L34_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_XDECREF(__pyx_9genexpr23__pyx_v_i); __pyx_9genexpr23__pyx_v_i = 0;
    goto __pyx_L38_exit_scope;
    __pyx_L34_error:;
    __Pyx_XDECREF(__pyx_9genexpr23__pyx_v_i); __pyx_9genexpr23__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L38_exit_scope:;
  } /* exit inner scope */
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_all, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1344, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_fill_all = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1346
 *         fill_all = all([i in cusps_to_fill for i in range(n)])
 *         c_filled_tri = fill_cusps(self.c_triangulation,
 *                                   fill_cusp_spec, '', fill_all)             # <<<<<<<<<<<<<<
 *         free(fill_cusp_spec)
 *         filled_tri = self.__class__('empty')
*/
  __pyx_t_8 = __Pyx_PyLong_As_Boolean(__pyx_v_fill_all); if (unlikely((__pyx_t_8 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(4, 1346, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":1345
 *             fill_cusp_spec[i] = True if i in cusps_to_fill else False
 *         fill_all = all([i in cusps_to_fill for i in range(n)])
 *         c_filled_tri = fill_cusps(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                   fill_cusp_spec, '', fill_all)
 *         free(fill_cusp_spec)
*/
  __pyx_t_13 = fill_cusps(__pyx_v_self->c_triangulation, __pyx_v_fill_cusp_spec, ((char *)""), __pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1345, __pyx_L1_error)
  __pyx_v_c_filled_tri = __pyx_t_13;

  /* "cython/core/triangulation.pyx":1347
 *         c_filled_tri = fill_cusps(self.c_triangulation,
 *                                   fill_cusp_spec, '', fill_all)
 *         free(fill_cusp_spec)             # <<<<<<<<<<<<<<
 *         filled_tri = self.__class__('empty')
 *         filled_tri.set_c_triangulation(c_filled_tri)
*/
  free(__pyx_v_fill_cusp_spec);

  /* "cython/core/triangulation.pyx":1348
 *                                   fill_cusp_spec, '', fill_all)
 *         free(fill_cusp_spec)
 *         filled_tri = self.__class__('empty')             # <<<<<<<<<<<<<<
 *         filled_tri.set_c_triangulation(c_filled_tri)
 *         filled_tri.set_name(self.name() + '_filled')
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(4, 1348, __pyx_L1_error)
  __pyx_v_filled_tri = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1349
 *         free(fill_cusp_spec)
 *         filled_tri = self.__class__('empty')
 *         filled_tri.set_c_triangulation(c_filled_tri)             # <<<<<<<<<<<<<<
 *         filled_tri.set_name(self.name() + '_filled')
 *         return filled_tri
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_filled_tri->__pyx_vtab)->set_c_triangulation(__pyx_v_filled_tri, __pyx_v_c_filled_tri); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1350
 *         filled_tri = self.__class__('empty')
 *         filled_tri.set_c_triangulation(c_filled_tri)
 *         filled_tri.set_name(self.name() + '_filled')             # <<<<<<<<<<<<<<
 *         return filled_tri
 * 
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_filled_tri);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_12 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_12);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1350, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_12 = PyNumber_Add(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_filled); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 1350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_12};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1350, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1351
 *         filled_tri.set_c_triangulation(c_filled_tri)
 *         filled_tri.set_name(self.name() + '_filled')
 *         return filled_tri             # <<<<<<<<<<<<<<
 * 
 *     def _unsimplified_filled_triangulation(self, method='fold'):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_filled_tri);
  __pyx_r = ((PyObject *)__pyx_v_filled_tri);
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1303
 *         self._cache.clear(message='reverse_orientation')
 * 
 *     def filled_triangulation(             # <<<<<<<<<<<<<<
 *             self, cusps_to_fill='all') -> 'snappy.Triangulation':
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.Triangulation.filled_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF((PyObject *)__pyx_v_filled_tri);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_fill_all);
  __Pyx_XDECREF(__pyx_9genexpr20__pyx_v_c);
  __Pyx_XDECREF(__pyx_9genexpr21__pyx_v_c);
  __Pyx_XDECREF(__pyx_9genexpr22__pyx_v_c);
  __Pyx_XDECREF(__pyx_9genexpr23__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_cusps_to_fill);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1353
 *         return filled_tri
 * 
 *     def _unsimplified_filled_triangulation(self, method='fold'):             # <<<<<<<<<<<<<<
 *         """
 *         For a Triangulation that describes a closed manifold, returns
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_93_unsimplified_filled_triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_92_unsimplified_filled_triangulation, "\n        For a Triangulation that describes a closed manifold, returns\n        the unsimplified finite triangulation that the kernel builds.\n\n        >>> M = Triangulation('m004(1, 2)')\n        >>> F = M._unsimplified_filled_triangulation()\n        >>> F.num_tetrahedra(), F._num_fake_cusps()\n        (58, 7)\n\n        The default is to use the kernel's original fold method as\n        the final step to close off the cusp. Specifying\n        method='layered' uses a 1-tetrahedron solid torus instead.\n        For method='layered_and_marked', the core solid tori are marked\n        internally so that any calls to simplify/randomize will leave\n        these in place.\n\n        >>> M = Triangulation('m004(1, 2)')\n        >>> F = M._unsimplified_filled_triangulation(method='layered')\n        >>> F.num_tetrahedra(), F._num_fake_cusps()\n        (60, 7)\n        >>> F.simplify(); F.num_tetrahedra() < 15\n        True\n        >>> M = Triangulation('K8n1(1,0)')\n        >>> F = M._unsimplified_filled_triangulation(method='layered_and_marked')\n        >>> F.num_tetrahedra() > 2\n        True\n\n        You can determine which tets are the cores, and remove the\n        marks to allow unrestricted simplification.\n\n        >>> any(F._marked_tetrahedra(clear_marks=True))\n        True\n        >>> F.simplify()\n        >>> F.num_tetrahedra() <= 2\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_93_unsimplified_filled_triangulation = {"_unsimplified_filled_triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_93_unsimplified_filled_triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_92_unsimplified_filled_triangulation};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_93_unsimplified_filled_triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_method = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_unsimplified_filled_triangulation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_method,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1353, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1353, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_unsimplified_filled_triangulation", 0) < (0)) __PYX_ERR(4, 1353, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_fold));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1353, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_fold));
    }
    __pyx_v_method = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_unsimplified_filled_triangulation", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 1353, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._unsimplified_filled_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_92_unsimplified_filled_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_method);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_6SnapPy_13Triangulation_34_unsimplified_filled_triangulation_2generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cython/core/triangulation.pyx":1393
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
 *         if not all(cusp_is_fillable(self.c_triangulation, c) for c in range(n)):             # <<<<<<<<<<<<<<
 *             raise IndexError('All cusps must be fillable.')
 *         cdef c_Triangulation* c_new_tri = NULL
*/

static PyObject *__pyx_pf_6SnapPy_13Triangulation_34_unsimplified_filled_triangulation_genexpr(PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *)__pyx_tp_new_6SnapPy___pyx_scope_struct_2_genexpr(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(4, 1393, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *) __pyx_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_6SnapPy_13Triangulation_34_unsimplified_filled_triangulation_2generator1, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_unsimplified_filled_triangulati, __pyx_mstate_global->__pyx_n_u_SnapPy); if (unlikely(!gen)) __PYX_ERR(4, 1393, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.Triangulation._unsimplified_filled_triangulation.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_6SnapPy_13Triangulation_34_unsimplified_filled_triangulation_2generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *__pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *(*__pyx_t_2)(PyObject *);
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  Boolean __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(4, 1393, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(4, 1393, __pyx_L1_error) }
  __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1393, __pyx_L1_error)
  for (;;) {
    {
      __pyx_t_3 = __pyx_t_2(__pyx_t_1);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1393, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_c);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_c, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;
    if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError("self"); __PYX_ERR(4, 1393, __pyx_L1_error) }
    __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_cur_scope->__pyx_v_c); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1393, __pyx_L1_error)
    __pyx_t_5 = cusp_is_fillable(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_self->c_triangulation, __pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1393, __pyx_L1_error)
    __pyx_t_6 = (!(__pyx_t_5 != 0));
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1353
 *         return filled_tri
 * 
 *     def _unsimplified_filled_triangulation(self, method='fold'):             # <<<<<<<<<<<<<<
 *         """
 *         For a Triangulation that describes a closed manifold, returns
*/

static PyObject *__pyx_pf_6SnapPy_13Triangulation_92_unsimplified_filled_triangulation(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_method) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *__pyx_cur_scope;
  PyObject *__pyx_v_n = NULL;
  Triangulation *__pyx_v_c_new_tri;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_filled_tri = 0;
  Boolean *__pyx_v_fill_cusp_spec;
  Boolean __pyx_v_fill_by_fold;
  int __pyx_v_mark_solid_tori;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_gb_6SnapPy_13Triangulation_34_unsimplified_filled_triangulation_2generator1 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  char *__pyx_t_9;
  Triangulation *__pyx_t_10;
  PyObject *(*__pyx_t_11)(PyObject *);
  Py_ssize_t __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_unsimplified_filled_triangulation", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *)__pyx_tp_new_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(4, 1353, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);

  /* "cython/core/triangulation.pyx":1390
 *         True
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
*/
  __pyx_t_1 = (__pyx_cur_scope->__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1391
 *         """
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         n = self.num_cusps()
 *         if not all(cusp_is_fillable(self.c_triangulation, c) for c in range(n)):
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1391, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1391, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1390
 *         True
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
*/
  }

  /* "cython/core/triangulation.pyx":1392
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()             # <<<<<<<<<<<<<<
 *         if not all(cusp_is_fillable(self.c_triangulation, c) for c in range(n)):
 *             raise IndexError('All cusps must be fillable.')
*/
  __pyx_t_3 = ((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1392, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_n = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1393
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
 *         if not all(cusp_is_fillable(self.c_triangulation, c) for c in range(n)):             # <<<<<<<<<<<<<<
 *             raise IndexError('All cusps must be fillable.')
 *         cdef c_Triangulation* c_new_tri = NULL
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_n};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_3 = __pyx_pf_6SnapPy_13Triangulation_34_unsimplified_filled_triangulation_genexpr(((PyObject*)__pyx_cur_scope), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_Generator_GetInlinedResult(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1393, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = (!__pyx_t_1);
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/triangulation.pyx":1394
 *         n = self.num_cusps()
 *         if not all(cusp_is_fillable(self.c_triangulation, c) for c in range(n)):
 *             raise IndexError('All cusps must be fillable.')             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_new_tri = NULL
 *         cdef Triangulation filled_tri
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_All_cusps_must_be_fillable};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1394, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1394, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1393
 *             raise ValueError('The Triangulation is empty.')
 *         n = self.num_cusps()
 *         if not all(cusp_is_fillable(self.c_triangulation, c) for c in range(n)):             # <<<<<<<<<<<<<<
 *             raise IndexError('All cusps must be fillable.')
 *         cdef c_Triangulation* c_new_tri = NULL
*/
  }

  /* "cython/core/triangulation.pyx":1395
 *         if not all(cusp_is_fillable(self.c_triangulation, c) for c in range(n)):
 *             raise IndexError('All cusps must be fillable.')
 *         cdef c_Triangulation* c_new_tri = NULL             # <<<<<<<<<<<<<<
 *         cdef Triangulation filled_tri
 *         cdef Boolean *fill_cusp_spec = NULL
*/
  __pyx_v_c_new_tri = NULL;

  /* "cython/core/triangulation.pyx":1397
 *         cdef c_Triangulation* c_new_tri = NULL
 *         cdef Triangulation filled_tri
 *         cdef Boolean *fill_cusp_spec = NULL             # <<<<<<<<<<<<<<
 *         cdef Boolean fill_by_fold
 *         if method == 'fold':
*/
  __pyx_v_fill_cusp_spec = NULL;

  /* "cython/core/triangulation.pyx":1399
 *         cdef Boolean *fill_cusp_spec = NULL
 *         cdef Boolean fill_by_fold
 *         if method == 'fold':             # <<<<<<<<<<<<<<
 *             fill_by_fold = True
 *         elif method == 'layered':
*/
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_method, __pyx_mstate_global->__pyx_n_u_fold, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(4, 1399, __pyx_L1_error)
  if (__pyx_t_5) {

    /* "cython/core/triangulation.pyx":1400
 *         cdef Boolean fill_by_fold
 *         if method == 'fold':
 *             fill_by_fold = True             # <<<<<<<<<<<<<<
 *         elif method == 'layered':
 *             fill_by_fold = False
*/
    __pyx_v_fill_by_fold = 1;

    /* "cython/core/triangulation.pyx":1399
 *         cdef Boolean *fill_cusp_spec = NULL
 *         cdef Boolean fill_by_fold
 *         if method == 'fold':             # <<<<<<<<<<<<<<
 *             fill_by_fold = True
 *         elif method == 'layered':
*/
    goto __pyx_L5;
  }

  /* "cython/core/triangulation.pyx":1401
 *         if method == 'fold':
 *             fill_by_fold = True
 *         elif method == 'layered':             # <<<<<<<<<<<<<<
 *             fill_by_fold = False
 *             mark_solid_tori = False
*/
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_method, __pyx_mstate_global->__pyx_n_u_layered, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(4, 1401, __pyx_L1_error)
  if (__pyx_t_5) {

    /* "cython/core/triangulation.pyx":1402
 *             fill_by_fold = True
 *         elif method == 'layered':
 *             fill_by_fold = False             # <<<<<<<<<<<<<<
 *             mark_solid_tori = False
 *         elif method == 'layered_and_marked':
*/
    __pyx_v_fill_by_fold = 0;

    /* "cython/core/triangulation.pyx":1403
 *         elif method == 'layered':
 *             fill_by_fold = False
 *             mark_solid_tori = False             # <<<<<<<<<<<<<<
 *         elif method == 'layered_and_marked':
 *             fill_by_fold = False
*/
    __pyx_v_mark_solid_tori = 0;

    /* "cython/core/triangulation.pyx":1401
 *         if method == 'fold':
 *             fill_by_fold = True
 *         elif method == 'layered':             # <<<<<<<<<<<<<<
 *             fill_by_fold = False
 *             mark_solid_tori = False
*/
    goto __pyx_L5;
  }

  /* "cython/core/triangulation.pyx":1404
 *             fill_by_fold = False
 *             mark_solid_tori = False
 *         elif method == 'layered_and_marked':             # <<<<<<<<<<<<<<
 *             fill_by_fold = False
 *             mark_solid_tori = True
*/
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_v_method, __pyx_mstate_global->__pyx_n_u_layered_and_marked, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(4, 1404, __pyx_L1_error)
  if (likely(__pyx_t_5)) {

    /* "cython/core/triangulation.pyx":1405
 *             mark_solid_tori = False
 *         elif method == 'layered_and_marked':
 *             fill_by_fold = False             # <<<<<<<<<<<<<<
 *             mark_solid_tori = True
 *         else:
*/
    __pyx_v_fill_by_fold = 0;

    /* "cython/core/triangulation.pyx":1406
 *         elif method == 'layered_and_marked':
 *             fill_by_fold = False
 *             mark_solid_tori = True             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError("The method must be 'fold' or 'layered' or 'layered_and_marked'")
*/
    __pyx_v_mark_solid_tori = 1;

    /* "cython/core/triangulation.pyx":1404
 *             fill_by_fold = False
 *             mark_solid_tori = False
 *         elif method == 'layered_and_marked':             # <<<<<<<<<<<<<<
 *             fill_by_fold = False
 *             mark_solid_tori = True
*/
    goto __pyx_L5;
  }

  /* "cython/core/triangulation.pyx":1408
 *             mark_solid_tori = True
 *         else:
 *             raise ValueError("The method must be 'fold' or 'layered' or 'layered_and_marked'")             # <<<<<<<<<<<<<<
 * 
 *         c_new_tri = subdivide(self.c_triangulation, to_byte_str(self.name() + '_filled'))
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_method_must_be_fold_or_layer};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1408, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1408, __pyx_L1_error)
  }
  __pyx_L5:;

  /* "cython/core/triangulation.pyx":1410
 *             raise ValueError("The method must be 'fold' or 'layered' or 'layered_and_marked'")
 * 
 *         c_new_tri = subdivide(self.c_triangulation, to_byte_str(self.name() + '_filled'))             # <<<<<<<<<<<<<<
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))
 *         for i in range(n):
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = ((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_8 = PyNumber_Add(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_filled); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_9 = __Pyx_PyObject_AsWritableString(__pyx_t_2); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(4, 1410, __pyx_L1_error)
  __pyx_t_10 = subdivide(__pyx_cur_scope->__pyx_v_self->c_triangulation, __pyx_t_9); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1410, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_c_new_tri = __pyx_t_10;

  /* "cython/core/triangulation.pyx":1411
 * 
 *         c_new_tri = subdivide(self.c_triangulation, to_byte_str(self.name() + '_filled'))
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))             # <<<<<<<<<<<<<<
 *         for i in range(n):
 *             fill_cusp_spec[i] = True
*/
  __pyx_t_2 = __Pyx_PyLong_FromSize_t((sizeof(Boolean))); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = PyNumber_Multiply(__pyx_v_n, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_6); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 1411, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_v_fill_cusp_spec = ((Boolean *)malloc(__pyx_t_4));

  /* "cython/core/triangulation.pyx":1412
 *         c_new_tri = subdivide(self.c_triangulation, to_byte_str(self.name() + '_filled'))
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))
 *         for i in range(n):             # <<<<<<<<<<<<<<
 *             fill_cusp_spec[i] = True
 * 
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_n};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1412, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_2 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 1412, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  for (;;) {
    {
      __pyx_t_6 = __pyx_t_11(__pyx_t_2);
      if (unlikely(!__pyx_t_6)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1412, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "cython/core/triangulation.pyx":1413
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))
 *         for i in range(n):
 *             fill_cusp_spec[i] = True             # <<<<<<<<<<<<<<
 * 
 *         close_cusps(c_new_tri, fill_cusp_spec, fill_by_fold, mark_solid_tori)
*/
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 1413, __pyx_L1_error)
    (__pyx_v_fill_cusp_spec[__pyx_t_12]) = 1;

    /* "cython/core/triangulation.pyx":1412
 *         c_new_tri = subdivide(self.c_triangulation, to_byte_str(self.name() + '_filled'))
 *         fill_cusp_spec = <Boolean*>malloc(n*sizeof(Boolean))
 *         for i in range(n):             # <<<<<<<<<<<<<<
 *             fill_cusp_spec[i] = True
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1415
 *             fill_cusp_spec[i] = True
 * 
 *         close_cusps(c_new_tri, fill_cusp_spec, fill_by_fold, mark_solid_tori)             # <<<<<<<<<<<<<<
 *         number_the_tetrahedra(c_new_tri)
 *         number_the_edge_classes(c_new_tri)
*/
  close_cusps(__pyx_v_c_new_tri, __pyx_v_fill_cusp_spec, __pyx_v_fill_by_fold, __pyx_v_mark_solid_tori);

  /* "cython/core/triangulation.pyx":1416
 * 
 *         close_cusps(c_new_tri, fill_cusp_spec, fill_by_fold, mark_solid_tori)
 *         number_the_tetrahedra(c_new_tri)             # <<<<<<<<<<<<<<
 *         number_the_edge_classes(c_new_tri)
 *         create_fake_cusps(c_new_tri)
*/
  number_the_tetrahedra(__pyx_v_c_new_tri);

  /* "cython/core/triangulation.pyx":1417
 *         close_cusps(c_new_tri, fill_cusp_spec, fill_by_fold, mark_solid_tori)
 *         number_the_tetrahedra(c_new_tri)
 *         number_the_edge_classes(c_new_tri)             # <<<<<<<<<<<<<<
 *         create_fake_cusps(c_new_tri)
 *         count_cusps(c_new_tri)
*/
  number_the_edge_classes(__pyx_v_c_new_tri);

  /* "cython/core/triangulation.pyx":1418
 *         number_the_tetrahedra(c_new_tri)
 *         number_the_edge_classes(c_new_tri)
 *         create_fake_cusps(c_new_tri)             # <<<<<<<<<<<<<<
 *         count_cusps(c_new_tri)
 *         filled_tri = _triangulation_class('empty')
*/
  create_fake_cusps(__pyx_v_c_new_tri);

  /* "cython/core/triangulation.pyx":1419
 *         number_the_edge_classes(c_new_tri)
 *         create_fake_cusps(c_new_tri)
 *         count_cusps(c_new_tri)             # <<<<<<<<<<<<<<
 *         filled_tri = _triangulation_class('empty')
 *         filled_tri.set_c_triangulation(c_new_tri)
*/
  count_cusps(__pyx_v_c_new_tri);

  /* "cython/core/triangulation.pyx":1420
 *         create_fake_cusps(c_new_tri)
 *         count_cusps(c_new_tri)
 *         filled_tri = _triangulation_class('empty')             # <<<<<<<<<<<<<<
 *         filled_tri.set_c_triangulation(c_new_tri)
 *         free(fill_cusp_spec)
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_triangulation_class); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(4, 1420, __pyx_L1_error)
  __pyx_v_filled_tri = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1421
 *         count_cusps(c_new_tri)
 *         filled_tri = _triangulation_class('empty')
 *         filled_tri.set_c_triangulation(c_new_tri)             # <<<<<<<<<<<<<<
 *         free(fill_cusp_spec)
 *         return filled_tri
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_filled_tri->__pyx_vtab)->set_c_triangulation(__pyx_v_filled_tri, __pyx_v_c_new_tri); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1422
 *         filled_tri = _triangulation_class('empty')
 *         filled_tri.set_c_triangulation(c_new_tri)
 *         free(fill_cusp_spec)             # <<<<<<<<<<<<<<
 *         return filled_tri
 * 
*/
  free(__pyx_v_fill_cusp_spec);

  /* "cython/core/triangulation.pyx":1423
 *         filled_tri.set_c_triangulation(c_new_tri)
 *         free(fill_cusp_spec)
 *         return filled_tri             # <<<<<<<<<<<<<<
 * 
 *     def _marked_tetrahedra(self, clear_marks=False):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_filled_tri);
  __pyx_r = ((PyObject *)__pyx_v_filled_tri);
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1353
 *         return filled_tri
 * 
 *     def _unsimplified_filled_triangulation(self, method='fold'):             # <<<<<<<<<<<<<<
 *         """
 *         For a Triangulation that describes a closed manifold, returns
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.Triangulation._unsimplified_filled_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF((PyObject *)__pyx_v_filled_tri);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_gb_6SnapPy_13Triangulation_34_unsimplified_filled_triangulation_2generator1);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1425
 *         return filled_tri
 * 
 *     def _marked_tetrahedra(self, clear_marks=False):             # <<<<<<<<<<<<<<
 *         cdef int *marked = NULL
 *         n = self.num_tetrahedra()
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_95_marked_tetrahedra(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_95_marked_tetrahedra = {"_marked_tetrahedra", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_95_marked_tetrahedra, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_95_marked_tetrahedra(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_clear_marks = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_marked_tetrahedra (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_clear_marks,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1425, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1425, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_marked_tetrahedra", 0) < (0)) __PYX_ERR(4, 1425, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1425, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_clear_marks = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_marked_tetrahedra", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 1425, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._marked_tetrahedra", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_94_marked_tetrahedra(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_clear_marks);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_94_marked_tetrahedra(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_clear_marks) {
  int *__pyx_v_marked;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_9genexpr25__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *(*__pyx_t_5)(PyObject *);
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_marked_tetrahedra", 0);

  /* "cython/core/triangulation.pyx":1426
 * 
 *     def _marked_tetrahedra(self, clear_marks=False):
 *         cdef int *marked = NULL             # <<<<<<<<<<<<<<
 *         n = self.num_tetrahedra()
 *         marked = <int*>malloc(n*sizeof(int))
*/
  __pyx_v_marked = NULL;

  /* "cython/core/triangulation.pyx":1427
 *     def _marked_tetrahedra(self, clear_marks=False):
 *         cdef int *marked = NULL
 *         n = self.num_tetrahedra()             # <<<<<<<<<<<<<<
 *         marked = <int*>malloc(n*sizeof(int))
 *         unchangeable_tetrahedra(self.c_triangulation, marked)
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":1428
 *         cdef int *marked = NULL
 *         n = self.num_tetrahedra()
 *         marked = <int*>malloc(n*sizeof(int))             # <<<<<<<<<<<<<<
 *         unchangeable_tetrahedra(self.c_triangulation, marked)
 *         ans = [marked[i] for i in range(n)]
*/
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_Multiply(__pyx_v_n, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __Pyx_PyLong_As_size_t(__pyx_t_2); if (unlikely((__pyx_t_3 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 1428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_marked = ((int *)malloc(__pyx_t_3));

  /* "cython/core/triangulation.pyx":1429
 *         n = self.num_tetrahedra()
 *         marked = <int*>malloc(n*sizeof(int))
 *         unchangeable_tetrahedra(self.c_triangulation, marked)             # <<<<<<<<<<<<<<
 *         ans = [marked[i] for i in range(n)]
 *         free(marked)
*/
  unchangeable_tetrahedra(__pyx_v_self->c_triangulation, __pyx_v_marked); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1429, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":1430
 *         marked = <int*>malloc(n*sizeof(int))
 *         unchangeable_tetrahedra(self.c_triangulation, marked)
 *         ans = [marked[i] for i in range(n)]             # <<<<<<<<<<<<<<
 *         free(marked)
 *         if clear_marks:
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1430, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_n};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1430, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1430, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1430, __pyx_L5_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      {
        __pyx_t_1 = __pyx_t_5(__pyx_t_4);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1430, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_9genexpr25__pyx_v_i, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_9genexpr25__pyx_v_i); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 1430, __pyx_L5_error)
      __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_marked[__pyx_t_6])); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1430, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_1))) __PYX_ERR(4, 1430, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_9genexpr25__pyx_v_i); __pyx_9genexpr25__pyx_v_i = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr25__pyx_v_i); __pyx_9genexpr25__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_v_ans = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1431
 *         unchangeable_tetrahedra(self.c_triangulation, marked)
 *         ans = [marked[i] for i in range(n)]
 *         free(marked)             # <<<<<<<<<<<<<<
 *         if clear_marks:
 *             all_tetrahedra_changeable(self.c_triangulation)
*/
  free(__pyx_v_marked);

  /* "cython/core/triangulation.pyx":1432
 *         ans = [marked[i] for i in range(n)]
 *         free(marked)
 *         if clear_marks:             # <<<<<<<<<<<<<<
 *             all_tetrahedra_changeable(self.c_triangulation)
 *         return ans
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_clear_marks); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(4, 1432, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "cython/core/triangulation.pyx":1433
 *         free(marked)
 *         if clear_marks:
 *             all_tetrahedra_changeable(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         return ans
 * 
*/
    all_tetrahedra_changeable(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1433, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1432
 *         ans = [marked[i] for i in range(n)]
 *         free(marked)
 *         if clear_marks:             # <<<<<<<<<<<<<<
 *             all_tetrahedra_changeable(self.c_triangulation)
 *         return ans
*/
  }

  /* "cython/core/triangulation.pyx":1434
 *         if clear_marks:
 *             all_tetrahedra_changeable(self.c_triangulation)
 *         return ans             # <<<<<<<<<<<<<<
 * 
 *     def edge_valences(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1425
 *         return filled_tri
 * 
 *     def _marked_tetrahedra(self, clear_marks=False):             # <<<<<<<<<<<<<<
 *         cdef int *marked = NULL
 *         n = self.num_tetrahedra()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation._marked_tetrahedra", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XDECREF(__pyx_9genexpr25__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1436
 *         return ans
 * 
 *     def edge_valences(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a dictionary whose keys are the valences of the edges
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_97edge_valences(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_96edge_valences, "\n        Returns a dictionary whose keys are the valences of the edges\n        in the triangulation, and the value associated to a key is the\n        number of edges of that valence.\n\n        >>> M = Triangulation('v3227')\n        >>> M.edge_valences()     # doctest: +SKIP\n        {10: 1, 4: 1, 5: 2, 6: 3}\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_97edge_valences = {"edge_valences", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_97edge_valences, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_96edge_valences};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_97edge_valences(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("edge_valences (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("edge_valences", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("edge_valences", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_96edge_valences(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_96edge_valences(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  int __pyx_v_c;
  int __pyx_v_v;
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("edge_valences", 0);

  /* "cython/core/triangulation.pyx":1446
 *         {10: 1, 4: 1, 5: 2, 6: 3}
 *         """
 *         cdef int c, v = 1             # <<<<<<<<<<<<<<
 *         ans = {}
 *         if self.c_triangulation is NULL:
*/
  __pyx_v_v = 1;

  /* "cython/core/triangulation.pyx":1447
 *         """
 *         cdef int c, v = 1
 *         ans = {}             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ans = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":1448
 *         cdef int c, v = 1
 *         ans = {}
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         while get_num_edge_classes(self.c_triangulation, v, 1) > 0:
*/
  __pyx_t_2 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/triangulation.pyx":1449
 *         ans = {}
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         while get_num_edge_classes(self.c_triangulation, v, 1) > 0:
 *             c = get_num_edge_classes(self.c_triangulation, v, 0)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1449, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 1449, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1448
 *         cdef int c, v = 1
 *         ans = {}
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         while get_num_edge_classes(self.c_triangulation, v, 1) > 0:
*/
  }

  /* "cython/core/triangulation.pyx":1450
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         while get_num_edge_classes(self.c_triangulation, v, 1) > 0:             # <<<<<<<<<<<<<<
 *             c = get_num_edge_classes(self.c_triangulation, v, 0)
 *             if c > 0:
*/
  while (1) {
    __pyx_t_5 = get_num_edge_classes(__pyx_v_self->c_triangulation, __pyx_v_v, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1450, __pyx_L1_error)
    __pyx_t_2 = (__pyx_t_5 > 0);
    if (!__pyx_t_2) break;

    /* "cython/core/triangulation.pyx":1451
 *             raise ValueError('The Triangulation is empty.')
 *         while get_num_edge_classes(self.c_triangulation, v, 1) > 0:
 *             c = get_num_edge_classes(self.c_triangulation, v, 0)             # <<<<<<<<<<<<<<
 *             if c > 0:
 *                 ans[v] = c
*/
    __pyx_t_5 = get_num_edge_classes(__pyx_v_self->c_triangulation, __pyx_v_v, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1451, __pyx_L1_error)
    __pyx_v_c = __pyx_t_5;

    /* "cython/core/triangulation.pyx":1452
 *         while get_num_edge_classes(self.c_triangulation, v, 1) > 0:
 *             c = get_num_edge_classes(self.c_triangulation, v, 0)
 *             if c > 0:             # <<<<<<<<<<<<<<
 *                 ans[v] = c
 *             v += 1
*/
    __pyx_t_2 = (__pyx_v_c > 0);
    if (__pyx_t_2) {

      /* "cython/core/triangulation.pyx":1453
 *             c = get_num_edge_classes(self.c_triangulation, v, 0)
 *             if c > 0:
 *                 ans[v] = c             # <<<<<<<<<<<<<<
 *             v += 1
 *         return ans
*/
      __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_c); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1453, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1453, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely((PyDict_SetItem(__pyx_v_ans, __pyx_t_3, __pyx_t_1) < 0))) __PYX_ERR(4, 1453, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cython/core/triangulation.pyx":1452
 *         while get_num_edge_classes(self.c_triangulation, v, 1) > 0:
 *             c = get_num_edge_classes(self.c_triangulation, v, 0)
 *             if c > 0:             # <<<<<<<<<<<<<<
 *                 ans[v] = c
 *             v += 1
*/
    }

    /* "cython/core/triangulation.pyx":1454
 *             if c > 0:
 *                 ans[v] = c
 *             v += 1             # <<<<<<<<<<<<<<
 *         return ans
 * 
*/
    __pyx_v_v = (__pyx_v_v + 1);
  }

  /* "cython/core/triangulation.pyx":1455
 *                 ans[v] = c
 *             v += 1
 *         return ans             # <<<<<<<<<<<<<<
 * 
 *     def gluing_equations_pgl(self, N =2, equation_type='all'):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1436
 *         return ans
 * 
 *     def edge_valences(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a dictionary whose keys are the valences of the edges
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.edge_valences", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1457
 *         return ans
 * 
 *     def gluing_equations_pgl(self, N =2, equation_type='all'):             # <<<<<<<<<<<<<<
 * 
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_99gluing_equations_pgl(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_98gluing_equations_pgl, "\n        Returns a NeumannZagierTypeEquations object that contains a matrix\n        encoding the gluing equations for boundary-parabolic PGL(N,C)\n        representations together with explanations of the meaning\n        of the rows and the columns of the matrix.\n\n        This method generalizes gluing_equations() to PGL(N,C)-representations\n        as described in\n        Stavros Garoufalidis, Matthias Goerner, Christian K. Zickert:\n        \"Gluing Equations for PGL(n,C)-Representations of 3-Manifolds\"\n        (http://arxiv.org/abs/1207.6711).\n\n        The result of the :meth:`gluing_equations` can be obtained from\n        the general method by:\n\n        >>> M = Triangulation('m004')\n        >>> M.gluing_equations_pgl().matrix\n        [ 2  1  0  1  0  2]\n        [ 0  1  2  1  2  0]\n        [ 1  0  0  0 -1  0]\n        [ 0  0  0  0 -2  2]\n\n        But besides the matrix, the method also returns explanations of\n        the columns and rows:\n\n        >>> M = Triangulation(\"m004\")\n        >>> M.gluing_equations_pgl()\n        NeumannZagierTypeEquations(\n          [ 2  1  0  1  0  2]\n          [ 0  1  2  1  2  0]\n          [ 1  0  0  0 -1  0]\n          [ 0  0  0  0 -2  2],\n          explain_columns = ['z_0000_0', 'zp_0000_0', 'zpp_0000_0', 'z_0000_1', 'zp_0000_1', 'zpp_0000_1'],\n          explain_rows = ['edge_0_0', 'edge_0_1', 'meridian_0_0', 'longitude_0_0'])\n\n        The first row of the matrix means that the edge equation for\n        edge 0 is\n\n        .. math::\n\n           {z_{0000,0}}^2 * z'_{0000,0} * z_{0000,1} * {z''_{0000,1}}^2 = 1.\n\n        Similarly, the next row encodes the edge equation for the other edge\n        and the next two rows encode peripheral equations.\n\n        Following the SnapPy convention, a ``z`` denotes the cross ratio\n        :math:`z` at the edge (0,1), a ``zp`` the cross ratio :math:`z'` at\n        the edge (0,2) and a ``zpp`` the cross\n        ratio :math:`z''` at the edge (1,2). The ent""ire symbol ``z_xxxx_y`` then\n        denotes the cross ratio belonging to the subsimplex at integral\n        point ``xxxx`` (always ``0000`` for ``N = 2``) of the simplex ``y``.\n\n        Note: the SnapPy convention is different from the paper\n        mentioned above, e.g., compare\n        kernel_code/edge_classes.c with Figure 3. We follow the SnapPy\n        convention here so that all computations done in SnapPy are\n        consistent.\n\n        The explanations of the rows and columns can be obtained explicitly by:\n\n        >>> M.gluing_equations_pgl(N = 3, equation_type = 'peripheral').explain_rows\n        ['meridian_0_0', 'meridian_1_0', 'longitude_0_0', 'longitude_1_0']\n        >>> M.gluing_equations_pgl(N = 2).explain_columns\n        ['z_0000_0', 'zp_0000_0', 'zpp_0000_0', 'z_0000_1', 'zp_0000_1', 'zpp_0000_1']\n\n        A subset of all gluing equations can be obtained by setting the\n        ``equation_type``:\n\n        * all gluing equations: ``all``\n        * non-peripheral equations: ``non_peripheral``\n\n          * edge gluing equations: ``edge``\n          * face gluing equations: ``face``\n          * internal gluing equations: ``internal``\n\n        * cusp gluing equations: ``peripheral``\n\n          * cusp gluing equations for meridians: ``meridian``\n          * cusp gluing equations for longitudes: ``longitude``\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_99gluing_equations_pgl = {"gluing_equations_pgl", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_99gluing_equations_pgl, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_98gluing_equations_pgl};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_99gluing_equations_pgl(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_N = 0;
  PyObject *__pyx_v_equation_type = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("gluing_equations_pgl (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_N,&__pyx_mstate_global->__pyx_n_u_equation_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1457, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1457, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1457, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gluing_equations_pgl", 0) < (0)) __PYX_ERR(4, 1457, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_2));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_all));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1457, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1457, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_2));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_all));
    }
    __pyx_v_N = values[0];
    __pyx_v_equation_type = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("gluing_equations_pgl", 0, 0, 2, __pyx_nargs); __PYX_ERR(4, 1457, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.gluing_equations_pgl", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_98gluing_equations_pgl(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_N, __pyx_v_equation_type);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_98gluing_equations_pgl(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_N, PyObject *__pyx_v_equation_type) {
  Integer_matrix_with_explanations __pyx_v_c_matrix;
  PyObject *__pyx_v_equations = NULL;
  PyObject *__pyx_v_explain_rows = NULL;
  PyObject *__pyx_v_explain_cols = NULL;
  PyObject *__pyx_v_eqns = NULL;
  PyObject *__pyx_v_r = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_cusp_info = NULL;
  PyObject *__pyx_v_to_do = NULL;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_9genexpr26__pyx_v_j = NULL;
  PyObject *__pyx_9genexpr27__pyx_v_j = NULL;
  PyObject *__pyx_9genexpr28__pyx_v_j = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  PyObject *(*__pyx_t_11)(PyObject *);
  PyObject *(*__pyx_t_12)(PyObject *);
  PyObject *__pyx_t_13[4];
  PyObject *__pyx_t_14 = NULL;
  Py_ssize_t __pyx_t_15;
  int __pyx_t_16;
  int __pyx_t_17;
  int __pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("gluing_equations_pgl", 0);

  /* "cython/core/triangulation.pyx":1542
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if N < 2 or N > 15:             # <<<<<<<<<<<<<<
 *             raise ValueError('N has to be 2...15')
 * 
*/
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_N, __pyx_mstate_global->__pyx_int_2, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1542, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1542, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_N, __pyx_mstate_global->__pyx_int_15, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1542, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1542, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1543
 * 
 *         if N < 2 or N > 15:
 *             raise ValueError('N has to be 2...15')             # <<<<<<<<<<<<<<
 * 
 *         if equation_type not in ['all',
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_N_has_to_be_2_15};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1543, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1542
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if N < 2 or N > 15:             # <<<<<<<<<<<<<<
 *             raise ValueError('N has to be 2...15')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1545
 *             raise ValueError('N has to be 2...15')
 * 
 *         if equation_type not in ['all',             # <<<<<<<<<<<<<<
 *                                  'non_peripheral',
 *                                  'edge', 'face', 'internal',
*/
  __Pyx_INCREF(__pyx_v_equation_type);
  __pyx_t_2 = __pyx_v_equation_type;
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_all, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1545, __pyx_L1_error)
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_non_peripheral, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1545, __pyx_L1_error)
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_edge, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1545, __pyx_L1_error)
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_face, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1545, __pyx_L1_error)
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_internal, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1545, __pyx_L1_error)
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_peripheral, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1545, __pyx_L1_error)
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_longitude, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1545, __pyx_L1_error)
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_meridian, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1545, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_3;
  __pyx_L7_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __pyx_t_1;
  if (unlikely(__pyx_t_3)) {

    /* "cython/core/triangulation.pyx":1550
 *                                  'peripheral',
 *                                  'longitude', 'meridian']:
 *             raise ValueError('Wrong equation_type')             # <<<<<<<<<<<<<<
 * 
 *         if self.c_triangulation is NULL:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Wrong_equation_type};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1550, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1550, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1545
 *             raise ValueError('N has to be 2...15')
 * 
 *         if equation_type not in ['all',             # <<<<<<<<<<<<<<
 *                                  'non_peripheral',
 *                                  'edge', 'face', 'internal',
*/
  }

  /* "cython/core/triangulation.pyx":1552
 *             raise ValueError('Wrong equation_type')
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_3 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_3)) {

    /* "cython/core/triangulation.pyx":1553
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         equations = []
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1553, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1553, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1552
 *             raise ValueError('Wrong equation_type')
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1555
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         equations = []             # <<<<<<<<<<<<<<
 *         explain_rows = []
 *         explain_cols = []
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_equations = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1556
 * 
 *         equations = []
 *         explain_rows = []             # <<<<<<<<<<<<<<
 *         explain_cols = []
 * 
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_explain_rows = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1557
 *         equations = []
 *         explain_rows = []
 *         explain_cols = []             # <<<<<<<<<<<<<<
 * 
 *         if equation_type in [ 'all', 'non_peripheral', 'edge']:
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_explain_cols = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":1559
 *         explain_cols = []
 * 
 *         if equation_type in [ 'all', 'non_peripheral', 'edge']:             # <<<<<<<<<<<<<<
 * 
 *             # Add edge equations
*/
  __Pyx_INCREF(__pyx_v_equation_type);
  __pyx_t_2 = __pyx_v_equation_type;
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_all, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1559, __pyx_L1_error)
  if (!__pyx_t_1) {
  } else {
    __pyx_t_3 = __pyx_t_1;
    goto __pyx_L17_bool_binop_done;
  }
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_non_peripheral, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1559, __pyx_L1_error)
  if (!__pyx_t_1) {
  } else {
    __pyx_t_3 = __pyx_t_1;
    goto __pyx_L17_bool_binop_done;
  }
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_edge, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1559, __pyx_L1_error)
  __pyx_t_3 = __pyx_t_1;
  __pyx_L17_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __pyx_t_3;
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1563
 *             # Add edge equations
 *             get_edge_gluing_equations_pgl(self.c_triangulation,
 *                                           &c_matrix, N)             # <<<<<<<<<<<<<<
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns
*/
    __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1563, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1562
 * 
 *             # Add edge equations
 *             get_edge_gluing_equations_pgl(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                           &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
*/
    get_edge_gluing_equations_pgl(__pyx_v_self->c_triangulation, (&__pyx_v_c_matrix), __pyx_t_6);

    /* "cython/core/triangulation.pyx":1564
 *             get_edge_gluing_equations_pgl(self.c_triangulation,
 *                                           &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)             # <<<<<<<<<<<<<<
 *             equations += eqns
 *             explain_rows += r
*/
    __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_integer_matrix(__pyx_v_c_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 1564, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_8);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1564, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1564, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1564, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
      }
      #else
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1564, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1564, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1564, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1564, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
      index = 0; __pyx_t_4 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_4)) goto __pyx_L20_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_7 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_7)) goto __pyx_L20_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      index = 2; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L20_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_8);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < (0)) __PYX_ERR(4, 1564, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L21_unpacking_done;
      __pyx_L20_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 1564, __pyx_L1_error)
      __pyx_L21_unpacking_done:;
    }
    __pyx_v_eqns = __pyx_t_4;
    __pyx_t_4 = 0;
    __pyx_v_r = __pyx_t_7;
    __pyx_t_7 = 0;
    __Pyx_DECREF_SET(__pyx_v_explain_cols, __pyx_t_8);
    __pyx_t_8 = 0;

    /* "cython/core/triangulation.pyx":1565
 *                                           &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns             # <<<<<<<<<<<<<<
 *             explain_rows += r
 * 
*/
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_equations, __pyx_v_eqns); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_equations, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1566
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns
 *             explain_rows += r             # <<<<<<<<<<<<<<
 * 
 *         if equation_type in [ 'all', 'non_peripheral', 'face']:
*/
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_explain_rows, __pyx_v_r); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_explain_rows, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1559
 *         explain_cols = []
 * 
 *         if equation_type in [ 'all', 'non_peripheral', 'edge']:             # <<<<<<<<<<<<<<
 * 
 *             # Add edge equations
*/
  }

  /* "cython/core/triangulation.pyx":1568
 *             explain_rows += r
 * 
 *         if equation_type in [ 'all', 'non_peripheral', 'face']:             # <<<<<<<<<<<<<<
 * 
 *             # Add face equations
*/
  __Pyx_INCREF(__pyx_v_equation_type);
  __pyx_t_2 = __pyx_v_equation_type;
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_all, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1568, __pyx_L1_error)
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L23_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_non_peripheral, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1568, __pyx_L1_error)
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L23_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_face, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1568, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_3;
  __pyx_L23_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __pyx_t_1;
  if (__pyx_t_3) {

    /* "cython/core/triangulation.pyx":1572
 *             # Add face equations
 *             get_face_gluing_equations_pgl(self.c_triangulation,
 *                                           &c_matrix, N)             # <<<<<<<<<<<<<<
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns
*/
    __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1572, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1571
 * 
 *             # Add face equations
 *             get_face_gluing_equations_pgl(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                           &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
*/
    get_face_gluing_equations_pgl(__pyx_v_self->c_triangulation, (&__pyx_v_c_matrix), __pyx_t_6);

    /* "cython/core/triangulation.pyx":1573
 *             get_face_gluing_equations_pgl(self.c_triangulation,
 *                                           &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)             # <<<<<<<<<<<<<<
 *             equations += eqns
 *             explain_rows += r
*/
    __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_integer_matrix(__pyx_v_c_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 1573, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_4);
      } else {
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1573, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1573, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1573, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
      }
      #else
      __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1573, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1573, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1573, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1573, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
      index = 0; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L26_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_8);
      index = 1; __pyx_t_7 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_7)) goto __pyx_L26_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      index = 2; __pyx_t_4 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_4)) goto __pyx_L26_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < (0)) __PYX_ERR(4, 1573, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L27_unpacking_done;
      __pyx_L26_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 1573, __pyx_L1_error)
      __pyx_L27_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_eqns, __pyx_t_8);
    __pyx_t_8 = 0;
    __Pyx_XDECREF_SET(__pyx_v_r, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_DECREF_SET(__pyx_v_explain_cols, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":1574
 *                                           &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns             # <<<<<<<<<<<<<<
 *             explain_rows += r
 * 
*/
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_equations, __pyx_v_eqns); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_equations, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1575
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns
 *             explain_rows += r             # <<<<<<<<<<<<<<
 * 
 *         if equation_type in [ 'all', 'non_peripheral',  'internal']:
*/
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_explain_rows, __pyx_v_r); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_explain_rows, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1568
 *             explain_rows += r
 * 
 *         if equation_type in [ 'all', 'non_peripheral', 'face']:             # <<<<<<<<<<<<<<
 * 
 *             # Add face equations
*/
  }

  /* "cython/core/triangulation.pyx":1577
 *             explain_rows += r
 * 
 *         if equation_type in [ 'all', 'non_peripheral',  'internal']:             # <<<<<<<<<<<<<<
 * 
 *             # Add internal equations
*/
  __Pyx_INCREF(__pyx_v_equation_type);
  __pyx_t_2 = __pyx_v_equation_type;
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_all, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1577, __pyx_L1_error)
  if (!__pyx_t_1) {
  } else {
    __pyx_t_3 = __pyx_t_1;
    goto __pyx_L29_bool_binop_done;
  }
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_non_peripheral, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1577, __pyx_L1_error)
  if (!__pyx_t_1) {
  } else {
    __pyx_t_3 = __pyx_t_1;
    goto __pyx_L29_bool_binop_done;
  }
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_internal, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1577, __pyx_L1_error)
  __pyx_t_3 = __pyx_t_1;
  __pyx_L29_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __pyx_t_3;
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1581
 *             # Add internal equations
 *             get_internal_gluing_equations_pgl(self.c_triangulation,
 *                                               &c_matrix, N)             # <<<<<<<<<<<<<<
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns
*/
    __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1581, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1580
 * 
 *             # Add internal equations
 *             get_internal_gluing_equations_pgl(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                               &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
*/
    get_internal_gluing_equations_pgl(__pyx_v_self->c_triangulation, (&__pyx_v_c_matrix), __pyx_t_6);

    /* "cython/core/triangulation.pyx":1582
 *             get_internal_gluing_equations_pgl(self.c_triangulation,
 *                                               &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)             # <<<<<<<<<<<<<<
 *             equations += eqns
 *             explain_rows += r
*/
    __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_integer_matrix(__pyx_v_c_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1582, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 1582, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_8);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1582, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1582, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1582, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_8);
      }
      #else
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
      index = 0; __pyx_t_4 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_4)) goto __pyx_L32_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_7 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_7)) goto __pyx_L32_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      index = 2; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L32_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_8);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < (0)) __PYX_ERR(4, 1582, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L33_unpacking_done;
      __pyx_L32_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 1582, __pyx_L1_error)
      __pyx_L33_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_eqns, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_r, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_DECREF_SET(__pyx_v_explain_cols, __pyx_t_8);
    __pyx_t_8 = 0;

    /* "cython/core/triangulation.pyx":1583
 *                                               &c_matrix, N)
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns             # <<<<<<<<<<<<<<
 *             explain_rows += r
 * 
*/
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_equations, __pyx_v_eqns); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_equations, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1584
 *             eqns, r, explain_cols = convert_and_free_integer_matrix(c_matrix)
 *             equations += eqns
 *             explain_rows += r             # <<<<<<<<<<<<<<
 * 
 *         if equation_type in ['all', 'peripheral', 'longitude', 'meridian']:
*/
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_explain_rows, __pyx_v_r); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_explain_rows, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1577
 *             explain_rows += r
 * 
 *         if equation_type in [ 'all', 'non_peripheral',  'internal']:             # <<<<<<<<<<<<<<
 * 
 *             # Add internal equations
*/
  }

  /* "cython/core/triangulation.pyx":1586
 *             explain_rows += r
 * 
 *         if equation_type in ['all', 'peripheral', 'longitude', 'meridian']:             # <<<<<<<<<<<<<<
 * 
 *             # Add peripheral equations
*/
  __Pyx_INCREF(__pyx_v_equation_type);
  __pyx_t_2 = __pyx_v_equation_type;
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_all, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1586, __pyx_L1_error)
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L35_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_peripheral, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1586, __pyx_L1_error)
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L35_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_longitude, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1586, __pyx_L1_error)
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L35_bool_binop_done;
  }
  __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_meridian, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1586, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_3;
  __pyx_L35_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __pyx_t_1;
  if (__pyx_t_3) {

    /* "cython/core/triangulation.pyx":1590
 *             # Add peripheral equations
 * 
 *             for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                 cusp_info = self.cusp_info(i)
 * 
*/
    __pyx_t_8 = NULL;
    __pyx_t_4 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1590, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_7};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1590, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 1590, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_11(__pyx_t_7);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1590, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":1591
 * 
 *             for i in range(self.num_cusps()):
 *                 cusp_info = self.cusp_info(i)             # <<<<<<<<<<<<<<
 * 
 *                 to_do = []
*/
      __pyx_t_8 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_8);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_i};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1591, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_XDECREF_SET(__pyx_v_cusp_info, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":1593
 *                 cusp_info = self.cusp_info(i)
 * 
 *                 to_do = []             # <<<<<<<<<<<<<<
 *                 # keep a todo list where we add (meridian, longitude)
 *                 # pairs to process later
*/
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1593, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_to_do, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":1597
 *                 # pairs to process later
 * 
 *                 if cusp_info.is_complete:             # <<<<<<<<<<<<<<
 * 
 *                     # Add meridians for complete cusps
*/
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cusp_info, __pyx_mstate_global->__pyx_n_u_is_complete); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1597, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1597, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_3) {

        /* "cython/core/triangulation.pyx":1600
 * 
 *                     # Add meridians for complete cusps
 *                     if equation_type in [ 'meridian', 'peripheral', 'all']:             # <<<<<<<<<<<<<<
 *                         to_do += [ (1,0) ]
 *                         explain_rows += [
*/
        __Pyx_INCREF(__pyx_v_equation_type);
        __pyx_t_2 = __pyx_v_equation_type;
        __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_meridian, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1600, __pyx_L1_error)
        if (!__pyx_t_1) {
        } else {
          __pyx_t_3 = __pyx_t_1;
          goto __pyx_L43_bool_binop_done;
        }
        __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_peripheral, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1600, __pyx_L1_error)
        if (!__pyx_t_1) {
        } else {
          __pyx_t_3 = __pyx_t_1;
          goto __pyx_L43_bool_binop_done;
        }
        __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_all, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1600, __pyx_L1_error)
        __pyx_t_3 = __pyx_t_1;
        __pyx_L43_bool_binop_done:;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_1 = __pyx_t_3;
        if (__pyx_t_1) {

          /* "cython/core/triangulation.pyx":1601
 *                     # Add meridians for complete cusps
 *                     if equation_type in [ 'meridian', 'peripheral', 'all']:
 *                         to_do += [ (1,0) ]             # <<<<<<<<<<<<<<
 *                         explain_rows += [
 *                             "meridian_%d_%d" % (j, i) for j in range(N-1) ]
*/
          __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1601, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[5]);
          __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);
          if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_tuple[5]) != (0)) __PYX_ERR(4, 1601, __pyx_L1_error);
          __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_to_do, __pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1601, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF_SET(__pyx_v_to_do, ((PyObject*)__pyx_t_8));
          __pyx_t_8 = 0;

          /* "cython/core/triangulation.pyx":1602
 *                     if equation_type in [ 'meridian', 'peripheral', 'all']:
 *                         to_do += [ (1,0) ]
 *                         explain_rows += [             # <<<<<<<<<<<<<<
 *                             "meridian_%d_%d" % (j, i) for j in range(N-1) ]
 * 
*/
          { /* enter inner scope */
            __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1602, __pyx_L48_error)
            __Pyx_GOTREF(__pyx_t_8);

            /* "cython/core/triangulation.pyx":1603
 *                         to_do += [ (1,0) ]
 *                         explain_rows += [
 *                             "meridian_%d_%d" % (j, i) for j in range(N-1) ]             # <<<<<<<<<<<<<<
 * 
 *                     # Add longitudes for complete cusps
*/
            __pyx_t_4 = NULL;
            __pyx_t_9 = __Pyx_PyLong_SubtractObjC(__pyx_v_N, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1603, __pyx_L48_error)
            __Pyx_GOTREF(__pyx_t_9);
            __pyx_t_5 = 1;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_9};
              __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
              __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
              if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1603, __pyx_L48_error)
              __Pyx_GOTREF(__pyx_t_2);
            }
            __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1603, __pyx_L48_error)
            __Pyx_GOTREF(__pyx_t_9);
            __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 1603, __pyx_L48_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            for (;;) {
              {
                __pyx_t_2 = __pyx_t_12(__pyx_t_9);
                if (unlikely(!__pyx_t_2)) {
                  PyObject* exc_type = PyErr_Occurred();
                  if (exc_type) {
                    if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1603, __pyx_L48_error)
                    PyErr_Clear();
                  }
                  break;
                }
              }
              __Pyx_GOTREF(__pyx_t_2);
              __Pyx_XDECREF_SET(__pyx_9genexpr26__pyx_v_j, __pyx_t_2);
              __pyx_t_2 = 0;
              __pyx_t_2 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_9genexpr26__pyx_v_j), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1603, __pyx_L48_error)
              __Pyx_GOTREF(__pyx_t_2);
              __pyx_t_4 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_i), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1603, __pyx_L48_error)
              __Pyx_GOTREF(__pyx_t_4);
              __pyx_t_13[0] = __pyx_mstate_global->__pyx_n_u_meridian_2;
              __pyx_t_13[1] = __pyx_t_2;
              __pyx_t_13[2] = __pyx_mstate_global->__pyx_n_u__21;
              __pyx_t_13[3] = __pyx_t_4;
              __pyx_t_14 = __Pyx_PyUnicode_Join(__pyx_t_13, 4, 9 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4));
              if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 1603, __pyx_L48_error)
              __Pyx_GOTREF(__pyx_t_14);
              __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
              __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
              if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_14))) __PYX_ERR(4, 1602, __pyx_L48_error)
              __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
            }
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
            __Pyx_XDECREF(__pyx_9genexpr26__pyx_v_j); __pyx_9genexpr26__pyx_v_j = 0;
            goto __pyx_L52_exit_scope;
            __pyx_L48_error:;
            __Pyx_XDECREF(__pyx_9genexpr26__pyx_v_j); __pyx_9genexpr26__pyx_v_j = 0;
            goto __pyx_L1_error;
            __pyx_L52_exit_scope:;
          } /* exit inner scope */

          /* "cython/core/triangulation.pyx":1602
 *                     if equation_type in [ 'meridian', 'peripheral', 'all']:
 *                         to_do += [ (1,0) ]
 *                         explain_rows += [             # <<<<<<<<<<<<<<
 *                             "meridian_%d_%d" % (j, i) for j in range(N-1) ]
 * 
*/
          __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_explain_rows, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1602, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF_SET(__pyx_v_explain_rows, __pyx_t_9);
          __pyx_t_9 = 0;

          /* "cython/core/triangulation.pyx":1600
 * 
 *                     # Add meridians for complete cusps
 *                     if equation_type in [ 'meridian', 'peripheral', 'all']:             # <<<<<<<<<<<<<<
 *                         to_do += [ (1,0) ]
 *                         explain_rows += [
*/
        }

        /* "cython/core/triangulation.pyx":1606
 * 
 *                     # Add longitudes for complete cusps
 *                     if equation_type in [ 'longitude', 'peripheral', 'all']:             # <<<<<<<<<<<<<<
 *                         to_do += [ (0,1) ]
 *                         explain_rows += [
*/
        __Pyx_INCREF(__pyx_v_equation_type);
        __pyx_t_9 = __pyx_v_equation_type;
        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_longitude, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1606, __pyx_L1_error)
        if (!__pyx_t_3) {
        } else {
          __pyx_t_1 = __pyx_t_3;
          goto __pyx_L54_bool_binop_done;
        }
        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_peripheral, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1606, __pyx_L1_error)
        if (!__pyx_t_3) {
        } else {
          __pyx_t_1 = __pyx_t_3;
          goto __pyx_L54_bool_binop_done;
        }
        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_all, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1606, __pyx_L1_error)
        __pyx_t_1 = __pyx_t_3;
        __pyx_L54_bool_binop_done:;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __pyx_t_3 = __pyx_t_1;
        if (__pyx_t_3) {

          /* "cython/core/triangulation.pyx":1607
 *                     # Add longitudes for complete cusps
 *                     if equation_type in [ 'longitude', 'peripheral', 'all']:
 *                         to_do += [ (0,1) ]             # <<<<<<<<<<<<<<
 *                         explain_rows += [
 *                             "longitude_%d_%d" % (j, i) for j in range(N-1) ]
*/
          __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1607, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[4]);
          __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);
          if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_tuple[4]) != (0)) __PYX_ERR(4, 1607, __pyx_L1_error);
          __pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_to_do, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1607, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF_SET(__pyx_v_to_do, ((PyObject*)__pyx_t_8));
          __pyx_t_8 = 0;

          /* "cython/core/triangulation.pyx":1608
 *                     if equation_type in [ 'longitude', 'peripheral', 'all']:
 *                         to_do += [ (0,1) ]
 *                         explain_rows += [             # <<<<<<<<<<<<<<
 *                             "longitude_%d_%d" % (j, i) for j in range(N-1) ]
 * 
*/
          { /* enter inner scope */
            __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1608, __pyx_L59_error)
            __Pyx_GOTREF(__pyx_t_8);

            /* "cython/core/triangulation.pyx":1609
 *                         to_do += [ (0,1) ]
 *                         explain_rows += [
 *                             "longitude_%d_%d" % (j, i) for j in range(N-1) ]             # <<<<<<<<<<<<<<
 * 
 *                 else:
*/
            __pyx_t_14 = NULL;
            __pyx_t_4 = __Pyx_PyLong_SubtractObjC(__pyx_v_N, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1609, __pyx_L59_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_5 = 1;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_4};
              __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
              __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
              if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1609, __pyx_L59_error)
              __Pyx_GOTREF(__pyx_t_9);
            }
            __pyx_t_4 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1609, __pyx_L59_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 1609, __pyx_L59_error)
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
            for (;;) {
              {
                __pyx_t_9 = __pyx_t_12(__pyx_t_4);
                if (unlikely(!__pyx_t_9)) {
                  PyObject* exc_type = PyErr_Occurred();
                  if (exc_type) {
                    if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1609, __pyx_L59_error)
                    PyErr_Clear();
                  }
                  break;
                }
              }
              __Pyx_GOTREF(__pyx_t_9);
              __Pyx_XDECREF_SET(__pyx_9genexpr27__pyx_v_j, __pyx_t_9);
              __pyx_t_9 = 0;
              __pyx_t_9 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_9genexpr27__pyx_v_j), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1609, __pyx_L59_error)
              __Pyx_GOTREF(__pyx_t_9);
              __pyx_t_14 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_i), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 1609, __pyx_L59_error)
              __Pyx_GOTREF(__pyx_t_14);
              __pyx_t_13[0] = __pyx_mstate_global->__pyx_n_u_longitude_2;
              __pyx_t_13[1] = __pyx_t_9;
              __pyx_t_13[2] = __pyx_mstate_global->__pyx_n_u__21;
              __pyx_t_13[3] = __pyx_t_14;
              __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_13, 4, 10 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_14), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_14));
              if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1609, __pyx_L59_error)
              __Pyx_GOTREF(__pyx_t_2);
              __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
              __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
              if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_2))) __PYX_ERR(4, 1608, __pyx_L59_error)
              __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            }
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_XDECREF(__pyx_9genexpr27__pyx_v_j); __pyx_9genexpr27__pyx_v_j = 0;
            goto __pyx_L63_exit_scope;
            __pyx_L59_error:;
            __Pyx_XDECREF(__pyx_9genexpr27__pyx_v_j); __pyx_9genexpr27__pyx_v_j = 0;
            goto __pyx_L1_error;
            __pyx_L63_exit_scope:;
          } /* exit inner scope */

          /* "cython/core/triangulation.pyx":1608
 *                     if equation_type in [ 'longitude', 'peripheral', 'all']:
 *                         to_do += [ (0,1) ]
 *                         explain_rows += [             # <<<<<<<<<<<<<<
 *                             "longitude_%d_%d" % (j, i) for j in range(N-1) ]
 * 
*/
          __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_explain_rows, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1608, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF_SET(__pyx_v_explain_rows, __pyx_t_4);
          __pyx_t_4 = 0;

          /* "cython/core/triangulation.pyx":1606
 * 
 *                     # Add longitudes for complete cusps
 *                     if equation_type in [ 'longitude', 'peripheral', 'all']:             # <<<<<<<<<<<<<<
 *                         to_do += [ (0,1) ]
 *                         explain_rows += [
*/
        }

        /* "cython/core/triangulation.pyx":1597
 *                 # pairs to process later
 * 
 *                 if cusp_info.is_complete:             # <<<<<<<<<<<<<<
 * 
 *                     # Add meridians for complete cusps
*/
        goto __pyx_L41;
      }

      /* "cython/core/triangulation.pyx":1614
 * 
 *                     # Add Dehn-filling for incomplete cusp
 *                     to_do += [ cusp_info.filling ]             # <<<<<<<<<<<<<<
 *                     explain_rows += [
 *                         "filling_%d_%d" % (j, i) for j in range(N-1) ]
*/
      /*else*/ {
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cusp_info, __pyx_mstate_global->__pyx_n_u_filling); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1614, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1614, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_4);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_4) != (0)) __PYX_ERR(4, 1614, __pyx_L1_error);
        __pyx_t_4 = 0;
        __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_to_do, __pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1614, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF_SET(__pyx_v_to_do, ((PyObject*)__pyx_t_4));
        __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":1615
 *                     # Add Dehn-filling for incomplete cusp
 *                     to_do += [ cusp_info.filling ]
 *                     explain_rows += [             # <<<<<<<<<<<<<<
 *                         "filling_%d_%d" % (j, i) for j in range(N-1) ]
 * 
*/
        { /* enter inner scope */
          __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1615, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_4);

          /* "cython/core/triangulation.pyx":1616
 *                     to_do += [ cusp_info.filling ]
 *                     explain_rows += [
 *                         "filling_%d_%d" % (j, i) for j in range(N-1) ]             # <<<<<<<<<<<<<<
 * 
 *                 # process the todo list
*/
          __pyx_t_2 = NULL;
          __pyx_t_14 = __Pyx_PyLong_SubtractObjC(__pyx_v_N, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 1616, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_5 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_14};
            __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1616, __pyx_L66_error)
            __Pyx_GOTREF(__pyx_t_8);
          }
          __pyx_t_14 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 1616, __pyx_L66_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_14); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 1616, __pyx_L66_error)
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          for (;;) {
            {
              __pyx_t_8 = __pyx_t_12(__pyx_t_14);
              if (unlikely(!__pyx_t_8)) {
                PyObject* exc_type = PyErr_Occurred();
                if (exc_type) {
                  if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1616, __pyx_L66_error)
                  PyErr_Clear();
                }
                break;
              }
            }
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_XDECREF_SET(__pyx_9genexpr28__pyx_v_j, __pyx_t_8);
            __pyx_t_8 = 0;
            __pyx_t_8 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_9genexpr28__pyx_v_j), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1616, __pyx_L66_error)
            __Pyx_GOTREF(__pyx_t_8);
            __pyx_t_2 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_i), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1616, __pyx_L66_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_13[0] = __pyx_mstate_global->__pyx_n_u_filling_2;
            __pyx_t_13[1] = __pyx_t_8;
            __pyx_t_13[2] = __pyx_mstate_global->__pyx_n_u__21;
            __pyx_t_13[3] = __pyx_t_2;
            __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_13, 4, 8 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2));
            if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1616, __pyx_L66_error)
            __Pyx_GOTREF(__pyx_t_9);
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_t_9))) __PYX_ERR(4, 1615, __pyx_L66_error)
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          }
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_XDECREF(__pyx_9genexpr28__pyx_v_j); __pyx_9genexpr28__pyx_v_j = 0;
          goto __pyx_L70_exit_scope;
          __pyx_L66_error:;
          __Pyx_XDECREF(__pyx_9genexpr28__pyx_v_j); __pyx_9genexpr28__pyx_v_j = 0;
          goto __pyx_L1_error;
          __pyx_L70_exit_scope:;
        } /* exit inner scope */

        /* "cython/core/triangulation.pyx":1615
 *                     # Add Dehn-filling for incomplete cusp
 *                     to_do += [ cusp_info.filling ]
 *                     explain_rows += [             # <<<<<<<<<<<<<<
 *                         "filling_%d_%d" % (j, i) for j in range(N-1) ]
 * 
*/
        __pyx_t_14 = PyNumber_InPlaceAdd(__pyx_v_explain_rows, __pyx_t_4); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 1615, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF_SET(__pyx_v_explain_rows, __pyx_t_14);
        __pyx_t_14 = 0;
      }
      __pyx_L41:;

      /* "cython/core/triangulation.pyx":1619
 * 
 *                 # process the todo list
 *                 for (m, l) in to_do:             # <<<<<<<<<<<<<<
 * 
 *                     get_cusp_equations_pgl(self.c_triangulation,
*/
      __pyx_t_14 = __pyx_v_to_do; __Pyx_INCREF(__pyx_t_14);
      __pyx_t_15 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_14);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1619, __pyx_L1_error)
          #endif
          if (__pyx_t_15 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_14, __pyx_t_15, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_15;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1619, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
          PyObject* sequence = __pyx_t_4;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(4, 1619, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_9 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_9);
            __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_2);
          } else {
            __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1619, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_9);
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1619, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_2);
          }
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1619, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1619, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          #endif
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_8 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1619, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
          index = 0; __pyx_t_9 = __pyx_t_10(__pyx_t_8); if (unlikely(!__pyx_t_9)) goto __pyx_L73_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_9);
          index = 1; __pyx_t_2 = __pyx_t_10(__pyx_t_8); if (unlikely(!__pyx_t_2)) goto __pyx_L73_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_2);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_8), 2) < (0)) __PYX_ERR(4, 1619, __pyx_L1_error)
          __pyx_t_10 = NULL;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          goto __pyx_L74_unpacking_done;
          __pyx_L73_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_10 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(4, 1619, __pyx_L1_error)
          __pyx_L74_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_9);
        __pyx_t_9 = 0;
        __Pyx_XDECREF_SET(__pyx_v_l, __pyx_t_2);
        __pyx_t_2 = 0;

        /* "cython/core/triangulation.pyx":1623
 *                     get_cusp_equations_pgl(self.c_triangulation,
 *                                            &c_matrix,
 *                                            N, i, m, l)             # <<<<<<<<<<<<<<
 * 
 *                     eqns, r, explain_cols = (
*/
        __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1623, __pyx_L1_error)
        __pyx_t_16 = __Pyx_PyLong_As_int(__pyx_v_i); if (unlikely((__pyx_t_16 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1623, __pyx_L1_error)
        __pyx_t_17 = __Pyx_PyLong_As_int(__pyx_v_m); if (unlikely((__pyx_t_17 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1623, __pyx_L1_error)
        __pyx_t_18 = __Pyx_PyLong_As_int(__pyx_v_l); if (unlikely((__pyx_t_18 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1623, __pyx_L1_error)

        /* "cython/core/triangulation.pyx":1621
 *                 for (m, l) in to_do:
 * 
 *                     get_cusp_equations_pgl(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                            &c_matrix,
 *                                            N, i, m, l)
*/
        get_cusp_equations_pgl(__pyx_v_self->c_triangulation, (&__pyx_v_c_matrix), __pyx_t_6, __pyx_t_16, __pyx_t_17, __pyx_t_18);

        /* "cython/core/triangulation.pyx":1626
 * 
 *                     eqns, r, explain_cols = (
 *                         convert_and_free_integer_matrix(c_matrix))             # <<<<<<<<<<<<<<
 *                     equations += eqns
 * 
*/
        __pyx_t_4 = __pyx_f_6SnapPy_convert_and_free_integer_matrix(__pyx_v_c_matrix); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1626, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
          PyObject* sequence = __pyx_t_4;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 3)) {
            if (size > 3) __Pyx_RaiseTooManyValuesError(3);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(4, 1625, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_2);
            __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_9);
            __pyx_t_8 = PyTuple_GET_ITEM(sequence, 2);
            __Pyx_INCREF(__pyx_t_8);
          } else {
            __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1625, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_2);
            __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1625, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_9);
            __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1625, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_8);
          }
          #else
          __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1625, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1625, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1625, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          #endif
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_19 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 1625, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_19);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_19);
          index = 0; __pyx_t_2 = __pyx_t_10(__pyx_t_19); if (unlikely(!__pyx_t_2)) goto __pyx_L75_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_2);
          index = 1; __pyx_t_9 = __pyx_t_10(__pyx_t_19); if (unlikely(!__pyx_t_9)) goto __pyx_L75_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_9);
          index = 2; __pyx_t_8 = __pyx_t_10(__pyx_t_19); if (unlikely(!__pyx_t_8)) goto __pyx_L75_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_8);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_19), 3) < (0)) __PYX_ERR(4, 1625, __pyx_L1_error)
          __pyx_t_10 = NULL;
          __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
          goto __pyx_L76_unpacking_done;
          __pyx_L75_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
          __pyx_t_10 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(4, 1625, __pyx_L1_error)
          __pyx_L76_unpacking_done:;
        }

        /* "cython/core/triangulation.pyx":1625
 *                                            N, i, m, l)
 * 
 *                     eqns, r, explain_cols = (             # <<<<<<<<<<<<<<
 *                         convert_and_free_integer_matrix(c_matrix))
 *                     equations += eqns
*/
        __Pyx_XDECREF_SET(__pyx_v_eqns, __pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_XDECREF_SET(__pyx_v_r, __pyx_t_9);
        __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_explain_cols, __pyx_t_8);
        __pyx_t_8 = 0;

        /* "cython/core/triangulation.pyx":1627
 *                     eqns, r, explain_cols = (
 *                         convert_and_free_integer_matrix(c_matrix))
 *                     equations += eqns             # <<<<<<<<<<<<<<
 * 
 *         if equations == []:
*/
        __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_equations, __pyx_v_eqns); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1627, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_equations, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":1619
 * 
 *                 # process the todo list
 *                 for (m, l) in to_do:             # <<<<<<<<<<<<<<
 * 
 *                     get_cusp_equations_pgl(self.c_triangulation,
*/
      }
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

      /* "cython/core/triangulation.pyx":1590
 *             # Add peripheral equations
 * 
 *             for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                 cusp_info = self.cusp_info(i)
 * 
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/triangulation.pyx":1586
 *             explain_rows += r
 * 
 *         if equation_type in ['all', 'peripheral', 'longitude', 'meridian']:             # <<<<<<<<<<<<<<
 * 
 *             # Add peripheral equations
*/
  }

  /* "cython/core/triangulation.pyx":1629
 *                     equations += eqns
 * 
 *         if equations == []:             # <<<<<<<<<<<<<<
 *             # cover cases N = 2, 3 and equation_type = 'internal'
 *             return None
*/
  __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_14 = PyObject_RichCompare(__pyx_v_equations, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_14); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 1629, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_14); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1629, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
  if (__pyx_t_3) {

    /* "cython/core/triangulation.pyx":1631
 *         if equations == []:
 *             # cover cases N = 2, 3 and equation_type = 'internal'
 *             return None             # <<<<<<<<<<<<<<
 * 
 *         return NeumannZagierTypeEquations(matrix(equations),
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":1629
 *                     equations += eqns
 * 
 *         if equations == []:             # <<<<<<<<<<<<<<
 *             # cover cases N = 2, 3 and equation_type = 'internal'
 *             return None
*/
  }

  /* "cython/core/triangulation.pyx":1633
 *             return None
 * 
 *         return NeumannZagierTypeEquations(matrix(equations),             # <<<<<<<<<<<<<<
 *                                           explain_rows,
 *                                           explain_cols)
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_7 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NeumannZagierTypeEquations); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_v_equations};
    __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }

  /* "cython/core/triangulation.pyx":1635
 *         return NeumannZagierTypeEquations(matrix(equations),
 *                                           explain_rows,
 *                                           explain_cols)             # <<<<<<<<<<<<<<
 * 
 *     def _ptolemy_equations_identified_face_classes(self):
*/
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_7);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_7);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_7, __pyx_t_8, __pyx_v_explain_rows, __pyx_v_explain_cols};
    __pyx_t_14 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 1633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
  }
  __pyx_r = __pyx_t_14;
  __pyx_t_14 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1457
 *         return ans
 * 
 *     def gluing_equations_pgl(self, N =2, equation_type='all'):             # <<<<<<<<<<<<<<
 * 
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_19);
  __Pyx_AddTraceback("SnapPy.Triangulation.gluing_equations_pgl", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_equations);
  __Pyx_XDECREF(__pyx_v_explain_rows);
  __Pyx_XDECREF(__pyx_v_explain_cols);
  __Pyx_XDECREF(__pyx_v_eqns);
  __Pyx_XDECREF(__pyx_v_r);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_cusp_info);
  __Pyx_XDECREF(__pyx_v_to_do);
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XDECREF(__pyx_9genexpr26__pyx_v_j);
  __Pyx_XDECREF(__pyx_9genexpr27__pyx_v_j);
  __Pyx_XDECREF(__pyx_9genexpr28__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1637
 *                                           explain_cols)
 * 
 *     def _ptolemy_equations_identified_face_classes(self):             # <<<<<<<<<<<<<<
 *         """
 *         This function returns an identification structure where s_f_t gets
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_101_ptolemy_equations_identified_face_classes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_100_ptolemy_equations_identified_face_classes, "\n        This function returns an identification structure where s_f_t gets\n        identified with -s_g_u if face f of tetrahedron t is glued to face g of\n        tetrahedron u.\n\n        We can represent a 2-cohomology class H^2(M,boundary M) by denoting by\n        s_f_t the value the 2-cohomology class takes on the face f of\n        tetrahedron t with the orientation being the one induced from the\n        orientation of the tetrahedron.\n        Because a face class of the triangulation has two representatives\n        (tet_index, face_index) and the gluing is orientation-reversing on the\n        face, one s will be the negative of another s.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_101_ptolemy_equations_identified_face_classes = {"_ptolemy_equations_identified_face_classes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_101_ptolemy_equations_identified_face_classes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_100_ptolemy_equations_identified_face_classes};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_101_ptolemy_equations_identified_face_classes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ptolemy_equations_identified_face_classes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_ptolemy_equations_identified_face_classes", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_ptolemy_equations_identified_face_classes", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_100_ptolemy_equations_identified_face_classes(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_100_ptolemy_equations_identified_face_classes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  Identification_of_variables __pyx_v_c_vars;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ptolemy_equations_identified_face_classes", 0);

  /* "cython/core/triangulation.pyx":1654
 *         cdef Identification_of_variables c_vars
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1655
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         number_the_tetrahedra(self.c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1655, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1655, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1654
 *         cdef Identification_of_variables c_vars
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1657
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         number_the_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         get_ptolemy_equations_identified_face_classes(
*/
  number_the_tetrahedra(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":1659
 *         number_the_tetrahedra(self.c_triangulation)
 * 
 *         get_ptolemy_equations_identified_face_classes(             # <<<<<<<<<<<<<<
 *             self.c_triangulation, &c_vars)
 * 
*/
  get_ptolemy_equations_identified_face_classes(__pyx_v_self->c_triangulation, (&__pyx_v_c_vars));

  /* "cython/core/triangulation.pyx":1662
 *             self.c_triangulation, &c_vars)
 * 
 *         return convert_and_free_identification_of_variables(c_vars)             # <<<<<<<<<<<<<<
 * 
 *     def _ptolemy_equations_identified_coordinates(self, N,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_identification_of_variables(__pyx_v_c_vars); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1637
 *                                           explain_cols)
 * 
 *     def _ptolemy_equations_identified_face_classes(self):             # <<<<<<<<<<<<<<
 *         """
 *         This function returns an identification structure where s_f_t gets
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation._ptolemy_equations_identified_face_classes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1664
 *         return convert_and_free_identification_of_variables(c_vars)
 * 
 *     def _ptolemy_equations_identified_coordinates(self, N,             # <<<<<<<<<<<<<<
 *                                                   obstruction_class = None):
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_103_ptolemy_equations_identified_coordinates(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_102_ptolemy_equations_identified_coordinates, "\n        Ptolemy coordinates that need to be identified for the given\n        triangulation when computing pSL(N,C) representations.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_103_ptolemy_equations_identified_coordinates = {"_ptolemy_equations_identified_coordinates", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_103_ptolemy_equations_identified_coordinates, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_102_ptolemy_equations_identified_coordinates};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_103_ptolemy_equations_identified_coordinates(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_N = 0;
  PyObject *__pyx_v_obstruction_class = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ptolemy_equations_identified_coordinates (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_N,&__pyx_mstate_global->__pyx_n_u_obstruction_class,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1664, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1664, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1664, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_ptolemy_equations_identified_coordinates", 0) < (0)) __PYX_ERR(4, 1664, __pyx_L3_error)

      /* "cython/core/triangulation.pyx":1665
 * 
 *     def _ptolemy_equations_identified_coordinates(self, N,
 *                                                   obstruction_class = None):             # <<<<<<<<<<<<<<
 * 
 *         """
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_ptolemy_equations_identified_coordinates", 0, 1, 2, i); __PYX_ERR(4, 1664, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1664, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1664, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_N = values[0];
    __pyx_v_obstruction_class = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ptolemy_equations_identified_coordinates", 0, 1, 2, __pyx_nargs); __PYX_ERR(4, 1664, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._ptolemy_equations_identified_coordinates", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_102_ptolemy_equations_identified_coordinates(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_N, __pyx_v_obstruction_class);

  /* "cython/core/triangulation.pyx":1664
 *         return convert_and_free_identification_of_variables(c_vars)
 * 
 *     def _ptolemy_equations_identified_coordinates(self, N,             # <<<<<<<<<<<<<<
 *                                                   obstruction_class = None):
 * 
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_102_ptolemy_equations_identified_coordinates(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_N, PyObject *__pyx_v_obstruction_class) {
  Identification_of_variables __pyx_v_c_vars;
  int *__pyx_v_c_obstruction_class;
  int __pyx_v_T;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  Py_ssize_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ptolemy_equations_identified_coordinates", 0);

  /* "cython/core/triangulation.pyx":1673
 * 
 *         cdef Identification_of_variables c_vars
 *         cdef int *c_obstruction_class = NULL             # <<<<<<<<<<<<<<
 *         cdef int T
 * 
*/
  __pyx_v_c_obstruction_class = NULL;

  /* "cython/core/triangulation.pyx":1676
 *         cdef int T
 * 
 *         if N < 2 or N > 15:             # <<<<<<<<<<<<<<
 *             raise ValueError('N has to be 2...15')
 * 
*/
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_N, __pyx_mstate_global->__pyx_int_2, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1676, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1676, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_N, __pyx_mstate_global->__pyx_int_15, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1676, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 1676, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1677
 * 
 *         if N < 2 or N > 15:
 *             raise ValueError('N has to be 2...15')             # <<<<<<<<<<<<<<
 * 
 *         if self.c_triangulation is NULL:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_N_has_to_be_2_15};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1677, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1677, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1676
 *         cdef int T
 * 
 *         if N < 2 or N > 15:             # <<<<<<<<<<<<<<
 *             raise ValueError('N has to be 2...15')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1679
 *             raise ValueError('N has to be 2...15')
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1680
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         if obstruction_class:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1680, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1680, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1679
 *             raise ValueError('N has to be 2...15')
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1682
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         if obstruction_class:             # <<<<<<<<<<<<<<
 *             T = get_num_tetrahedra(self.c_triangulation)
 *             if 2 * T != len(obstruction_class):
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_obstruction_class); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 1682, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":1683
 * 
 *         if obstruction_class:
 *             T = get_num_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 *             if 2 * T != len(obstruction_class):
 *                 raise ValueError('Obstruction class has wrong length')
*/
    __pyx_t_6 = get_num_tetrahedra(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 1683, __pyx_L1_error)
    __pyx_v_T = __pyx_t_6;

    /* "cython/core/triangulation.pyx":1684
 *         if obstruction_class:
 *             T = get_num_tetrahedra(self.c_triangulation)
 *             if 2 * T != len(obstruction_class):             # <<<<<<<<<<<<<<
 *                 raise ValueError('Obstruction class has wrong length')
 *             c_obstruction_class = <int *>malloc(2*T*sizeof(int))
*/
    __pyx_t_7 = PyObject_Length(__pyx_v_obstruction_class); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(4, 1684, __pyx_L1_error)
    __pyx_t_1 = ((2 * __pyx_v_T) != __pyx_t_7);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/triangulation.pyx":1685
 *             T = get_num_tetrahedra(self.c_triangulation)
 *             if 2 * T != len(obstruction_class):
 *                 raise ValueError('Obstruction class has wrong length')             # <<<<<<<<<<<<<<
 *             c_obstruction_class = <int *>malloc(2*T*sizeof(int))
 *             for i, c in enumerate(obstruction_class):
*/
      __pyx_t_4 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Obstruction_class_has_wrong_leng};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1685, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(4, 1685, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":1684
 *         if obstruction_class:
 *             T = get_num_tetrahedra(self.c_triangulation)
 *             if 2 * T != len(obstruction_class):             # <<<<<<<<<<<<<<
 *                 raise ValueError('Obstruction class has wrong length')
 *             c_obstruction_class = <int *>malloc(2*T*sizeof(int))
*/
    }

    /* "cython/core/triangulation.pyx":1686
 *             if 2 * T != len(obstruction_class):
 *                 raise ValueError('Obstruction class has wrong length')
 *             c_obstruction_class = <int *>malloc(2*T*sizeof(int))             # <<<<<<<<<<<<<<
 *             for i, c in enumerate(obstruction_class):
 *                 c_obstruction_class[i] = c
*/
    __pyx_v_c_obstruction_class = ((int *)malloc(((2 * __pyx_v_T) * (sizeof(int)))));

    /* "cython/core/triangulation.pyx":1687
 *                 raise ValueError('Obstruction class has wrong length')
 *             c_obstruction_class = <int *>malloc(2*T*sizeof(int))
 *             for i, c in enumerate(obstruction_class):             # <<<<<<<<<<<<<<
 *                 c_obstruction_class[i] = c
 * 
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_2 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_obstruction_class)) || PyTuple_CheckExact(__pyx_v_obstruction_class)) {
      __pyx_t_4 = __pyx_v_obstruction_class; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_obstruction_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1687, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1687, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1687, __pyx_L1_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_7;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 1687, __pyx_L1_error)
            #endif
            if (__pyx_t_7 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7));
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_7);
          #endif
          ++__pyx_t_7;
        }
        if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1687, __pyx_L1_error)
      } else {
        __pyx_t_9 = __pyx_t_8(__pyx_t_4);
        if (unlikely(!__pyx_t_9)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 1687, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_9);
      __pyx_t_9 = 0;
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
      __pyx_t_9 = __Pyx_PyLong_AddObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 1687, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_2);
      __pyx_t_2 = __pyx_t_9;
      __pyx_t_9 = 0;

      /* "cython/core/triangulation.pyx":1688
 *             c_obstruction_class = <int *>malloc(2*T*sizeof(int))
 *             for i, c in enumerate(obstruction_class):
 *                 c_obstruction_class[i] = c             # <<<<<<<<<<<<<<
 * 
 *         number_the_tetrahedra(self.c_triangulation)
*/
      __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_v_c); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1688, __pyx_L1_error)
      __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 1688, __pyx_L1_error)
      (__pyx_v_c_obstruction_class[__pyx_t_10]) = __pyx_t_6;

      /* "cython/core/triangulation.pyx":1687
 *                 raise ValueError('Obstruction class has wrong length')
 *             c_obstruction_class = <int *>malloc(2*T*sizeof(int))
 *             for i, c in enumerate(obstruction_class):             # <<<<<<<<<<<<<<
 *                 c_obstruction_class[i] = c
 * 
*/
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":1682
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         if obstruction_class:             # <<<<<<<<<<<<<<
 *             T = get_num_tetrahedra(self.c_triangulation)
 *             if 2 * T != len(obstruction_class):
*/
  }

  /* "cython/core/triangulation.pyx":1690
 *                 c_obstruction_class[i] = c
 * 
 *         number_the_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         get_ptolemy_equations_identified_coordinates(
*/
  number_the_tetrahedra(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":1693
 * 
 *         get_ptolemy_equations_identified_coordinates(
 *             self.c_triangulation, &c_vars, N, c_obstruction_class)             # <<<<<<<<<<<<<<
 * 
 *         free(c_obstruction_class)
*/
  __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1693, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":1692
 *         number_the_tetrahedra(self.c_triangulation)
 * 
 *         get_ptolemy_equations_identified_coordinates(             # <<<<<<<<<<<<<<
 *             self.c_triangulation, &c_vars, N, c_obstruction_class)
 * 
*/
  get_ptolemy_equations_identified_coordinates(__pyx_v_self->c_triangulation, (&__pyx_v_c_vars), __pyx_t_6, __pyx_v_c_obstruction_class);

  /* "cython/core/triangulation.pyx":1695
 *             self.c_triangulation, &c_vars, N, c_obstruction_class)
 * 
 *         free(c_obstruction_class)             # <<<<<<<<<<<<<<
 * 
 *         return convert_and_free_identification_of_variables(c_vars)
*/
  free(__pyx_v_c_obstruction_class);

  /* "cython/core/triangulation.pyx":1697
 *         free(c_obstruction_class)
 * 
 *         return convert_and_free_identification_of_variables(c_vars)             # <<<<<<<<<<<<<<
 * 
 *     def _ptolemy_equations_action_by_decoration_change(self, int N):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_identification_of_variables(__pyx_v_c_vars); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1664
 *         return convert_and_free_identification_of_variables(c_vars)
 * 
 *     def _ptolemy_equations_identified_coordinates(self, N,             # <<<<<<<<<<<<<<
 *                                                   obstruction_class = None):
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Triangulation._ptolemy_equations_identified_coordinates", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1699
 *         return convert_and_free_identification_of_variables(c_vars)
 * 
 *     def _ptolemy_equations_action_by_decoration_change(self, int N):             # <<<<<<<<<<<<<<
 *         """
 *         We can change a decoration by multiplying a coset of a cusp by a
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_105_ptolemy_equations_action_by_decoration_change(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_104_ptolemy_equations_action_by_decoration_change, "\n        We can change a decoration by multiplying a coset of a cusp by a\n        diagonal matrix. Let a diagonal matrix SL(n,C) with diagonal\n        entries 1 1 ... z 1 ... 1 1/z (z at position j) act on cusp i. It\n        changes some Ptolemy coordinate c_p_t by some power z^n.\n        This is expressed in the following matrix as the entry in row\n        labelled c_p_t and the column labelled diagonal_entry_j_on_cusp_i.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_105_ptolemy_equations_action_by_decoration_change = {"_ptolemy_equations_action_by_decoration_change", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_105_ptolemy_equations_action_by_decoration_change, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_104_ptolemy_equations_action_by_decoration_change};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_105_ptolemy_equations_action_by_decoration_change(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_N;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ptolemy_equations_action_by_decoration_change (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_N,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1699, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1699, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_ptolemy_equations_action_by_decoration_change", 0) < (0)) __PYX_ERR(4, 1699, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_ptolemy_equations_action_by_decoration_change", 1, 1, 1, i); __PYX_ERR(4, 1699, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1699, __pyx_L3_error)
    }
    __pyx_v_N = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_N == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 1699, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ptolemy_equations_action_by_decoration_change", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 1699, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._ptolemy_equations_action_by_decoration_change", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_104_ptolemy_equations_action_by_decoration_change(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_N);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_104_ptolemy_equations_action_by_decoration_change(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_N) {
  Integer_matrix_with_explanations __pyx_v_c_matrix;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_explain_rows = NULL;
  PyObject *__pyx_v_explain_cols = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ptolemy_equations_action_by_decoration_change", 0);

  /* "cython/core/triangulation.pyx":1711
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1712
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         number_the_tetrahedra(self.c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1712, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1712, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1711
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1714
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         number_the_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         get_ptolemy_equations_action_by_decoration_change(
*/
  number_the_tetrahedra(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":1716
 *         number_the_tetrahedra(self.c_triangulation)
 * 
 *         get_ptolemy_equations_action_by_decoration_change(             # <<<<<<<<<<<<<<
 *             self.c_triangulation,N, &c_matrix)
 *         m, explain_rows, explain_cols = convert_and_free_integer_matrix(
*/
  get_ptolemy_equations_action_by_decoration_change(__pyx_v_self->c_triangulation, __pyx_v_N, (&__pyx_v_c_matrix));

  /* "cython/core/triangulation.pyx":1718
 *         get_ptolemy_equations_action_by_decoration_change(
 *             self.c_triangulation,N, &c_matrix)
 *         m, explain_rows, explain_cols = convert_and_free_integer_matrix(             # <<<<<<<<<<<<<<
 *             c_matrix)
 * 
*/
  __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_integer_matrix(__pyx_v_c_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(4, 1718, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_6);
    } else {
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1718, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1718, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1718, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_6);
    }
    #else
    __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
    index = 0; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    index = 1; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_5);
    index = 2; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 3) < (0)) __PYX_ERR(4, 1718, __pyx_L1_error)
    __pyx_t_8 = NULL;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L5_unpacking_done;
    __pyx_L4_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(4, 1718, __pyx_L1_error)
    __pyx_L5_unpacking_done:;
  }
  __pyx_v_m = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_v_explain_rows = __pyx_t_5;
  __pyx_t_5 = 0;
  __pyx_v_explain_cols = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1721
 *             c_matrix)
 * 
 *         return m, explain_rows, explain_cols             # <<<<<<<<<<<<<<
 * 
 *     def _ptolemy_equations_boundary_map_3(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_m);
  __Pyx_GIVEREF(__pyx_v_m);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_m) != (0)) __PYX_ERR(4, 1721, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_rows);
  __Pyx_GIVEREF(__pyx_v_explain_rows);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_explain_rows) != (0)) __PYX_ERR(4, 1721, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_cols);
  __Pyx_GIVEREF(__pyx_v_explain_cols);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_explain_cols) != (0)) __PYX_ERR(4, 1721, __pyx_L1_error);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1699
 *         return convert_and_free_identification_of_variables(c_vars)
 * 
 *     def _ptolemy_equations_action_by_decoration_change(self, int N):             # <<<<<<<<<<<<<<
 *         """
 *         We can change a decoration by multiplying a coset of a cusp by a
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation._ptolemy_equations_action_by_decoration_change", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_explain_rows);
  __Pyx_XDECREF(__pyx_v_explain_cols);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1723
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_3(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_3 -> C_2 in cellular homology represented as matrix
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_107_ptolemy_equations_boundary_map_3(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_106_ptolemy_equations_boundary_map_3, "\n        Boundary map C_3 -> C_2 in cellular homology represented as matrix\n\n        The following map represents the boundary map in the cellular chain\n        complex when representing a linear map as a matrix m acting on a column\n        vector v by left-multiplication m * v. With right-multiplication acting\n        on row vectors, the matrix represents the coboundary map in the cochain\n        complex.\n\n        The basis for C_3 are just the oriented tetrahedra of the triangulation.\n        The basis for C_2 are the face classes, see\n        _ptolemy_equations_identified_face_classes.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_107_ptolemy_equations_boundary_map_3 = {"_ptolemy_equations_boundary_map_3", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_107_ptolemy_equations_boundary_map_3, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_106_ptolemy_equations_boundary_map_3};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_107_ptolemy_equations_boundary_map_3(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ptolemy_equations_boundary_map_3 (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_ptolemy_equations_boundary_map_3", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_ptolemy_equations_boundary_map_3", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_106_ptolemy_equations_boundary_map_3(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_106_ptolemy_equations_boundary_map_3(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  Integer_matrix_with_explanations __pyx_v_c_matrix;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_explain_rows = NULL;
  PyObject *__pyx_v_explain_cols = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ptolemy_equations_boundary_map_3", 0);

  /* "cython/core/triangulation.pyx":1740
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1741
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         number_the_tetrahedra(self.c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1741, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1741, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1740
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1743
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         number_the_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         get_ptolemy_equations_boundary_map_3(self.c_triangulation, &c_matrix)
*/
  number_the_tetrahedra(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":1745
 *         number_the_tetrahedra(self.c_triangulation)
 * 
 *         get_ptolemy_equations_boundary_map_3(self.c_triangulation, &c_matrix)             # <<<<<<<<<<<<<<
 * 
 *         m, explain_rows, explain_cols = convert_and_free_integer_matrix(
*/
  get_ptolemy_equations_boundary_map_3(__pyx_v_self->c_triangulation, (&__pyx_v_c_matrix));

  /* "cython/core/triangulation.pyx":1747
 *         get_ptolemy_equations_boundary_map_3(self.c_triangulation, &c_matrix)
 * 
 *         m, explain_rows, explain_cols = convert_and_free_integer_matrix(             # <<<<<<<<<<<<<<
 *             c_matrix)
 * 
*/
  __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_integer_matrix(__pyx_v_c_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(4, 1747, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_6);
    } else {
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1747, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1747, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1747, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_6);
    }
    #else
    __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
    index = 0; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    index = 1; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_5);
    index = 2; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 3) < (0)) __PYX_ERR(4, 1747, __pyx_L1_error)
    __pyx_t_8 = NULL;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L5_unpacking_done;
    __pyx_L4_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(4, 1747, __pyx_L1_error)
    __pyx_L5_unpacking_done:;
  }
  __pyx_v_m = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_v_explain_rows = __pyx_t_5;
  __pyx_t_5 = 0;
  __pyx_v_explain_cols = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1750
 *             c_matrix)
 * 
 *         return m, explain_rows, explain_cols             # <<<<<<<<<<<<<<
 * 
 *     def _ptolemy_equations_boundary_map_2(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1750, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_m);
  __Pyx_GIVEREF(__pyx_v_m);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_m) != (0)) __PYX_ERR(4, 1750, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_rows);
  __Pyx_GIVEREF(__pyx_v_explain_rows);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_explain_rows) != (0)) __PYX_ERR(4, 1750, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_cols);
  __Pyx_GIVEREF(__pyx_v_explain_cols);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_explain_cols) != (0)) __PYX_ERR(4, 1750, __pyx_L1_error);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1723
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_3(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_3 -> C_2 in cellular homology represented as matrix
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation._ptolemy_equations_boundary_map_3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_explain_rows);
  __Pyx_XDECREF(__pyx_v_explain_cols);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1752
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_2(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_2 -> C_1 in cellular homology represented as matrix.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_109_ptolemy_equations_boundary_map_2(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_108_ptolemy_equations_boundary_map_2, "\n        Boundary map C_2 -> C_1 in cellular homology represented as matrix.\n\n        Also see _ptolemy_equations_boundary_map_3.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_109_ptolemy_equations_boundary_map_2 = {"_ptolemy_equations_boundary_map_2", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_109_ptolemy_equations_boundary_map_2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_108_ptolemy_equations_boundary_map_2};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_109_ptolemy_equations_boundary_map_2(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ptolemy_equations_boundary_map_2 (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_ptolemy_equations_boundary_map_2", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_ptolemy_equations_boundary_map_2", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_108_ptolemy_equations_boundary_map_2(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_108_ptolemy_equations_boundary_map_2(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  Integer_matrix_with_explanations __pyx_v_c_matrix;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_explain_rows = NULL;
  PyObject *__pyx_v_explain_cols = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ptolemy_equations_boundary_map_2", 0);

  /* "cython/core/triangulation.pyx":1761
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1762
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         number_the_tetrahedra(self.c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1762, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1762, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1761
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1764
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         number_the_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         get_ptolemy_equations_boundary_map_2(self.c_triangulation, &c_matrix)
*/
  number_the_tetrahedra(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":1766
 *         number_the_tetrahedra(self.c_triangulation)
 * 
 *         get_ptolemy_equations_boundary_map_2(self.c_triangulation, &c_matrix)             # <<<<<<<<<<<<<<
 * 
 *         m, explain_rows, explain_cols = convert_and_free_integer_matrix(
*/
  get_ptolemy_equations_boundary_map_2(__pyx_v_self->c_triangulation, (&__pyx_v_c_matrix));

  /* "cython/core/triangulation.pyx":1768
 *         get_ptolemy_equations_boundary_map_2(self.c_triangulation, &c_matrix)
 * 
 *         m, explain_rows, explain_cols = convert_and_free_integer_matrix(             # <<<<<<<<<<<<<<
 *             c_matrix)
 * 
*/
  __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_integer_matrix(__pyx_v_c_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(4, 1768, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_6);
    } else {
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1768, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1768, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1768, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_6);
    }
    #else
    __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
    index = 0; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    index = 1; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_5);
    index = 2; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 3) < (0)) __PYX_ERR(4, 1768, __pyx_L1_error)
    __pyx_t_8 = NULL;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L5_unpacking_done;
    __pyx_L4_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(4, 1768, __pyx_L1_error)
    __pyx_L5_unpacking_done:;
  }
  __pyx_v_m = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_v_explain_rows = __pyx_t_5;
  __pyx_t_5 = 0;
  __pyx_v_explain_cols = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1771
 *             c_matrix)
 * 
 *         return m, explain_rows, explain_cols             # <<<<<<<<<<<<<<
 * 
 *     def _ptolemy_equations_boundary_map_1(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_m);
  __Pyx_GIVEREF(__pyx_v_m);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_m) != (0)) __PYX_ERR(4, 1771, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_rows);
  __Pyx_GIVEREF(__pyx_v_explain_rows);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_explain_rows) != (0)) __PYX_ERR(4, 1771, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_cols);
  __Pyx_GIVEREF(__pyx_v_explain_cols);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_explain_cols) != (0)) __PYX_ERR(4, 1771, __pyx_L1_error);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1752
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_2(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_2 -> C_1 in cellular homology represented as matrix.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation._ptolemy_equations_boundary_map_2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_explain_rows);
  __Pyx_XDECREF(__pyx_v_explain_cols);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1773
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_1(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_1 -> C_0 in cellular homology represented as matrix.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_111_ptolemy_equations_boundary_map_1(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_110_ptolemy_equations_boundary_map_1, "\n        Boundary map C_1 -> C_0 in cellular homology represented as matrix.\n        This will compute the homology of the cell complex obtained when\n        gluing together the tetrahedra and not of the cusped manifold.\n\n        Also see _ptolemy_equations_boundary_map_3.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_111_ptolemy_equations_boundary_map_1 = {"_ptolemy_equations_boundary_map_1", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_111_ptolemy_equations_boundary_map_1, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_110_ptolemy_equations_boundary_map_1};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_111_ptolemy_equations_boundary_map_1(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ptolemy_equations_boundary_map_1 (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_ptolemy_equations_boundary_map_1", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_ptolemy_equations_boundary_map_1", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_110_ptolemy_equations_boundary_map_1(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_110_ptolemy_equations_boundary_map_1(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  Integer_matrix_with_explanations __pyx_v_c_matrix;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_explain_rows = NULL;
  PyObject *__pyx_v_explain_cols = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ptolemy_equations_boundary_map_1", 0);

  /* "cython/core/triangulation.pyx":1784
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":1785
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         number_the_tetrahedra(self.c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1785, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 1785, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":1784
 *         cdef Integer_matrix_with_explanations c_matrix
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":1787
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         number_the_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         get_ptolemy_equations_boundary_map_1(self.c_triangulation, &c_matrix)
*/
  number_the_tetrahedra(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":1789
 *         number_the_tetrahedra(self.c_triangulation)
 * 
 *         get_ptolemy_equations_boundary_map_1(self.c_triangulation, &c_matrix)             # <<<<<<<<<<<<<<
 * 
 *         m, explain_rows, explain_cols = convert_and_free_integer_matrix(
*/
  get_ptolemy_equations_boundary_map_1(__pyx_v_self->c_triangulation, (&__pyx_v_c_matrix));

  /* "cython/core/triangulation.pyx":1791
 *         get_ptolemy_equations_boundary_map_1(self.c_triangulation, &c_matrix)
 * 
 *         m, explain_rows, explain_cols = convert_and_free_integer_matrix(             # <<<<<<<<<<<<<<
 *             c_matrix)
 * 
*/
  __pyx_t_2 = __pyx_f_6SnapPy_convert_and_free_integer_matrix(__pyx_v_c_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(4, 1791, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_6);
    } else {
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1791, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1791, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1791, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_6);
    }
    #else
    __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 1791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
    index = 0; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    index = 1; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_5);
    index = 2; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L4_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 3) < (0)) __PYX_ERR(4, 1791, __pyx_L1_error)
    __pyx_t_8 = NULL;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L5_unpacking_done;
    __pyx_L4_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_8 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(4, 1791, __pyx_L1_error)
    __pyx_L5_unpacking_done:;
  }
  __pyx_v_m = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_v_explain_rows = __pyx_t_5;
  __pyx_t_5 = 0;
  __pyx_v_explain_cols = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1794
 *             c_matrix)
 * 
 *         return m, explain_rows, explain_cols             # <<<<<<<<<<<<<<
 * 
 *     def ptolemy_obstruction_classes(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 1794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_m);
  __Pyx_GIVEREF(__pyx_v_m);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_m) != (0)) __PYX_ERR(4, 1794, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_rows);
  __Pyx_GIVEREF(__pyx_v_explain_rows);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_explain_rows) != (0)) __PYX_ERR(4, 1794, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_explain_cols);
  __Pyx_GIVEREF(__pyx_v_explain_cols);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_explain_cols) != (0)) __PYX_ERR(4, 1794, __pyx_L1_error);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1773
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_1(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_1 -> C_0 in cellular homology represented as matrix.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation._ptolemy_equations_boundary_map_1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_explain_rows);
  __Pyx_XDECREF(__pyx_v_explain_cols);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1796
 *         return m, explain_rows, explain_cols
 * 
 *     def ptolemy_obstruction_classes(self):             # <<<<<<<<<<<<<<
 * 
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_113ptolemy_obstruction_classes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_112ptolemy_obstruction_classes, "\n        Returns the obstruction classes needed to compute\n        pSL(N,C) = SL(N,C)/{+1,-1} representations for even N, i.e., it\n        returns a list with a representative cocycle for each class in\n        H^2(M, boundary M; Z/2). The first element in the list is always\n        representing the trivial obstruction class.\n\n        For example, 4_1 has two obstruction classes:\n\n        >>> M = Manifold(\"4_1\")\n        >>> c = M.ptolemy_obstruction_classes()\n        >>> len(c)\n        2\n\n        The primary use of these obstruction classes is to construct\n        the Ptolemy variety as described in Definition 1.7 of\n        Stavros Garoufalidis, Dylan Thurston, Christian K. Zickert:\n        \"The Complex Volume of SL(n,C)-Representations of 3-Manifolds\"\n        (http://arxiv.org/abs/1111.2828).\n\n        For example, to construct the Ptolemy variety for\n        PSL(2,C)-representations of 4_1 that do not lift to boundary-parabolic\n        SL(2,C)-representations, use:\n\n        >>> p = M.ptolemy_variety(N = 2, obstruction_class = c[1])\n\n        Or the following short-cut:\n\n        >>> p = M.ptolemy_variety(2, obstruction_class = 1)\n\n        Note that this obstruction class only makes sense for even N:\n\n        >>> p = M.ptolemy_variety(3, obstruction_class = c[1])\n        Traceback (most recent call last):\n        ...\n        AssertionError: PtolemyObstructionClass only makes sense for even N, try PtolemyGeneralizedObstructionClass\n\n        To obtain PGL(N,C)-representations for N > 2, use the generalized\n        obstruction class:\n\n        >>> c = M.ptolemy_generalized_obstruction_classes(3)\n        >>> p = M.ptolemy_variety(3, obstruction_class = c[1])\n\n        The original obstruction class encodes a representing cocycle in Z/2 as follows:\n\n        >>> c = M.ptolemy_obstruction_classes()\n        >>> c[1]\n        PtolemyObstructionClass(s_0_0 + 1, s_1_0 - 1, s_2_0 - 1, s_3_0 + 1, s_0_0 - s_0_1, s_1_0 - s_3_1, s_2_0 -"" s_2_1, s_3_0 - s_1_1)\n\n        This means that the cocycle to represent this obstruction class in Z/2\n        takes value 1 in Z/2 on face 0 of tetrahedra 0 (because s_0_0 = -1)\n        and value 0 in Z/2 on face 1 of tetrahedra 0 (because s_1_0 = +1).\n\n        Face 3 of tetrahedra 0 and face 1 of tetrahedra 1 are identified,\n        hence the cocycle takes the same value on those two faces (s_3_0 = s_1_1).\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_113ptolemy_obstruction_classes = {"ptolemy_obstruction_classes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_113ptolemy_obstruction_classes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_112ptolemy_obstruction_classes};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_113ptolemy_obstruction_classes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ptolemy_obstruction_classes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("ptolemy_obstruction_classes", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("ptolemy_obstruction_classes", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_112ptolemy_obstruction_classes(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_112ptolemy_obstruction_classes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ptolemy_obstruction_classes", 0);

  /* "cython/core/triangulation.pyx":1856
 *         """
 * 
 *         return ptolemyManifoldMethods.get_ptolemy_obstruction_classes(self)             # <<<<<<<<<<<<<<
 * 
 *     def ptolemy_generalized_obstruction_classes(self, N):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_ptolemyManifoldMethods); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_get_ptolemy_obstruction_classes); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1856, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1796
 *         return m, explain_rows, explain_cols
 * 
 *     def ptolemy_obstruction_classes(self):             # <<<<<<<<<<<<<<
 * 
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation.ptolemy_obstruction_classes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1858
 *         return ptolemyManifoldMethods.get_ptolemy_obstruction_classes(self)
 * 
 *     def ptolemy_generalized_obstruction_classes(self, N):             # <<<<<<<<<<<<<<
 * 
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_115ptolemy_generalized_obstruction_classes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_114ptolemy_generalized_obstruction_classes, "\n        Returns the obstruction classes needed to compute\n        PGL(N,C)-representations for any N, i.e., it returns a list with\n        a representative cocycle for each element in\n        H^2(M, boundary M; Z/N) / (Z/N)^* where (Z/N)^* are the units in Z/N.\n        The first element in the list always corresponds to the trivial\n        obstruction class.\n        The generalized ptolemy obstruction classes are thus a generalization\n        of the ptolemy obstruction classes that allow to find all\n        boundary-unipotent\n        PGL(N,C)-representations including those that do not lift to\n        boundary-unipotent SL(N,C)-representations for N odd or\n        SL(N,C)/{+1,-1}-representations for N even.\n\n        For example, 4_1 has three obstruction classes up to equivalence:\n\n        >>> M = Manifold(\"4_1\")\n        >>> c = M.ptolemy_generalized_obstruction_classes(4)\n        >>> len(c)\n        3\n\n        For 4_1, we only get three obstruction classes even though we have\n        H^2(M, boundary M; Z/4) = Z/4 because the two obstruction classes\n        1 in Z/4 and -1 in Z/4 are related by a unit and thus give\n        isomorphic Ptolemy varieties.\n\n        The primary use of an obstruction class sigma is to construct the\n        Ptolemy variety of sigma. This variety computes boundary-unipotent\n        PGL(N,C)-representations whose obstruction class to a\n        boundary-unipotent lift to SL(N,C) is sigma.\n\n        For example for 4_1, there are 2 obstruction classes for N = 3:\n\n        >>> M = Manifold(\"4_1\")\n        >>> c = M.ptolemy_generalized_obstruction_classes(3)\n        >>> len(c)\n        2\n\n        The Ptolemy variety parametrizing boundary-unipotent\n        SL(3,C)-representations of 4_1 is obtained by\n\n        >>> p = M.ptolemy_variety(N = 3, obstruction_class = c[0])\n\n        and the Ptolemy variety parametrizing boundary-unipotent\n        PSL(3,C)-representations of 4_1 that do not lift to\n        b""oundary-unipotent SL(3,C)-representations is obtained by\n\n        >>> p = M.ptolemy_variety(N = 3, obstruction_class = c[1])\n\n        The cocycle representing the non-trivial obstruction class looks as\n        follows:\n\n        >>> c[1]\n        PtolemyGeneralizedObstructionClass([2, 0, 0, 1])\n\n        This means that the cocycle takes the value -1 in Z/3 on the first face\n        class and 1 on the fourth face class but zero on every other of the\n        four face classes.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_115ptolemy_generalized_obstruction_classes = {"ptolemy_generalized_obstruction_classes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_115ptolemy_generalized_obstruction_classes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_114ptolemy_generalized_obstruction_classes};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_115ptolemy_generalized_obstruction_classes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_N = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ptolemy_generalized_obstruction_classes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_N,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1858, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1858, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ptolemy_generalized_obstruction_classes", 0) < (0)) __PYX_ERR(4, 1858, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ptolemy_generalized_obstruction_classes", 1, 1, 1, i); __PYX_ERR(4, 1858, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1858, __pyx_L3_error)
    }
    __pyx_v_N = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ptolemy_generalized_obstruction_classes", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 1858, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.ptolemy_generalized_obstruction_classes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_114ptolemy_generalized_obstruction_classes(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_N);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_114ptolemy_generalized_obstruction_classes(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_N) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ptolemy_generalized_obstruction_classes", 0);

  /* "cython/core/triangulation.pyx":1919
 *         four face classes.
 *         """
 *         return (             # <<<<<<<<<<<<<<
 *             ptolemyManifoldMethods.get_generalized_ptolemy_obstruction_classes(
 *                 self, N))
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/triangulation.pyx":1920
 *         """
 *         return (
 *             ptolemyManifoldMethods.get_generalized_ptolemy_obstruction_classes(             # <<<<<<<<<<<<<<
 *                 self, N))
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_ptolemyManifoldMethods); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 1920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_get_generalized_ptolemy_obstruct); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 1920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":1921
 *         return (
 *             ptolemyManifoldMethods.get_generalized_ptolemy_obstruction_classes(
 *                 self, N))             # <<<<<<<<<<<<<<
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,
*/
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_N};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1858
 *         return ptolemyManifoldMethods.get_ptolemy_obstruction_classes(self)
 * 
 *     def ptolemy_generalized_obstruction_classes(self, N):             # <<<<<<<<<<<<<<
 * 
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation.ptolemy_generalized_obstruction_classes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":1923
 *                 self, N))
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,             # <<<<<<<<<<<<<<
 *                         simplify = True, eliminate_fixed_ptolemys = False):
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_117ptolemy_variety(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_116ptolemy_variety, "\n        M.ptolemy_variety(N, obstruction_class = None, simplify = True, eliminate_fixed_ptolemys = False)\n\n        Returns a Ptolemy variety as described in\n\n        * Stavros Garoufalidis, Dyland Thurston, Christian K. Zickert:\n          \"The Complex Volume of SL(n,C)-Representations of 3-Manifolds\"\n          (http://arxiv.org/abs/1111.2828)\n        * Stavros Garoufalidis, Matthias Goerner, Christian K. Zickert:\n          \"Gluing Equations for PGL(n,C)-Representations of 3-Manifolds \"\n          (http://arxiv.org/abs/1207.6711)\n\n        The variety can be exported to magma or sage and solved there. The\n        solutions can be processed to compute invariants. The method can also\n        be used to automatically look up precomputed solutions from the\n        database at http://ptolemy.unhyperbolic.org/data .\n\n        Example for m011 and PSL(2,C)-representations:\n\n        >>> M = Manifold(\"m011\")\n\n        Obtain all Ptolemy varieties for PSL(2,C)-representations:\n\n        >>> p = M.ptolemy_variety(2, obstruction_class = 'all')\n\n        There are two Ptolemy varieties for the two obstruction classes:\n\n        >>> len(p)\n        2\n\n        Retrieve the solutions from the database\n\n        >>> sols = p.retrieve_solutions() #doctest: +SKIP\n\n        Compute the solutions using magma (default in SnapPy)\n\n        >>> sols = p.compute_solutions(engine = 'magma') #doctest: +SKIP\n\n        Compute the solutions using singular (default in sage)\n\n        >>> sols = p.compute_solutions(engine = 'sage') #doctest: +SKIP\n\n        Note that magma is significantly faster.\n\n        Compute all resulting complex volumes\n\n        >>> cvols = sols.complex_volume_numerical() #doctest: +SKIP\n        >>> cvols  #doctest: +SKIP\n        [[[-4.29405713186238 E-16 + 0.725471193740844*I,\n           -0.942707362776931 + 0.459731436553693*I,\n           0.942707362776931 + 0.459731436553693*I]],\n         [[3.94159248086745 E-15 + 0.31268268751""8267*I,\n           4.64549527022581 E-15 + 0.680993020093457*I,\n           -2.78183391239608 - 0.496837853805869*I,\n           2.78183391239608 - 0.496837853805869*I]]]\n\n        Show complex volumes as a non-nested list:\n\n        >>> cvols.flatten(depth=2) #doctest: +SKIP\n        [-4.29405713186238 E-16 + 0.725471193740844*I,\n         -0.942707362776931 + 0.459731436553693*I,\n         0.942707362776931 + 0.459731436553693*I,\n         3.94159248086745 E-15 + 0.312682687518267*I,\n         4.64549527022581 E-15 + 0.680993020093457*I,\n         -2.78183391239608 - 0.496837853805869*I,\n         2.78183391239608 - 0.496837853805869*I]\n\n        For more examples, go to http://ptolemy.unhyperbolic.org/\n\n        === Optional Arguments ===\n\n        obstruction_class --- class from Definition 1.7 of (1).\n        None for trivial class or a value returned from ptolemy_obstruction_classes.\n        Short cuts: obstruction_class = 'all' returns a list of Ptolemy varieties\n        for each obstruction. For easier iteration, can set obstruction_class to\n        an integer.\n\n        simplify --- boolean to indicate whether to simplify the equations which\n        significantly reduces the number of variables.\n        Simplifying means that several identified Ptolemy coordinates x = y = z = ...\n        are eliminated instead of adding relations x - y = 0, y - z = 0, ...\n\n        eliminate_fixed_ptolemys --- boolean to indicate whether to eliminate\n        the Ptolemy coordinates that are set to 1 for fixing the decoration.\n        Even though this simplifies the resulting representation, setting it to\n        True can cause magma to run longer when finding a Groebner basis.\n\n        === Examples for 4_1 ===\n\n        >>> M = Manifold(\"4_1\")\n\n        Get the varieties for all obstruction classes at once (use\n        help(varieties[0]) for more information):\n\n        >>> varieties = M.ptolemy_variety(2, obstruction_class = \"all\")\n\n        Pr""int the variety as an ideal (sage object) for the non-trivial class:\n\n        >>> varieties[1].ideal    #doctest: +SKIP\n        Ideal (-c_0011_0^2 + c_0011_0*c_0101_0 + c_0101_0^2, -c_0011_0^2 - c_0011_0*c_0101_0 + c_0101_0^2, c_0011_0 - 1) of Multivariate Polynomial Ring in c_0011_0, c_0101_0 over Rational Field\n\n        Print the equations of the variety for the non-trivial class:\n\n        >>> for eqn in varieties[1].equations:\n        ...     print(eqn)          #doctest: +NORMALIZE_WHITESPACE\n             - c_0011_0 * c_0101_0 + c_0011_0^2 + c_0101_0^2\n             c_0011_0 * c_0101_0 - c_0011_0^2 - c_0101_0^2\n             - 1 + c_0011_0\n\n        Generate a magma file to compute Primary Decomposition for N = 3:\n\n        >>> p = M.ptolemy_variety(3)\n        >>> s = p.to_magma()\n        >>> print(s.split(\"ring and ideal\")[1].strip())     #doctest: +ELLIPSIS\n        R<c_0012_0, c_0012_1, c_0102_0, c_0111_0, c_0201_0, c_1011_0, c_1011_1, c_1101_0> := PolynomialRing(RationalField(), 8, \"grevlex\");\n        MyIdeal := ideal<R |\n                  c_0012_0 * c_1101_0 + c_0102_0 * c_0111_0 - c_0102_0 * c_1011_0,\n            ...\n\n        === If you have a magma installation ===\n\n        Call p.compute_solutions() to automatically call magma on the above output\n        and produce exact solutions!!!\n\n        >>> try:\n        ...     sols = p.compute_solutions()\n        ... except:\n        ...     # magma failed, use precomputed_solutions\n        ...     sols = None\n\n        Check solutions against manifold\n        >>> if sols:\n        ...     dummy = sols.check_against_manifold()\n\n        === If you do not have a magma installation ===\n\n        Load a precomputed example from magma which is provided with the package:\n\n        >>> from snappy.ptolemy.processMagmaFile import _magma_output_for_4_1__sl3, solutions_from_magma\n        >>> print(_magma_output_for_4_1__sl3)      #doctest: +ELLIPSIS\n        <BLANKLINE>\n        ==TRIAN""GULATION=BEGINS==\n        % Triangulation\n        4_1\n        ...\n\n        Parse the file and produce solutions:\n\n        >>> sols = solutions_from_magma(_magma_output_for_4_1__sl3)\n\n        >>> dummy = sols.check_against_manifold()\n\n        === Continue here whether you have or do not have magma ===\n\n        Pick the first solution of the three different solutions (up to Galois\n        conjugates):\n\n        >>> len(sols)\n        3\n        >>> solution = sols[0]\n\n        Read the exact value for c_1020_0 (help(solution) for more information\n        on how to compute cross ratios, volumes and other invariants):\n\n        >>> solution['c_1020_0']\n        Mod(-1/2*x - 3/2, x^2 + 3*x + 4)\n\n        Example of simplified vs non-simplified variety for N = 4:\n\n        >>> simplified = M.ptolemy_variety(4, obstruction_class = 1)\n        >>> full = M.ptolemy_variety(4, obstruction_class = 1, simplify = False)\n        >>> len(simplified.variables), len(full.variables)\n        (21, 63)\n        >>> len(simplified.equations), len(full.equations)\n        (24, 72)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_117ptolemy_variety = {"ptolemy_variety", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_117ptolemy_variety, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_116ptolemy_variety};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_117ptolemy_variety(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_N = 0;
  PyObject *__pyx_v_obstruction_class = 0;
  PyObject *__pyx_v_simplify = 0;
  PyObject *__pyx_v_eliminate_fixed_ptolemys = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ptolemy_variety (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_N,&__pyx_mstate_global->__pyx_n_u_obstruction_class,&__pyx_mstate_global->__pyx_n_u_simplify,&__pyx_mstate_global->__pyx_n_u_eliminate_fixed_ptolemys,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 1923, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(4, 1923, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 1923, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1923, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1923, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "ptolemy_variety", 0) < (0)) __PYX_ERR(4, 1923, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/triangulation.pyx":1924
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,
 *                         simplify = True, eliminate_fixed_ptolemys = False):             # <<<<<<<<<<<<<<
 * 
 *         """
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("ptolemy_variety", 0, 1, 4, i); __PYX_ERR(4, 1923, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(4, 1923, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 1923, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 1923, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 1923, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "cython/core/triangulation.pyx":1923
 *                 self, N))
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,             # <<<<<<<<<<<<<<
 *                         simplify = True, eliminate_fixed_ptolemys = False):
 * 
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/triangulation.pyx":1924
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,
 *                         simplify = True, eliminate_fixed_ptolemys = False):             # <<<<<<<<<<<<<<
 * 
 *         """
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_N = values[0];
    __pyx_v_obstruction_class = values[1];
    __pyx_v_simplify = values[2];
    __pyx_v_eliminate_fixed_ptolemys = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ptolemy_variety", 0, 1, 4, __pyx_nargs); __PYX_ERR(4, 1923, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.ptolemy_variety", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_116ptolemy_variety(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_N, __pyx_v_obstruction_class, __pyx_v_simplify, __pyx_v_eliminate_fixed_ptolemys);

  /* "cython/core/triangulation.pyx":1923
 *                 self, N))
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,             # <<<<<<<<<<<<<<
 *                         simplify = True, eliminate_fixed_ptolemys = False):
 * 
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_116ptolemy_variety(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_N, PyObject *__pyx_v_obstruction_class, PyObject *__pyx_v_simplify, PyObject *__pyx_v_eliminate_fixed_ptolemys) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("ptolemy_variety", 0);

  /* "cython/core/triangulation.pyx":2103
 *         """
 * 
 *         return ptolemyManifoldMethods.get_ptolemy_variety(             # <<<<<<<<<<<<<<
 *             self, N, obstruction_class,
 *             simplify = simplify,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_ptolemyManifoldMethods); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_get_ptolemy_variety); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":2106
 *             self, N, obstruction_class,
 *             simplify = simplify,
 *             eliminate_fixed_ptolemys = eliminate_fixed_ptolemys)             # <<<<<<<<<<<<<<
 * 
 *     def gluing_equations(self,form='log'):
*/
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_N, __pyx_v_obstruction_class};
    __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_simplify, __pyx_v_simplify, __pyx_t_3, __pyx_callargs+4, 0) < (0)) __PYX_ERR(4, 2103, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_eliminate_fixed_ptolemys, __pyx_v_eliminate_fixed_ptolemys, __pyx_t_3, __pyx_callargs+4, 1) < (0)) __PYX_ERR(4, 2103, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":1923
 *                 self, N))
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,             # <<<<<<<<<<<<<<
 *                         simplify = True, eliminate_fixed_ptolemys = False):
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation.ptolemy_variety", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2108
 *             eliminate_fixed_ptolemys = eliminate_fixed_ptolemys)
 * 
 *     def gluing_equations(self,form='log'):             # <<<<<<<<<<<<<<
 *         """
 *         In the default mode, this function returns a matrix with rows
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_119gluing_equations(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_118gluing_equations, "\n        In the default mode, this function returns a matrix with rows\n        of the form\n\n                  a b c  d e f  ...\n\n        which means\n\n            a*log(z0) + b*log(1/(1-z0)) + c*log((z0-1)/z0) + d*log(z1) +... = 2 pi i\n\n        for an edge equation, and (same) = 0 for a cusp equation.\n        Here, the cusp equations come at the bottom of the matrix, and\n        are listed in the form: meridian of cusp 0, longitude of cusp\n        0, meridian of cusp 1, longitude of cusp 1,...\n\n        In terms of the tetrahedra, a is the invariant of the edge\n        (2,3), b the invariant of the edge (0,2) and c is the\n        invariant of the edge (1,2).  See kernel_code/edge_classes.c\n        for a detailed account of the convention used.\n\n        If the optional argument form='rect' is given, then this\n        function returns a list of tuples of the form:\n\n           ( [a0, a1,..,a_n], [b_0, b_1,...,b_n], c)\n\n        where this corresponds to the equation\n\n           z0^a0 (1 - z0)^b0 z1^a1(1 - z1)^b1 ...  = c\n\n        where c = 1 or -1.\n\n        >>> M = Triangulation('m004(2,3)')\n        >>> M.gluing_equations()\n        [ 2  1  0  1  0  2]\n        [ 0  1  2  1  2  0]\n        [ 2  0  0  0 -8  6]\n        >>> M.gluing_equations(form='rect')\n        [([2, -1], [-1, 2], 1), ([-2, 1], [1, -2], 1), ([2, -6], [0, 14], 1)]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_119gluing_equations = {"gluing_equations", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_119gluing_equations, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_118gluing_equations};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_119gluing_equations(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_form = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("gluing_equations (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_form,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2108, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gluing_equations", 0) < (0)) __PYX_ERR(4, 2108, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_log));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_log));
    }
    __pyx_v_form = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("gluing_equations", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 2108, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.gluing_equations", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_118gluing_equations(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_form);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_118gluing_equations(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_form) {
  int **__pyx_v_c_eqns;
  int __pyx_v_num_rows;
  int __pyx_v_num_cols;
  int *__pyx_v_eqn;
  PyObject *__pyx_v_eqns = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_cusp_info = NULL;
  PyObject *__pyx_v_to_do = NULL;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_v_rect = NULL;
  PyObject *__pyx_v_row = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_a = NULL;
  PyObject *__pyx_v_b = NULL;
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_v_j = NULL;
  PyObject *__pyx_v_r = NULL;
  int __pyx_9genexpr29__pyx_v_i;
  int __pyx_9genexpr30__pyx_v_j;
  int __pyx_9genexpr31__pyx_v_j;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *(*__pyx_t_13)(PyObject *);
  Py_ssize_t __pyx_t_14;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *(*__pyx_t_17)(PyObject *);
  int __pyx_t_18;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("gluing_equations", 0);

  /* "cython/core/triangulation.pyx":2153
 *         cdef int* eqn
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         c_eqns = get_gluing_equations(self.c_triangulation,
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":2154
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         c_eqns = get_gluing_equations(self.c_triangulation,
 *                                       &num_rows, &num_cols)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2154, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 2154, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2153
 *         cdef int* eqn
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         c_eqns = get_gluing_equations(self.c_triangulation,
*/
  }

  /* "cython/core/triangulation.pyx":2155
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         c_eqns = get_gluing_equations(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                       &num_rows, &num_cols)
 *         eqns = [ [ c_eqns[i][j] for j in range(num_cols) ]
*/
  __pyx_v_c_eqns = get_gluing_equations(__pyx_v_self->c_triangulation, (&__pyx_v_num_rows), (&__pyx_v_num_cols));

  /* "cython/core/triangulation.pyx":2157
 *         c_eqns = get_gluing_equations(self.c_triangulation,
 *                                       &num_rows, &num_cols)
 *         eqns = [ [ c_eqns[i][j] for j in range(num_cols) ]             # <<<<<<<<<<<<<<
 *                  for i in range(num_rows) ]
 *         free_gluing_equations(c_eqns, num_rows)
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2157, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cython/core/triangulation.pyx":2158
 *                                       &num_rows, &num_cols)
 *         eqns = [ [ c_eqns[i][j] for j in range(num_cols) ]
 *                  for i in range(num_rows) ]             # <<<<<<<<<<<<<<
 *         free_gluing_equations(c_eqns, num_rows)
 * 
*/
    __pyx_t_5 = __pyx_v_num_rows;
    __pyx_t_6 = __pyx_t_5;
    for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
      __pyx_9genexpr29__pyx_v_i = __pyx_t_7;
      { /* enter inner scope */

        /* "cython/core/triangulation.pyx":2157
 *         c_eqns = get_gluing_equations(self.c_triangulation,
 *                                       &num_rows, &num_cols)
 *         eqns = [ [ c_eqns[i][j] for j in range(num_cols) ]             # <<<<<<<<<<<<<<
 *                  for i in range(num_rows) ]
 *         free_gluing_equations(c_eqns, num_rows)
*/
        __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2157, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_8 = __pyx_v_num_cols;
        __pyx_t_9 = __pyx_t_8;
        for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
          __pyx_9genexpr30__pyx_v_j = __pyx_t_10;
          __pyx_t_11 = __Pyx_PyLong_From_int(((__pyx_v_c_eqns[__pyx_9genexpr29__pyx_v_i])[__pyx_9genexpr30__pyx_v_j])); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2157, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_11);
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_11))) __PYX_ERR(4, 2157, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        }
      } /* exit inner scope */
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) __PYX_ERR(4, 2157, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  } /* exit inner scope */
  __pyx_v_eqns = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":2159
 *         eqns = [ [ c_eqns[i][j] for j in range(num_cols) ]
 *                  for i in range(num_rows) ]
 *         free_gluing_equations(c_eqns, num_rows)             # <<<<<<<<<<<<<<
 * 
 *         for i in range(self.num_cusps()):
*/
  free_gluing_equations(__pyx_v_c_eqns, __pyx_v_num_rows);

  /* "cython/core/triangulation.pyx":2161
 *         free_gluing_equations(c_eqns, num_rows)
 * 
 *         for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:
*/
  __pyx_t_3 = NULL;
  __pyx_t_12 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_12);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
    __pyx_t_11 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
  }
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_11};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_11 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_11); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 2161, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    {
      __pyx_t_2 = __pyx_t_13(__pyx_t_11);
      if (unlikely(!__pyx_t_2)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2161, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2162
 * 
 *         for i in range(self.num_cusps()):
 *             cusp_info = self.cusp_info(i)             # <<<<<<<<<<<<<<
 *             if cusp_info.is_complete:
 *                 to_do = [(1,0), (0,1)]
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_i};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2162, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_XDECREF_SET(__pyx_v_cusp_info, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2163
 *         for i in range(self.num_cusps()):
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:             # <<<<<<<<<<<<<<
 *                 to_do = [(1,0), (0,1)]
 *             else:
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cusp_info, __pyx_mstate_global->__pyx_n_u_is_complete); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2163, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2163, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2164
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:
 *                 to_do = [(1,0), (0,1)]             # <<<<<<<<<<<<<<
 *             else:
 *                 to_do = [cusp_info.filling]
*/
      __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2164, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[5]);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_tuple[5]) != (0)) __PYX_ERR(4, 2164, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[4]);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_mstate_global->__pyx_tuple[4]) != (0)) __PYX_ERR(4, 2164, __pyx_L1_error);
      __Pyx_XDECREF_SET(__pyx_v_to_do, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2163
 *         for i in range(self.num_cusps()):
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:             # <<<<<<<<<<<<<<
 *                 to_do = [(1,0), (0,1)]
 *             else:
*/
      goto __pyx_L10;
    }

    /* "cython/core/triangulation.pyx":2166
 *                 to_do = [(1,0), (0,1)]
 *             else:
 *                 to_do = [cusp_info.filling]             # <<<<<<<<<<<<<<
 *             for (m, l) in to_do:
 *                 eqn = get_cusp_equation(self.c_triangulation,
*/
    /*else*/ {
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cusp_info, __pyx_mstate_global->__pyx_n_u_filling); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2166, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2166, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_2);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_2) != (0)) __PYX_ERR(4, 2166, __pyx_L1_error);
      __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_to_do, ((PyObject*)__pyx_t_3));
      __pyx_t_3 = 0;
    }
    __pyx_L10:;

    /* "cython/core/triangulation.pyx":2167
 *             else:
 *                 to_do = [cusp_info.filling]
 *             for (m, l) in to_do:             # <<<<<<<<<<<<<<
 *                 eqn = get_cusp_equation(self.c_triangulation,
 *                                         i, int(m), int(l), &num_rows)
*/
    __pyx_t_3 = __pyx_v_to_do; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_14 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2167, __pyx_L1_error)
        #endif
        if (__pyx_t_14 >= __pyx_temp) break;
      }
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_14, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_14;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2167, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
        PyObject* sequence = __pyx_t_2;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(4, 2167, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_12 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_12);
          __pyx_t_15 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_15);
        } else {
          __pyx_t_12 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 2167, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_12);
          __pyx_t_15 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2167, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_15);
        }
        #else
        __pyx_t_12 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 2167, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_15 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2167, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_15);
        #endif
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_16 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(4, 2167, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_16);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_17 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_16);
        index = 0; __pyx_t_12 = __pyx_t_17(__pyx_t_16); if (unlikely(!__pyx_t_12)) goto __pyx_L13_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_12);
        index = 1; __pyx_t_15 = __pyx_t_17(__pyx_t_16); if (unlikely(!__pyx_t_15)) goto __pyx_L13_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_15);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_17(__pyx_t_16), 2) < (0)) __PYX_ERR(4, 2167, __pyx_L1_error)
        __pyx_t_17 = NULL;
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        goto __pyx_L14_unpacking_done;
        __pyx_L13_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
        __pyx_t_17 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(4, 2167, __pyx_L1_error)
        __pyx_L14_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_12);
      __pyx_t_12 = 0;
      __Pyx_XDECREF_SET(__pyx_v_l, __pyx_t_15);
      __pyx_t_15 = 0;

      /* "cython/core/triangulation.pyx":2169
 *             for (m, l) in to_do:
 *                 eqn = get_cusp_equation(self.c_triangulation,
 *                                         i, int(m), int(l), &num_rows)             # <<<<<<<<<<<<<<
 *                 eqns.append([eqn[j] for j in range(num_rows)])
 *                 free_cusp_equation(eqn)
*/
      __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_v_i); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2169, __pyx_L1_error)
      __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_m); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2169, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2169, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_l); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2169, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2169, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2168
 *                 to_do = [cusp_info.filling]
 *             for (m, l) in to_do:
 *                 eqn = get_cusp_equation(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                         i, int(m), int(l), &num_rows)
 *                 eqns.append([eqn[j] for j in range(num_rows)])
*/
      __pyx_v_eqn = get_cusp_equation(__pyx_v_self->c_triangulation, __pyx_t_5, __pyx_t_6, __pyx_t_7, (&__pyx_v_num_rows));

      /* "cython/core/triangulation.pyx":2170
 *                 eqn = get_cusp_equation(self.c_triangulation,
 *                                         i, int(m), int(l), &num_rows)
 *                 eqns.append([eqn[j] for j in range(num_rows)])             # <<<<<<<<<<<<<<
 *                 free_cusp_equation(eqn)
 * 
*/
      { /* enter inner scope */
        __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2170, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __pyx_v_num_rows;
        __pyx_t_6 = __pyx_t_7;
        for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_6; __pyx_t_5+=1) {
          __pyx_9genexpr31__pyx_v_j = __pyx_t_5;
          __pyx_t_15 = __Pyx_PyLong_From_int((__pyx_v_eqn[__pyx_9genexpr31__pyx_v_j])); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2170, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_15);
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_15))) __PYX_ERR(4, 2170, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
        }
      } /* exit inner scope */
      __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_eqns, __pyx_t_2); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(4, 2170, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2171
 *                                         i, int(m), int(l), &num_rows)
 *                 eqns.append([eqn[j] for j in range(num_rows)])
 *                 free_cusp_equation(eqn)             # <<<<<<<<<<<<<<
 * 
 *         if form == 'log':
*/
      free_cusp_equation(__pyx_v_eqn);

      /* "cython/core/triangulation.pyx":2167
 *             else:
 *                 to_do = [cusp_info.filling]
 *             for (m, l) in to_do:             # <<<<<<<<<<<<<<
 *                 eqn = get_cusp_equation(self.c_triangulation,
 *                                         i, int(m), int(l), &num_rows)
*/
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":2161
 *         free_gluing_equations(c_eqns, num_rows)
 * 
 *         for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:
*/
  }
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "cython/core/triangulation.pyx":2173
 *                 free_cusp_equation(eqn)
 * 
 *         if form == 'log':             # <<<<<<<<<<<<<<
 *             return matrix(eqns)
 * 
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_form, __pyx_mstate_global->__pyx_n_u_log, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2173, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2174
 * 
 *         if form == 'log':
 *             return matrix(eqns)             # <<<<<<<<<<<<<<
 * 
 *         if form != 'rect':
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_eqns};
      __pyx_t_11 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2174, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
    }
    __pyx_r = __pyx_t_11;
    __pyx_t_11 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2173
 *                 free_cusp_equation(eqn)
 * 
 *         if form == 'log':             # <<<<<<<<<<<<<<
 *             return matrix(eqns)
 * 
*/
  }

  /* "cython/core/triangulation.pyx":2176
 *             return matrix(eqns)
 * 
 *         if form != 'rect':             # <<<<<<<<<<<<<<
 *             raise ValueError("Equations are available in 'log' and "
 *                              "'rect' forms only.")
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_form, __pyx_mstate_global->__pyx_n_u_rect, Py_NE)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2176, __pyx_L1_error)
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":2177
 * 
 *         if form != 'rect':
 *             raise ValueError("Equations are available in 'log' and "             # <<<<<<<<<<<<<<
 *                              "'rect' forms only.")
 *         rect = []
*/
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Equations_are_available_in_log_a};
      __pyx_t_11 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2177, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
    }
    __Pyx_Raise(__pyx_t_11, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __PYX_ERR(4, 2177, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2176
 *             return matrix(eqns)
 * 
 *         if form != 'rect':             # <<<<<<<<<<<<<<
 *             raise ValueError("Equations are available in 'log' and "
 *                              "'rect' forms only.")
*/
  }

  /* "cython/core/triangulation.pyx":2179
 *             raise ValueError("Equations are available in 'log' and "
 *                              "'rect' forms only.")
 *         rect = []             # <<<<<<<<<<<<<<
 *         for row in eqns:
 *             n = self.num_tetrahedra()
*/
  __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_v_rect = ((PyObject*)__pyx_t_11);
  __pyx_t_11 = 0;

  /* "cython/core/triangulation.pyx":2180
 *                              "'rect' forms only.")
 *         rect = []
 *         for row in eqns:             # <<<<<<<<<<<<<<
 *             n = self.num_tetrahedra()
 *             a, b = [0,]*n, [0,]*n
*/
  __pyx_t_11 = __pyx_v_eqns; __Pyx_INCREF(__pyx_t_11);
  __pyx_t_14 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_11);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2180, __pyx_L1_error)
      #endif
      if (__pyx_t_14 >= __pyx_temp) break;
    }
    __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_11, __pyx_t_14, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_14;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_row, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2181
 *         rect = []
 *         for row in eqns:
 *             n = self.num_tetrahedra()             # <<<<<<<<<<<<<<
 *             a, b = [0,]*n, [0,]*n
 *             c = 1
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2181, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2182
 *         for row in eqns:
 *             n = self.num_tetrahedra()
 *             a, b = [0,]*n, [0,]*n             # <<<<<<<<<<<<<<
 *             c = 1
 *             for j in range(n):
*/
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2182, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(4, 2182, __pyx_L1_error);
    { PyObject* __pyx_temp = PyNumber_InPlaceMultiply(__pyx_t_2, __pyx_v_n); if (unlikely(!__pyx_temp)) __PYX_ERR(4, 2182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_temp);
      __Pyx_DECREF(__pyx_t_2);
      __pyx_t_2 = __pyx_temp;
    }
    __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2182, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(4, 2182, __pyx_L1_error);
    { PyObject* __pyx_temp = PyNumber_InPlaceMultiply(__pyx_t_3, __pyx_v_n); if (unlikely(!__pyx_temp)) __PYX_ERR(4, 2182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_temp);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_temp;
    }
    __Pyx_XDECREF_SET(__pyx_v_a, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;
    __Pyx_XDECREF_SET(__pyx_v_b, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":2183
 *             n = self.num_tetrahedra()
 *             a, b = [0,]*n, [0,]*n
 *             c = 1             # <<<<<<<<<<<<<<
 *             for j in range(n):
 *                 r = row[3*j + 2]
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
    __Pyx_XDECREF_SET(__pyx_v_c, __pyx_mstate_global->__pyx_int_1);

    /* "cython/core/triangulation.pyx":2184
 *             a, b = [0,]*n, [0,]*n
 *             c = 1
 *             for j in range(n):             # <<<<<<<<<<<<<<
 *                 r = row[3*j + 2]
 *                 a[j] = row[3*j] - r
*/
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_n};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2184, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 2184, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      {
        __pyx_t_3 = __pyx_t_13(__pyx_t_2);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2184, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":2185
 *             c = 1
 *             for j in range(n):
 *                 r = row[3*j + 2]             # <<<<<<<<<<<<<<
 *                 a[j] = row[3*j] - r
 *                 b[j] = -row[3*j + 1] + r
*/
      __pyx_t_3 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_3, __pyx_v_j, 3, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2185, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_15 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2185, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_row, __pyx_t_15); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2185, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      __Pyx_XDECREF_SET(__pyx_v_r, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":2186
 *             for j in range(n):
 *                 r = row[3*j + 2]
 *                 a[j] = row[3*j] - r             # <<<<<<<<<<<<<<
 *                 b[j] = -row[3*j + 1] + r
 *                 c *= -1 if r % 2 else 1
*/
      __pyx_t_3 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_3, __pyx_v_j, 3, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2186, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_15 = __Pyx_PyObject_GetItem(__pyx_v_row, __pyx_t_3); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2186, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyNumber_Subtract(__pyx_t_15, __pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2186, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      if (unlikely((PyObject_SetItem(__pyx_v_a, __pyx_v_j, __pyx_t_3) < 0))) __PYX_ERR(4, 2186, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":2187
 *                 r = row[3*j + 2]
 *                 a[j] = row[3*j] - r
 *                 b[j] = -row[3*j + 1] + r             # <<<<<<<<<<<<<<
 *                 c *= -1 if r % 2 else 1
 *             rect.append( (a, b, c) )
*/
      __pyx_t_3 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_3, __pyx_v_j, 3, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2187, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_15 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2187, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_row, __pyx_t_15); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2187, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      __pyx_t_15 = PyNumber_Negative(__pyx_t_3); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2187, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyNumber_Add(__pyx_t_15, __pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2187, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      if (unlikely((PyObject_SetItem(__pyx_v_b, __pyx_v_j, __pyx_t_3) < 0))) __PYX_ERR(4, 2187, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":2188
 *                 a[j] = row[3*j] - r
 *                 b[j] = -row[3*j + 1] + r
 *                 c *= -1 if r % 2 else 1             # <<<<<<<<<<<<<<
 *             rect.append( (a, b, c) )
 *         return rect
*/
      __pyx_t_15 = __Pyx_PyLong_RemainderObjC(__pyx_v_r, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2188, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_15); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2188, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      if (__pyx_t_1) {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_int_neg_1);
        __pyx_t_3 = __pyx_mstate_global->__pyx_int_neg_1;
      } else {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
        __pyx_t_3 = __pyx_mstate_global->__pyx_int_1;
      }
      __pyx_t_15 = PyNumber_InPlaceMultiply(__pyx_v_c, __pyx_t_3); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2188, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF_SET(__pyx_v_c, __pyx_t_15);
      __pyx_t_15 = 0;

      /* "cython/core/triangulation.pyx":2184
 *             a, b = [0,]*n, [0,]*n
 *             c = 1
 *             for j in range(n):             # <<<<<<<<<<<<<<
 *                 r = row[3*j + 2]
 *                 a[j] = row[3*j] - r
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2189
 *                 b[j] = -row[3*j + 1] + r
 *                 c *= -1 if r % 2 else 1
 *             rect.append( (a, b, c) )             # <<<<<<<<<<<<<<
 *         return rect
 * 
*/
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2189, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_a);
    __Pyx_GIVEREF(__pyx_v_a);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_a) != (0)) __PYX_ERR(4, 2189, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_b);
    __Pyx_GIVEREF(__pyx_v_b);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_b) != (0)) __PYX_ERR(4, 2189, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_c);
    __Pyx_GIVEREF(__pyx_v_c);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_c) != (0)) __PYX_ERR(4, 2189, __pyx_L1_error);
    __pyx_t_18 = __Pyx_PyList_Append(__pyx_v_rect, __pyx_t_2); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(4, 2189, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2180
 *                              "'rect' forms only.")
 *         rect = []
 *         for row in eqns:             # <<<<<<<<<<<<<<
 *             n = self.num_tetrahedra()
 *             a, b = [0,]*n, [0,]*n
*/
  }
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "cython/core/triangulation.pyx":2190
 *                 c *= -1 if r % 2 else 1
 *             rect.append( (a, b, c) )
 *         return rect             # <<<<<<<<<<<<<<
 * 
 *     cdef big_homology(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_rect);
  __pyx_r = __pyx_v_rect;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2108
 *             eliminate_fixed_ptolemys = eliminate_fixed_ptolemys)
 * 
 *     def gluing_equations(self,form='log'):             # <<<<<<<<<<<<<<
 *         """
 *         In the default mode, this function returns a matrix with rows
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("SnapPy.Triangulation.gluing_equations", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_eqns);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_cusp_info);
  __Pyx_XDECREF(__pyx_v_to_do);
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XDECREF(__pyx_v_rect);
  __Pyx_XDECREF(__pyx_v_row);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_a);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XDECREF(__pyx_v_r);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2192
 *         return rect
 * 
 *     cdef big_homology(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an AbelianGroup representing the first integral
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_big_homology(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_v_relation_matrix = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("big_homology", 0);

  /* "cython/core/triangulation.pyx":2204
 *         """
 * 
 *         relation_matrix = self.c_presentation_matrix()             # <<<<<<<<<<<<<<
 *         return AbelianGroup(relation_matrix.simplified_matrix())
 * 
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->c_presentation_matrix(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_relation_matrix = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2205
 * 
 *         relation_matrix = self.c_presentation_matrix()
 *         return AbelianGroup(relation_matrix.simplified_matrix())             # <<<<<<<<<<<<<<
 * 
 *     cdef c_presentation_matrix(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __pyx_t_4 = __pyx_v_relation_matrix;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_simplified_matrix, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2205, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_r = ((PyObject *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2192
 *         return rect
 * 
 *     cdef big_homology(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an AbelianGroup representing the first integral
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation.big_homology", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_relation_matrix);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2207
 *         return AbelianGroup(relation_matrix.simplified_matrix())
 * 
 *     cdef c_presentation_matrix(self):             # <<<<<<<<<<<<<<
 *         """
 *         See _presentation_matrix.
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_c_presentation_matrix(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  int __pyx_v_num_generators;
  EdgeClass *__pyx_v_edge;
  PositionedTet __pyx_v_ptet;
  PositionedTet __pyx_v_ptet0;
  GeneratorStatus __pyx_v_status;
  Tetrahedron *__pyx_v_tet;
  VertexIndex __pyx_v_vertex;
  FaceIndex __pyx_v_side;
  Orientation __pyx_v_orientation;
  int __pyx_v_row;
  int __pyx_v_column;
  int __pyx_v_num_edges;
  int __pyx_v_m;
  int __pyx_v_l;
  struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_relation_matrix = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  EdgeClass *__pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  Tetrahedron *__pyx_t_9;
  VertexIndex __pyx_t_10;
  FaceIndex __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  Orientation __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("c_presentation_matrix", 0);

  /* "cython/core/triangulation.pyx":2212
 *         """
 * 
 *         if not all_Dehn_coefficients_are_integers(self.c_triangulation):             # <<<<<<<<<<<<<<
 *             raise ValueError('All Dehn filling coefficients must be integers')
 *         choose_generators(self.c_triangulation, 0, 0)
*/
  __pyx_t_1 = (!(all_Dehn_coefficients_are_integers(__pyx_v_self->c_triangulation) != 0));
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":2213
 * 
 *         if not all_Dehn_coefficients_are_integers(self.c_triangulation):
 *             raise ValueError('All Dehn filling coefficients must be integers')             # <<<<<<<<<<<<<<
 *         choose_generators(self.c_triangulation, 0, 0)
 *         num_generators = self.c_triangulation.num_generators
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_All_Dehn_filling_coefficients_mu};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2213, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 2213, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2212
 *         """
 * 
 *         if not all_Dehn_coefficients_are_integers(self.c_triangulation):             # <<<<<<<<<<<<<<
 *             raise ValueError('All Dehn filling coefficients must be integers')
 *         choose_generators(self.c_triangulation, 0, 0)
*/
  }

  /* "cython/core/triangulation.pyx":2214
 *         if not all_Dehn_coefficients_are_integers(self.c_triangulation):
 *             raise ValueError('All Dehn filling coefficients must be integers')
 *         choose_generators(self.c_triangulation, 0, 0)             # <<<<<<<<<<<<<<
 *         num_generators = self.c_triangulation.num_generators
 *         cdef EdgeClass* edge
*/
  choose_generators(__pyx_v_self->c_triangulation, 0, 0);

  /* "cython/core/triangulation.pyx":2215
 *             raise ValueError('All Dehn filling coefficients must be integers')
 *         choose_generators(self.c_triangulation, 0, 0)
 *         num_generators = self.c_triangulation.num_generators             # <<<<<<<<<<<<<<
 *         cdef EdgeClass* edge
 *         cdef PositionedTet ptet, ptet0
*/
  __pyx_t_5 = __pyx_v_self->c_triangulation->num_generators;
  __pyx_v_num_generators = __pyx_t_5;

  /* "cython/core/triangulation.pyx":2224
 *         cdef Orientation orientation
 *         cdef int row, column, num_edges, m, l
 *         relation_matrix = PresentationMatrix(0, num_generators)             # <<<<<<<<<<<<<<
 *         edge = self.c_triangulation.edge_list_begin.next
 *         # find the edge relations
*/
  __pyx_t_3 = NULL;
  __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_num_generators); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_mstate_global->__pyx_int_0, __pyx_t_6};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2224, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_relation_matrix = ((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":2225
 *         cdef int row, column, num_edges, m, l
 *         relation_matrix = PresentationMatrix(0, num_generators)
 *         edge = self.c_triangulation.edge_list_begin.next             # <<<<<<<<<<<<<<
 *         # find the edge relations
 *         while edge != &(self.c_triangulation.edge_list_end):
*/
  __pyx_t_7 = __pyx_v_self->c_triangulation->edge_list_begin.next;
  __pyx_v_edge = __pyx_t_7;

  /* "cython/core/triangulation.pyx":2227
 *         edge = self.c_triangulation.edge_list_begin.next
 *         # find the edge relations
 *         while edge != &(self.c_triangulation.edge_list_end):             # <<<<<<<<<<<<<<
 *             row = relation_matrix.rows
 *             relation_matrix.add_rows(1)
*/
  while (1) {
    __pyx_t_1 = (__pyx_v_edge != (&__pyx_v_self->c_triangulation->edge_list_end));
    if (!__pyx_t_1) break;

    /* "cython/core/triangulation.pyx":2228
 *         # find the edge relations
 *         while edge != &(self.c_triangulation.edge_list_end):
 *             row = relation_matrix.rows             # <<<<<<<<<<<<<<
 *             relation_matrix.add_rows(1)
 *             set_left_edge(edge, &ptet0)
*/
    __pyx_t_5 = __pyx_v_relation_matrix->rows;
    __pyx_v_row = __pyx_t_5;

    /* "cython/core/triangulation.pyx":2229
 *         while edge != &(self.c_triangulation.edge_list_end):
 *             row = relation_matrix.rows
 *             relation_matrix.add_rows(1)             # <<<<<<<<<<<<<<
 *             set_left_edge(edge, &ptet0)
 *             ptet = ptet0
*/
    __pyx_t_6 = ((PyObject *)__pyx_v_relation_matrix);
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_int_1};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_add_rows, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2229, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2230
 *             row = relation_matrix.rows
 *             relation_matrix.add_rows(1)
 *             set_left_edge(edge, &ptet0)             # <<<<<<<<<<<<<<
 *             ptet = ptet0
 *             while True:
*/
    set_left_edge(__pyx_v_edge, (&__pyx_v_ptet0));

    /* "cython/core/triangulation.pyx":2231
 *             relation_matrix.add_rows(1)
 *             set_left_edge(edge, &ptet0)
 *             ptet = ptet0             # <<<<<<<<<<<<<<
 *             while True:
 *                 column = ptet.tet.generator_index[ptet.near_face]
*/
    __pyx_v_ptet = __pyx_v_ptet0;

    /* "cython/core/triangulation.pyx":2232
 *             set_left_edge(edge, &ptet0)
 *             ptet = ptet0
 *             while True:             # <<<<<<<<<<<<<<
 *                 column = ptet.tet.generator_index[ptet.near_face]
 *                 status = ptet.tet.generator_status[ptet.near_face]
*/
    while (1) {

      /* "cython/core/triangulation.pyx":2233
 *             ptet = ptet0
 *             while True:
 *                 column = ptet.tet.generator_index[ptet.near_face]             # <<<<<<<<<<<<<<
 *                 status = ptet.tet.generator_status[ptet.near_face]
 *                 if status == outbound_generator:
*/
      __pyx_v_column = (__pyx_v_ptet.tet->generator_index[__pyx_v_ptet.near_face]);

      /* "cython/core/triangulation.pyx":2234
 *             while True:
 *                 column = ptet.tet.generator_index[ptet.near_face]
 *                 status = ptet.tet.generator_status[ptet.near_face]             # <<<<<<<<<<<<<<
 *                 if status == outbound_generator:
 *                     relation_matrix[row, column] += 1
*/
      __pyx_v_status = (__pyx_v_ptet.tet->generator_status[__pyx_v_ptet.near_face]);

      /* "cython/core/triangulation.pyx":2235
 *                 column = ptet.tet.generator_index[ptet.near_face]
 *                 status = ptet.tet.generator_status[ptet.near_face]
 *                 if status == outbound_generator:             # <<<<<<<<<<<<<<
 *                     relation_matrix[row, column] += 1
 *                 elif status == inbound_generator:
*/
      __pyx_t_1 = (__pyx_v_status == outbound_generator);
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":2236
 *                 status = ptet.tet.generator_status[ptet.near_face]
 *                 if status == outbound_generator:
 *                     relation_matrix[row, column] += 1             # <<<<<<<<<<<<<<
 *                 elif status == inbound_generator:
 *                     relation_matrix[row, column] -= 1
*/
        __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_row); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2236, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_column); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2236, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2236, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2) != (0)) __PYX_ERR(4, 2236, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_6) != (0)) __PYX_ERR(4, 2236, __pyx_L1_error);
        __pyx_t_2 = 0;
        __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_relation_matrix), __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2236, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyLong_AddObjC(__pyx_t_6, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2236, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_relation_matrix), __pyx_t_3, __pyx_t_2) < 0))) __PYX_ERR(4, 2236, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

        /* "cython/core/triangulation.pyx":2235
 *                 column = ptet.tet.generator_index[ptet.near_face]
 *                 status = ptet.tet.generator_status[ptet.near_face]
 *                 if status == outbound_generator:             # <<<<<<<<<<<<<<
 *                     relation_matrix[row, column] += 1
 *                 elif status == inbound_generator:
*/
        goto __pyx_L8;
      }

      /* "cython/core/triangulation.pyx":2237
 *                 if status == outbound_generator:
 *                     relation_matrix[row, column] += 1
 *                 elif status == inbound_generator:             # <<<<<<<<<<<<<<
 *                     relation_matrix[row, column] -= 1
 *                 elif status != not_a_generator:
*/
      __pyx_t_1 = (__pyx_v_status == inbound_generator);
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":2238
 *                     relation_matrix[row, column] += 1
 *                 elif status == inbound_generator:
 *                     relation_matrix[row, column] -= 1             # <<<<<<<<<<<<<<
 *                 elif status != not_a_generator:
 *                     raise RuntimeError('Invalid generator status')
*/
        __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_row); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2238, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_column); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2238, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2238, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_3);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(4, 2238, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2) != (0)) __PYX_ERR(4, 2238, __pyx_L1_error);
        __pyx_t_3 = 0;
        __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_relation_matrix), __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2238, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PyLong_SubtractObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2238, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_relation_matrix), __pyx_t_6, __pyx_t_3) < 0))) __PYX_ERR(4, 2238, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cython/core/triangulation.pyx":2237
 *                 if status == outbound_generator:
 *                     relation_matrix[row, column] += 1
 *                 elif status == inbound_generator:             # <<<<<<<<<<<<<<
 *                     relation_matrix[row, column] -= 1
 *                 elif status != not_a_generator:
*/
        goto __pyx_L8;
      }

      /* "cython/core/triangulation.pyx":2239
 *                 elif status == inbound_generator:
 *                     relation_matrix[row, column] -= 1
 *                 elif status != not_a_generator:             # <<<<<<<<<<<<<<
 *                     raise RuntimeError('Invalid generator status')
 *                 veer_left(&ptet)
*/
      __pyx_t_1 = (__pyx_v_status != not_a_generator);
      if (unlikely(__pyx_t_1)) {

        /* "cython/core/triangulation.pyx":2240
 *                     relation_matrix[row, column] -= 1
 *                 elif status != not_a_generator:
 *                     raise RuntimeError('Invalid generator status')             # <<<<<<<<<<<<<<
 *                 veer_left(&ptet)
 *                 if same_positioned_tet(&ptet, &ptet0):
*/
        __pyx_t_3 = NULL;
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Invalid_generator_status};
          __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2240, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        __Pyx_Raise(__pyx_t_6, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __PYX_ERR(4, 2240, __pyx_L1_error)

        /* "cython/core/triangulation.pyx":2239
 *                 elif status == inbound_generator:
 *                     relation_matrix[row, column] -= 1
 *                 elif status != not_a_generator:             # <<<<<<<<<<<<<<
 *                     raise RuntimeError('Invalid generator status')
 *                 veer_left(&ptet)
*/
      }
      __pyx_L8:;

      /* "cython/core/triangulation.pyx":2241
 *                 elif status != not_a_generator:
 *                     raise RuntimeError('Invalid generator status')
 *                 veer_left(&ptet)             # <<<<<<<<<<<<<<
 *                 if same_positioned_tet(&ptet, &ptet0):
 *                     break
*/
      veer_left((&__pyx_v_ptet));

      /* "cython/core/triangulation.pyx":2242
 *                     raise RuntimeError('Invalid generator status')
 *                 veer_left(&ptet)
 *                 if same_positioned_tet(&ptet, &ptet0):             # <<<<<<<<<<<<<<
 *                     break
 *             row += 1
*/
      __pyx_t_1 = (same_positioned_tet((&__pyx_v_ptet), (&__pyx_v_ptet0)) != 0);
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":2243
 *                 veer_left(&ptet)
 *                 if same_positioned_tet(&ptet, &ptet0):
 *                     break             # <<<<<<<<<<<<<<
 *             row += 1
 *             edge = edge.next
*/
        goto __pyx_L7_break;

        /* "cython/core/triangulation.pyx":2242
 *                     raise RuntimeError('Invalid generator status')
 *                 veer_left(&ptet)
 *                 if same_positioned_tet(&ptet, &ptet0):             # <<<<<<<<<<<<<<
 *                     break
 *             row += 1
*/
      }
    }
    __pyx_L7_break:;

    /* "cython/core/triangulation.pyx":2244
 *                 if same_positioned_tet(&ptet, &ptet0):
 *                     break
 *             row += 1             # <<<<<<<<<<<<<<
 *             edge = edge.next
 *         # find the cusp relations
*/
    __pyx_v_row = (__pyx_v_row + 1);

    /* "cython/core/triangulation.pyx":2245
 *                     break
 *             row += 1
 *             edge = edge.next             # <<<<<<<<<<<<<<
 *         # find the cusp relations
 *         num_edges = relation_matrix.rows
*/
    __pyx_t_7 = __pyx_v_edge->next;
    __pyx_v_edge = __pyx_t_7;
  }

  /* "cython/core/triangulation.pyx":2247
 *             edge = edge.next
 *         # find the cusp relations
 *         num_edges = relation_matrix.rows             # <<<<<<<<<<<<<<
 *         relation_matrix.add_rows(self.num_cusps())
 *         tet = self.c_triangulation.tet_list_begin.next
*/
  __pyx_t_5 = __pyx_v_relation_matrix->rows;
  __pyx_v_num_edges = __pyx_t_5;

  /* "cython/core/triangulation.pyx":2248
 *         # find the cusp relations
 *         num_edges = relation_matrix.rows
 *         relation_matrix.add_rows(self.num_cusps())             # <<<<<<<<<<<<<<
 *         tet = self.c_triangulation.tet_list_begin.next
 *         while tet != &(self.c_triangulation.tet_list_end):
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_relation_matrix);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_8 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2248, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_2};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_add_rows, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2248, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2249
 *         num_edges = relation_matrix.rows
 *         relation_matrix.add_rows(self.num_cusps())
 *         tet = self.c_triangulation.tet_list_begin.next             # <<<<<<<<<<<<<<
 *         while tet != &(self.c_triangulation.tet_list_end):
 *             for vertex in range(4):
*/
  __pyx_t_9 = __pyx_v_self->c_triangulation->tet_list_begin.next;
  __pyx_v_tet = __pyx_t_9;

  /* "cython/core/triangulation.pyx":2250
 *         relation_matrix.add_rows(self.num_cusps())
 *         tet = self.c_triangulation.tet_list_begin.next
 *         while tet != &(self.c_triangulation.tet_list_end):             # <<<<<<<<<<<<<<
 *             for vertex in range(4):
 *                 if tet.cusp[vertex].is_complete:
*/
  while (1) {
    __pyx_t_1 = (__pyx_v_tet != (&__pyx_v_self->c_triangulation->tet_list_end));
    if (!__pyx_t_1) break;

    /* "cython/core/triangulation.pyx":2251
 *         tet = self.c_triangulation.tet_list_begin.next
 *         while tet != &(self.c_triangulation.tet_list_end):
 *             for vertex in range(4):             # <<<<<<<<<<<<<<
 *                 if tet.cusp[vertex].is_complete:
 *                     continue
*/
    for (__pyx_t_10 = 0; __pyx_t_10 < 4; __pyx_t_10+=1) {
      __pyx_v_vertex = __pyx_t_10;

      /* "cython/core/triangulation.pyx":2252
 *         while tet != &(self.c_triangulation.tet_list_end):
 *             for vertex in range(4):
 *                 if tet.cusp[vertex].is_complete:             # <<<<<<<<<<<<<<
 *                     continue
 *                 for side in range(4):
*/
      __pyx_t_1 = ((__pyx_v_tet->cusp[__pyx_v_vertex])->is_complete != 0);
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":2253
 *             for vertex in range(4):
 *                 if tet.cusp[vertex].is_complete:
 *                     continue             # <<<<<<<<<<<<<<
 *                 for side in range(4):
 *                     if side == vertex:
*/
        goto __pyx_L12_continue;

        /* "cython/core/triangulation.pyx":2252
 *         while tet != &(self.c_triangulation.tet_list_end):
 *             for vertex in range(4):
 *                 if tet.cusp[vertex].is_complete:             # <<<<<<<<<<<<<<
 *                     continue
 *                 for side in range(4):
*/
      }

      /* "cython/core/triangulation.pyx":2254
 *                 if tet.cusp[vertex].is_complete:
 *                     continue
 *                 for side in range(4):             # <<<<<<<<<<<<<<
 *                     if side == vertex:
 *                         continue
*/
      for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
        __pyx_v_side = __pyx_t_11;

        /* "cython/core/triangulation.pyx":2255
 *                     continue
 *                 for side in range(4):
 *                     if side == vertex:             # <<<<<<<<<<<<<<
 *                         continue
 *                     if tet.generator_status[side] != inbound_generator:
*/
        __pyx_t_1 = (__pyx_v_side == __pyx_v_vertex);
        if (__pyx_t_1) {

          /* "cython/core/triangulation.pyx":2256
 *                 for side in range(4):
 *                     if side == vertex:
 *                         continue             # <<<<<<<<<<<<<<
 *                     if tet.generator_status[side] != inbound_generator:
 *                         continue
*/
          goto __pyx_L15_continue;

          /* "cython/core/triangulation.pyx":2255
 *                     continue
 *                 for side in range(4):
 *                     if side == vertex:             # <<<<<<<<<<<<<<
 *                         continue
 *                     if tet.generator_status[side] != inbound_generator:
*/
        }

        /* "cython/core/triangulation.pyx":2257
 *                     if side == vertex:
 *                         continue
 *                     if tet.generator_status[side] != inbound_generator:             # <<<<<<<<<<<<<<
 *                         continue
 *                     for orientation in (right_handed, left_handed):
*/
        __pyx_t_1 = ((__pyx_v_tet->generator_status[__pyx_v_side]) != inbound_generator);
        if (__pyx_t_1) {

          /* "cython/core/triangulation.pyx":2258
 *                         continue
 *                     if tet.generator_status[side] != inbound_generator:
 *                         continue             # <<<<<<<<<<<<<<
 *                     for orientation in (right_handed, left_handed):
 *                         row = num_edges + tet.cusp[vertex].index
*/
          goto __pyx_L15_continue;

          /* "cython/core/triangulation.pyx":2257
 *                     if side == vertex:
 *                         continue
 *                     if tet.generator_status[side] != inbound_generator:             # <<<<<<<<<<<<<<
 *                         continue
 *                     for orientation in (right_handed, left_handed):
*/
        }

        /* "cython/core/triangulation.pyx":2259
 *                     if tet.generator_status[side] != inbound_generator:
 *                         continue
 *                     for orientation in (right_handed, left_handed):             # <<<<<<<<<<<<<<
 *                         row = num_edges + tet.cusp[vertex].index
 *                         column = tet.generator_index[side]
*/
        __pyx_t_6 = __Pyx_PyLong_From_Orientation(right_handed); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2259, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyLong_From_Orientation(left_handed); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2259, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2259, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6) != (0)) __PYX_ERR(4, 2259, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2) != (0)) __PYX_ERR(4, 2259, __pyx_L1_error);
        __pyx_t_6 = 0;
        __pyx_t_2 = 0;
        __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2);
        __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        for (;;) {
          if (__pyx_t_12 >= 2) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_12));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_12);
          #endif
          ++__pyx_t_12;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2259, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_13 = __Pyx_PyLong_As_Orientation(__pyx_t_3); if (unlikely((__pyx_t_13 == ((Orientation)-1)) && PyErr_Occurred())) __PYX_ERR(4, 2259, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __pyx_v_orientation = __pyx_t_13;

          /* "cython/core/triangulation.pyx":2260
 *                         continue
 *                     for orientation in (right_handed, left_handed):
 *                         row = num_edges + tet.cusp[vertex].index             # <<<<<<<<<<<<<<
 *                         column = tet.generator_index[side]
 *                         m = <int>tet.cusp[vertex].m
*/
          __pyx_v_row = (__pyx_v_num_edges + (__pyx_v_tet->cusp[__pyx_v_vertex])->index);

          /* "cython/core/triangulation.pyx":2261
 *                     for orientation in (right_handed, left_handed):
 *                         row = num_edges + tet.cusp[vertex].index
 *                         column = tet.generator_index[side]             # <<<<<<<<<<<<<<
 *                         m = <int>tet.cusp[vertex].m
 *                         l = <int>tet.cusp[vertex].l
*/
          __pyx_v_column = (__pyx_v_tet->generator_index[__pyx_v_side]);

          /* "cython/core/triangulation.pyx":2262
 *                         row = num_edges + tet.cusp[vertex].index
 *                         column = tet.generator_index[side]
 *                         m = <int>tet.cusp[vertex].m             # <<<<<<<<<<<<<<
 *                         l = <int>tet.cusp[vertex].l
 *                         relation_matrix[row, column] += (
*/
          __pyx_v_m = ((int)(__pyx_v_tet->cusp[__pyx_v_vertex])->m);

          /* "cython/core/triangulation.pyx":2263
 *                         column = tet.generator_index[side]
 *                         m = <int>tet.cusp[vertex].m
 *                         l = <int>tet.cusp[vertex].l             # <<<<<<<<<<<<<<
 *                         relation_matrix[row, column] += (
 *                             m * tet.curve[0][orientation][vertex][side]
*/
          __pyx_v_l = ((int)(__pyx_v_tet->cusp[__pyx_v_vertex])->l);

          /* "cython/core/triangulation.pyx":2264
 *                         m = <int>tet.cusp[vertex].m
 *                         l = <int>tet.cusp[vertex].l
 *                         relation_matrix[row, column] += (             # <<<<<<<<<<<<<<
 *                             m * tet.curve[0][orientation][vertex][side]
 *                             + l * tet.curve[1][orientation][vertex][side])
*/
          __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_row); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2264, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_column); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2264, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2264, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_GIVEREF(__pyx_t_3);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3) != (0)) __PYX_ERR(4, 2264, __pyx_L1_error);
          __Pyx_GIVEREF(__pyx_t_6);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6) != (0)) __PYX_ERR(4, 2264, __pyx_L1_error);
          __pyx_t_3 = 0;
          __pyx_t_6 = 0;
          __pyx_t_6 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_relation_matrix), __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2264, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);

          /* "cython/core/triangulation.pyx":2266
 *                         relation_matrix[row, column] += (
 *                             m * tet.curve[0][orientation][vertex][side]
 *                             + l * tet.curve[1][orientation][vertex][side])             # <<<<<<<<<<<<<<
 *             tet = tet.next
 * 
*/
          __pyx_t_3 = __Pyx_PyLong_From_int(((__pyx_v_m * ((((__pyx_v_tet->curve[0])[__pyx_v_orientation])[__pyx_v_vertex])[__pyx_v_side])) + (__pyx_v_l * ((((__pyx_v_tet->curve[1])[__pyx_v_orientation])[__pyx_v_vertex])[__pyx_v_side])))); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2266, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);

          /* "cython/core/triangulation.pyx":2264
 *                         m = <int>tet.cusp[vertex].m
 *                         l = <int>tet.cusp[vertex].l
 *                         relation_matrix[row, column] += (             # <<<<<<<<<<<<<<
 *                             m * tet.curve[0][orientation][vertex][side]
 *                             + l * tet.curve[1][orientation][vertex][side])
*/
          __pyx_t_14 = PyNumber_InPlaceAdd(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 2264, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_relation_matrix), __pyx_t_8, __pyx_t_14) < 0))) __PYX_ERR(4, 2264, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

          /* "cython/core/triangulation.pyx":2259
 *                     if tet.generator_status[side] != inbound_generator:
 *                         continue
 *                     for orientation in (right_handed, left_handed):             # <<<<<<<<<<<<<<
 *                         row = num_edges + tet.cusp[vertex].index
 *                         column = tet.generator_index[side]
*/
        }
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_L15_continue:;
      }
      __pyx_L12_continue:;
    }

    /* "cython/core/triangulation.pyx":2267
 *                             m * tet.curve[0][orientation][vertex][side]
 *                             + l * tet.curve[1][orientation][vertex][side])
 *             tet = tet.next             # <<<<<<<<<<<<<<
 * 
 *         return relation_matrix
*/
    __pyx_t_9 = __pyx_v_tet->next;
    __pyx_v_tet = __pyx_t_9;
  }

  /* "cython/core/triangulation.pyx":2269
 *             tet = tet.next
 * 
 *         return relation_matrix             # <<<<<<<<<<<<<<
 * 
 *     def _presentation_matrix(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_relation_matrix);
  __pyx_r = ((PyObject *)__pyx_v_relation_matrix);
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2207
 *         return AbelianGroup(relation_matrix.simplified_matrix())
 * 
 *     cdef c_presentation_matrix(self):             # <<<<<<<<<<<<<<
 *         """
 *         See _presentation_matrix.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("SnapPy.Triangulation.c_presentation_matrix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_relation_matrix);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2271
 *         return relation_matrix
 * 
 *     def _presentation_matrix(self):             # <<<<<<<<<<<<<<
 *         """
 *         Computes the presentation matrix for the first integral
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_121_presentation_matrix(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_120_presentation_matrix, "\n        Computes the presentation matrix for the first integral\n        homology group of the underlying (Dehn filled) manifold.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_121_presentation_matrix = {"_presentation_matrix", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_121_presentation_matrix, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_120_presentation_matrix};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_121_presentation_matrix(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_presentation_matrix (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_presentation_matrix", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_presentation_matrix", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_120_presentation_matrix(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_120_presentation_matrix(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  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("_presentation_matrix", 0);

  /* "cython/core/triangulation.pyx":2276
 *         homology group of the underlying (Dehn filled) manifold.
 *         """
 *         return self.c_presentation_matrix()             # <<<<<<<<<<<<<<
 * 
 *     cdef csmall_homology(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->c_presentation_matrix(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2271
 *         return relation_matrix
 * 
 *     def _presentation_matrix(self):             # <<<<<<<<<<<<<<
 *         """
 *         Computes the presentation matrix for the first integral
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.Triangulation._presentation_matrix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2278
 *         return self.c_presentation_matrix()
 * 
 *     cdef csmall_homology(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an AbelianGroup representing the first integral
*/

static PyObject *__pyx_f_6SnapPy_13Triangulation_csmall_homology(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  RelationMatrix __pyx_v_R;
  int __pyx_v_n;
  PyObject *__pyx_v_relations = NULL;
  long __pyx_v_m;
  PyObject *__pyx_v_row = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("csmall_homology", 0);

  /* "cython/core/triangulation.pyx":2292
 *         cdef int n
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return AbelianGroup()
 *         homology_presentation(self.c_triangulation, &R)
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2293
 * 
 *         if self.c_triangulation is NULL:
 *             return AbelianGroup()             # <<<<<<<<<<<<<<
 *         homology_presentation(self.c_triangulation, &R)
 *         relations = []
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2293, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_2);
    }
    __pyx_r = ((PyObject *)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2292
 *         cdef int n
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return AbelianGroup()
 *         homology_presentation(self.c_triangulation, &R)
*/
  }

  /* "cython/core/triangulation.pyx":2294
 *         if self.c_triangulation is NULL:
 *             return AbelianGroup()
 *         homology_presentation(self.c_triangulation, &R)             # <<<<<<<<<<<<<<
 *         relations = []
 *         if R.relations != NULL:
*/
  homology_presentation(__pyx_v_self->c_triangulation, (&__pyx_v_R)); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2294, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2295
 *             return AbelianGroup()
 *         homology_presentation(self.c_triangulation, &R)
 *         relations = []             # <<<<<<<<<<<<<<
 *         if R.relations != NULL:
 *             if R.num_rows == 0:
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_relations = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":2296
 *         homology_presentation(self.c_triangulation, &R)
 *         relations = []
 *         if R.relations != NULL:             # <<<<<<<<<<<<<<
 *             if R.num_rows == 0:
 *                 relations = [0,] * R.num_columns
*/
  __pyx_t_1 = (__pyx_v_R.relations != NULL);
  if (likely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":2297
 *         relations = []
 *         if R.relations != NULL:
 *             if R.num_rows == 0:             # <<<<<<<<<<<<<<
 *                 relations = [0,] * R.num_columns
 *             else:
*/
    __pyx_t_1 = (__pyx_v_R.num_rows == 0);
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2298
 *         if R.relations != NULL:
 *             if R.num_rows == 0:
 *                 relations = [0,] * R.num_columns             # <<<<<<<<<<<<<<
 *             else:
 *                 for m from 0 <= m < R.num_rows:
*/
      __pyx_t_2 = PyList_New(1 * ((__pyx_v_R.num_columns<0) ? 0:__pyx_v_R.num_columns)); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2298, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      { Py_ssize_t __pyx_temp;
        for (__pyx_temp=0; __pyx_temp < __pyx_v_R.num_columns; __pyx_temp++) {
          __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
          __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
          if (__Pyx_PyList_SET_ITEM(__pyx_t_2, __pyx_temp, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(4, 2298, __pyx_L1_error);
        }
      }
      __Pyx_DECREF_SET(__pyx_v_relations, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2297
 *         relations = []
 *         if R.relations != NULL:
 *             if R.num_rows == 0:             # <<<<<<<<<<<<<<
 *                 relations = [0,] * R.num_columns
 *             else:
*/
      goto __pyx_L5;
    }

    /* "cython/core/triangulation.pyx":2300
 *                 relations = [0,] * R.num_columns
 *             else:
 *                 for m from 0 <= m < R.num_rows:             # <<<<<<<<<<<<<<
 *                     row = []
 *                     for n from 0 <= n < R.num_columns:
*/
    /*else*/ {
      __pyx_t_5 = __pyx_v_R.num_rows;
      for (__pyx_v_m = 0; __pyx_v_m < __pyx_t_5; __pyx_v_m++) {

        /* "cython/core/triangulation.pyx":2301
 *             else:
 *                 for m from 0 <= m < R.num_rows:
 *                     row = []             # <<<<<<<<<<<<<<
 *                     for n from 0 <= n < R.num_columns:
 *                         row.append(R.relations[m][n])
*/
        __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2301, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_XDECREF_SET(__pyx_v_row, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "cython/core/triangulation.pyx":2302
 *                 for m from 0 <= m < R.num_rows:
 *                     row = []
 *                     for n from 0 <= n < R.num_columns:             # <<<<<<<<<<<<<<
 *                         row.append(R.relations[m][n])
 *                     relations.append(row)
*/
        __pyx_t_6 = __pyx_v_R.num_columns;
        for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_6; __pyx_v_n++) {

          /* "cython/core/triangulation.pyx":2303
 *                     row = []
 *                     for n from 0 <= n < R.num_columns:
 *                         row.append(R.relations[m][n])             # <<<<<<<<<<<<<<
 *                     relations.append(row)
 *                 free_relations(&R)
*/
          __pyx_t_2 = __Pyx_PyLong_From_MatrixEntry(((__pyx_v_R.relations[__pyx_v_m])[__pyx_v_n])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2303, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_row, __pyx_t_2); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(4, 2303, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }

        /* "cython/core/triangulation.pyx":2304
 *                     for n from 0 <= n < R.num_columns:
 *                         row.append(R.relations[m][n])
 *                     relations.append(row)             # <<<<<<<<<<<<<<
 *                 free_relations(&R)
 *         else:
*/
        __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_relations, __pyx_v_row); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(4, 2304, __pyx_L1_error)
      }

      /* "cython/core/triangulation.pyx":2305
 *                         row.append(R.relations[m][n])
 *                     relations.append(row)
 *                 free_relations(&R)             # <<<<<<<<<<<<<<
 *         else:
 *             raise RuntimeError("The SnapPea kernel couldn't compute "
*/
      free_relations((&__pyx_v_R)); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2305, __pyx_L1_error)
    }
    __pyx_L5:;

    /* "cython/core/triangulation.pyx":2296
 *         homology_presentation(self.c_triangulation, &R)
 *         relations = []
 *         if R.relations != NULL:             # <<<<<<<<<<<<<<
 *             if R.num_rows == 0:
 *                 relations = [0,] * R.num_columns
*/
    goto __pyx_L4;
  }

  /* "cython/core/triangulation.pyx":2307
 *                 free_relations(&R)
 *         else:
 *             raise RuntimeError("The SnapPea kernel couldn't compute "             # <<<<<<<<<<<<<<
 *                                "the homology presentation matrix")
 *         return AbelianGroup(relations)
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_SnapPea_kernel_couldn_t_comp};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2307, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 2307, __pyx_L1_error)
  }
  __pyx_L4:;

  /* "cython/core/triangulation.pyx":2309
 *             raise RuntimeError("The SnapPea kernel couldn't compute "
 *                                "the homology presentation matrix")
 *         return AbelianGroup(relations)             # <<<<<<<<<<<<<<
 * 
 *     def homology(self) -> AbelianGroup:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_relations};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2309, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_r = ((PyObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2278
 *         return self.c_presentation_matrix()
 * 
 *     cdef csmall_homology(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an AbelianGroup representing the first integral
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.csmall_homology", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_relations);
  __Pyx_XDECREF(__pyx_v_row);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2311
 *         return AbelianGroup(relations)
 * 
 *     def homology(self) -> AbelianGroup:             # <<<<<<<<<<<<<<
 *         """
 *         Returns an :class:`AbelianGroup` representing the first integral
*/

/* Python wrapper */
static struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_pw_6SnapPy_13Triangulation_123homology(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_122homology, "\n        Returns an :class:`AbelianGroup` representing the first integral\n        homology group of the underlying (Dehn filled) manifold.\n\n        >>> M = Triangulation('m003')\n        >>> M.homology()\n        Z/5 + Z\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_123homology = {"homology", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_123homology, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_122homology};
static struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_pw_6SnapPy_13Triangulation_123homology(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("homology (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("homology", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("homology", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_122homology(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_pf_6SnapPy_13Triangulation_122homology(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  AbelianGroup *__pyx_v_H;
  int __pyx_v_n;
  PyObject *__pyx_v_coefficient_list = NULL;
  PyObject *__pyx_v_result = NULL;
  struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  AbelianGroup *__pyx_t_9;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("homology", 0);

  /* "cython/core/triangulation.pyx":2321
 * 
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('homology')
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cython/core/triangulation.pyx":2322
 *         """
 *         try:
 *             return self._cache.lookup('homology')             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
      __Pyx_XDECREF((PyObject *)__pyx_r);
      __pyx_t_5 = __pyx_v_self->_cache;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_homology};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lookup, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2322, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup))))) __PYX_ERR(4, 2322, __pyx_L3_error)
      __pyx_r = ((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_t_4);
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "cython/core/triangulation.pyx":2321
 * 
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('homology')
 *         except KeyError:
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":2323
 *         try:
 *             return self._cache.lookup('homology')
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             pass
 * 
*/
    __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_7) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cython/core/triangulation.pyx":2321
 * 
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('homology')
 *         except KeyError:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
  }

  /* "cython/core/triangulation.pyx":2329
 *         cdef int n
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return AbelianGroup()
 *         H = homology(self.c_triangulation)
*/
  __pyx_t_8 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_8) {

    /* "cython/core/triangulation.pyx":2330
 * 
 *         if self.c_triangulation is NULL:
 *             return AbelianGroup()             # <<<<<<<<<<<<<<
 *         H = homology(self.c_triangulation)
 *         if H != NULL:
*/
    __Pyx_XDECREF((PyObject *)__pyx_r);
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2330, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_r = ((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_t_4);
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2329
 *         cdef int n
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return AbelianGroup()
 *         H = homology(self.c_triangulation)
*/
  }

  /* "cython/core/triangulation.pyx":2331
 *         if self.c_triangulation is NULL:
 *             return AbelianGroup()
 *         H = homology(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         if H != NULL:
 *             coefficient_list = []
*/
  __pyx_t_9 = homology(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2331, __pyx_L1_error)
  __pyx_v_H = __pyx_t_9;

  /* "cython/core/triangulation.pyx":2332
 *             return AbelianGroup()
 *         H = homology(self.c_triangulation)
 *         if H != NULL:             # <<<<<<<<<<<<<<
 *             coefficient_list = []
 *             compress_abelian_group(H)
*/
  __pyx_t_8 = (__pyx_v_H != NULL);
  if (__pyx_t_8) {

    /* "cython/core/triangulation.pyx":2333
 *         H = homology(self.c_triangulation)
 *         if H != NULL:
 *             coefficient_list = []             # <<<<<<<<<<<<<<
 *             compress_abelian_group(H)
 *             for n from 0 <= n < H.num_torsion_coefficients:
*/
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_coefficient_list = ((PyObject*)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2334
 *         if H != NULL:
 *             coefficient_list = []
 *             compress_abelian_group(H)             # <<<<<<<<<<<<<<
 *             for n from 0 <= n < H.num_torsion_coefficients:
 *                 coefficient_list.append(H.torsion_coefficients[n])
*/
    compress_abelian_group(__pyx_v_H); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2334, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2335
 *             coefficient_list = []
 *             compress_abelian_group(H)
 *             for n from 0 <= n < H.num_torsion_coefficients:             # <<<<<<<<<<<<<<
 *                 coefficient_list.append(H.torsion_coefficients[n])
 *             free_abelian_group(H)
*/
    __pyx_t_7 = __pyx_v_H->num_torsion_coefficients;
    for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_7; __pyx_v_n++) {

      /* "cython/core/triangulation.pyx":2336
 *             compress_abelian_group(H)
 *             for n from 0 <= n < H.num_torsion_coefficients:
 *                 coefficient_list.append(H.torsion_coefficients[n])             # <<<<<<<<<<<<<<
 *             free_abelian_group(H)
 *             result = AbelianGroup(elementary_divisors=coefficient_list)
*/
      __pyx_t_4 = __Pyx_PyLong_From_long((__pyx_v_H->torsion_coefficients[__pyx_v_n])); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2336, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_coefficient_list, __pyx_t_4); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(4, 2336, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }

    /* "cython/core/triangulation.pyx":2337
 *             for n from 0 <= n < H.num_torsion_coefficients:
 *                 coefficient_list.append(H.torsion_coefficients[n])
 *             free_abelian_group(H)             # <<<<<<<<<<<<<<
 *             result = AbelianGroup(elementary_divisors=coefficient_list)
 *         else:
*/
    free_abelian_group(__pyx_v_H); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2337, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2338
 *                 coefficient_list.append(H.torsion_coefficients[n])
 *             free_abelian_group(H)
 *             result = AbelianGroup(elementary_divisors=coefficient_list)             # <<<<<<<<<<<<<<
 *         else:
 *             try:
*/
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
      __pyx_t_11 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2338, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_v_coefficient_list, __pyx_t_11, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 2338, __pyx_L1_error)
      __pyx_t_4 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_11);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2338, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_v_result = ((PyObject *)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2332
 *             return AbelianGroup()
 *         H = homology(self.c_triangulation)
 *         if H != NULL:             # <<<<<<<<<<<<<<
 *             coefficient_list = []
 *             compress_abelian_group(H)
*/
    goto __pyx_L12;
  }

  /* "cython/core/triangulation.pyx":2340
 *             result = AbelianGroup(elementary_divisors=coefficient_list)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 result = self.csmall_homology()
 *             except RuntimeError:
*/
  /*else*/ {
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_1);
      /*try:*/ {

        /* "cython/core/triangulation.pyx":2341
 *         else:
 *             try:
 *                 result = self.csmall_homology()             # <<<<<<<<<<<<<<
 *             except RuntimeError:
 *                 result = self.big_homology()
*/
        __pyx_t_4 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->csmall_homology(__pyx_v_self); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2341, __pyx_L15_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_v_result = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "cython/core/triangulation.pyx":2340
 *             result = AbelianGroup(elementary_divisors=coefficient_list)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 result = self.csmall_homology()
 *             except RuntimeError:
*/
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L20_try_end;
      __pyx_L15_error:;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cython/core/triangulation.pyx":2342
 *             try:
 *                 result = self.csmall_homology()
 *             except RuntimeError:             # <<<<<<<<<<<<<<
 *                 result = self.big_homology()
 *         return self._cache.save(result, 'homology')
*/
      __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_RuntimeError))));
      if (__pyx_t_7) {
        __Pyx_AddTraceback("SnapPy.Triangulation.homology", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_11, &__pyx_t_5) < 0) __PYX_ERR(4, 2342, __pyx_L17_except_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_5);

        /* "cython/core/triangulation.pyx":2343
 *                 result = self.csmall_homology()
 *             except RuntimeError:
 *                 result = self.big_homology()             # <<<<<<<<<<<<<<
 *         return self._cache.save(result, 'homology')
 * 
*/
        __pyx_t_12 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->big_homology(__pyx_v_self); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 2343, __pyx_L17_except_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_XDECREF_SET(__pyx_v_result, __pyx_t_12);
        __pyx_t_12 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        goto __pyx_L16_exception_handled;
      }
      goto __pyx_L17_except_error;

      /* "cython/core/triangulation.pyx":2340
 *             result = AbelianGroup(elementary_divisors=coefficient_list)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 result = self.csmall_homology()
 *             except RuntimeError:
*/
      __pyx_L17_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_1);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_2, __pyx_t_1);
      goto __pyx_L1_error;
      __pyx_L16_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_1);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_2, __pyx_t_1);
      __pyx_L20_try_end:;
    }
  }
  __pyx_L12:;

  /* "cython/core/triangulation.pyx":2344
 *             except RuntimeError:
 *                 result = self.big_homology()
 *         return self._cache.save(result, 'homology')             # <<<<<<<<<<<<<<
 * 
 *     def fundamental_group(
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_11 = __pyx_v_self->_cache;
  __Pyx_INCREF(__pyx_t_11);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_11, __pyx_v_result, __pyx_mstate_global->__pyx_n_u_homology};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_save, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2344, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup))))) __PYX_ERR(4, 2344, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_t_5);
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2311
 *         return AbelianGroup(relations)
 * 
 *     def homology(self) -> AbelianGroup:             # <<<<<<<<<<<<<<
 *         """
 *         Returns an :class:`AbelianGroup` representing the first integral
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.Triangulation.homology", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_coefficient_list);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2346
 *         return self._cache.save(result, 'homology')
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_125fundamental_group(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_124fundamental_group, "\n        Returns a :class:`FundamentalGroup` object representing the fundamental\n        group of the manifold.  If integer Dehn surgery parameters\n        have been set, then the corresponding peripheral elements are\n        killed.\n\n        >>> M = Triangulation('m004')\n        >>> G = M.fundamental_group()\n        >>> G\n        Generators:\n           a,b\n        Relators:\n           aaabABBAb\n        >>> G.peripheral_curves()\n        [('ab', 'aBAbABab')]\n\n        There are four optional arguments all of which default to True:\n\n        - simplify_presentation\n        - fillings_may_affect_generators\n        - minimize_number_of_generators\n        - try_hard_to_shorten_relators\n\n        >>> M.fundamental_group(False, False, False)\n        Generators:\n           a,b,c\n        Relators:\n           CbAcB\n           BacA\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_125fundamental_group = {"fundamental_group", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_125fundamental_group, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_124fundamental_group};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_125fundamental_group(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_simplify_presentation;
  int __pyx_v_fillings_may_affect_generators;
  int __pyx_v_minimize_number_of_generators;
  int __pyx_v_try_hard_to_shorten_relators;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("fundamental_group (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_simplify_presentation,&__pyx_mstate_global->__pyx_n_u_fillings_may_affect_generators,&__pyx_mstate_global->__pyx_n_u_minimize_number_of_generators,&__pyx_mstate_global->__pyx_n_u_try_hard_to_shorten_relators,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2346, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(4, 2346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 2346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "fundamental_group", 0) < (0)) __PYX_ERR(4, 2346, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(4, 2346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 2346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_simplify_presentation = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_simplify_presentation == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2348, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2348
 *     def fundamental_group(
 *             self,
 *             simplify_presentation : bool = True,             # <<<<<<<<<<<<<<
 *             fillings_may_affect_generators : bool = True,
 *             minimize_number_of_generators : bool = True,
*/
      __pyx_v_simplify_presentation = ((int)1);
    }
    if (values[1]) {
      __pyx_v_fillings_may_affect_generators = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_fillings_may_affect_generators == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2349, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2349
 *             self,
 *             simplify_presentation : bool = True,
 *             fillings_may_affect_generators : bool = True,             # <<<<<<<<<<<<<<
 *             minimize_number_of_generators : bool = True,
 *             try_hard_to_shorten_relators : bool = True
*/
      __pyx_v_fillings_may_affect_generators = ((int)1);
    }
    if (values[2]) {
      __pyx_v_minimize_number_of_generators = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_minimize_number_of_generators == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2350, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2350
 *             simplify_presentation : bool = True,
 *             fillings_may_affect_generators : bool = True,
 *             minimize_number_of_generators : bool = True,             # <<<<<<<<<<<<<<
 *             try_hard_to_shorten_relators : bool = True
 *             ) -> FundamentalGroup:
*/
      __pyx_v_minimize_number_of_generators = ((int)1);
    }
    if (values[3]) {
      __pyx_v_try_hard_to_shorten_relators = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_try_hard_to_shorten_relators == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2351, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2351
 *             fillings_may_affect_generators : bool = True,
 *             minimize_number_of_generators : bool = True,
 *             try_hard_to_shorten_relators : bool = True             # <<<<<<<<<<<<<<
 *             ) -> FundamentalGroup:
 *         """
*/
      __pyx_v_try_hard_to_shorten_relators = ((int)1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("fundamental_group", 0, 0, 4, __pyx_nargs); __PYX_ERR(4, 2346, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.fundamental_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_124fundamental_group(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_simplify_presentation, __pyx_v_fillings_may_affect_generators, __pyx_v_minimize_number_of_generators, __pyx_v_try_hard_to_shorten_relators);

  /* "cython/core/triangulation.pyx":2346
 *         return self._cache.save(result, 'homology')
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_124fundamental_group(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_simplify_presentation, int __pyx_v_fillings_may_affect_generators, int __pyx_v_minimize_number_of_generators, int __pyx_v_try_hard_to_shorten_relators) {
  PyObject *__pyx_v_args = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  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;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("fundamental_group", 0);

  /* "cython/core/triangulation.pyx":2383
 *            BacA
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         args = (simplify_presentation, fillings_may_affect_generators,
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":2384
 *         """
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2384, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 2384, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2383
 *            BacA
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         args = (simplify_presentation, fillings_may_affect_generators,
*/
  }

  /* "cython/core/triangulation.pyx":2385
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         args = (simplify_presentation, fillings_may_affect_generators,             # <<<<<<<<<<<<<<
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:
*/
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_simplify_presentation); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_fillings_may_affect_generators); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/triangulation.pyx":2386
 *             raise ValueError('The Triangulation is empty.')
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._cache.lookup('fundamental_group', *args)
*/
  __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_minimize_number_of_generators); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_try_hard_to_shorten_relators); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "cython/core/triangulation.pyx":2385
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         args = (simplify_presentation, fillings_may_affect_generators,             # <<<<<<<<<<<<<<
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:
*/
  __pyx_t_7 = PyTuple_New(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(4, 2385, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3) != (0)) __PYX_ERR(4, 2385, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_5) != (0)) __PYX_ERR(4, 2385, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_6) != (0)) __PYX_ERR(4, 2385, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_v_args = __pyx_t_7;
  __pyx_t_7 = 0;

  /* "cython/core/triangulation.pyx":2387
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('fundamental_group', *args)
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_10);
    /*try:*/ {

      /* "cython/core/triangulation.pyx":2388
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:
 *             return self._cache.lookup('fundamental_group', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_cache, __pyx_mstate_global->__pyx_n_u_lookup); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2388, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2388, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = PyNumber_Add(__pyx_mstate_global->__pyx_tuple[15], __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2388, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2388, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_6;
      __pyx_t_6 = 0;
      goto __pyx_L8_try_return;

      /* "cython/core/triangulation.pyx":2387
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('fundamental_group', *args)
 *         except KeyError:
*/
    }
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/triangulation.pyx":2389
 *         try:
 *             return self._cache.lookup('fundamental_group', *args)
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             pass
 * 
*/
    __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_11) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;

    /* "cython/core/triangulation.pyx":2387
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('fundamental_group', *args)
 *         except KeyError:
*/
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    goto __pyx_L1_error;
    __pyx_L8_try_return:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    goto __pyx_L0;
    __pyx_L5_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
  }

  /* "cython/core/triangulation.pyx":2392
 *             pass
 * 
 *         return self._cache.save(FundamentalGroup(self, *args),             # <<<<<<<<<<<<<<
 *                                 'fundamental_group', *args)
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_cache, __pyx_mstate_global->__pyx_n_u_save); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_FundamentalGroup); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_v_self)) != (0)) __PYX_ERR(4, 2392, __pyx_L1_error);
  __pyx_t_3 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Add(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(4, 2392, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_fundamental_group);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_fundamental_group);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_mstate_global->__pyx_n_u_fundamental_group) != (0)) __PYX_ERR(4, 2392, __pyx_L1_error);
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":2393
 * 
 *         return self._cache.save(FundamentalGroup(self, *args),
 *                                 'fundamental_group', *args)             # <<<<<<<<<<<<<<
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Triangulation':
*/
  __pyx_t_3 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/triangulation.pyx":2392
 *             pass
 * 
 *         return self._cache.save(FundamentalGroup(self, *args),             # <<<<<<<<<<<<<<
 *                                 'fundamental_group', *args)
 * 
*/
  __pyx_t_5 = PyNumber_Add(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_5, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2346
 *         return self._cache.save(result, 'homology')
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Triangulation.fundamental_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2395
 *                                 'fundamental_group', *args)
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Triangulation':             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`Triangulation` representing the finite cover specified
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_127cover(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_126cover, "\n        Returns a :class:`Triangulation` representing the finite cover specified\n        by a transitive permutation representation.  The representation is\n        specified by a list of permutations, one for each generator of the\n        simplified presentation of the fundamental group.  Each permutation is\n        specified as a list ``P`` such that ``set(P) == set(range(d))`` where\n        ``d`` is the degree of the cover.\n\n        >>> M = Triangulation('m004')\n        >>> N0 = M.cover([[1, 3, 0, 4, 2], [0, 2, 1, 4, 3]])\n        >>> N0.homology()\n        Z + Z + Z\n        >>> N0.cover_info()['type']\n        'irregular'\n        >>> N0.cover_info()['base']\n        'm004'\n        >>> N0.cover_info()['degree']\n        5\n\n        Within Sage the permutations can also be of type\n        ``PermutationGroupElement``, in which case they act on the set\n        ``range(1, d + 1)``.  Or, you can specify a GAP or Magma subgroup\n        of the fundamental group.  For more examples, see the docstring for\n        :meth:`Manifold.cover`.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_127cover = {"cover", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_127cover, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_126cover};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_127cover(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_permutation_rep = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cover (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_permutation_rep,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2395, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2395, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "cover", 0) < (0)) __PYX_ERR(4, 2395, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cover", 1, 1, 1, i); __PYX_ERR(4, 2395, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2395, __pyx_L3_error)
    }
    __pyx_v_permutation_rep = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cover", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 2395, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.cover", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_126cover(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_permutation_rep);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_6SnapPy_13Triangulation_5cover_2generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cython/core/triangulation.pyx":2466
 * 
 *             # Not a useful GAP or MAGMA object, so let's try.
 *             elif all(isinstance(p, PermutationGroupElement) for p in permutation_rep):             # <<<<<<<<<<<<<<
 *                 permutation_rep = [[x - 1 for x in perm.domain()]
 *                                    for perm in permutation_rep]
*/

static PyObject *__pyx_pf_6SnapPy_13Triangulation_5cover_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *)__pyx_tp_new_6SnapPy___pyx_scope_struct_3_genexpr(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(4, 2466, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_6SnapPy_13Triangulation_5cover_2generator2, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_cover_locals_genexpr, __pyx_mstate_global->__pyx_n_u_SnapPy); if (unlikely(!gen)) __PYX_ERR(4, 2466, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.Triangulation.cover.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_6SnapPy_13Triangulation_5cover_2generator2(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *__pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(4, 2466, __pyx_L1_error)
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(4, 2466, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2466, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2466, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2466, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2466, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2466, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_p);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_p, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_PermutationGroupElement); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v_p, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(4, 2466, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2395
 *                                 'fundamental_group', *args)
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Triangulation':             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`Triangulation` representing the finite cover specified
*/

static PyObject *__pyx_pf_6SnapPy_13Triangulation_126cover(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_permutation_rep) {
  RepresentationIntoSn *__pyx_v_c_representation;
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_cover = 0;
  PyObject *__pyx_v_GG = NULL;
  PyObject *__pyx_v_coset_action = NULL;
  PyObject *__pyx_v_gap_image_gens = NULL;
  PyObject *__pyx_v_Q = NULL;
  PyObject *__pyx_v_f = NULL;
  PyObject *__pyx_v_input_type = NULL;
  PyObject *__pyx_v_G = NULL;
  Py_ssize_t __pyx_v_degree;
  PyObject *__pyx_v_info = NULL;
  PyObject *__pyx_9genexpr32__pyx_v_g = NULL;
  PyObject *__pyx_gb_6SnapPy_13Triangulation_5cover_2generator2 = 0;
  PyObject *__pyx_9genexpr34__pyx_v_perm = NULL;
  PyObject *__pyx_9genexpr35__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  Py_ssize_t __pyx_t_14;
  PyObject *(*__pyx_t_15)(PyObject *);
  RepresentationIntoSn *__pyx_t_16;
  GroupPresentation *__pyx_t_17;
  Triangulation *__pyx_t_18;
  int __pyx_t_19;
  int __pyx_t_20;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cover", 0);
  __Pyx_INCREF(__pyx_v_permutation_rep);

  /* "cython/core/triangulation.pyx":2425
 *         cdef Triangulation cover
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         # For Sage, we need to check if we have been given some
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":2426
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         # For Sage, we need to check if we have been given some
 *         # alternate inputs
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2426, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 2426, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2425
 *         cdef Triangulation cover
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         # For Sage, we need to check if we have been given some
*/
  }

  /* "cython/core/triangulation.pyx":2430
 *         # alternate inputs
 * 
 *         if _within_sage:             # <<<<<<<<<<<<<<
 *             if is_GapElement(permutation_rep):
 *                 if permutation_rep.IsSubgroupFpGroup():
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2430, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2431
 * 
 *         if _within_sage:
 *             if is_GapElement(permutation_rep):             # <<<<<<<<<<<<<<
 *                 if permutation_rep.IsSubgroupFpGroup():
 *                     GG = gap(self.fundamental_group())
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_GapElement); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_permutation_rep};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2431, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2431, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2432
 *         if _within_sage:
 *             if is_GapElement(permutation_rep):
 *                 if permutation_rep.IsSubgroupFpGroup():             # <<<<<<<<<<<<<<
 *                     GG = gap(self.fundamental_group())
 *                     coset_action = GG.FactorCosetAction(permutation_rep)
*/
      __pyx_t_5 = __pyx_v_permutation_rep;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_IsSubgroupFpGroup, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2432, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2432, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":2433
 *             if is_GapElement(permutation_rep):
 *                 if permutation_rep.IsSubgroupFpGroup():
 *                     GG = gap(self.fundamental_group())             # <<<<<<<<<<<<<<
 *                     coset_action = GG.FactorCosetAction(permutation_rep)
 *                     gap_image_gens = coset_action.Image().GeneratorsOfGroup()
*/
        __pyx_t_5 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gap); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2433, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_7 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
          __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2433, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        __pyx_t_4 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
          assert(__pyx_t_5);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
          __pyx_t_4 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
          __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2433, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_v_GG = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cython/core/triangulation.pyx":2434
 *                 if permutation_rep.IsSubgroupFpGroup():
 *                     GG = gap(self.fundamental_group())
 *                     coset_action = GG.FactorCosetAction(permutation_rep)             # <<<<<<<<<<<<<<
 *                     gap_image_gens = coset_action.Image().GeneratorsOfGroup()
 *                     Q = PermutationGroup(gap_image_gens)
*/
        __pyx_t_3 = __pyx_v_GG;
        __Pyx_INCREF(__pyx_t_3);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_permutation_rep};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_FactorCosetAction, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2434, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_v_coset_action = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cython/core/triangulation.pyx":2435
 *                     GG = gap(self.fundamental_group())
 *                     coset_action = GG.FactorCosetAction(permutation_rep)
 *                     gap_image_gens = coset_action.Image().GeneratorsOfGroup()             # <<<<<<<<<<<<<<
 *                     Q = PermutationGroup(gap_image_gens)
 *                     return self.cover([Q(g) for g in gap_image_gens ])
*/
        __pyx_t_5 = __pyx_v_coset_action;
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
          __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_Image, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2435, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        __pyx_t_3 = __pyx_t_6;
        __Pyx_INCREF(__pyx_t_3);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_GeneratorsOfGroup, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2435, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_v_gap_image_gens = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cython/core/triangulation.pyx":2436
 *                     coset_action = GG.FactorCosetAction(permutation_rep)
 *                     gap_image_gens = coset_action.Image().GeneratorsOfGroup()
 *                     Q = PermutationGroup(gap_image_gens)             # <<<<<<<<<<<<<<
 *                     return self.cover([Q(g) for g in gap_image_gens ])
 *                 elif (permutation_rep.IsToPermGroupHomomorphismByImages() or
*/
        __pyx_t_6 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_PermutationGroup); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2436, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
          assert(__pyx_t_6);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
          __pyx_t_4 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_gap_image_gens};
          __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2436, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_v_Q = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cython/core/triangulation.pyx":2437
 *                     gap_image_gens = coset_action.Image().GeneratorsOfGroup()
 *                     Q = PermutationGroup(gap_image_gens)
 *                     return self.cover([Q(g) for g in gap_image_gens ])             # <<<<<<<<<<<<<<
 *                 elif (permutation_rep.IsToPermGroupHomomorphismByImages() or
 *                       permutation_rep.IsCompositionMappingRep()):
*/
        __Pyx_XDECREF(__pyx_r);
        __pyx_t_3 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_3);
        { /* enter inner scope */
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2437, __pyx_L9_error)
          __Pyx_GOTREF(__pyx_t_6);
          if (likely(PyList_CheckExact(__pyx_v_gap_image_gens)) || PyTuple_CheckExact(__pyx_v_gap_image_gens)) {
            __pyx_t_5 = __pyx_v_gap_image_gens; __Pyx_INCREF(__pyx_t_5);
            __pyx_t_8 = 0;
            __pyx_t_9 = NULL;
          } else {
            __pyx_t_8 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_gap_image_gens); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2437, __pyx_L9_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2437, __pyx_L9_error)
          }
          for (;;) {
            if (likely(!__pyx_t_9)) {
              if (likely(PyList_CheckExact(__pyx_t_5))) {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2437, __pyx_L9_error)
                  #endif
                  if (__pyx_t_8 >= __pyx_temp) break;
                }
                __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
                ++__pyx_t_8;
              } else {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2437, __pyx_L9_error)
                  #endif
                  if (__pyx_t_8 >= __pyx_temp) break;
                }
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                __pyx_t_7 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_8));
                #else
                __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_8);
                #endif
                ++__pyx_t_8;
              }
              if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2437, __pyx_L9_error)
            } else {
              __pyx_t_7 = __pyx_t_9(__pyx_t_5);
              if (unlikely(!__pyx_t_7)) {
                PyObject* exc_type = PyErr_Occurred();
                if (exc_type) {
                  if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2437, __pyx_L9_error)
                  PyErr_Clear();
                }
                break;
              }
            }
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_XDECREF_SET(__pyx_9genexpr32__pyx_v_g, __pyx_t_7);
            __pyx_t_7 = 0;
            __pyx_t_10 = NULL;
            __Pyx_INCREF(__pyx_v_Q);
            __pyx_t_11 = __pyx_v_Q; 
            __pyx_t_4 = 1;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_11))) {
              __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_11);
              assert(__pyx_t_10);
              PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
              __Pyx_INCREF(__pyx_t_10);
              __Pyx_INCREF(__pyx__function);
              __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
              __pyx_t_4 = 0;
            }
            #endif
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_9genexpr32__pyx_v_g};
              __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
              __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
              if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2437, __pyx_L9_error)
              __Pyx_GOTREF(__pyx_t_7);
            }
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_7))) __PYX_ERR(4, 2437, __pyx_L9_error)
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_XDECREF(__pyx_9genexpr32__pyx_v_g); __pyx_9genexpr32__pyx_v_g = 0;
          goto __pyx_L13_exit_scope;
          __pyx_L9_error:;
          __Pyx_XDECREF(__pyx_9genexpr32__pyx_v_g); __pyx_9genexpr32__pyx_v_g = 0;
          goto __pyx_L1_error;
          __pyx_L13_exit_scope:;
        } /* exit inner scope */
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cover, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2437, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        goto __pyx_L0;

        /* "cython/core/triangulation.pyx":2432
 *         if _within_sage:
 *             if is_GapElement(permutation_rep):
 *                 if permutation_rep.IsSubgroupFpGroup():             # <<<<<<<<<<<<<<
 *                     GG = gap(self.fundamental_group())
 *                     coset_action = GG.FactorCosetAction(permutation_rep)
*/
      }

      /* "cython/core/triangulation.pyx":2438
 *                     Q = PermutationGroup(gap_image_gens)
 *                     return self.cover([Q(g) for g in gap_image_gens ])
 *                 elif (permutation_rep.IsToPermGroupHomomorphismByImages() or             # <<<<<<<<<<<<<<
 *                       permutation_rep.IsCompositionMappingRep()):
 *                     f = permutation_rep
*/
      __pyx_t_6 = __pyx_v_permutation_rep;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_IsToPermGroupHomomorphismByImage, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2438, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 2438, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (!__pyx_t_12) {
      } else {
        __pyx_t_1 = __pyx_t_12;
        goto __pyx_L14_bool_binop_done;
      }

      /* "cython/core/triangulation.pyx":2439
 *                     return self.cover([Q(g) for g in gap_image_gens ])
 *                 elif (permutation_rep.IsToPermGroupHomomorphismByImages() or
 *                       permutation_rep.IsCompositionMappingRep()):             # <<<<<<<<<<<<<<
 *                     f = permutation_rep
 *                     return self.cover(f.PreImage(f.Image().Stabilizer(1)))
*/
      __pyx_t_6 = __pyx_v_permutation_rep;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_IsCompositionMappingRep, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2439, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 2439, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_1 = __pyx_t_12;
      __pyx_L14_bool_binop_done:;

      /* "cython/core/triangulation.pyx":2438
 *                     Q = PermutationGroup(gap_image_gens)
 *                     return self.cover([Q(g) for g in gap_image_gens ])
 *                 elif (permutation_rep.IsToPermGroupHomomorphismByImages() or             # <<<<<<<<<<<<<<
 *                       permutation_rep.IsCompositionMappingRep()):
 *                     f = permutation_rep
*/
      if (likely(__pyx_t_1)) {

        /* "cython/core/triangulation.pyx":2440
 *                 elif (permutation_rep.IsToPermGroupHomomorphismByImages() or
 *                       permutation_rep.IsCompositionMappingRep()):
 *                     f = permutation_rep             # <<<<<<<<<<<<<<
 *                     return self.cover(f.PreImage(f.Image().Stabilizer(1)))
 *                 else:
*/
        __Pyx_INCREF(__pyx_v_permutation_rep);
        __pyx_v_f = __pyx_v_permutation_rep;

        /* "cython/core/triangulation.pyx":2441
 *                       permutation_rep.IsCompositionMappingRep()):
 *                     f = permutation_rep
 *                     return self.cover(f.PreImage(f.Image().Stabilizer(1)))             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise ValueError('Cover specified by unrecognized GAP type')
*/
        __Pyx_XDECREF(__pyx_r);
        __pyx_t_6 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_5 = __pyx_v_f;
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_13 = __pyx_v_f;
        __Pyx_INCREF(__pyx_t_13);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_13, NULL};
          __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_Image, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 2441, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
        }
        __pyx_t_11 = __pyx_t_10;
        __Pyx_INCREF(__pyx_t_11);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_mstate_global->__pyx_int_1};
          __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_Stabilizer, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2441, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_7};
          __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_PreImage, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2441, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_3};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cover, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2441, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        goto __pyx_L0;

        /* "cython/core/triangulation.pyx":2438
 *                     Q = PermutationGroup(gap_image_gens)
 *                     return self.cover([Q(g) for g in gap_image_gens ])
 *                 elif (permutation_rep.IsToPermGroupHomomorphismByImages() or             # <<<<<<<<<<<<<<
 *                       permutation_rep.IsCompositionMappingRep()):
 *                     f = permutation_rep
*/
      }

      /* "cython/core/triangulation.pyx":2443
 *                     return self.cover(f.PreImage(f.Image().Stabilizer(1)))
 *                 else:
 *                     raise ValueError('Cover specified by unrecognized GAP type')             # <<<<<<<<<<<<<<
 * 
 *             elif is_MagmaElement(permutation_rep):
*/
      /*else*/ {
        __pyx_t_3 = NULL;
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Cover_specified_by_unrecognized};
          __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2443, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __Pyx_Raise(__pyx_t_2, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __PYX_ERR(4, 2443, __pyx_L1_error)
      }

      /* "cython/core/triangulation.pyx":2431
 * 
 *         if _within_sage:
 *             if is_GapElement(permutation_rep):             # <<<<<<<<<<<<<<
 *                 if permutation_rep.IsSubgroupFpGroup():
 *                     GG = gap(self.fundamental_group())
*/
    }

    /* "cython/core/triangulation.pyx":2445
 *                     raise ValueError('Cover specified by unrecognized GAP type')
 * 
 *             elif is_MagmaElement(permutation_rep):             # <<<<<<<<<<<<<<
 *                 input_type = repr(permutation_rep.Type())
 *                 if input_type == 'GrpFP':
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_is_MagmaElement); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_permutation_rep};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2445, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2445, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2446
 * 
 *             elif is_MagmaElement(permutation_rep):
 *                 input_type = repr(permutation_rep.Type())             # <<<<<<<<<<<<<<
 *                 if input_type == 'GrpFP':
 *                     GG = magma(self.fundamental_group())
*/
      __pyx_t_6 = __pyx_v_permutation_rep;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_Type, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2446, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_6 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2446, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_v_input_type = ((PyObject*)__pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/triangulation.pyx":2447
 *             elif is_MagmaElement(permutation_rep):
 *                 input_type = repr(permutation_rep.Type())
 *                 if input_type == 'GrpFP':             # <<<<<<<<<<<<<<
 *                     GG = magma(self.fundamental_group())
 *                     f = GG.CosetAction(permutation_rep)
*/
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_input_type, __pyx_mstate_global->__pyx_n_u_GrpFP, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2447, __pyx_L1_error)
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":2448
 *                 input_type = repr(permutation_rep.Type())
 *                 if input_type == 'GrpFP':
 *                     GG = magma(self.fundamental_group())             # <<<<<<<<<<<<<<
 *                     f = GG.CosetAction(permutation_rep)
 *                 elif input_type == 'HomGrp':
*/
        __pyx_t_2 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_magma); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2448, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_5 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
          __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2448, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        __pyx_t_4 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
          assert(__pyx_t_2);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
          __pyx_t_4 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
          __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2448, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        __pyx_v_GG = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "cython/core/triangulation.pyx":2449
 *                 if input_type == 'GrpFP':
 *                     GG = magma(self.fundamental_group())
 *                     f = GG.CosetAction(permutation_rep)             # <<<<<<<<<<<<<<
 *                 elif input_type == 'HomGrp':
 *                     f = permutation_rep
*/
        __pyx_t_3 = __pyx_v_GG;
        __Pyx_INCREF(__pyx_t_3);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_permutation_rep};
          __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_CosetAction, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2449, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        __pyx_v_f = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "cython/core/triangulation.pyx":2447
 *             elif is_MagmaElement(permutation_rep):
 *                 input_type = repr(permutation_rep.Type())
 *                 if input_type == 'GrpFP':             # <<<<<<<<<<<<<<
 *                     GG = magma(self.fundamental_group())
 *                     f = GG.CosetAction(permutation_rep)
*/
        goto __pyx_L16;
      }

      /* "cython/core/triangulation.pyx":2450
 *                     GG = magma(self.fundamental_group())
 *                     f = GG.CosetAction(permutation_rep)
 *                 elif input_type == 'HomGrp':             # <<<<<<<<<<<<<<
 *                     f = permutation_rep
 *                     if not repr(f.Image().Type()) == 'GrpPerm':
*/
      __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_input_type, __pyx_mstate_global->__pyx_n_u_HomGrp, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2450, __pyx_L1_error)
      if (likely(__pyx_t_1)) {

        /* "cython/core/triangulation.pyx":2451
 *                     f = GG.CosetAction(permutation_rep)
 *                 elif input_type == 'HomGrp':
 *                     f = permutation_rep             # <<<<<<<<<<<<<<
 *                     if not repr(f.Image().Type()) == 'GrpPerm':
 *                         raise TypeError('The homomorphism image is not '
*/
        __Pyx_INCREF(__pyx_v_permutation_rep);
        __pyx_v_f = __pyx_v_permutation_rep;

        /* "cython/core/triangulation.pyx":2452
 *                 elif input_type == 'HomGrp':
 *                     f = permutation_rep
 *                     if not repr(f.Image().Type()) == 'GrpPerm':             # <<<<<<<<<<<<<<
 *                         raise TypeError('The homomorphism image is not '
 *                                         'a permutation group.')
*/
        __pyx_t_2 = __pyx_v_f;
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
          __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_Image, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2452, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        __pyx_t_3 = __pyx_t_7;
        __Pyx_INCREF(__pyx_t_3);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
          __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_Type, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2452, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        __pyx_t_7 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2452, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_GrpPerm, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2452, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_12 = (!__pyx_t_1);
        if (unlikely(__pyx_t_12)) {

          /* "cython/core/triangulation.pyx":2453
 *                     f = permutation_rep
 *                     if not repr(f.Image().Type()) == 'GrpPerm':
 *                         raise TypeError('The homomorphism image is not '             # <<<<<<<<<<<<<<
 *                                         'a permutation group.')
 *                 else:
*/
          __pyx_t_6 = NULL;
          __pyx_t_4 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_The_homomorphism_image_is_not_a};
            __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2453, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
          }
          __Pyx_Raise(__pyx_t_7, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __PYX_ERR(4, 2453, __pyx_L1_error)

          /* "cython/core/triangulation.pyx":2452
 *                 elif input_type == 'HomGrp':
 *                     f = permutation_rep
 *                     if not repr(f.Image().Type()) == 'GrpPerm':             # <<<<<<<<<<<<<<
 *                         raise TypeError('The homomorphism image is not '
 *                                         'a permutation group.')
*/
        }

        /* "cython/core/triangulation.pyx":2450
 *                     GG = magma(self.fundamental_group())
 *                     f = GG.CosetAction(permutation_rep)
 *                 elif input_type == 'HomGrp':             # <<<<<<<<<<<<<<
 *                     f = permutation_rep
 *                     if not repr(f.Image().Type()) == 'GrpPerm':
*/
        goto __pyx_L16;
      }

      /* "cython/core/triangulation.pyx":2456
 *                                         'a permutation group.')
 *                 else:
 *                     raise TypeError('That Magma type not recognized.')             # <<<<<<<<<<<<<<
 * 
 *                 magma.eval("""\
*/
      /*else*/ {
        __pyx_t_6 = NULL;
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_That_Magma_type_not_recognized};
          __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2456, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        __Pyx_Raise(__pyx_t_7, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __PYX_ERR(4, 2456, __pyx_L1_error)
      }
      __pyx_L16:;

      /* "cython/core/triangulation.pyx":2458
 *                     raise TypeError('That Magma type not recognized.')
 * 
 *                 magma.eval("""\             # <<<<<<<<<<<<<<
 *                      FormatHomForSnapPea := function(f)
 *                          subone := function(L)   return [x - 1 : x in L]; end function;
*/
      __pyx_t_6 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_magma); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2458, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_eval); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2458, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
        assert(__pyx_t_6);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_FormatHomForSnapPea_function_f};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2458, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cython/core/triangulation.pyx":2463
 *                          return [subone(Eltseq(f(g))) : g in Generators(Domain(f))];
 *                        end function;""")
 *                 permutation_rep = f.FormatHomForSnapPea().sage()             # <<<<<<<<<<<<<<
 * 
 *             # Not a useful GAP or MAGMA object, so let's try.
*/
      __pyx_t_3 = __pyx_v_f;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_FormatHomForSnapPea, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2463, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __pyx_t_2 = __pyx_t_6;
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_sage, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2463, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_DECREF_SET(__pyx_v_permutation_rep, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "cython/core/triangulation.pyx":2445
 *                     raise ValueError('Cover specified by unrecognized GAP type')
 * 
 *             elif is_MagmaElement(permutation_rep):             # <<<<<<<<<<<<<<
 *                 input_type = repr(permutation_rep.Type())
 *                 if input_type == 'GrpFP':
*/
      goto __pyx_L5;
    }

    /* "cython/core/triangulation.pyx":2466
 * 
 *             # Not a useful GAP or MAGMA object, so let's try.
 *             elif all(isinstance(p, PermutationGroupElement) for p in permutation_rep):             # <<<<<<<<<<<<<<
 *                 permutation_rep = [[x - 1 for x in perm.domain()]
 *                                    for perm in permutation_rep]
*/
    __pyx_t_7 = __pyx_pf_6SnapPy_13Triangulation_5cover_genexpr(NULL, __pyx_v_permutation_rep); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = __Pyx_Generator_GetInlinedResult(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 2466, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__pyx_t_12) {

      /* "cython/core/triangulation.pyx":2467
 *             # Not a useful GAP or MAGMA object, so let's try.
 *             elif all(isinstance(p, PermutationGroupElement) for p in permutation_rep):
 *                 permutation_rep = [[x - 1 for x in perm.domain()]             # <<<<<<<<<<<<<<
 *                                    for perm in permutation_rep]
 * 
*/
      { /* enter inner scope */
        __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2467, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_6);

        /* "cython/core/triangulation.pyx":2468
 *             elif all(isinstance(p, PermutationGroupElement) for p in permutation_rep):
 *                 permutation_rep = [[x - 1 for x in perm.domain()]
 *                                    for perm in permutation_rep]             # <<<<<<<<<<<<<<
 * 
 *         G = self.fundamental_group()
*/
        if (likely(PyList_CheckExact(__pyx_v_permutation_rep)) || PyTuple_CheckExact(__pyx_v_permutation_rep)) {
          __pyx_t_7 = __pyx_v_permutation_rep; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_8 = 0;
          __pyx_t_9 = NULL;
        } else {
          __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_permutation_rep); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2468, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2468, __pyx_L20_error)
        }
        for (;;) {
          if (likely(!__pyx_t_9)) {
            if (likely(PyList_CheckExact(__pyx_t_7))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2468, __pyx_L20_error)
                #endif
                if (__pyx_t_8 >= __pyx_temp) break;
              }
              __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_8;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2468, __pyx_L20_error)
                #endif
                if (__pyx_t_8 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_2 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
              #else
              __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
              #endif
              ++__pyx_t_8;
            }
            if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2468, __pyx_L20_error)
          } else {
            __pyx_t_2 = __pyx_t_9(__pyx_t_7);
            if (unlikely(!__pyx_t_2)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2468, __pyx_L20_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_XDECREF_SET(__pyx_9genexpr34__pyx_v_perm, __pyx_t_2);
          __pyx_t_2 = 0;
          { /* enter inner scope */

            /* "cython/core/triangulation.pyx":2467
 *             # Not a useful GAP or MAGMA object, so let's try.
 *             elif all(isinstance(p, PermutationGroupElement) for p in permutation_rep):
 *                 permutation_rep = [[x - 1 for x in perm.domain()]             # <<<<<<<<<<<<<<
 *                                    for perm in permutation_rep]
 * 
*/
            __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2467, __pyx_L25_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_5 = __pyx_9genexpr34__pyx_v_perm;
            __Pyx_INCREF(__pyx_t_5);
            __pyx_t_4 = 0;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
              __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_domain, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
              if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2467, __pyx_L25_error)
              __Pyx_GOTREF(__pyx_t_3);
            }
            if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
              __pyx_t_5 = __pyx_t_3; __Pyx_INCREF(__pyx_t_5);
              __pyx_t_14 = 0;
              __pyx_t_15 = NULL;
            } else {
              __pyx_t_14 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2467, __pyx_L25_error)
              __Pyx_GOTREF(__pyx_t_5);
              __pyx_t_15 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 2467, __pyx_L25_error)
            }
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            for (;;) {
              if (likely(!__pyx_t_15)) {
                if (likely(PyList_CheckExact(__pyx_t_5))) {
                  {
                    Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
                    #if !CYTHON_ASSUME_SAFE_SIZE
                    if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2467, __pyx_L25_error)
                    #endif
                    if (__pyx_t_14 >= __pyx_temp) break;
                  }
                  __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_14, __Pyx_ReferenceSharing_OwnStrongReference);
                  ++__pyx_t_14;
                } else {
                  {
                    Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
                    #if !CYTHON_ASSUME_SAFE_SIZE
                    if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2467, __pyx_L25_error)
                    #endif
                    if (__pyx_t_14 >= __pyx_temp) break;
                  }
                  #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                  __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_14));
                  #else
                  __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_14);
                  #endif
                  ++__pyx_t_14;
                }
                if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2467, __pyx_L25_error)
              } else {
                __pyx_t_3 = __pyx_t_15(__pyx_t_5);
                if (unlikely(!__pyx_t_3)) {
                  PyObject* exc_type = PyErr_Occurred();
                  if (exc_type) {
                    if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2467, __pyx_L25_error)
                    PyErr_Clear();
                  }
                  break;
                }
              }
              __Pyx_GOTREF(__pyx_t_3);
              __Pyx_XDECREF_SET(__pyx_9genexpr35__pyx_v_x, __pyx_t_3);
              __pyx_t_3 = 0;
              __pyx_t_3 = __Pyx_PyLong_SubtractObjC(__pyx_9genexpr35__pyx_v_x, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2467, __pyx_L25_error)
              __Pyx_GOTREF(__pyx_t_3);
              if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) __PYX_ERR(4, 2467, __pyx_L25_error)
              __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            }
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_9genexpr35__pyx_v_x); __pyx_9genexpr35__pyx_v_x = 0;
            goto __pyx_L29_exit_scope;
            __pyx_L25_error:;
            __Pyx_XDECREF(__pyx_9genexpr35__pyx_v_x); __pyx_9genexpr35__pyx_v_x = 0;
            goto __pyx_L20_error;
            __pyx_L29_exit_scope:;
          } /* exit inner scope */
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_2))) __PYX_ERR(4, 2467, __pyx_L20_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "cython/core/triangulation.pyx":2468
 *             elif all(isinstance(p, PermutationGroupElement) for p in permutation_rep):
 *                 permutation_rep = [[x - 1 for x in perm.domain()]
 *                                    for perm in permutation_rep]             # <<<<<<<<<<<<<<
 * 
 *         G = self.fundamental_group()
*/
        }
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_9genexpr34__pyx_v_perm); __pyx_9genexpr34__pyx_v_perm = 0;
        goto __pyx_L31_exit_scope;
        __pyx_L20_error:;
        __Pyx_XDECREF(__pyx_9genexpr34__pyx_v_perm); __pyx_9genexpr34__pyx_v_perm = 0;
        goto __pyx_L1_error;
        __pyx_L31_exit_scope:;
      } /* exit inner scope */
      __Pyx_DECREF_SET(__pyx_v_permutation_rep, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/triangulation.pyx":2466
 * 
 *             # Not a useful GAP or MAGMA object, so let's try.
 *             elif all(isinstance(p, PermutationGroupElement) for p in permutation_rep):             # <<<<<<<<<<<<<<
 *                 permutation_rep = [[x - 1 for x in perm.domain()]
 *                                    for perm in permutation_rep]
*/
    }
    __pyx_L5:;

    /* "cython/core/triangulation.pyx":2430
 *         # alternate inputs
 * 
 *         if _within_sage:             # <<<<<<<<<<<<<<
 *             if is_GapElement(permutation_rep):
 *                 if permutation_rep.IsSubgroupFpGroup():
*/
  }

  /* "cython/core/triangulation.pyx":2470
 *                                    for perm in permutation_rep]
 * 
 *         G = self.fundamental_group()             # <<<<<<<<<<<<<<
 *         c_representation = self.build_rep_into_Sn(permutation_rep)
 *         degree = len(permutation_rep[0]) if len(permutation_rep) > 0 else 1
*/
  __pyx_t_7 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2470, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_v_G = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2471
 * 
 *         G = self.fundamental_group()
 *         c_representation = self.build_rep_into_Sn(permutation_rep)             # <<<<<<<<<<<<<<
 *         degree = len(permutation_rep[0]) if len(permutation_rep) > 0 else 1
 * 
*/
  __pyx_t_16 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_self->__pyx_vtab)->build_rep_into_Sn(__pyx_v_self, __pyx_v_permutation_rep); if (unlikely(__pyx_t_16 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 2471, __pyx_L1_error)
  __pyx_v_c_representation = __pyx_t_16;

  /* "cython/core/triangulation.pyx":2472
 *         G = self.fundamental_group()
 *         c_representation = self.build_rep_into_Sn(permutation_rep)
 *         degree = len(permutation_rep[0]) if len(permutation_rep) > 0 else 1             # <<<<<<<<<<<<<<
 * 
 *         # The next call has the effect of initializing aspects of
*/
  __pyx_t_14 = PyObject_Length(__pyx_v_permutation_rep); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2472, __pyx_L1_error)
  __pyx_t_12 = (__pyx_t_14 > 0);
  if (__pyx_t_12) {
    __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_permutation_rep, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2472, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_14 = PyObject_Length(__pyx_t_6); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2472, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_8 = __pyx_t_14;
  } else {
    __pyx_t_8 = 1;
  }
  __pyx_v_degree = __pyx_t_8;

  /* "cython/core/triangulation.pyx":2479
 *         # because the resulting FundamentalGroup object calls the kernel
 *         # function "fundamental_group" on a copy of self.c_triangulation.
 *         free_group_presentation(compute_unsimplified_presentation(self.c_triangulation))             # <<<<<<<<<<<<<<
 * 
 *         c_triangulation = construct_cover(self.c_triangulation,
*/
  __pyx_t_17 = compute_unsimplified_presentation(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2479, __pyx_L1_error)
  free_group_presentation(__pyx_t_17); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2479, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2481
 *         free_group_presentation(compute_unsimplified_presentation(self.c_triangulation))
 * 
 *         c_triangulation = construct_cover(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                           c_representation,
 *                                           <int>degree)
*/
  __pyx_t_18 = construct_cover(__pyx_v_self->c_triangulation, __pyx_v_c_representation, ((int)__pyx_v_degree)); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2481, __pyx_L1_error)
  __pyx_v_c_triangulation = __pyx_t_18;

  /* "cython/core/triangulation.pyx":2484
 *                                           c_representation,
 *                                           <int>degree)
 *         cover = self.__class__('empty')             # <<<<<<<<<<<<<<
 *         cover.set_c_triangulation(c_triangulation)
 *         cover._cover_info = info = {
*/
  __pyx_t_7 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2484, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(4, 2484, __pyx_L1_error)
  __pyx_v_cover = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2485
 *                                           <int>degree)
 *         cover = self.__class__('empty')
 *         cover.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         cover._cover_info = info = {
 *             'base'   : self.name(),
*/
  __pyx_t_6 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_cover->__pyx_vtab)->set_c_triangulation(__pyx_v_cover, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2487
 *         cover.set_c_triangulation(c_triangulation)
 *         cover._cover_info = info = {
 *             'base'   : self.name(),             # <<<<<<<<<<<<<<
 *             'type'   : cover_types[c_representation.covering_type],
 *             'degree' : degree
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2487, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_base, __pyx_t_7) < (0)) __PYX_ERR(4, 2487, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/triangulation.pyx":2488
 *         cover._cover_info = info = {
 *             'base'   : self.name(),
 *             'type'   : cover_types[c_representation.covering_type],             # <<<<<<<<<<<<<<
 *             'degree' : degree
 *             }
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cover_types); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_2 = __Pyx_PyLong_From_CoveringType(__pyx_v_c_representation->covering_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_type, __pyx_t_5) < (0)) __PYX_ERR(4, 2487, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2489
 *             'base'   : self.name(),
 *             'type'   : cover_types[c_representation.covering_type],
 *             'degree' : degree             # <<<<<<<<<<<<<<
 *             }
 *         cover.set_name(self.name() +'~' + info['type'][:3])
*/
  __pyx_t_5 = PyLong_FromSsize_t(__pyx_v_degree); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_degree, __pyx_t_5) < (0)) __PYX_ERR(4, 2487, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2486
 *         cover = self.__class__('empty')
 *         cover.set_c_triangulation(c_triangulation)
 *         cover._cover_info = info = {             # <<<<<<<<<<<<<<
 *             'base'   : self.name(),
 *             'type'   : cover_types[c_representation.covering_type],
*/
  __Pyx_INCREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_GOTREF(__pyx_v_cover->_cover_info);
  __Pyx_DECREF(__pyx_v_cover->_cover_info);
  __pyx_v_cover->_cover_info = __pyx_t_6;
  __Pyx_INCREF(__pyx_t_6);
  __pyx_v_info = __pyx_t_6;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2491
 *             'degree' : degree
 *             }
 *         cover.set_name(self.name() +'~' + info['type'][:3])             # <<<<<<<<<<<<<<
 *         free_representation(c_representation,
 *                             G.num_original_generators(),
*/
  __pyx_t_5 = ((PyObject *)__pyx_v_cover);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_7 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_7 = PyNumber_Add(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u__24); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_info, __pyx_mstate_global->__pyx_n_u_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_t_2, 0, 3, NULL, NULL, &__pyx_mstate_global->__pyx_slice[0], 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Add(__pyx_t_7, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_2};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2493
 *         cover.set_name(self.name() +'~' + info['type'][:3])
 *         free_representation(c_representation,
 *                             G.num_original_generators(),             # <<<<<<<<<<<<<<
 *                             self.num_cusps())
 *         return cover
*/
  __pyx_t_2 = __pyx_v_G;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_original_generators, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_19 = __Pyx_PyLong_As_int(__pyx_t_6); if (unlikely((__pyx_t_19 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2493, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2494
 *         free_representation(c_representation,
 *                             G.num_original_generators(),
 *                             self.num_cusps())             # <<<<<<<<<<<<<<
 *         return cover
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2494, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_20 = __Pyx_PyLong_As_int(__pyx_t_6); if (unlikely((__pyx_t_20 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2494, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2492
 *             }
 *         cover.set_name(self.name() +'~' + info['type'][:3])
 *         free_representation(c_representation,             # <<<<<<<<<<<<<<
 *                             G.num_original_generators(),
 *                             self.num_cusps())
*/
  free_representation(__pyx_v_c_representation, __pyx_t_19, __pyx_t_20); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2492, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2495
 *                             G.num_original_generators(),
 *                             self.num_cusps())
 *         return cover             # <<<<<<<<<<<<<<
 * 
 *     def covers(
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_cover);
  __pyx_r = ((PyObject *)__pyx_v_cover);
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2395
 *                                 'fundamental_group', *args)
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Triangulation':             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`Triangulation` representing the finite cover specified
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("SnapPy.Triangulation.cover", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cover);
  __Pyx_XDECREF(__pyx_v_GG);
  __Pyx_XDECREF(__pyx_v_coset_action);
  __Pyx_XDECREF(__pyx_v_gap_image_gens);
  __Pyx_XDECREF(__pyx_v_Q);
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XDECREF(__pyx_v_input_type);
  __Pyx_XDECREF(__pyx_v_G);
  __Pyx_XDECREF(__pyx_v_info);
  __Pyx_XDECREF(__pyx_9genexpr32__pyx_v_g);
  __Pyx_XDECREF(__pyx_gb_6SnapPy_13Triangulation_5cover_2generator2);
  __Pyx_XDECREF(__pyx_9genexpr34__pyx_v_perm);
  __Pyx_XDECREF(__pyx_9genexpr35__pyx_v_x);
  __Pyx_XDECREF(__pyx_v_permutation_rep);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2497
 *         return cover
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_129covers(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_128covers, "\n        Returns a list of Triangulations corresponding to all of the\n        finite covers of the given degree.  The default method is\n        'low_index' for general covers and 'snappea' for cyclic\n        covers.  The former uses Sim's algorithm while the latter\n        uses the original Snappea algorithm.\n\n        WARNING: If the degree is large this might take a very, very,\n        very long time.\n\n        >>> M = Triangulation('m003')\n        >>> covers = M.covers(4)\n        >>> sorted(N.homology() for N in covers)\n        [Z/3 + Z/15 + Z, Z/5 + Z + Z]\n\n        It is faster to look just at cyclic covers.\n\n        >>> covers = M.covers(4, cover_type='cyclic')\n        >>> [(N, N.homology()) for N in covers]\n        [(m003~cyc~0(0,0), Z/3 + Z/15 + Z)]\n\n        Here we check that we get the same number of covers with the\n        'snappea' and 'low_index' methods.\n\n        >>> M = Triangulation('m125')\n        >>> len(M.covers(5))\n        19\n        >>> len(M.covers(5, method='snappea'))\n        19\n\n        If you are using Sage, you can use GAP to find the subgroups,\n        which is often much faster, by specifying the optional\n        argument method = 'gap' If you have Magma installed, you can\n        used it to do the heavy lifting by specifying method='magma'.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_129covers = {"covers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_129covers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_128covers};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_129covers(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_degree = 0;
  PyObject *__pyx_v_method = 0;
  PyObject *__pyx_v_cover_type = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("covers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_degree,&__pyx_mstate_global->__pyx_n_u_method,&__pyx_mstate_global->__pyx_n_u_cover_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2497, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 2497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "covers", 0) < (0)) __PYX_ERR(4, 2497, __pyx_L3_error)

      /* "cython/core/triangulation.pyx":2500
 *             self,
 *             degree,
 *             method : typing.Optional[str] = None,             # <<<<<<<<<<<<<<
 *             cover_type : str ='all'
 *         ) -> 'list[snappy.Triangulation]':
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_n_u_all));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("covers", 0, 1, 3, i); __PYX_ERR(4, 2497, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 2497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2497, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_n_u_all));
    }
    __pyx_v_degree = values[0];
    __pyx_v_method = ((PyObject*)values[1]);
    __pyx_v_cover_type = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("covers", 0, 1, 3, __pyx_nargs); __PYX_ERR(4, 2497, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.covers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_method), (&PyUnicode_Type), 1, "method", 2))) __PYX_ERR(4, 2500, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cover_type), (&PyUnicode_Type), 0, "cover_type", 2))) __PYX_ERR(4, 2501, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_128covers(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_degree, __pyx_v_method, __pyx_v_cover_type);

  /* "cython/core/triangulation.pyx":2497
 *         return cover
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_128covers(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree, PyObject *__pyx_v_method, PyObject *__pyx_v_cover_type) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("covers", 0);
  __Pyx_INCREF(__pyx_v_method);

  /* "cython/core/triangulation.pyx":2538
 *         used it to do the heavy lifting by specifying method='magma'.
 *         """
 *         if degree < 1:             # <<<<<<<<<<<<<<
 *             raise ValueError('Cover degree should be at least 1')
 * 
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_degree, __pyx_mstate_global->__pyx_int_1, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2538, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 2538, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/triangulation.pyx":2539
 *         """
 *         if degree < 1:
 *             raise ValueError('Cover degree should be at least 1')             # <<<<<<<<<<<<<<
 * 
 *         if self.c_triangulation is NULL:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Cover_degree_should_be_at_least};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2539, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 2539, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2538
 *         used it to do the heavy lifting by specifying method='magma'.
 *         """
 *         if degree < 1:             # <<<<<<<<<<<<<<
 *             raise ValueError('Cover degree should be at least 1')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":2541
 *             raise ValueError('Cover degree should be at least 1')
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if cover_type not in ('cyclic', 'all'):
*/
  __pyx_t_2 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/triangulation.pyx":2542
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         if cover_type not in ('cyclic', 'all'):
 *             raise ValueError("Supported cover_types are 'all' "
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2542, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 2542, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2541
 *             raise ValueError('Cover degree should be at least 1')
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         if cover_type not in ('cyclic', 'all'):
*/
  }

  /* "cython/core/triangulation.pyx":2543
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if cover_type not in ('cyclic', 'all'):             # <<<<<<<<<<<<<<
 *             raise ValueError("Supported cover_types are 'all' "
 *                              "and 'cyclic'.")
*/
  __Pyx_INCREF(__pyx_v_cover_type);
  __pyx_t_5 = __pyx_v_cover_type;
  __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_cyclic, Py_NE)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(4, 2543, __pyx_L1_error)
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_all, Py_NE)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(4, 2543, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_6;
  __pyx_L6_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_6 = __pyx_t_2;
  if (unlikely(__pyx_t_6)) {

    /* "cython/core/triangulation.pyx":2544
 *             raise ValueError('The Triangulation is empty.')
 *         if cover_type not in ('cyclic', 'all'):
 *             raise ValueError("Supported cover_types are 'all' "             # <<<<<<<<<<<<<<
 *                              "and 'cyclic'.")
 *         if method is None:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Supported_cover_types_are_all_an};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2544, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 2544, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2543
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         if cover_type not in ('cyclic', 'all'):             # <<<<<<<<<<<<<<
 *             raise ValueError("Supported cover_types are 'all' "
 *                              "and 'cyclic'.")
*/
  }

  /* "cython/core/triangulation.pyx":2546
 *             raise ValueError("Supported cover_types are 'all' "
 *                              "and 'cyclic'.")
 *         if method is None:             # <<<<<<<<<<<<<<
 *             method = 'low_index'
 *         else:
*/
  __pyx_t_6 = (__pyx_v_method == ((PyObject*)Py_None));
  if (__pyx_t_6) {

    /* "cython/core/triangulation.pyx":2547
 *                              "and 'cyclic'.")
 *         if method is None:
 *             method = 'low_index'             # <<<<<<<<<<<<<<
 *         else:
 *             method = method.lower()
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_low_index);
    __Pyx_DECREF_SET(__pyx_v_method, __pyx_mstate_global->__pyx_n_u_low_index);

    /* "cython/core/triangulation.pyx":2546
 *             raise ValueError("Supported cover_types are 'all' "
 *                              "and 'cyclic'.")
 *         if method is None:             # <<<<<<<<<<<<<<
 *             method = 'low_index'
 *         else:
*/
    goto __pyx_L8;
  }

  /* "cython/core/triangulation.pyx":2549
 *             method = 'low_index'
 *         else:
 *             method = method.lower()             # <<<<<<<<<<<<<<
 * 
 *         if cover_type == 'cyclic' or method == 'snappea':
*/
  /*else*/ {
    __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyUnicode_Type__lower, __pyx_v_method); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_method, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;
  }
  __pyx_L8:;

  /* "cython/core/triangulation.pyx":2551
 *             method = method.lower()
 * 
 *         if cover_type == 'cyclic' or method == 'snappea':             # <<<<<<<<<<<<<<
 *             return self._covers_snappea(degree, cover_type)
 * 
*/
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_cover_type, __pyx_mstate_global->__pyx_n_u_cyclic, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 2551, __pyx_L1_error)
  if (!__pyx_t_2) {
  } else {
    __pyx_t_6 = __pyx_t_2;
    goto __pyx_L10_bool_binop_done;
  }
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_method, __pyx_mstate_global->__pyx_n_u_snappea, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 2551, __pyx_L1_error)
  __pyx_t_6 = __pyx_t_2;
  __pyx_L10_bool_binop_done:;
  if (__pyx_t_6) {

    /* "cython/core/triangulation.pyx":2552
 * 
 *         if cover_type == 'cyclic' or method == 'snappea':
 *             return self._covers_snappea(degree, cover_type)             # <<<<<<<<<<<<<<
 * 
 *         if method == 'low_index':
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_degree, __pyx_v_cover_type};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_covers_snappea, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2552, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2551
 *             method = method.lower()
 * 
 *         if cover_type == 'cyclic' or method == 'snappea':             # <<<<<<<<<<<<<<
 *             return self._covers_snappea(degree, cover_type)
 * 
*/
  }

  /* "cython/core/triangulation.pyx":2554
 *             return self._covers_snappea(degree, cover_type)
 * 
 *         if method == 'low_index':             # <<<<<<<<<<<<<<
 *             return self._covers_low_index(degree)
 *         if method == 'gap':
*/
  __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_v_method, __pyx_mstate_global->__pyx_n_u_low_index, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(4, 2554, __pyx_L1_error)
  if (__pyx_t_6) {

    /* "cython/core/triangulation.pyx":2555
 * 
 *         if method == 'low_index':
 *             return self._covers_low_index(degree)             # <<<<<<<<<<<<<<
 *         if method == 'gap':
 *             return self._covers_gap(degree)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_degree};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_covers_low_index, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2555, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2554
 *             return self._covers_snappea(degree, cover_type)
 * 
 *         if method == 'low_index':             # <<<<<<<<<<<<<<
 *             return self._covers_low_index(degree)
 *         if method == 'gap':
*/
  }

  /* "cython/core/triangulation.pyx":2556
 *         if method == 'low_index':
 *             return self._covers_low_index(degree)
 *         if method == 'gap':             # <<<<<<<<<<<<<<
 *             return self._covers_gap(degree)
 *         if method == 'magma':
*/
  __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_v_method, __pyx_mstate_global->__pyx_n_u_gap, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(4, 2556, __pyx_L1_error)
  if (__pyx_t_6) {

    /* "cython/core/triangulation.pyx":2557
 *             return self._covers_low_index(degree)
 *         if method == 'gap':
 *             return self._covers_gap(degree)             # <<<<<<<<<<<<<<
 *         if method == 'magma':
 *             return self._covers_magma(degree)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_degree};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_covers_gap, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2557, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2556
 *         if method == 'low_index':
 *             return self._covers_low_index(degree)
 *         if method == 'gap':             # <<<<<<<<<<<<<<
 *             return self._covers_gap(degree)
 *         if method == 'magma':
*/
  }

  /* "cython/core/triangulation.pyx":2558
 *         if method == 'gap':
 *             return self._covers_gap(degree)
 *         if method == 'magma':             # <<<<<<<<<<<<<<
 *             return self._covers_magma(degree)
 * 
*/
  __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_v_method, __pyx_mstate_global->__pyx_n_u_magma, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(4, 2558, __pyx_L1_error)
  if (__pyx_t_6) {

    /* "cython/core/triangulation.pyx":2559
 *             return self._covers_gap(degree)
 *         if method == 'magma':
 *             return self._covers_magma(degree)             # <<<<<<<<<<<<<<
 * 
 *         raise ValueError("Supported methods are 'low_index', 'gap', 'magma' "
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_degree};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_covers_magma, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2559, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2558
 *         if method == 'gap':
 *             return self._covers_gap(degree)
 *         if method == 'magma':             # <<<<<<<<<<<<<<
 *             return self._covers_magma(degree)
 * 
*/
  }

  /* "cython/core/triangulation.pyx":2561
 *             return self._covers_magma(degree)
 * 
 *         raise ValueError("Supported methods are 'low_index', 'gap', 'magma' "             # <<<<<<<<<<<<<<
 *                          "and 'snappea'")
 * 
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Supported_methods_are_low_index};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2561, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(4, 2561, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2497
 *         return cover
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.Triangulation.covers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_method);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2564
 *                          "and 'snappea'")
 * 
 *     def _covers_low_index(self, degree, num_threads=0):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using low_index.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_131_covers_low_index(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_130_covers_low_index, "\n        Compute all covers using low_index.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_131_covers_low_index = {"_covers_low_index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_131_covers_low_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_130_covers_low_index};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_131_covers_low_index(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_degree = 0;
  PyObject *__pyx_v_num_threads = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_covers_low_index (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_degree,&__pyx_mstate_global->__pyx_n_u_num_threads,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2564, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_covers_low_index", 0) < (0)) __PYX_ERR(4, 2564, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_covers_low_index", 0, 1, 2, i); __PYX_ERR(4, 2564, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2564, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_degree = values[0];
    __pyx_v_num_threads = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_covers_low_index", 0, 1, 2, __pyx_nargs); __PYX_ERR(4, 2564, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_low_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_130_covers_low_index(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_degree, __pyx_v_num_threads);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2591
 *                                           num_threads=num_threads)
 * 
 *         def index(subgroup):             # <<<<<<<<<<<<<<
 *             return 1 if len(subgroup) == 0 else len(subgroup[0])
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_17_covers_low_index_1index(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_17_covers_low_index_1index = {"index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_17_covers_low_index_1index, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_17_covers_low_index_1index(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_subgroup = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("index (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_subgroup,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2591, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2591, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "index", 0) < (0)) __PYX_ERR(4, 2591, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("index", 1, 1, 1, i); __PYX_ERR(4, 2591, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2591, __pyx_L3_error)
    }
    __pyx_v_subgroup = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("index", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 2591, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_low_index.index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_17_covers_low_index_index(__pyx_self, __pyx_v_subgroup);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_17_covers_low_index_index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_subgroup) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("index", 0);

  /* "cython/core/triangulation.pyx":2592
 * 
 *         def index(subgroup):
 *             return 1 if len(subgroup) == 0 else len(subgroup[0])             # <<<<<<<<<<<<<<
 * 
 *         covers = [self.cover(H) for H in reps if index(H) == degree]
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyObject_Length(__pyx_v_subgroup); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2592, __pyx_L1_error)
  __pyx_t_3 = (__pyx_t_2 == 0);
  if (__pyx_t_3) {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
    __pyx_t_1 = __pyx_mstate_global->__pyx_int_1;
  } else {
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_subgroup, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2592, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = __pyx_t_4;
    __pyx_t_4 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2591
 *                                           num_threads=num_threads)
 * 
 *         def index(subgroup):             # <<<<<<<<<<<<<<
 *             return 1 if len(subgroup) == 0 else len(subgroup[0])
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_low_index.index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2564
 *                          "and 'snappea'")
 * 
 *     def _covers_low_index(self, degree, num_threads=0):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using low_index.
*/

static PyObject *__pyx_pf_6SnapPy_13Triangulation_130_covers_low_index(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree, PyObject *__pyx_v_num_threads) {
  PyObject *__pyx_v_G = NULL;
  PyObject *__pyx_v_relators = NULL;
  PyObject *__pyx_v_short_relators = NULL;
  PyObject *__pyx_v_long_relators = NULL;
  PyObject *__pyx_v_strategy = NULL;
  PyObject *__pyx_v_reps = NULL;
  PyObject *__pyx_v_index = 0;
  PyObject *__pyx_v_covers = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_C = NULL;
  PyObject *__pyx_9genexpr36__pyx_v_rel = NULL;
  PyObject *__pyx_9genexpr37__pyx_v_rel = NULL;
  PyObject *__pyx_9genexpr38__pyx_v_H = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  Py_ssize_t __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_covers_low_index", 0);

  /* "cython/core/triangulation.pyx":2568
 *         Compute all covers using low_index.
 *         """
 *         G = self.fundamental_group()             # <<<<<<<<<<<<<<
 * 
 *         relators = sorted(G.relators(as_int_list=True), key=len)
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_G = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2570
 *         G = self.fundamental_group()
 * 
 *         relators = sorted(G.relators(as_int_list=True), key=len)             # <<<<<<<<<<<<<<
 * 
 *         short_relators, long_relators = [], relators
*/
  __pyx_t_2 = NULL;
  __pyx_t_5 = __pyx_v_G;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_as_int_list, Py_True, __pyx_t_6, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 2570, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_relators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = __Pyx_GetBuiltinName(__pyx_mstate_global->__pyx_n_u_len); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_key, __pyx_t_6, __pyx_t_5, __pyx_callargs+2, 0) < (0)) __PYX_ERR(4, 2570, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_builtin_sorted, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_relators = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2572
 *         relators = sorted(G.relators(as_int_list=True), key=len)
 * 
 *         short_relators, long_relators = [], relators             # <<<<<<<<<<<<<<
 *         strategy = ''
 * 
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __pyx_v_relators;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_v_short_relators = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_v_long_relators = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2573
 * 
 *         short_relators, long_relators = [], relators
 *         strategy = ''             # <<<<<<<<<<<<<<
 * 
 *         if relators:
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__10);
  __pyx_v_strategy = __pyx_mstate_global->__pyx_kp_u__10;

  /* "cython/core/triangulation.pyx":2575
 *         strategy = ''
 * 
 *         if relators:             # <<<<<<<<<<<<<<
 *             if len(relators[0]) <= 2*degree:
 *                 short_relators = [rel for rel in relators if len(rel) <= 2*degree]
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_relators); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(4, 2575, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "cython/core/triangulation.pyx":2576
 * 
 *         if relators:
 *             if len(relators[0]) <= 2*degree:             # <<<<<<<<<<<<<<
 *                 short_relators = [rel for rel in relators if len(rel) <= 2*degree]
 *                 long_relators = relators[len(short_relators):]
*/
    __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_relators, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2576, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_2, __pyx_v_degree, 2, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = PyObject_RichCompare(__pyx_t_5, __pyx_t_1, Py_LE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2576, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(4, 2576, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__pyx_t_7) {

      /* "cython/core/triangulation.pyx":2577
 *         if relators:
 *             if len(relators[0]) <= 2*degree:
 *                 short_relators = [rel for rel in relators if len(rel) <= 2*degree]             # <<<<<<<<<<<<<<
 *                 long_relators = relators[len(short_relators):]
 *                 strategy = 'spin_short'
*/
      { /* enter inner scope */
        __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2577, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (likely(PyList_CheckExact(__pyx_v_relators)) || PyTuple_CheckExact(__pyx_v_relators)) {
          __pyx_t_1 = __pyx_v_relators; __Pyx_INCREF(__pyx_t_1);
          __pyx_t_8 = 0;
          __pyx_t_9 = NULL;
        } else {
          __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_relators); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2577, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2577, __pyx_L7_error)
        }
        for (;;) {
          if (likely(!__pyx_t_9)) {
            if (likely(PyList_CheckExact(__pyx_t_1))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2577, __pyx_L7_error)
                #endif
                if (__pyx_t_8 >= __pyx_temp) break;
              }
              __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_8;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2577, __pyx_L7_error)
                #endif
                if (__pyx_t_8 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8));
              #else
              __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_8);
              #endif
              ++__pyx_t_8;
            }
            if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2577, __pyx_L7_error)
          } else {
            __pyx_t_5 = __pyx_t_9(__pyx_t_1);
            if (unlikely(!__pyx_t_5)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2577, __pyx_L7_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_XDECREF_SET(__pyx_9genexpr36__pyx_v_rel, __pyx_t_5);
          __pyx_t_5 = 0;
          __pyx_t_10 = PyObject_Length(__pyx_9genexpr36__pyx_v_rel); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2577, __pyx_L7_error)
          __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2577, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_4 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_2, __pyx_v_degree, 2, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2577, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_4);
          __pyx_t_2 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2577, __pyx_L7_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(4, 2577, __pyx_L7_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (__pyx_t_7) {
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_9genexpr36__pyx_v_rel))) __PYX_ERR(4, 2577, __pyx_L7_error)
          }
        }
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_9genexpr36__pyx_v_rel); __pyx_9genexpr36__pyx_v_rel = 0;
        goto __pyx_L12_exit_scope;
        __pyx_L7_error:;
        __Pyx_XDECREF(__pyx_9genexpr36__pyx_v_rel); __pyx_9genexpr36__pyx_v_rel = 0;
        goto __pyx_L1_error;
        __pyx_L12_exit_scope:;
      } /* exit inner scope */
      __Pyx_DECREF_SET(__pyx_v_short_relators, ((PyObject*)__pyx_t_6));
      __pyx_t_6 = 0;

      /* "cython/core/triangulation.pyx":2578
 *             if len(relators[0]) <= 2*degree:
 *                 short_relators = [rel for rel in relators if len(rel) <= 2*degree]
 *                 long_relators = relators[len(short_relators):]             # <<<<<<<<<<<<<<
 *                 strategy = 'spin_short'
 *             elif len(relators[0]) <= 3*degree:
*/
      __pyx_t_8 = __Pyx_PyList_GET_SIZE(__pyx_v_short_relators); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2578, __pyx_L1_error)
      __pyx_t_6 = __Pyx_PyObject_GetSlice(__pyx_v_relators, __pyx_t_8, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2578, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF_SET(__pyx_v_long_relators, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/triangulation.pyx":2579
 *                 short_relators = [rel for rel in relators if len(rel) <= 2*degree]
 *                 long_relators = relators[len(short_relators):]
 *                 strategy = 'spin_short'             # <<<<<<<<<<<<<<
 *             elif len(relators[0]) <= 3*degree:
 *                 short_relators = [rel for rel in relators if len(rel) <= 3*degree]
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_spin_short);
      __Pyx_DECREF_SET(__pyx_v_strategy, __pyx_mstate_global->__pyx_n_u_spin_short);

      /* "cython/core/triangulation.pyx":2576
 * 
 *         if relators:
 *             if len(relators[0]) <= 2*degree:             # <<<<<<<<<<<<<<
 *                 short_relators = [rel for rel in relators if len(rel) <= 2*degree]
 *                 long_relators = relators[len(short_relators):]
*/
      goto __pyx_L4;
    }

    /* "cython/core/triangulation.pyx":2580
 *                 long_relators = relators[len(short_relators):]
 *                 strategy = 'spin_short'
 *             elif len(relators[0]) <= 3*degree:             # <<<<<<<<<<<<<<
 *                 short_relators = [rel for rel in relators if len(rel) <= 3*degree]
 *                 long_relators = relators[len(short_relators):]
*/
    __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_relators, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_8 = PyObject_Length(__pyx_t_6); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2580, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyLong_FromSsize_t(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_1 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_3, __pyx_v_degree, 3, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyObject_RichCompare(__pyx_t_6, __pyx_t_1, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2580, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(4, 2580, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_7) {

      /* "cython/core/triangulation.pyx":2581
 *                 strategy = 'spin_short'
 *             elif len(relators[0]) <= 3*degree:
 *                 short_relators = [rel for rel in relators if len(rel) <= 3*degree]             # <<<<<<<<<<<<<<
 *                 long_relators = relators[len(short_relators):]
 * 
*/
      { /* enter inner scope */
        __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2581, __pyx_L15_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (likely(PyList_CheckExact(__pyx_v_relators)) || PyTuple_CheckExact(__pyx_v_relators)) {
          __pyx_t_1 = __pyx_v_relators; __Pyx_INCREF(__pyx_t_1);
          __pyx_t_8 = 0;
          __pyx_t_9 = NULL;
        } else {
          __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_relators); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2581, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2581, __pyx_L15_error)
        }
        for (;;) {
          if (likely(!__pyx_t_9)) {
            if (likely(PyList_CheckExact(__pyx_t_1))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2581, __pyx_L15_error)
                #endif
                if (__pyx_t_8 >= __pyx_temp) break;
              }
              __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_8;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2581, __pyx_L15_error)
                #endif
                if (__pyx_t_8 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8));
              #else
              __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_8);
              #endif
              ++__pyx_t_8;
            }
            if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2581, __pyx_L15_error)
          } else {
            __pyx_t_6 = __pyx_t_9(__pyx_t_1);
            if (unlikely(!__pyx_t_6)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2581, __pyx_L15_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_XDECREF_SET(__pyx_9genexpr37__pyx_v_rel, __pyx_t_6);
          __pyx_t_6 = 0;
          __pyx_t_10 = PyObject_Length(__pyx_9genexpr37__pyx_v_rel); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2581, __pyx_L15_error)
          __pyx_t_6 = PyLong_FromSsize_t(__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2581, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_4 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_3, __pyx_v_degree, 3, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2581, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_4);
          __pyx_t_5 = PyObject_RichCompare(__pyx_t_6, __pyx_t_4, Py_LE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2581, __pyx_L15_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(4, 2581, __pyx_L15_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (__pyx_t_7) {
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_9genexpr37__pyx_v_rel))) __PYX_ERR(4, 2581, __pyx_L15_error)
          }
        }
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_9genexpr37__pyx_v_rel); __pyx_9genexpr37__pyx_v_rel = 0;
        goto __pyx_L20_exit_scope;
        __pyx_L15_error:;
        __Pyx_XDECREF(__pyx_9genexpr37__pyx_v_rel); __pyx_9genexpr37__pyx_v_rel = 0;
        goto __pyx_L1_error;
        __pyx_L20_exit_scope:;
      } /* exit inner scope */
      __Pyx_DECREF_SET(__pyx_v_short_relators, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2582
 *             elif len(relators[0]) <= 3*degree:
 *                 short_relators = [rel for rel in relators if len(rel) <= 3*degree]
 *                 long_relators = relators[len(short_relators):]             # <<<<<<<<<<<<<<
 * 
 *         reps = low_index.permutation_reps(G.num_generators(),
*/
      __pyx_t_8 = __Pyx_PyList_GET_SIZE(__pyx_v_short_relators); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2582, __pyx_L1_error)
      __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_relators, __pyx_t_8, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_long_relators, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2580
 *                 long_relators = relators[len(short_relators):]
 *                 strategy = 'spin_short'
 *             elif len(relators[0]) <= 3*degree:             # <<<<<<<<<<<<<<
 *                 short_relators = [rel for rel in relators if len(rel) <= 3*degree]
 *                 long_relators = relators[len(short_relators):]
*/
    }
    __pyx_L4:;

    /* "cython/core/triangulation.pyx":2575
 *         strategy = ''
 * 
 *         if relators:             # <<<<<<<<<<<<<<
 *             if len(relators[0]) <= 2*degree:
 *                 short_relators = [rel for rel in relators if len(rel) <= 2*degree]
*/
  }

  /* "cython/core/triangulation.pyx":2584
 *                 long_relators = relators[len(short_relators):]
 * 
 *         reps = low_index.permutation_reps(G.num_generators(),             # <<<<<<<<<<<<<<
 *                                           short_relators,
 *                                           long_relators,
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_low_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_permutation_reps); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_6 = __pyx_v_G;
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }

  /* "cython/core/triangulation.pyx":2589
 *                                           degree,
 *                                           strategy=strategy,
 *                                           num_threads=num_threads)             # <<<<<<<<<<<<<<
 * 
 *         def index(subgroup):
*/
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[5 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_1, __pyx_t_5, __pyx_v_short_relators, __pyx_v_long_relators, __pyx_v_degree};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_strategy, __pyx_v_strategy, __pyx_t_6, __pyx_callargs+5, 0) < (0)) __PYX_ERR(4, 2584, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_num_threads, __pyx_v_num_threads, __pyx_t_6, __pyx_callargs+5, 1) < (0)) __PYX_ERR(4, 2584, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_3, (5-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_reps = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":2591
 *                                           num_threads=num_threads)
 * 
 *         def index(subgroup):             # <<<<<<<<<<<<<<
 *             return 1 if len(subgroup) == 0 else len(subgroup[0])
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_17_covers_low_index_1index, 0, __pyx_mstate_global->__pyx_n_u_covers_low_index_locals_index, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_index = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":2594
 *             return 1 if len(subgroup) == 0 else len(subgroup[0])
 * 
 *         covers = [self.cover(H) for H in reps if index(H) == degree]             # <<<<<<<<<<<<<<
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2594, __pyx_L23_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (likely(PyList_CheckExact(__pyx_v_reps)) || PyTuple_CheckExact(__pyx_v_reps)) {
      __pyx_t_4 = __pyx_v_reps; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_reps); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2594, __pyx_L23_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2594, __pyx_L23_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2594, __pyx_L23_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2594, __pyx_L23_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_8));
          #else
          __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2594, __pyx_L23_error)
      } else {
        __pyx_t_6 = __pyx_t_9(__pyx_t_4);
        if (unlikely(!__pyx_t_6)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2594, __pyx_L23_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_9genexpr38__pyx_v_H, __pyx_t_6);
      __pyx_t_6 = 0;
      __pyx_t_6 = __pyx_pf_6SnapPy_13Triangulation_17_covers_low_index_index(__pyx_v_index, __pyx_9genexpr38__pyx_v_H); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2594, __pyx_L23_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = PyObject_RichCompare(__pyx_t_6, __pyx_v_degree, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2594, __pyx_L23_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(4, 2594, __pyx_L23_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_7) {
        __pyx_t_6 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_3 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_9genexpr38__pyx_v_H};
          __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cover, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2594, __pyx_L23_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_5))) __PYX_ERR(4, 2594, __pyx_L23_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_9genexpr38__pyx_v_H); __pyx_9genexpr38__pyx_v_H = 0;
    goto __pyx_L28_exit_scope;
    __pyx_L23_error:;
    __Pyx_XDECREF(__pyx_9genexpr38__pyx_v_H); __pyx_9genexpr38__pyx_v_H = 0;
    goto __pyx_L1_error;
    __pyx_L28_exit_scope:;
  } /* exit inner scope */
  __pyx_v_covers = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":2595
 * 
 *         covers = [self.cover(H) for H in reps if index(H) == degree]
 *         for i, C in enumerate(covers):             # <<<<<<<<<<<<<<
 *             C.set_name(C.name() + f'~{i}')
 *         return covers
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_2 = __pyx_mstate_global->__pyx_int_0;
  __pyx_t_4 = __pyx_v_covers; __Pyx_INCREF(__pyx_t_4);
  __pyx_t_8 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2595, __pyx_L1_error)
      #endif
      if (__pyx_t_8 >= __pyx_temp) break;
    }
    __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_8;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_C, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
    __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2);
    __pyx_t_2 = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":2596
 *         covers = [self.cover(H) for H in reps if index(H) == degree]
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')             # <<<<<<<<<<<<<<
 *         return covers
 * 
*/
    __pyx_t_6 = __pyx_v_C;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_11 = __pyx_v_C;
    __Pyx_INCREF(__pyx_t_11);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_11, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2596, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_11 = __Pyx_PyObject_FormatSimple(__pyx_v_i, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2596, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_12 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u__24, __pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 2596, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_11 = PyNumber_Add(__pyx_t_1, __pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2596, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_11};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2596, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":2595
 * 
 *         covers = [self.cover(H) for H in reps if index(H) == degree]
 *         for i, C in enumerate(covers):             # <<<<<<<<<<<<<<
 *             C.set_name(C.name() + f'~{i}')
 *         return covers
*/
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":2597
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')
 *         return covers             # <<<<<<<<<<<<<<
 * 
 *     def _covers_gap(self, degree):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_covers);
  __pyx_r = __pyx_v_covers;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2564
 *                          "and 'snappea'")
 * 
 *     def _covers_low_index(self, degree, num_threads=0):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using low_index.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_low_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_G);
  __Pyx_XDECREF(__pyx_v_relators);
  __Pyx_XDECREF(__pyx_v_short_relators);
  __Pyx_XDECREF(__pyx_v_long_relators);
  __Pyx_XDECREF(__pyx_v_strategy);
  __Pyx_XDECREF(__pyx_v_reps);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XDECREF(__pyx_v_covers);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_C);
  __Pyx_XDECREF(__pyx_9genexpr36__pyx_v_rel);
  __Pyx_XDECREF(__pyx_9genexpr37__pyx_v_rel);
  __Pyx_XDECREF(__pyx_9genexpr38__pyx_v_H);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2599
 *         return covers
 * 
 *     def _covers_gap(self, degree):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using gap.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_133_covers_gap(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_132_covers_gap, "\n        Compute all covers using gap.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_133_covers_gap = {"_covers_gap", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_133_covers_gap, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_132_covers_gap};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_133_covers_gap(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_degree = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_covers_gap (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_degree,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2599, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2599, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_covers_gap", 0) < (0)) __PYX_ERR(4, 2599, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_covers_gap", 1, 1, 1, i); __PYX_ERR(4, 2599, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2599, __pyx_L3_error)
    }
    __pyx_v_degree = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_covers_gap", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 2599, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_gap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_132_covers_gap(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_degree);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_132_covers_gap(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree) {
  PyObject *__pyx_v_G = NULL;
  PyObject *__pyx_v_covers = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_C = NULL;
  PyObject *__pyx_9genexpr39__pyx_v_H = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  PyObject *(*__pyx_t_10)(PyObject *);
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_covers_gap", 0);

  /* "cython/core/triangulation.pyx":2603
 *         Compute all covers using gap.
 *         """
 *         if not _within_sage:             # <<<<<<<<<<<<<<
 *             raise SageNotAvailable('the "gap" method for covers requires Sage')
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 2603, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (!__pyx_t_2);
  if (unlikely(__pyx_t_3)) {

    /* "cython/core/triangulation.pyx":2604
 *         """
 *         if not _within_sage:
 *             raise SageNotAvailable('the "gap" method for covers requires Sage')             # <<<<<<<<<<<<<<
 * 
 *         G = gap(self.fundamental_group())
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SageNotAvailable); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_the_gap_method_for_covers_requir};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2604, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 2604, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2603
 *         Compute all covers using gap.
 *         """
 *         if not _within_sage:             # <<<<<<<<<<<<<<
 *             raise SageNotAvailable('the "gap" method for covers requires Sage')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":2606
 *             raise SageNotAvailable('the "gap" method for covers requires Sage')
 * 
 *         G = gap(self.fundamental_group())             # <<<<<<<<<<<<<<
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gap); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_G = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2607
 * 
 *         G = gap(self.fundamental_group())
 *         covers = [self.cover(H)             # <<<<<<<<<<<<<<
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)
 *                   if G.Index(H) == degree]
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2607, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/triangulation.pyx":2608
 *         G = gap(self.fundamental_group())
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)             # <<<<<<<<<<<<<<
 *                   if G.Index(H) == degree]
 *         for i, C in enumerate(covers):
*/
    __pyx_t_7 = __pyx_v_G;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_degree};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_LowIndexSubgroupsFpGroup, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2608, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
      __pyx_t_7 = __pyx_t_4; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2608, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 2608, __pyx_L6_error)
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    for (;;) {
      if (likely(!__pyx_t_10)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2608, __pyx_L6_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2608, __pyx_L6_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_9));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2608, __pyx_L6_error)
      } else {
        __pyx_t_4 = __pyx_t_10(__pyx_t_7);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2608, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_9genexpr39__pyx_v_H, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "cython/core/triangulation.pyx":2609
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)
 *                   if G.Index(H) == degree]             # <<<<<<<<<<<<<<
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')
*/
      __pyx_t_5 = __pyx_v_G;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_9genexpr39__pyx_v_H};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_Index, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2609, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __pyx_t_5 = PyObject_RichCompare(__pyx_t_4, __pyx_v_degree, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2609, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(4, 2609, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_3) {

        /* "cython/core/triangulation.pyx":2607
 * 
 *         G = gap(self.fundamental_group())
 *         covers = [self.cover(H)             # <<<<<<<<<<<<<<
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)
 *                   if G.Index(H) == degree]
*/
        __pyx_t_4 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_6 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_9genexpr39__pyx_v_H};
          __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cover, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2607, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(4, 2607, __pyx_L6_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cython/core/triangulation.pyx":2609
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)
 *                   if G.Index(H) == degree]             # <<<<<<<<<<<<<<
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')
*/
      }

      /* "cython/core/triangulation.pyx":2608
 *         G = gap(self.fundamental_group())
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)             # <<<<<<<<<<<<<<
 *                   if G.Index(H) == degree]
 *         for i, C in enumerate(covers):
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_9genexpr39__pyx_v_H); __pyx_9genexpr39__pyx_v_H = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_9genexpr39__pyx_v_H); __pyx_9genexpr39__pyx_v_H = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_v_covers = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2610
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)
 *                   if G.Index(H) == degree]
 *         for i, C in enumerate(covers):             # <<<<<<<<<<<<<<
 *             C.set_name(C.name() + f'~{i}')
 *         return covers
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_1 = __pyx_mstate_global->__pyx_int_0;
  __pyx_t_7 = __pyx_v_covers; __Pyx_INCREF(__pyx_t_7);
  __pyx_t_9 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2610, __pyx_L1_error)
      #endif
      if (__pyx_t_9 >= __pyx_temp) break;
    }
    __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_9;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2610, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_C, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2610, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":2611
 *                   if G.Index(H) == degree]
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')             # <<<<<<<<<<<<<<
 *         return covers
 * 
*/
    __pyx_t_4 = __pyx_v_C;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_11 = __pyx_v_C;
    __Pyx_INCREF(__pyx_t_11);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_11, NULL};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2611, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_11 = __Pyx_PyObject_FormatSimple(__pyx_v_i, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_12 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u__24, __pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 2611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_11 = PyNumber_Add(__pyx_t_8, __pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_11};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2611, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":2610
 *                   for H in G.LowIndexSubgroupsFpGroup(degree)
 *                   if G.Index(H) == degree]
 *         for i, C in enumerate(covers):             # <<<<<<<<<<<<<<
 *             C.set_name(C.name() + f'~{i}')
 *         return covers
*/
  }
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2612
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')
 *         return covers             # <<<<<<<<<<<<<<
 * 
 *     def _covers_magma(self, degree):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_covers);
  __pyx_r = __pyx_v_covers;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2599
 *         return covers
 * 
 *     def _covers_gap(self, degree):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using gap.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_gap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_G);
  __Pyx_XDECREF(__pyx_v_covers);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_C);
  __Pyx_XDECREF(__pyx_9genexpr39__pyx_v_H);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2614
 *         return covers
 * 
 *     def _covers_magma(self, degree):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using magma.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_135_covers_magma(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_134_covers_magma, "\n        Compute all covers using magma.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_135_covers_magma = {"_covers_magma", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_135_covers_magma, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_134_covers_magma};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_135_covers_magma(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_degree = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_covers_magma (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_degree,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2614, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2614, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_covers_magma", 0) < (0)) __PYX_ERR(4, 2614, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_covers_magma", 1, 1, 1, i); __PYX_ERR(4, 2614, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2614, __pyx_L3_error)
    }
    __pyx_v_degree = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_covers_magma", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 2614, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_magma", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_134_covers_magma(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_degree);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_134_covers_magma(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree) {
  PyObject *__pyx_v_G = NULL;
  PyObject *__pyx_v_covers = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_C = NULL;
  PyObject *__pyx_9genexpr40__pyx_v_H = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9[5];
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  PyObject *(*__pyx_t_12)(PyObject *);
  PyObject *__pyx_t_13 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_covers_magma", 0);

  /* "cython/core/triangulation.pyx":2618
 *         Compute all covers using magma.
 *         """
 *         if not _within_sage:             # <<<<<<<<<<<<<<
 *             raise SageNotAvailable('the "magma" method for covers requires Sage')
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 2618, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (!__pyx_t_2);
  if (unlikely(__pyx_t_3)) {

    /* "cython/core/triangulation.pyx":2619
 *         """
 *         if not _within_sage:
 *             raise SageNotAvailable('the "magma" method for covers requires Sage')             # <<<<<<<<<<<<<<
 * 
 *         G = magma(self.fundamental_group())
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_SageNotAvailable); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_the_magma_method_for_covers_requ};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2619, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(4, 2619, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2618
 *         Compute all covers using magma.
 *         """
 *         if not _within_sage:             # <<<<<<<<<<<<<<
 *             raise SageNotAvailable('the "magma" method for covers requires Sage')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":2621
 *             raise SageNotAvailable('the "magma" method for covers requires Sage')
 * 
 *         G = magma(self.fundamental_group())             # <<<<<<<<<<<<<<
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_magma); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_G = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2622
 * 
 *         G = magma(self.fundamental_group())
 *         covers = [self.cover(H)             # <<<<<<<<<<<<<<
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %
 *                                               (degree, degree))]
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 2622, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/triangulation.pyx":2623
 *         G = magma(self.fundamental_group())
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %             # <<<<<<<<<<<<<<
 *                                               (degree, degree))]
 *         for i, C in enumerate(covers):
*/
    __pyx_t_7 = __pyx_v_G;
    __Pyx_INCREF(__pyx_t_7);

    /* "cython/core/triangulation.pyx":2624
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %
 *                                               (degree, degree))]             # <<<<<<<<<<<<<<
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')
*/
    __pyx_t_5 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_degree), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2624, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_degree), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2624, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u__25;
    __pyx_t_9[1] = __pyx_t_5;
    __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u__3;
    __pyx_t_9[3] = __pyx_t_8;
    __pyx_t_9[4] = __pyx_mstate_global->__pyx_kp_u__26;

    /* "cython/core/triangulation.pyx":2623
 *         G = magma(self.fundamental_group())
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %             # <<<<<<<<<<<<<<
 *                                               (degree, degree))]
 *         for i, C in enumerate(covers):
*/
    __pyx_t_10 = __Pyx_PyUnicode_Join(__pyx_t_9, 5, 1 * 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8));
    if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 2623, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_10};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_LowIndexSubgroups, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2623, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
      __pyx_t_10 = __pyx_t_4; __Pyx_INCREF(__pyx_t_10);
      __pyx_t_11 = 0;
      __pyx_t_12 = NULL;
    } else {
      __pyx_t_11 = -1; __pyx_t_10 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 2623, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10); if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 2623, __pyx_L6_error)
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    for (;;) {
      if (likely(!__pyx_t_12)) {
        if (likely(PyList_CheckExact(__pyx_t_10))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_10);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2623, __pyx_L6_error)
            #endif
            if (__pyx_t_11 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_10, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_11;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_10);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2623, __pyx_L6_error)
            #endif
            if (__pyx_t_11 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_10, __pyx_t_11));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_11);
          #endif
          ++__pyx_t_11;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2623, __pyx_L6_error)
      } else {
        __pyx_t_4 = __pyx_t_12(__pyx_t_10);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2623, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_9genexpr40__pyx_v_H, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "cython/core/triangulation.pyx":2622
 * 
 *         G = magma(self.fundamental_group())
 *         covers = [self.cover(H)             # <<<<<<<<<<<<<<
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %
 *                                               (degree, degree))]
*/
      __pyx_t_7 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_9genexpr40__pyx_v_H};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cover, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2622, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) __PYX_ERR(4, 2622, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "cython/core/triangulation.pyx":2623
 *         G = magma(self.fundamental_group())
 *         covers = [self.cover(H)
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %             # <<<<<<<<<<<<<<
 *                                               (degree, degree))]
 *         for i, C in enumerate(covers):
*/
    }
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_9genexpr40__pyx_v_H); __pyx_9genexpr40__pyx_v_H = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_9genexpr40__pyx_v_H); __pyx_9genexpr40__pyx_v_H = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_v_covers = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2625
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %
 *                                               (degree, degree))]
 *         for i, C in enumerate(covers):             # <<<<<<<<<<<<<<
 *             C.set_name(C.name() + f'~{i}')
 *         return covers
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_1 = __pyx_mstate_global->__pyx_int_0;
  __pyx_t_10 = __pyx_v_covers; __Pyx_INCREF(__pyx_t_10);
  __pyx_t_11 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_10);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2625, __pyx_L1_error)
      #endif
      if (__pyx_t_11 >= __pyx_temp) break;
    }
    __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_10, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_11;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_C, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1);
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2626
 *                                               (degree, degree))]
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')             # <<<<<<<<<<<<<<
 *         return covers
 * 
*/
    __pyx_t_7 = __pyx_v_C;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_5 = __pyx_v_C;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2626, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_i, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_13 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u__24, __pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 2626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Add(__pyx_t_8, __pyx_t_13); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_5};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2626, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2625
 *                   for H in G.LowIndexSubgroups('<%d, %d>' %
 *                                               (degree, degree))]
 *         for i, C in enumerate(covers):             # <<<<<<<<<<<<<<
 *             C.set_name(C.name() + f'~{i}')
 *         return covers
*/
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/triangulation.pyx":2627
 *         for i, C in enumerate(covers):
 *             C.set_name(C.name() + f'~{i}')
 *         return covers             # <<<<<<<<<<<<<<
 * 
 *     def _covers_snappea(self, degree, cover_type):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_covers);
  __pyx_r = __pyx_v_covers;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2614
 *         return covers
 * 
 *     def _covers_magma(self, degree):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using magma.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_magma", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_G);
  __Pyx_XDECREF(__pyx_v_covers);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_C);
  __Pyx_XDECREF(__pyx_9genexpr40__pyx_v_H);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2629
 *         return covers
 * 
 *     def _covers_snappea(self, degree, cover_type):             # <<<<<<<<<<<<<<
 *         """
 *         Compute cyclic or all covers using SnapPea kernel.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_137_covers_snappea(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_136_covers_snappea, "\n        Compute cyclic or all covers using SnapPea kernel.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_137_covers_snappea = {"_covers_snappea", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_137_covers_snappea, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_136_covers_snappea};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_137_covers_snappea(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_degree = 0;
  PyObject *__pyx_v_cover_type = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_covers_snappea (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_degree,&__pyx_mstate_global->__pyx_n_u_cover_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2629, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2629, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2629, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_covers_snappea", 0) < (0)) __PYX_ERR(4, 2629, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_covers_snappea", 1, 2, 2, i); __PYX_ERR(4, 2629, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2629, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2629, __pyx_L3_error)
    }
    __pyx_v_degree = values[0];
    __pyx_v_cover_type = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_covers_snappea", 1, 2, 2, __pyx_nargs); __PYX_ERR(4, 2629, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_snappea", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_136_covers_snappea(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_degree, __pyx_v_cover_type);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_136_covers_snappea(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_degree, PyObject *__pyx_v_cover_type) {
  RepresentationList *__pyx_v_reps;
  RepresentationIntoSn *__pyx_v_rep;
  Triangulation *__pyx_v_cover;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_T = 0;
  PermutationSubgroup __pyx_v_c_cover_type;
  PyObject *__pyx_v_covers = NULL;
  PyObject *__pyx_v_cover_count = NULL;
  PyObject *__pyx_v_info = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  RepresentationList *__pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  RepresentationIntoSn *__pyx_t_5;
  Triangulation *__pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_covers_snappea", 0);

  /* "cython/core/triangulation.pyx":2639
 *         cdef PermutationSubgroup c_cover_type
 * 
 *         if cover_type == 'cyclic':             # <<<<<<<<<<<<<<
 *             c_cover_type = permutation_subgroup_Zn
 *         else:
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_cover_type, __pyx_mstate_global->__pyx_n_u_cyclic, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2639, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2640
 * 
 *         if cover_type == 'cyclic':
 *             c_cover_type = permutation_subgroup_Zn             # <<<<<<<<<<<<<<
 *         else:
 *             c_cover_type = permutation_subgroup_Sn
*/
    __pyx_v_c_cover_type = permutation_subgroup_Zn;

    /* "cython/core/triangulation.pyx":2639
 *         cdef PermutationSubgroup c_cover_type
 * 
 *         if cover_type == 'cyclic':             # <<<<<<<<<<<<<<
 *             c_cover_type = permutation_subgroup_Zn
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cython/core/triangulation.pyx":2642
 *             c_cover_type = permutation_subgroup_Zn
 *         else:
 *             c_cover_type = permutation_subgroup_Sn             # <<<<<<<<<<<<<<
 * 
 *         reps = find_representations(
*/
  /*else*/ {
    __pyx_v_c_cover_type = permutation_subgroup_Sn;
  }
  __pyx_L3:;

  /* "cython/core/triangulation.pyx":2645
 * 
 *         reps = find_representations(
 *             self.c_triangulation, degree, c_cover_type)             # <<<<<<<<<<<<<<
 * 
 *         covers = []
*/
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_v_degree); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2645, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2644
 *             c_cover_type = permutation_subgroup_Sn
 * 
 *         reps = find_representations(             # <<<<<<<<<<<<<<
 *             self.c_triangulation, degree, c_cover_type)
 * 
*/
  __pyx_t_3 = find_representations(__pyx_v_self->c_triangulation, __pyx_t_2, __pyx_v_c_cover_type); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2644, __pyx_L1_error)
  __pyx_v_reps = __pyx_t_3;

  /* "cython/core/triangulation.pyx":2647
 *             self.c_triangulation, degree, c_cover_type)
 * 
 *         covers = []             # <<<<<<<<<<<<<<
 *         rep = reps.list
 *         cover_count = 0
*/
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_covers = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":2648
 * 
 *         covers = []
 *         rep = reps.list             # <<<<<<<<<<<<<<
 *         cover_count = 0
 *         while rep != NULL:
*/
  __pyx_t_5 = __pyx_v_reps->list;
  __pyx_v_rep = __pyx_t_5;

  /* "cython/core/triangulation.pyx":2649
 *         covers = []
 *         rep = reps.list
 *         cover_count = 0             # <<<<<<<<<<<<<<
 *         while rep != NULL:
 *             cover = construct_cover(self.c_triangulation,
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_v_cover_count = __pyx_mstate_global->__pyx_int_0;

  /* "cython/core/triangulation.pyx":2650
 *         rep = reps.list
 *         cover_count = 0
 *         while rep != NULL:             # <<<<<<<<<<<<<<
 *             cover = construct_cover(self.c_triangulation,
 *                                     rep,
*/
  while (1) {
    __pyx_t_1 = (__pyx_v_rep != NULL);
    if (!__pyx_t_1) break;

    /* "cython/core/triangulation.pyx":2651
 *         cover_count = 0
 *         while rep != NULL:
 *             cover = construct_cover(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                     rep,
 *                                     reps.num_sheets)
*/
    __pyx_t_6 = construct_cover(__pyx_v_self->c_triangulation, __pyx_v_rep, __pyx_v_reps->num_sheets); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2651, __pyx_L1_error)
    __pyx_v_cover = __pyx_t_6;

    /* "cython/core/triangulation.pyx":2654
 *                                     rep,
 *                                     reps.num_sheets)
 *             T = self.__class__('empty')             # <<<<<<<<<<<<<<
 *             T.set_c_triangulation(cover)
 *             T._cover_info = info = {
*/
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_8 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2654, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(4, 2654, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_T, ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2655
 *                                     reps.num_sheets)
 *             T = self.__class__('empty')
 *             T.set_c_triangulation(cover)             # <<<<<<<<<<<<<<
 *             T._cover_info = info = {
 *                 'base'   : self.name(),
*/
    __pyx_t_4 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_T->__pyx_vtab)->set_c_triangulation(__pyx_v_T, __pyx_v_cover); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2657
 *             T.set_c_triangulation(cover)
 *             T._cover_info = info = {
 *                 'base'   : self.name(),             # <<<<<<<<<<<<<<
 *                 'type'   : cover_types[rep.covering_type],
 *                 'degree' : degree
*/
    __pyx_t_4 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_9);
    __pyx_t_8 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2657, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_base, __pyx_t_7) < (0)) __PYX_ERR(4, 2657, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/triangulation.pyx":2658
 *             T._cover_info = info = {
 *                 'base'   : self.name(),
 *                 'type'   : cover_types[rep.covering_type],             # <<<<<<<<<<<<<<
 *                 'degree' : degree
 *                 }
*/
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_cover_types); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_9 = __Pyx_PyLong_From_CoveringType(__pyx_v_rep->covering_type); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 2658, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_type, __pyx_t_10) < (0)) __PYX_ERR(4, 2657, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

    /* "cython/core/triangulation.pyx":2659
 *                 'base'   : self.name(),
 *                 'type'   : cover_types[rep.covering_type],
 *                 'degree' : degree             # <<<<<<<<<<<<<<
 *                 }
 *             T.set_name(info['base'] + "~" + info['type'][:3] + '~%d' %
*/
    if (PyDict_SetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_degree, __pyx_v_degree) < (0)) __PYX_ERR(4, 2657, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2656
 *             T = self.__class__('empty')
 *             T.set_c_triangulation(cover)
 *             T._cover_info = info = {             # <<<<<<<<<<<<<<
 *                 'base'   : self.name(),
 *                 'type'   : cover_types[rep.covering_type],
*/
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_GOTREF(__pyx_v_T->_cover_info);
    __Pyx_DECREF(__pyx_v_T->_cover_info);
    __pyx_v_T->_cover_info = __pyx_t_4;
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_info, __pyx_t_4);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2661
 *                 'degree' : degree
 *                 }
 *             T.set_name(info['base'] + "~" + info['type'][:3] + '~%d' %             # <<<<<<<<<<<<<<
 *                        cover_count)
 *             covers.append(T)
*/
    __pyx_t_10 = ((PyObject *)__pyx_v_T);
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_9 = __Pyx_PyDict_GetItem(__pyx_v_info, __pyx_mstate_global->__pyx_n_u_base); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_7 = PyNumber_Add(__pyx_t_9, __pyx_mstate_global->__pyx_kp_u__24); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyDict_GetItem(__pyx_v_info, __pyx_mstate_global->__pyx_n_u_type); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_11 = __Pyx_PyObject_GetSlice(__pyx_t_9, 0, 3, NULL, NULL, &__pyx_mstate_global->__pyx_slice[0], 0, 1, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = PyNumber_Add(__pyx_t_7, __pyx_t_11); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 2661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

    /* "cython/core/triangulation.pyx":2662
 *                 }
 *             T.set_name(info['base'] + "~" + info['type'][:3] + '~%d' %
 *                        cover_count)             # <<<<<<<<<<<<<<
 *             covers.append(T)
 *             cover_count += 1
*/
    __pyx_t_11 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d_3, __pyx_v_cover_count); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 2661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);

    /* "cython/core/triangulation.pyx":2661
 *                 'degree' : degree
 *                 }
 *             T.set_name(info['base'] + "~" + info['type'][:3] + '~%d' %             # <<<<<<<<<<<<<<
 *                        cover_count)
 *             covers.append(T)
*/
    __pyx_t_7 = PyNumber_Add(__pyx_t_9, __pyx_t_11); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_8 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_7};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2661, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2663
 *             T.set_name(info['base'] + "~" + info['type'][:3] + '~%d' %
 *                        cover_count)
 *             covers.append(T)             # <<<<<<<<<<<<<<
 *             cover_count += 1
 *             rep = rep.next
*/
    __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_covers, ((PyObject *)__pyx_v_T)); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(4, 2663, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2664
 *                        cover_count)
 *             covers.append(T)
 *             cover_count += 1             # <<<<<<<<<<<<<<
 *             rep = rep.next
 * 
*/
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_cover_count, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_cover_count, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/triangulation.pyx":2665
 *             covers.append(T)
 *             cover_count += 1
 *             rep = rep.next             # <<<<<<<<<<<<<<
 * 
 *         free_representation_list(reps)
*/
    __pyx_t_5 = __pyx_v_rep->next;
    __pyx_v_rep = __pyx_t_5;
  }

  /* "cython/core/triangulation.pyx":2667
 *             rep = rep.next
 * 
 *         free_representation_list(reps)             # <<<<<<<<<<<<<<
 *         return covers
 * 
*/
  free_representation_list(__pyx_v_reps); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2667, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2668
 * 
 *         free_representation_list(reps)
 *         return covers             # <<<<<<<<<<<<<<
 * 
 *     cdef RepresentationIntoSn *build_rep_into_Sn(self, perm_list) except ? NULL:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_covers);
  __pyx_r = __pyx_v_covers;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2629
 *         return covers
 * 
 *     def _covers_snappea(self, degree, cover_type):             # <<<<<<<<<<<<<<
 *         """
 *         Compute cyclic or all covers using SnapPea kernel.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.Triangulation._covers_snappea", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_T);
  __Pyx_XDECREF(__pyx_v_covers);
  __Pyx_XDECREF(__pyx_v_cover_count);
  __Pyx_XDECREF(__pyx_v_info);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2670
 *         return covers
 * 
 *     cdef RepresentationIntoSn *build_rep_into_Sn(self, perm_list) except ? NULL:             # <<<<<<<<<<<<<<
 *         """
 *         Build a SnapPea RepresentationIntoSn from a list of
*/

static RepresentationIntoSn *__pyx_f_6SnapPy_13Triangulation_build_rep_into_Sn(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_perm_list) {
  Triangulation *__pyx_v_c_triangulation;
  RepresentationIntoSn *__pyx_v_c_representation;
  RepresentationIntoSn *__pyx_v_c_repn_in_original_gens;
  int __pyx_v_i;
  int __pyx_v_j;
  int **__pyx_v_c_original_generators;
  int **__pyx_v_c_relators;
  int **__pyx_v_c_meridians;
  int **__pyx_v_c_longitudes;
  Py_ssize_t __pyx_v_degree;
  PyObject *__pyx_v_S = NULL;
  PyObject *__pyx_v_permutation = NULL;
  PyObject *__pyx_v_num_cusps = NULL;
  PyObject *__pyx_v_G = NULL;
  PyObject *__pyx_v_num_generators = NULL;
  PyObject *__pyx_v_relators = NULL;
  PyObject *__pyx_v_num_relators = NULL;
  PyObject *__pyx_v_orig_gens = NULL;
  PyObject *__pyx_v_num_orig_gens = NULL;
  PyObject *__pyx_v_peripheral_curves = NULL;
  PyObject *__pyx_v_meridian = NULL;
  PyObject *__pyx_v_longitude = NULL;
  int __pyx_v_failed;
  PyObject *__pyx_v_message = NULL;
  RepresentationIntoSn *__pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  Triangulation *__pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  RepresentationIntoSn *__pyx_t_11;
  int *__pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *(*__pyx_t_14)(PyObject *);
  Boolean __pyx_t_15;
  int __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("build_rep_into_Sn", 0);

  /* "cython/core/triangulation.pyx":2682
 *         cdef c_Triangulation* c_triangulation
 *         cdef RepresentationIntoSn* c_representation
 *         cdef RepresentationIntoSn* c_repn_in_original_gens = NULL             # <<<<<<<<<<<<<<
 *         cdef int i, j
 *         cdef int** c_original_generators
*/
  __pyx_v_c_repn_in_original_gens = NULL;

  /* "cython/core/triangulation.pyx":2689
 *         cdef int** c_longitudes
 * 
 *         if len(perm_list) == 0:  # implies trivial presentation             # <<<<<<<<<<<<<<
 *             degree = 1
 *         else:
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_perm_list); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2689, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "cython/core/triangulation.pyx":2690
 * 
 *         if len(perm_list) == 0:  # implies trivial presentation
 *             degree = 1             # <<<<<<<<<<<<<<
 *         else:
 *             degree = len(perm_list[0])
*/
    __pyx_v_degree = 1;

    /* "cython/core/triangulation.pyx":2689
 *         cdef int** c_longitudes
 * 
 *         if len(perm_list) == 0:  # implies trivial presentation             # <<<<<<<<<<<<<<
 *             degree = 1
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cython/core/triangulation.pyx":2692
 *             degree = 1
 *         else:
 *             degree = len(perm_list[0])             # <<<<<<<<<<<<<<
 * 
 *         # Sanity check
*/
  /*else*/ {
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_perm_list, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2692, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_degree = __pyx_t_1;
  }
  __pyx_L3:;

  /* "cython/core/triangulation.pyx":2695
 * 
 *         # Sanity check
 *         S = set(range(degree))             # <<<<<<<<<<<<<<
 *         for permutation in perm_list:
 *             if set(permutation) != S:
*/
  __pyx_t_4 = NULL;
  __pyx_t_5 = PyLong_FromSsize_t(__pyx_v_degree); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2695, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_5 = PySet_New(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_S = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2696
 *         # Sanity check
 *         S = set(range(degree))
 *         for permutation in perm_list:             # <<<<<<<<<<<<<<
 *             if set(permutation) != S:
 *                 raise ValueError('The permutation list is invalid.')
*/
  if (likely(PyList_CheckExact(__pyx_v_perm_list)) || PyTuple_CheckExact(__pyx_v_perm_list)) {
    __pyx_t_5 = __pyx_v_perm_list; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_1 = 0;
    __pyx_t_7 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_perm_list); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2696, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_7)) {
      if (likely(PyList_CheckExact(__pyx_t_5))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2696, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2696, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_1));
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2696, __pyx_L1_error)
    } else {
      __pyx_t_3 = __pyx_t_7(__pyx_t_5);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2696, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_permutation, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":2697
 *         S = set(range(degree))
 *         for permutation in perm_list:
 *             if set(permutation) != S:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The permutation list is invalid.')
 * 
*/
    __pyx_t_3 = PySet_New(__pyx_v_permutation); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2697, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_S, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2697, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 2697, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(__pyx_t_2)) {

      /* "cython/core/triangulation.pyx":2698
 *         for permutation in perm_list:
 *             if set(permutation) != S:
 *                 raise ValueError('The permutation list is invalid.')             # <<<<<<<<<<<<<<
 * 
 *         # Initialize
*/
      __pyx_t_3 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_permutation_list_is_invalid};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2698, __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_ERR(4, 2698, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":2697
 *         S = set(range(degree))
 *         for permutation in perm_list:
 *             if set(permutation) != S:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The permutation list is invalid.')
 * 
*/
    }

    /* "cython/core/triangulation.pyx":2696
 *         # Sanity check
 *         S = set(range(degree))
 *         for permutation in perm_list:             # <<<<<<<<<<<<<<
 *             if set(permutation) != S:
 *                 raise ValueError('The permutation list is invalid.')
*/
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2701
 * 
 *         # Initialize
 *         num_cusps = self.num_cusps()             # <<<<<<<<<<<<<<
 *         c_triangulation = self.c_triangulation
 *         G = self.fundamental_group()
*/
  __pyx_t_4 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_v_num_cusps = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2702
 *         # Initialize
 *         num_cusps = self.num_cusps()
 *         c_triangulation = self.c_triangulation             # <<<<<<<<<<<<<<
 *         G = self.fundamental_group()
 *         num_generators = G.num_generators()
*/
  __pyx_t_8 = __pyx_v_self->c_triangulation;
  __pyx_v_c_triangulation = __pyx_t_8;

  /* "cython/core/triangulation.pyx":2703
 *         num_cusps = self.num_cusps()
 *         c_triangulation = self.c_triangulation
 *         G = self.fundamental_group()             # <<<<<<<<<<<<<<
 *         num_generators = G.num_generators()
 *         if len(perm_list) != num_generators:
*/
  __pyx_t_4 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_v_G = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2704
 *         c_triangulation = self.c_triangulation
 *         G = self.fundamental_group()
 *         num_generators = G.num_generators()             # <<<<<<<<<<<<<<
 *         if len(perm_list) != num_generators:
 *             raise ValueError('Number of permutations is not the same '
*/
  __pyx_t_4 = __pyx_v_G;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_v_num_generators = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2705
 *         G = self.fundamental_group()
 *         num_generators = G.num_generators()
 *         if len(perm_list) != num_generators:             # <<<<<<<<<<<<<<
 *             raise ValueError('Number of permutations is not the same '
 *                              'as the number of generators')
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_perm_list); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2705, __pyx_L1_error)
  __pyx_t_5 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyObject_RichCompare(__pyx_t_5, __pyx_v_num_generators, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(4, 2705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/triangulation.pyx":2706
 *         num_generators = G.num_generators()
 *         if len(perm_list) != num_generators:
 *             raise ValueError('Number of permutations is not the same '             # <<<<<<<<<<<<<<
 *                              'as the number of generators')
 * 
*/
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Number_of_permutations_is_not_th};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2706, __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_ERR(4, 2706, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2705
 *         G = self.fundamental_group()
 *         num_generators = G.num_generators()
 *         if len(perm_list) != num_generators:             # <<<<<<<<<<<<<<
 *             raise ValueError('Number of permutations is not the same '
 *                              'as the number of generators')
*/
  }

  /* "cython/core/triangulation.pyx":2709
 *                              'as the number of generators')
 * 
 *         relators = G.relators(as_int_list=True)             # <<<<<<<<<<<<<<
 *         num_relators = len(relators)
 *         orig_gens = G.original_generators(as_int_list=True)
*/
  __pyx_t_5 = __pyx_v_G;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_as_int_list, Py_True, __pyx_t_3, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 2709, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_relators, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_v_relators = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":2710
 * 
 *         relators = G.relators(as_int_list=True)
 *         num_relators = len(relators)             # <<<<<<<<<<<<<<
 *         orig_gens = G.original_generators(as_int_list=True)
 *         num_orig_gens = len(orig_gens)
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_relators); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2710, __pyx_L1_error)
  __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_num_relators = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":2711
 *         relators = G.relators(as_int_list=True)
 *         num_relators = len(relators)
 *         orig_gens = G.original_generators(as_int_list=True)             # <<<<<<<<<<<<<<
 *         num_orig_gens = len(orig_gens)
 *         peripheral_curves = G.peripheral_curves(as_int_list=True)
*/
  __pyx_t_3 = __pyx_v_G;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_as_int_list, Py_True, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 2711, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_original_generators, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_v_orig_gens = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":2712
 *         num_relators = len(relators)
 *         orig_gens = G.original_generators(as_int_list=True)
 *         num_orig_gens = len(orig_gens)             # <<<<<<<<<<<<<<
 *         peripheral_curves = G.peripheral_curves(as_int_list=True)
 * 
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_orig_gens); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2712, __pyx_L1_error)
  __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_num_orig_gens = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":2713
 *         orig_gens = G.original_generators(as_int_list=True)
 *         num_orig_gens = len(orig_gens)
 *         peripheral_curves = G.peripheral_curves(as_int_list=True)             # <<<<<<<<<<<<<<
 * 
 *         # Allocate a whole bunch of memory, SnapPea and malloc.
*/
  __pyx_t_5 = __pyx_v_G;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2713, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_as_int_list, Py_True, __pyx_t_3, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 2713, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_peripheral_curves, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2713, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_v_peripheral_curves = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":2717
 *         # Allocate a whole bunch of memory, SnapPea and malloc.
 *         c_representation = initialize_new_representation(
 *             num_orig_gens,             # <<<<<<<<<<<<<<
 *             <int>degree,
 *             num_cusps)
*/
  __pyx_t_9 = __Pyx_PyLong_As_int(__pyx_v_num_orig_gens); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2717, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2719
 *             num_orig_gens,
 *             <int>degree,
 *             num_cusps)             # <<<<<<<<<<<<<<
 *         for i from 0 <= i < num_generators:
 *             for j from 0 <= j < degree:
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_cusps); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2719, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2716
 * 
 *         # Allocate a whole bunch of memory, SnapPea and malloc.
 *         c_representation = initialize_new_representation(             # <<<<<<<<<<<<<<
 *             num_orig_gens,
 *             <int>degree,
*/
  __pyx_t_11 = initialize_new_representation(__pyx_t_9, ((int)__pyx_v_degree), __pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2716, __pyx_L1_error)
  __pyx_v_c_representation = __pyx_t_11;

  /* "cython/core/triangulation.pyx":2720
 *             <int>degree,
 *             num_cusps)
 *         for i from 0 <= i < num_generators:             # <<<<<<<<<<<<<<
 *             for j from 0 <= j < degree:
 *                 c_representation.image[i][j] = perm_list[i][j]
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_generators); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2720, __pyx_L1_error)
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_10; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":2721
 *             num_cusps)
 *         for i from 0 <= i < num_generators:
 *             for j from 0 <= j < degree:             # <<<<<<<<<<<<<<
 *                 c_representation.image[i][j] = perm_list[i][j]
 *         c_original_generators = <int**>malloc(num_orig_gens*sizeof(int*))
*/
    __pyx_t_1 = __pyx_v_degree;
    for (__pyx_v_j = 0; __pyx_v_j < __pyx_t_1; __pyx_v_j++) {

      /* "cython/core/triangulation.pyx":2722
 *         for i from 0 <= i < num_generators:
 *             for j from 0 <= j < degree:
 *                 c_representation.image[i][j] = perm_list[i][j]             # <<<<<<<<<<<<<<
 *         c_original_generators = <int**>malloc(num_orig_gens*sizeof(int*))
 *         for i from  0 <= i < num_orig_gens:
*/
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_perm_list, __pyx_v_i, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2722, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_4, __pyx_v_j, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2722, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_9 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2722, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      ((__pyx_v_c_representation->image[__pyx_v_i])[__pyx_v_j]) = __pyx_t_9;
    }
  }

  /* "cython/core/triangulation.pyx":2723
 *             for j from 0 <= j < degree:
 *                 c_representation.image[i][j] = perm_list[i][j]
 *         c_original_generators = <int**>malloc(num_orig_gens*sizeof(int*))             # <<<<<<<<<<<<<<
 *         for i from  0 <= i < num_orig_gens:
 *             c_original_generators[i] = c_word_from_list(orig_gens[i])
*/
  __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(int *))); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyNumber_Multiply(__pyx_v_num_orig_gens, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyLong_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_6 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2723, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_c_original_generators = ((int **)malloc(__pyx_t_6));

  /* "cython/core/triangulation.pyx":2724
 *                 c_representation.image[i][j] = perm_list[i][j]
 *         c_original_generators = <int**>malloc(num_orig_gens*sizeof(int*))
 *         for i from  0 <= i < num_orig_gens:             # <<<<<<<<<<<<<<
 *             c_original_generators[i] = c_word_from_list(orig_gens[i])
 *         c_relators = <int**>malloc(num_relators*sizeof(int*))
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_orig_gens); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2724, __pyx_L1_error)
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_10; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":2725
 *         c_original_generators = <int**>malloc(num_orig_gens*sizeof(int*))
 *         for i from  0 <= i < num_orig_gens:
 *             c_original_generators[i] = c_word_from_list(orig_gens[i])             # <<<<<<<<<<<<<<
 *         c_relators = <int**>malloc(num_relators*sizeof(int*))
 *         for i from  0 <= i < num_relators:
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_orig_gens, __pyx_v_i, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = __pyx_f_6SnapPy_c_word_from_list(__pyx_t_4); if (unlikely(__pyx_t_12 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 2725, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    (__pyx_v_c_original_generators[__pyx_v_i]) = __pyx_t_12;
  }

  /* "cython/core/triangulation.pyx":2726
 *         for i from  0 <= i < num_orig_gens:
 *             c_original_generators[i] = c_word_from_list(orig_gens[i])
 *         c_relators = <int**>malloc(num_relators*sizeof(int*))             # <<<<<<<<<<<<<<
 *         for i from  0 <= i < num_relators:
 *             c_relators[i] = c_word_from_list(relators[i])
*/
  __pyx_t_4 = __Pyx_PyLong_FromSize_t((sizeof(int *))); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = PyNumber_Multiply(__pyx_v_num_relators, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyLong_As_size_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2726, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_c_relators = ((int **)malloc(__pyx_t_6));

  /* "cython/core/triangulation.pyx":2727
 *             c_original_generators[i] = c_word_from_list(orig_gens[i])
 *         c_relators = <int**>malloc(num_relators*sizeof(int*))
 *         for i from  0 <= i < num_relators:             # <<<<<<<<<<<<<<
 *             c_relators[i] = c_word_from_list(relators[i])
 *         c_meridians = <int**>malloc(num_cusps*sizeof(int*))
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_relators); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2727, __pyx_L1_error)
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_10; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":2728
 *         c_relators = <int**>malloc(num_relators*sizeof(int*))
 *         for i from  0 <= i < num_relators:
 *             c_relators[i] = c_word_from_list(relators[i])             # <<<<<<<<<<<<<<
 *         c_meridians = <int**>malloc(num_cusps*sizeof(int*))
 *         c_longitudes = <int**>malloc(num_cusps*sizeof(int*))
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_relators, __pyx_v_i, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = __pyx_f_6SnapPy_c_word_from_list(__pyx_t_3); if (unlikely(__pyx_t_12 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 2728, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    (__pyx_v_c_relators[__pyx_v_i]) = __pyx_t_12;
  }

  /* "cython/core/triangulation.pyx":2729
 *         for i from  0 <= i < num_relators:
 *             c_relators[i] = c_word_from_list(relators[i])
 *         c_meridians = <int**>malloc(num_cusps*sizeof(int*))             # <<<<<<<<<<<<<<
 *         c_longitudes = <int**>malloc(num_cusps*sizeof(int*))
 *         for i from 0 <= i < num_cusps:
*/
  __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(int *))); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyNumber_Multiply(__pyx_v_num_cusps, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6 = __Pyx_PyLong_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_6 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2729, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_c_meridians = ((int **)malloc(__pyx_t_6));

  /* "cython/core/triangulation.pyx":2730
 *             c_relators[i] = c_word_from_list(relators[i])
 *         c_meridians = <int**>malloc(num_cusps*sizeof(int*))
 *         c_longitudes = <int**>malloc(num_cusps*sizeof(int*))             # <<<<<<<<<<<<<<
 *         for i from 0 <= i < num_cusps:
 *             meridian, longitude = peripheral_curves[i]
*/
  __pyx_t_4 = __Pyx_PyLong_FromSize_t((sizeof(int *))); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2730, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = PyNumber_Multiply(__pyx_v_num_cusps, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2730, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyLong_As_size_t(__pyx_t_3); if (unlikely((__pyx_t_6 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2730, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_c_longitudes = ((int **)malloc(__pyx_t_6));

  /* "cython/core/triangulation.pyx":2731
 *         c_meridians = <int**>malloc(num_cusps*sizeof(int*))
 *         c_longitudes = <int**>malloc(num_cusps*sizeof(int*))
 *         for i from 0 <= i < num_cusps:             # <<<<<<<<<<<<<<
 *             meridian, longitude = peripheral_curves[i]
 *             c_meridians[i] = c_word_from_list(meridian)
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_cusps); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2731, __pyx_L1_error)
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_10; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":2732
 *         c_longitudes = <int**>malloc(num_cusps*sizeof(int*))
 *         for i from 0 <= i < num_cusps:
 *             meridian, longitude = peripheral_curves[i]             # <<<<<<<<<<<<<<
 *             c_meridians[i] = c_word_from_list(meridian)
 *             c_longitudes[i] = c_word_from_list(longitude)
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_peripheral_curves, __pyx_v_i, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
      PyObject* sequence = __pyx_t_3;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 2732, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2732, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2732, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
      }
      #else
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 2732, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2732, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_13 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_13)) __PYX_ERR(4, 2732, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_13);
      index = 0; __pyx_t_4 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_4)) goto __pyx_L19_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_5 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_5)) goto __pyx_L19_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_13), 2) < (0)) __PYX_ERR(4, 2732, __pyx_L1_error)
      __pyx_t_14 = NULL;
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      goto __pyx_L20_unpacking_done;
      __pyx_L19_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __pyx_t_14 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 2732, __pyx_L1_error)
      __pyx_L20_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_meridian, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_longitude, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":2733
 *         for i from 0 <= i < num_cusps:
 *             meridian, longitude = peripheral_curves[i]
 *             c_meridians[i] = c_word_from_list(meridian)             # <<<<<<<<<<<<<<
 *             c_longitudes[i] = c_word_from_list(longitude)
 *         # Whew!
*/
    __pyx_t_12 = __pyx_f_6SnapPy_c_word_from_list(__pyx_v_meridian); if (unlikely(__pyx_t_12 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 2733, __pyx_L1_error)
    (__pyx_v_c_meridians[__pyx_v_i]) = __pyx_t_12;

    /* "cython/core/triangulation.pyx":2734
 *             meridian, longitude = peripheral_curves[i]
 *             c_meridians[i] = c_word_from_list(meridian)
 *             c_longitudes[i] = c_word_from_list(longitude)             # <<<<<<<<<<<<<<
 *         # Whew!
 * 
*/
    __pyx_t_12 = __pyx_f_6SnapPy_c_word_from_list(__pyx_v_longitude); if (unlikely(__pyx_t_12 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(4, 2734, __pyx_L1_error)
    (__pyx_v_c_longitudes[__pyx_v_i]) = __pyx_t_12;
  }

  /* "cython/core/triangulation.pyx":2737
 *         # Whew!
 * 
 *         failed = False             # <<<<<<<<<<<<<<
 *         if (candidateSn_is_valid(c_representation.image,
 *                                  <int>degree, c_relators, num_relators) and
*/
  __pyx_v_failed = 0;

  /* "cython/core/triangulation.pyx":2739
 *         failed = False
 *         if (candidateSn_is_valid(c_representation.image,
 *                                  <int>degree, c_relators, num_relators) and             # <<<<<<<<<<<<<<
 *             candidateSn_is_transitive(c_representation.image,
 *                                       num_generators, <int>degree) ):
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_relators); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2739, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2738
 * 
 *         failed = False
 *         if (candidateSn_is_valid(c_representation.image,             # <<<<<<<<<<<<<<
 *                                  <int>degree, c_relators, num_relators) and
 *             candidateSn_is_transitive(c_representation.image,
*/
  __pyx_t_15 = candidateSn_is_valid(__pyx_v_c_representation->image, ((int)__pyx_v_degree), __pyx_v_c_relators, __pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2738, __pyx_L1_error)
  __pyx_t_16 = (__pyx_t_15 != 0);
  if (__pyx_t_16) {
  } else {
    __pyx_t_2 = __pyx_t_16;
    goto __pyx_L22_bool_binop_done;
  }

  /* "cython/core/triangulation.pyx":2741
 *                                  <int>degree, c_relators, num_relators) and
 *             candidateSn_is_transitive(c_representation.image,
 *                                       num_generators, <int>degree) ):             # <<<<<<<<<<<<<<
 *             c_repn_in_original_gens = convert_candidateSn_to_original_generators(
 *                 c_representation.image,
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_generators); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2741, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2740
 *         if (candidateSn_is_valid(c_representation.image,
 *                                  <int>degree, c_relators, num_relators) and
 *             candidateSn_is_transitive(c_representation.image,             # <<<<<<<<<<<<<<
 *                                       num_generators, <int>degree) ):
 *             c_repn_in_original_gens = convert_candidateSn_to_original_generators(
*/
  __pyx_t_15 = candidateSn_is_transitive(__pyx_v_c_representation->image, __pyx_t_10, ((int)__pyx_v_degree)); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2740, __pyx_L1_error)
  __pyx_t_16 = (__pyx_t_15 != 0);
  __pyx_t_2 = __pyx_t_16;
  __pyx_L22_bool_binop_done:;

  /* "cython/core/triangulation.pyx":2738
 * 
 *         failed = False
 *         if (candidateSn_is_valid(c_representation.image,             # <<<<<<<<<<<<<<
 *                                  <int>degree, c_relators, num_relators) and
 *             candidateSn_is_transitive(c_representation.image,
*/
  if (__pyx_t_2) {

    /* "cython/core/triangulation.pyx":2745
 *                 c_representation.image,
 *                 <int>degree,
 *                 num_orig_gens,             # <<<<<<<<<<<<<<
 *                 c_original_generators,
 *                 c_triangulation,
*/
    __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_orig_gens); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2745, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2742
 *             candidateSn_is_transitive(c_representation.image,
 *                                       num_generators, <int>degree) ):
 *             c_repn_in_original_gens = convert_candidateSn_to_original_generators(             # <<<<<<<<<<<<<<
 *                 c_representation.image,
 *                 <int>degree,
*/
    __pyx_t_11 = convert_candidateSn_to_original_generators(__pyx_v_c_representation->image, ((int)__pyx_v_degree), __pyx_t_10, __pyx_v_c_original_generators, __pyx_v_c_triangulation, __pyx_v_c_meridians, __pyx_v_c_longitudes); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2742, __pyx_L1_error)
    __pyx_v_c_repn_in_original_gens = __pyx_t_11;

    /* "cython/core/triangulation.pyx":2738
 * 
 *         failed = False
 *         if (candidateSn_is_valid(c_representation.image,             # <<<<<<<<<<<<<<
 *                                  <int>degree, c_relators, num_relators) and
 *             candidateSn_is_transitive(c_representation.image,
*/
    goto __pyx_L21;
  }

  /* "cython/core/triangulation.pyx":2751
 *                 c_longitudes)
 *         else:
 *             message = 'Invalid permutation data.'             # <<<<<<<<<<<<<<
 *             failed = True
 *         if c_repn_in_original_gens == NULL:
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Invalid_permutation_data);
    __pyx_v_message = __pyx_mstate_global->__pyx_kp_u_Invalid_permutation_data;

    /* "cython/core/triangulation.pyx":2752
 *         else:
 *             message = 'Invalid permutation data.'
 *             failed = True             # <<<<<<<<<<<<<<
 *         if c_repn_in_original_gens == NULL:
 *             message = 'Failed to construct permutation representation.'
*/
    __pyx_v_failed = 1;
  }
  __pyx_L21:;

  /* "cython/core/triangulation.pyx":2753
 *             message = 'Invalid permutation data.'
 *             failed = True
 *         if c_repn_in_original_gens == NULL:             # <<<<<<<<<<<<<<
 *             message = 'Failed to construct permutation representation.'
 *             failed = True
*/
  __pyx_t_2 = (__pyx_v_c_repn_in_original_gens == NULL);
  if (__pyx_t_2) {

    /* "cython/core/triangulation.pyx":2754
 *             failed = True
 *         if c_repn_in_original_gens == NULL:
 *             message = 'Failed to construct permutation representation.'             # <<<<<<<<<<<<<<
 *             failed = True
 * 
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Failed_to_construct_permutation);
    __Pyx_XDECREF_SET(__pyx_v_message, __pyx_mstate_global->__pyx_kp_u_Failed_to_construct_permutation);

    /* "cython/core/triangulation.pyx":2755
 *         if c_repn_in_original_gens == NULL:
 *             message = 'Failed to construct permutation representation.'
 *             failed = True             # <<<<<<<<<<<<<<
 * 
 *         # Now free all that memory
*/
    __pyx_v_failed = 1;

    /* "cython/core/triangulation.pyx":2753
 *             message = 'Invalid permutation data.'
 *             failed = True
 *         if c_repn_in_original_gens == NULL:             # <<<<<<<<<<<<<<
 *             message = 'Failed to construct permutation representation.'
 *             failed = True
*/
  }

  /* "cython/core/triangulation.pyx":2758
 * 
 *         # Now free all that memory
 *         for i from 0 <= i < num_cusps:             # <<<<<<<<<<<<<<
 *             free(c_meridians[i])
 *             free(c_longitudes[i])
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_cusps); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2758, __pyx_L1_error)
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_10; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":2759
 *         # Now free all that memory
 *         for i from 0 <= i < num_cusps:
 *             free(c_meridians[i])             # <<<<<<<<<<<<<<
 *             free(c_longitudes[i])
 *         free(c_meridians)
*/
    free((__pyx_v_c_meridians[__pyx_v_i]));

    /* "cython/core/triangulation.pyx":2760
 *         for i from 0 <= i < num_cusps:
 *             free(c_meridians[i])
 *             free(c_longitudes[i])             # <<<<<<<<<<<<<<
 *         free(c_meridians)
 *         free(c_longitudes)
*/
    free((__pyx_v_c_longitudes[__pyx_v_i]));
  }

  /* "cython/core/triangulation.pyx":2761
 *             free(c_meridians[i])
 *             free(c_longitudes[i])
 *         free(c_meridians)             # <<<<<<<<<<<<<<
 *         free(c_longitudes)
 *         for i from 0 <= i < num_relators:
*/
  free(__pyx_v_c_meridians);

  /* "cython/core/triangulation.pyx":2762
 *             free(c_longitudes[i])
 *         free(c_meridians)
 *         free(c_longitudes)             # <<<<<<<<<<<<<<
 *         for i from 0 <= i < num_relators:
 *             free(c_relators[i])
*/
  free(__pyx_v_c_longitudes);

  /* "cython/core/triangulation.pyx":2763
 *         free(c_meridians)
 *         free(c_longitudes)
 *         for i from 0 <= i < num_relators:             # <<<<<<<<<<<<<<
 *             free(c_relators[i])
 *         free(c_relators)
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_relators); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2763, __pyx_L1_error)
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_10; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":2764
 *         free(c_longitudes)
 *         for i from 0 <= i < num_relators:
 *             free(c_relators[i])             # <<<<<<<<<<<<<<
 *         free(c_relators)
 *         for i from 0 <= i < num_orig_gens:
*/
    free((__pyx_v_c_relators[__pyx_v_i]));
  }

  /* "cython/core/triangulation.pyx":2765
 *         for i from 0 <= i < num_relators:
 *             free(c_relators[i])
 *         free(c_relators)             # <<<<<<<<<<<<<<
 *         for i from 0 <= i < num_orig_gens:
 *             free(c_original_generators[i])
*/
  free(__pyx_v_c_relators);

  /* "cython/core/triangulation.pyx":2766
 *             free(c_relators[i])
 *         free(c_relators)
 *         for i from 0 <= i < num_orig_gens:             # <<<<<<<<<<<<<<
 *             free(c_original_generators[i])
 *         free(c_original_generators)
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_orig_gens); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2766, __pyx_L1_error)
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_10; __pyx_v_i++) {

    /* "cython/core/triangulation.pyx":2767
 *         free(c_relators)
 *         for i from 0 <= i < num_orig_gens:
 *             free(c_original_generators[i])             # <<<<<<<<<<<<<<
 *         free(c_original_generators)
 *         free_representation(c_representation, num_generators, num_cusps)
*/
    free((__pyx_v_c_original_generators[__pyx_v_i]));
  }

  /* "cython/core/triangulation.pyx":2768
 *         for i from 0 <= i < num_orig_gens:
 *             free(c_original_generators[i])
 *         free(c_original_generators)             # <<<<<<<<<<<<<<
 *         free_representation(c_representation, num_generators, num_cusps)
 *         # Free at last!
*/
  free(__pyx_v_c_original_generators);

  /* "cython/core/triangulation.pyx":2769
 *             free(c_original_generators[i])
 *         free(c_original_generators)
 *         free_representation(c_representation, num_generators, num_cusps)             # <<<<<<<<<<<<<<
 *         # Free at last!
 * 
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_num_generators); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2769, __pyx_L1_error)
  __pyx_t_9 = __Pyx_PyLong_As_int(__pyx_v_num_cusps); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2769, __pyx_L1_error)
  free_representation(__pyx_v_c_representation, __pyx_t_10, __pyx_t_9); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2769, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":2772
 *         # Free at last!
 * 
 *         if failed:             # <<<<<<<<<<<<<<
 *             raise RuntimeError(message)
 *         return c_repn_in_original_gens
*/
  if (unlikely(__pyx_v_failed)) {

    /* "cython/core/triangulation.pyx":2773
 * 
 *         if failed:
 *             raise RuntimeError(message)             # <<<<<<<<<<<<<<
 *         return c_repn_in_original_gens
 * 
*/
    __pyx_t_5 = NULL;
    if (unlikely(!__pyx_v_message)) { __Pyx_RaiseUnboundLocalError("message"); __PYX_ERR(4, 2773, __pyx_L1_error) }
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_message};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2773, __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_ERR(4, 2773, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2772
 *         # Free at last!
 * 
 *         if failed:             # <<<<<<<<<<<<<<
 *             raise RuntimeError(message)
 *         return c_repn_in_original_gens
*/
  }

  /* "cython/core/triangulation.pyx":2774
 *         if failed:
 *             raise RuntimeError(message)
 *         return c_repn_in_original_gens             # <<<<<<<<<<<<<<
 * 
 *     def set_peripheral_curves(self, peripheral_data,
*/
  __pyx_r = __pyx_v_c_repn_in_original_gens;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2670
 *         return covers
 * 
 *     cdef RepresentationIntoSn *build_rep_into_Sn(self, perm_list) except ? NULL:             # <<<<<<<<<<<<<<
 *         """
 *         Build a SnapPea RepresentationIntoSn from a list of
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("SnapPy.Triangulation.build_rep_into_Sn", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_S);
  __Pyx_XDECREF(__pyx_v_permutation);
  __Pyx_XDECREF(__pyx_v_num_cusps);
  __Pyx_XDECREF(__pyx_v_G);
  __Pyx_XDECREF(__pyx_v_num_generators);
  __Pyx_XDECREF(__pyx_v_relators);
  __Pyx_XDECREF(__pyx_v_num_relators);
  __Pyx_XDECREF(__pyx_v_orig_gens);
  __Pyx_XDECREF(__pyx_v_num_orig_gens);
  __Pyx_XDECREF(__pyx_v_peripheral_curves);
  __Pyx_XDECREF(__pyx_v_meridian);
  __Pyx_XDECREF(__pyx_v_longitude);
  __Pyx_XDECREF(__pyx_v_message);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2776
 *         return c_repn_in_original_gens
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_139set_peripheral_curves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_138set_peripheral_curves, "\n        Each cusp has a preferred marking. In the case of a torus\n        cusp, this is pair of essential simple curves meeting in one\n        point; equivalently, a basis of the first homology of the\n        boundary torus. These curves are called the meridian and the\n        longitude.\n\n        This method changes these markings in various ways.  In many\n        cases, if the flag return_matrices is True then it returns\n        a list of change-of-basis matrices is returned, one per\n        cusp, which will restore the original markings if passed\n        as peripheral_data.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_139set_peripheral_curves = {"set_peripheral_curves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_139set_peripheral_curves, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_138set_peripheral_curves};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_139set_peripheral_curves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_peripheral_data = 0;
  PyObject *__pyx_v_which_cusp = 0;
  PyObject *__pyx_v_return_matrices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_peripheral_curves (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_peripheral_data,&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_return_matrices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2776, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 2776, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2776, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2776, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_peripheral_curves", 0) < (0)) __PYX_ERR(4, 2776, __pyx_L3_error)

      /* "cython/core/triangulation.pyx":2777
 * 
 *     def set_peripheral_curves(self, peripheral_data,
 *                               which_cusp=None, return_matrices=False):             # <<<<<<<<<<<<<<
 *         """
 *         Each cusp has a preferred marking. In the case of a torus
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_peripheral_curves", 0, 1, 3, i); __PYX_ERR(4, 2776, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 2776, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2776, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2776, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_peripheral_data = values[0];
    __pyx_v_which_cusp = values[1];
    __pyx_v_return_matrices = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_peripheral_curves", 0, 1, 3, __pyx_nargs); __PYX_ERR(4, 2776, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.set_peripheral_curves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_138set_peripheral_curves(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_peripheral_data, __pyx_v_which_cusp, __pyx_v_return_matrices);

  /* "cython/core/triangulation.pyx":2776
 *         return c_repn_in_original_gens
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_138set_peripheral_curves(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_peripheral_data, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_return_matrices) {
  int __pyx_v_a;
  int __pyx_v_b;
  int __pyx_v_c;
  int __pyx_v_d;
  MatrixInt22 *__pyx_v_matrices;
  FuncResult __pyx_v_result;
  PyObject *__pyx_v_cobs = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_meridian = NULL;
  PyObject *__pyx_v_longitude = NULL;
  PyObject *__pyx_v_i = NULL;
  long __pyx_v_j;
  PyObject *__pyx_v_basis = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  Py_ssize_t __pyx_t_9;
  int __pyx_t_10;
  PyObject *(*__pyx_t_11)(PyObject *);
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_t_14;
  long __pyx_t_15;
  Py_ssize_t __pyx_t_16;
  Py_ssize_t __pyx_t_17;
  FuncResult __pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20[9];
  PyObject *__pyx_t_21 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_peripheral_curves", 0);
  __Pyx_INCREF(__pyx_v_which_cusp);

  /* "cython/core/triangulation.pyx":2795
 *         cdef c_FuncResult result
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":2796
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty')             # <<<<<<<<<<<<<<
 * 
 *         if which_cusp is not None:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty_2};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2796, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 2796, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2795
 *         cdef c_FuncResult result
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":2798
 *             raise ValueError('The Triangulation is empty')
 * 
 *         if which_cusp is not None:             # <<<<<<<<<<<<<<
 *             which_cusp = valid_index(
 *                 which_cusp, self.num_cusps(),
*/
  __pyx_t_1 = (__pyx_v_which_cusp != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2799
 * 
 *         if which_cusp is not None:
 *             which_cusp = valid_index(             # <<<<<<<<<<<<<<
 *                 which_cusp, self.num_cusps(),
 *                 'The specified cusp (%s) does not exist.')
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2799, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "cython/core/triangulation.pyx":2800
 *         if which_cusp is not None:
 *             which_cusp = valid_index(
 *                 which_cusp, self.num_cusps(),             # <<<<<<<<<<<<<<
 *                 'The specified cusp (%s) does not exist.')
 * 
*/
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2800, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_which_cusp, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_The_specified_cusp_s_does_not_ex};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF_SET(__pyx_v_which_cusp, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2798
 *             raise ValueError('The Triangulation is empty')
 * 
 *         if which_cusp is not None:             # <<<<<<<<<<<<<<
 *             which_cusp = valid_index(
 *                 which_cusp, self.num_cusps(),
*/
  }

  /* "cython/core/triangulation.pyx":2803
 *                 'The specified cusp (%s) does not exist.')
 * 
 *         self._cache.clear(message='set_peripheral_curves')             # <<<<<<<<<<<<<<
 *         if peripheral_data == 'fillings':
 *             if which_cusp is not None:
*/
  __pyx_t_5 = __pyx_v_self->_cache;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2803, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_n_u_set_peripheral_curves, __pyx_t_6, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 2803, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2803, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":2804
 * 
 *         self._cache.clear(message='set_peripheral_curves')
 *         if peripheral_data == 'fillings':             # <<<<<<<<<<<<<<
 *             if which_cusp is not None:
 *                 raise ValueError("You must apply 'fillings' to all "
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_peripheral_data, __pyx_mstate_global->__pyx_n_u_fillings, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2804, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2805
 *         self._cache.clear(message='set_peripheral_curves')
 *         if peripheral_data == 'fillings':
 *             if which_cusp is not None:             # <<<<<<<<<<<<<<
 *                 raise ValueError("You must apply 'fillings' to all "
 *                                  "of the cusps.")
*/
    __pyx_t_1 = (__pyx_v_which_cusp != Py_None);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/triangulation.pyx":2806
 *         if peripheral_data == 'fillings':
 *             if which_cusp is not None:
 *                 raise ValueError("You must apply 'fillings' to all "             # <<<<<<<<<<<<<<
 *                                  "of the cusps.")
 *             install_current_curve_bases(self.c_triangulation)
*/
      __pyx_t_6 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_You_must_apply_fillings_to_all_o};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2806, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(4, 2806, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":2805
 *         self._cache.clear(message='set_peripheral_curves')
 *         if peripheral_data == 'fillings':
 *             if which_cusp is not None:             # <<<<<<<<<<<<<<
 *                 raise ValueError("You must apply 'fillings' to all "
 *                                  "of the cusps.")
*/
    }

    /* "cython/core/triangulation.pyx":2808
 *                 raise ValueError("You must apply 'fillings' to all "
 *                                  "of the cusps.")
 *             install_current_curve_bases(self.c_triangulation)             # <<<<<<<<<<<<<<
 *             return
 *         elif peripheral_data == 'combinatorial':
*/
    install_current_curve_bases(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2808, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":2809
 *                                  "of the cusps.")
 *             install_current_curve_bases(self.c_triangulation)
 *             return             # <<<<<<<<<<<<<<
 *         elif peripheral_data == 'combinatorial':
 *             if return_matrices:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2804
 * 
 *         self._cache.clear(message='set_peripheral_curves')
 *         if peripheral_data == 'fillings':             # <<<<<<<<<<<<<<
 *             if which_cusp is not None:
 *                 raise ValueError("You must apply 'fillings' to all "
*/
  }

  /* "cython/core/triangulation.pyx":2810
 *             install_current_curve_bases(self.c_triangulation)
 *             return
 *         elif peripheral_data == 'combinatorial':             # <<<<<<<<<<<<<<
 *             if return_matrices:
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_peripheral_data, __pyx_mstate_global->__pyx_n_u_combinatorial, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2810, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2811
 *             return
 *         elif peripheral_data == 'combinatorial':
 *             if return_matrices:             # <<<<<<<<<<<<<<
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                                  sizeof(MatrixInt22))
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_return_matrices); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2811, __pyx_L1_error)
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2812
 *         elif peripheral_data == 'combinatorial':
 *             if return_matrices:
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *             # <<<<<<<<<<<<<<
 *                                                  sizeof(MatrixInt22))
 *                 install_combinatorial_bases(self.c_triangulation, matrices)
*/
      __pyx_t_6 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2812, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }

      /* "cython/core/triangulation.pyx":2813
 *             if return_matrices:
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                                  sizeof(MatrixInt22))             # <<<<<<<<<<<<<<
 *                 install_combinatorial_bases(self.c_triangulation, matrices)
 *                 cobs = []
*/
      __pyx_t_6 = __Pyx_PyLong_FromSize_t((sizeof(MatrixInt22))); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2813, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);

      /* "cython/core/triangulation.pyx":2812
 *         elif peripheral_data == 'combinatorial':
 *             if return_matrices:
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *             # <<<<<<<<<<<<<<
 *                                                  sizeof(MatrixInt22))
 *                 install_combinatorial_bases(self.c_triangulation, matrices)
*/
      __pyx_t_5 = PyNumber_Multiply(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2812, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_5); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2812, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_matrices = ((MatrixInt22 *)malloc(__pyx_t_4));

      /* "cython/core/triangulation.pyx":2814
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                                  sizeof(MatrixInt22))
 *                 install_combinatorial_bases(self.c_triangulation, matrices)             # <<<<<<<<<<<<<<
 *                 cobs = []
 *                 for n in range(self.num_cusps()):
*/
      install_combinatorial_bases(__pyx_v_self->c_triangulation, __pyx_v_matrices);

      /* "cython/core/triangulation.pyx":2815
 *                                                  sizeof(MatrixInt22))
 *                 install_combinatorial_bases(self.c_triangulation, matrices)
 *                 cobs = []             # <<<<<<<<<<<<<<
 *                 for n in range(self.num_cusps()):
 *                     cobs.append([ [ matrices[n][0][0], matrices[n][0][1] ],
*/
      __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2815, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_v_cobs = ((PyObject*)__pyx_t_5);
      __pyx_t_5 = 0;

      /* "cython/core/triangulation.pyx":2816
 *                 install_combinatorial_bases(self.c_triangulation, matrices)
 *                 cobs = []
 *                 for n in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                     cobs.append([ [ matrices[n][0][0], matrices[n][0][1] ],
 *                                   [ matrices[n][1][0], matrices[n][1][1] ] ])
*/
      __pyx_t_6 = NULL;
      __pyx_t_3 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2816, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_2};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2816, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __pyx_t_2 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2816, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2816, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      for (;;) {
        {
          __pyx_t_5 = __pyx_t_8(__pyx_t_2);
          if (unlikely(!__pyx_t_5)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2816, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_5);
        __pyx_t_5 = 0;

        /* "cython/core/triangulation.pyx":2817
 *                 cobs = []
 *                 for n in range(self.num_cusps()):
 *                     cobs.append([ [ matrices[n][0][0], matrices[n][0][1] ],             # <<<<<<<<<<<<<<
 *                                   [ matrices[n][1][0], matrices[n][1][1] ] ])
 *                 free(matrices)
*/
        __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2817, __pyx_L1_error)
        __pyx_t_5 = __Pyx_PyLong_From_int((((__pyx_v_matrices[__pyx_t_9])[0])[0])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2817, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2817, __pyx_L1_error)
        __pyx_t_6 = __Pyx_PyLong_From_int((((__pyx_v_matrices[__pyx_t_9])[0])[1])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2817, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2817, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_5) != (0)) __PYX_ERR(4, 2817, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_t_6) != (0)) __PYX_ERR(4, 2817, __pyx_L1_error);
        __pyx_t_5 = 0;
        __pyx_t_6 = 0;

        /* "cython/core/triangulation.pyx":2818
 *                 for n in range(self.num_cusps()):
 *                     cobs.append([ [ matrices[n][0][0], matrices[n][0][1] ],
 *                                   [ matrices[n][1][0], matrices[n][1][1] ] ])             # <<<<<<<<<<<<<<
 *                 free(matrices)
 *                 return cobs
*/
        __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2818, __pyx_L1_error)
        __pyx_t_6 = __Pyx_PyLong_From_int((((__pyx_v_matrices[__pyx_t_9])[1])[0])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2818, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2818, __pyx_L1_error)
        __pyx_t_5 = __Pyx_PyLong_From_int((((__pyx_v_matrices[__pyx_t_9])[1])[1])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2818, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = PyList_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2818, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(4, 2818, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_7, 1, __pyx_t_5) != (0)) __PYX_ERR(4, 2818, __pyx_L1_error);
        __pyx_t_6 = 0;
        __pyx_t_5 = 0;

        /* "cython/core/triangulation.pyx":2817
 *                 cobs = []
 *                 for n in range(self.num_cusps()):
 *                     cobs.append([ [ matrices[n][0][0], matrices[n][0][1] ],             # <<<<<<<<<<<<<<
 *                                   [ matrices[n][1][0], matrices[n][1][1] ] ])
 *                 free(matrices)
*/
        __pyx_t_5 = PyList_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2817, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_3) != (0)) __PYX_ERR(4, 2817, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_7);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 1, __pyx_t_7) != (0)) __PYX_ERR(4, 2817, __pyx_L1_error);
        __pyx_t_3 = 0;
        __pyx_t_7 = 0;
        __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_cobs, __pyx_t_5); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(4, 2817, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cython/core/triangulation.pyx":2816
 *                 install_combinatorial_bases(self.c_triangulation, matrices)
 *                 cobs = []
 *                 for n in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                     cobs.append([ [ matrices[n][0][0], matrices[n][0][1] ],
 *                                   [ matrices[n][1][0], matrices[n][1][1] ] ])
*/
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2819
 *                     cobs.append([ [ matrices[n][0][0], matrices[n][0][1] ],
 *                                   [ matrices[n][1][0], matrices[n][1][1] ] ])
 *                 free(matrices)             # <<<<<<<<<<<<<<
 *                 return cobs
 *             else:
*/
      free(__pyx_v_matrices);

      /* "cython/core/triangulation.pyx":2820
 *                                   [ matrices[n][1][0], matrices[n][1][1] ] ])
 *                 free(matrices)
 *                 return cobs             # <<<<<<<<<<<<<<
 *             else:
 *                 peripheral_curves(self.c_triangulation)
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_cobs);
      __pyx_r = __pyx_v_cobs;
      goto __pyx_L0;

      /* "cython/core/triangulation.pyx":2811
 *             return
 *         elif peripheral_data == 'combinatorial':
 *             if return_matrices:             # <<<<<<<<<<<<<<
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                                  sizeof(MatrixInt22))
*/
    }

    /* "cython/core/triangulation.pyx":2822
 *                 return cobs
 *             else:
 *                 peripheral_curves(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         elif which_cusp is not None:
 *             meridian, longitude = peripheral_data
*/
    /*else*/ {
      peripheral_curves(__pyx_v_self->c_triangulation);
    }

    /* "cython/core/triangulation.pyx":2810
 *             install_current_curve_bases(self.c_triangulation)
 *             return
 *         elif peripheral_data == 'combinatorial':             # <<<<<<<<<<<<<<
 *             if return_matrices:
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
*/
    goto __pyx_L5;
  }

  /* "cython/core/triangulation.pyx":2823
 *             else:
 *                 peripheral_curves(self.c_triangulation)
 *         elif which_cusp is not None:             # <<<<<<<<<<<<<<
 *             meridian, longitude = peripheral_data
 *             a, b = meridian
*/
  __pyx_t_1 = (__pyx_v_which_cusp != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2824
 *                 peripheral_curves(self.c_triangulation)
 *         elif which_cusp is not None:
 *             meridian, longitude = peripheral_data             # <<<<<<<<<<<<<<
 *             a, b = meridian
 *             c, d = longitude
*/
    if ((likely(PyTuple_CheckExact(__pyx_v_peripheral_data))) || (PyList_CheckExact(__pyx_v_peripheral_data))) {
      PyObject* sequence = __pyx_v_peripheral_data;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 2824, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
      } else {
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2824, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2824, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
      }
      #else
      __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2824, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2824, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
    } else {
      Py_ssize_t index = -1;
      __pyx_t_7 = PyObject_GetIter(__pyx_v_peripheral_data); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2824, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
      index = 0; __pyx_t_2 = __pyx_t_11(__pyx_t_7); if (unlikely(!__pyx_t_2)) goto __pyx_L11_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_2);
      index = 1; __pyx_t_5 = __pyx_t_11(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L11_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_7), 2) < (0)) __PYX_ERR(4, 2824, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L12_unpacking_done;
      __pyx_L11_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 2824, __pyx_L1_error)
      __pyx_L12_unpacking_done:;
    }
    __pyx_v_meridian = __pyx_t_2;
    __pyx_t_2 = 0;
    __pyx_v_longitude = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":2825
 *         elif which_cusp is not None:
 *             meridian, longitude = peripheral_data
 *             a, b = meridian             # <<<<<<<<<<<<<<
 *             c, d = longitude
 *             if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
*/
    if ((likely(PyTuple_CheckExact(__pyx_v_meridian))) || (PyList_CheckExact(__pyx_v_meridian))) {
      PyObject* sequence = __pyx_v_meridian;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 2825, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_5);
        __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_2);
      } else {
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2825, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2825, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_2);
      }
      #else
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2825, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2825, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      #endif
    } else {
      Py_ssize_t index = -1;
      __pyx_t_7 = PyObject_GetIter(__pyx_v_meridian); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2825, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
      index = 0; __pyx_t_5 = __pyx_t_11(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L13_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_2 = __pyx_t_11(__pyx_t_7); if (unlikely(!__pyx_t_2)) goto __pyx_L13_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_2);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_7), 2) < (0)) __PYX_ERR(4, 2825, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L14_unpacking_done;
      __pyx_L13_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 2825, __pyx_L1_error)
      __pyx_L14_unpacking_done:;
    }
    __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2825, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_13 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2825, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_a = __pyx_t_12;
    __pyx_v_b = __pyx_t_13;

    /* "cython/core/triangulation.pyx":2826
 *             meridian, longitude = peripheral_data
 *             a, b = meridian
 *             c, d = longitude             # <<<<<<<<<<<<<<
 *             if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
 *                 if self.is_orientable():
*/
    if ((likely(PyTuple_CheckExact(__pyx_v_longitude))) || (PyList_CheckExact(__pyx_v_longitude))) {
      PyObject* sequence = __pyx_v_longitude;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(4, 2826, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_5);
      } else {
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2826, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2826, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_5);
      }
      #else
      __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2826, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2826, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
    } else {
      Py_ssize_t index = -1;
      __pyx_t_7 = PyObject_GetIter(__pyx_v_longitude); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2826, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
      index = 0; __pyx_t_2 = __pyx_t_11(__pyx_t_7); if (unlikely(!__pyx_t_2)) goto __pyx_L15_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_2);
      index = 1; __pyx_t_5 = __pyx_t_11(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L15_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_7), 2) < (0)) __PYX_ERR(4, 2826, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L16_unpacking_done;
      __pyx_L15_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(4, 2826, __pyx_L1_error)
      __pyx_L16_unpacking_done:;
    }
    __pyx_t_13 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2826, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2826, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_c = __pyx_t_13;
    __pyx_v_d = __pyx_t_12;

    /* "cython/core/triangulation.pyx":2827
 *             a, b = meridian
 *             c, d = longitude
 *             if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):             # <<<<<<<<<<<<<<
 *                 if self.is_orientable():
 *                     raise ValueError('The data provided does not give a '
*/
    __pyx_t_14 = (((__pyx_v_a * __pyx_v_d) - (__pyx_v_b * __pyx_v_c)) != 1);
    if (__pyx_t_14) {
    } else {
      __pyx_t_1 = __pyx_t_14;
      goto __pyx_L18_bool_binop_done;
    }
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2827, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(4, 2827, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (!__pyx_t_14) {
    } else {
      __pyx_t_1 = __pyx_t_14;
      goto __pyx_L18_bool_binop_done;
    }
    __pyx_t_14 = (((__pyx_v_a * __pyx_v_d) - (__pyx_v_b * __pyx_v_c)) != -1L);
    __pyx_t_1 = __pyx_t_14;
    __pyx_L18_bool_binop_done:;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2828
 *             c, d = longitude
 *             if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
 *                 if self.is_orientable():             # <<<<<<<<<<<<<<
 *                     raise ValueError('The data provided does not give a '
 *                                      '(positively oriented) basis.')
*/
      __pyx_t_2 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2828, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2828, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(__pyx_t_1)) {

        /* "cython/core/triangulation.pyx":2829
 *             if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
 *                 if self.is_orientable():
 *                     raise ValueError('The data provided does not give a '             # <<<<<<<<<<<<<<
 *                                      '(positively oriented) basis.')
 *                 else:
*/
        __pyx_t_2 = NULL;
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_data_provided_does_not_give};
          __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2829, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_Raise(__pyx_t_5, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __PYX_ERR(4, 2829, __pyx_L1_error)

        /* "cython/core/triangulation.pyx":2828
 *             c, d = longitude
 *             if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
 *                 if self.is_orientable():             # <<<<<<<<<<<<<<
 *                     raise ValueError('The data provided does not give a '
 *                                      '(positively oriented) basis.')
*/
      }

      /* "cython/core/triangulation.pyx":2832
 *                                      '(positively oriented) basis.')
 *                 else:
 *                     raise ValueError('The data provided does not give a basis.')             # <<<<<<<<<<<<<<
 * 
 *             if 'Klein' in self.cusp_info(which_cusp)['topology']:
*/
      /*else*/ {
        __pyx_t_2 = NULL;
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_data_provided_does_not_give_2};
          __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2832, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_Raise(__pyx_t_5, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __PYX_ERR(4, 2832, __pyx_L1_error)
      }

      /* "cython/core/triangulation.pyx":2827
 *             a, b = meridian
 *             c, d = longitude
 *             if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):             # <<<<<<<<<<<<<<
 *                 if self.is_orientable():
 *                     raise ValueError('The data provided does not give a '
*/
    }

    /* "cython/core/triangulation.pyx":2834
 *                     raise ValueError('The data provided does not give a basis.')
 * 
 *             if 'Klein' in self.cusp_info(which_cusp)['topology']:             # <<<<<<<<<<<<<<
 *                 if b != 0 or c != 0:
 *                     raise ValueError('The data provided are invalid for Klein '
*/
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2834, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_topology); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2834, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_Klein, __pyx_t_2, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2834, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2835
 * 
 *             if 'Klein' in self.cusp_info(which_cusp)['topology']:
 *                 if b != 0 or c != 0:             # <<<<<<<<<<<<<<
 *                     raise ValueError('The data provided are invalid for Klein '
 *                                      'bottle cusps.')
*/
      __pyx_t_14 = (__pyx_v_b != 0);
      if (!__pyx_t_14) {
      } else {
        __pyx_t_1 = __pyx_t_14;
        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_14 = (__pyx_v_c != 0);
      __pyx_t_1 = __pyx_t_14;
      __pyx_L24_bool_binop_done:;
      if (unlikely(__pyx_t_1)) {

        /* "cython/core/triangulation.pyx":2836
 *             if 'Klein' in self.cusp_info(which_cusp)['topology']:
 *                 if b != 0 or c != 0:
 *                     raise ValueError('The data provided are invalid for Klein '             # <<<<<<<<<<<<<<
 *                                      'bottle cusps.')
 * 
*/
        __pyx_t_5 = NULL;
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_The_data_provided_are_invalid_fo};
          __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2836, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __Pyx_Raise(__pyx_t_2, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __PYX_ERR(4, 2836, __pyx_L1_error)

        /* "cython/core/triangulation.pyx":2835
 * 
 *             if 'Klein' in self.cusp_info(which_cusp)['topology']:
 *                 if b != 0 or c != 0:             # <<<<<<<<<<<<<<
 *                     raise ValueError('The data provided are invalid for Klein '
 *                                      'bottle cusps.')
*/
      }

      /* "cython/core/triangulation.pyx":2834
 *                     raise ValueError('The data provided does not give a basis.')
 * 
 *             if 'Klein' in self.cusp_info(which_cusp)['topology']:             # <<<<<<<<<<<<<<
 *                 if b != 0 or c != 0:
 *                     raise ValueError('The data provided are invalid for Klein '
*/
    }

    /* "cython/core/triangulation.pyx":2839
 *                                      'bottle cusps.')
 * 
 *             matrices = <MatrixInt22 *>malloc(self.num_cusps() *             # <<<<<<<<<<<<<<
 *                                              sizeof(MatrixInt22))
 * 
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2839, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }

    /* "cython/core/triangulation.pyx":2840
 * 
 *             matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                              sizeof(MatrixInt22))             # <<<<<<<<<<<<<<
 * 
 *             for n in range(self.num_cusps()):
*/
    __pyx_t_5 = __Pyx_PyLong_FromSize_t((sizeof(MatrixInt22))); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2840, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "cython/core/triangulation.pyx":2839
 *                                      'bottle cusps.')
 * 
 *             matrices = <MatrixInt22 *>malloc(self.num_cusps() *             # <<<<<<<<<<<<<<
 *                                              sizeof(MatrixInt22))
 * 
*/
    __pyx_t_7 = PyNumber_Multiply(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_7); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2839, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_v_matrices = ((MatrixInt22 *)malloc(__pyx_t_4));

    /* "cython/core/triangulation.pyx":2842
 *                                              sizeof(MatrixInt22))
 * 
 *             for n in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                 for i,j in [(0,0),(0,1),(1,0),(1,1)]:
 *                     matrices[n][i][j] = 1 if i == j else 0
*/
    __pyx_t_5 = NULL;
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2842, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_2};
      __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2842, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_2 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2842, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2842, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    for (;;) {
      {
        __pyx_t_7 = __pyx_t_8(__pyx_t_2);
        if (unlikely(!__pyx_t_7)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2842, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "cython/core/triangulation.pyx":2843
 * 
 *             for n in range(self.num_cusps()):
 *                 for i,j in [(0,0),(0,1),(1,0),(1,1)]:             # <<<<<<<<<<<<<<
 *                     matrices[n][i][j] = 1 if i == j else 0
 * 
*/
      __pyx_t_7 = __pyx_mstate_global->__pyx_tuple[16]; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_9 = 0;
      for (;;) {
        if (__pyx_t_9 >= 4) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_9));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_9);
        #endif
        ++__pyx_t_9;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2843, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (likely(__pyx_t_5 != Py_None)) {
          PyObject* sequence = __pyx_t_5;
          Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(4, 2843, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_6);
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2843, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2843, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          #endif
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        } else {
          __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(4, 2843, __pyx_L1_error)
        }
        __pyx_t_15 = __Pyx_PyLong_As_long(__pyx_t_6); if (unlikely((__pyx_t_15 == (long)-1) && PyErr_Occurred())) __PYX_ERR(4, 2843, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
        __pyx_t_3 = 0;
        __pyx_v_j = __pyx_t_15;

        /* "cython/core/triangulation.pyx":2844
 *             for n in range(self.num_cusps()):
 *                 for i,j in [(0,0),(0,1),(1,0),(1,1)]:
 *                     matrices[n][i][j] = 1 if i == j else 0             # <<<<<<<<<<<<<<
 * 
 *             matrices[which_cusp][0][0] = a
*/
        __pyx_t_5 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2844, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PyObject_RichCompare(__pyx_v_i, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2844, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2844, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (__pyx_t_1) {
          __pyx_t_12 = 1;
        } else {
          __pyx_t_12 = 0;
        }
        __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2844, __pyx_L1_error)
        __pyx_t_17 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_17 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2844, __pyx_L1_error)
        (((__pyx_v_matrices[__pyx_t_16])[__pyx_t_17])[__pyx_v_j]) = __pyx_t_12;

        /* "cython/core/triangulation.pyx":2843
 * 
 *             for n in range(self.num_cusps()):
 *                 for i,j in [(0,0),(0,1),(1,0),(1,1)]:             # <<<<<<<<<<<<<<
 *                     matrices[n][i][j] = 1 if i == j else 0
 * 
*/
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cython/core/triangulation.pyx":2842
 *                                              sizeof(MatrixInt22))
 * 
 *             for n in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                 for i,j in [(0,0),(0,1),(1,0),(1,1)]:
 *                     matrices[n][i][j] = 1 if i == j else 0
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":2846
 *                     matrices[n][i][j] = 1 if i == j else 0
 * 
 *             matrices[which_cusp][0][0] = a             # <<<<<<<<<<<<<<
 *             matrices[which_cusp][0][1] = b
 *             matrices[which_cusp][1][0] = c
*/
    __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_which_cusp); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2846, __pyx_L1_error)
    (((__pyx_v_matrices[__pyx_t_9])[0])[0]) = __pyx_v_a;

    /* "cython/core/triangulation.pyx":2847
 * 
 *             matrices[which_cusp][0][0] = a
 *             matrices[which_cusp][0][1] = b             # <<<<<<<<<<<<<<
 *             matrices[which_cusp][1][0] = c
 *             matrices[which_cusp][1][1] = d
*/
    __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_which_cusp); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2847, __pyx_L1_error)
    (((__pyx_v_matrices[__pyx_t_9])[0])[1]) = __pyx_v_b;

    /* "cython/core/triangulation.pyx":2848
 *             matrices[which_cusp][0][0] = a
 *             matrices[which_cusp][0][1] = b
 *             matrices[which_cusp][1][0] = c             # <<<<<<<<<<<<<<
 *             matrices[which_cusp][1][1] = d
 *             if self.is_orientable():
*/
    __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_which_cusp); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2848, __pyx_L1_error)
    (((__pyx_v_matrices[__pyx_t_9])[1])[0]) = __pyx_v_c;

    /* "cython/core/triangulation.pyx":2849
 *             matrices[which_cusp][0][1] = b
 *             matrices[which_cusp][1][0] = c
 *             matrices[which_cusp][1][1] = d             # <<<<<<<<<<<<<<
 *             if self.is_orientable():
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)
*/
    __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_which_cusp); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2849, __pyx_L1_error)
    (((__pyx_v_matrices[__pyx_t_9])[1])[1]) = __pyx_v_d;

    /* "cython/core/triangulation.pyx":2850
 *             matrices[which_cusp][1][0] = c
 *             matrices[which_cusp][1][1] = d
 *             if self.is_orientable():             # <<<<<<<<<<<<<<
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)
 *             else:
*/
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2850, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2850, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2851
 *             matrices[which_cusp][1][1] = d
 *             if self.is_orientable():
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)             # <<<<<<<<<<<<<<
 *             else:
 *                 result = change_peripheral_curves_nonorientable(
*/
      __pyx_t_18 = change_peripheral_curves(__pyx_v_self->c_triangulation, __pyx_v_matrices); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2851, __pyx_L1_error)
      __pyx_v_result = __pyx_t_18;

      /* "cython/core/triangulation.pyx":2850
 *             matrices[which_cusp][1][0] = c
 *             matrices[which_cusp][1][1] = d
 *             if self.is_orientable():             # <<<<<<<<<<<<<<
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)
 *             else:
*/
      goto __pyx_L32;
    }

    /* "cython/core/triangulation.pyx":2853
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)
 *             else:
 *                 result = change_peripheral_curves_nonorientable(             # <<<<<<<<<<<<<<
 *                     self.c_triangulation, matrices)
 *             free(matrices)
*/
    /*else*/ {

      /* "cython/core/triangulation.pyx":2854
 *             else:
 *                 result = change_peripheral_curves_nonorientable(
 *                     self.c_triangulation, matrices)             # <<<<<<<<<<<<<<
 *             free(matrices)
 *             if result == func_bad_input:
*/
      __pyx_v_result = change_peripheral_curves_nonorientable(__pyx_v_self->c_triangulation, __pyx_v_matrices);
    }
    __pyx_L32:;

    /* "cython/core/triangulation.pyx":2855
 *                 result = change_peripheral_curves_nonorientable(
 *                     self.c_triangulation, matrices)
 *             free(matrices)             # <<<<<<<<<<<<<<
 *             if result == func_bad_input:
 *                 raise ValueError('The peripheral data ((%d, %d), (%d,%d)) '
*/
    free(__pyx_v_matrices);

    /* "cython/core/triangulation.pyx":2856
 *                     self.c_triangulation, matrices)
 *             free(matrices)
 *             if result == func_bad_input:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The peripheral data ((%d, %d), (%d,%d)) '
 *                                  'is not acceptable.' % (a,b,c,d))
*/
    __pyx_t_1 = (__pyx_v_result == func_bad_input);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/triangulation.pyx":2857
 *             free(matrices)
 *             if result == func_bad_input:
 *                 raise ValueError('The peripheral data ((%d, %d), (%d,%d)) '             # <<<<<<<<<<<<<<
 *                                  'is not acceptable.' % (a,b,c,d))
 * 
*/
      __pyx_t_7 = NULL;

      /* "cython/core/triangulation.pyx":2858
 *             if result == func_bad_input:
 *                 raise ValueError('The peripheral data ((%d, %d), (%d,%d)) '
 *                                  'is not acceptable.' % (a,b,c,d))             # <<<<<<<<<<<<<<
 * 
 *         else:
*/
      __pyx_t_6 = __Pyx_PyUnicode_From_int(__pyx_v_a, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2858, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyUnicode_From_int(__pyx_v_b, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2858, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_c, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2858, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_19 = __Pyx_PyUnicode_From_int(__pyx_v_d, 0, ' ', 'd'); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 2858, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_19);
      __pyx_t_20[0] = __pyx_mstate_global->__pyx_kp_u_The_peripheral_data;
      __pyx_t_20[1] = __pyx_t_6;
      __pyx_t_20[2] = __pyx_mstate_global->__pyx_kp_u__3;
      __pyx_t_20[3] = __pyx_t_5;
      __pyx_t_20[4] = __pyx_mstate_global->__pyx_kp_u__27;
      __pyx_t_20[5] = __pyx_t_3;
      __pyx_t_20[6] = __pyx_mstate_global->__pyx_kp_u__28;
      __pyx_t_20[7] = __pyx_t_19;
      __pyx_t_20[8] = __pyx_mstate_global->__pyx_kp_u_is_not_acceptable;

      /* "cython/core/triangulation.pyx":2857
 *             free(matrices)
 *             if result == func_bad_input:
 *                 raise ValueError('The peripheral data ((%d, %d), (%d,%d)) '             # <<<<<<<<<<<<<<
 *                                  'is not acceptable.' % (a,b,c,d))
 * 
*/
      __pyx_t_21 = __Pyx_PyUnicode_Join(__pyx_t_20, 9, 22 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6) + 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 4 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_19) + 21, 127);
      if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2857, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_21};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2857, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(4, 2857, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":2856
 *                     self.c_triangulation, matrices)
 *             free(matrices)
 *             if result == func_bad_input:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The peripheral data ((%d, %d), (%d,%d)) '
 *                                  'is not acceptable.' % (a,b,c,d))
*/
    }

    /* "cython/core/triangulation.pyx":2823
 *             else:
 *                 peripheral_curves(self.c_triangulation)
 *         elif which_cusp is not None:             # <<<<<<<<<<<<<<
 *             meridian, longitude = peripheral_data
 *             a, b = meridian
*/
    goto __pyx_L5;
  }

  /* "cython/core/triangulation.pyx":2861
 * 
 *         else:
 *             if self.num_cusps() == 1 and len(peripheral_data) == 2:             # <<<<<<<<<<<<<<
 *                 self.set_peripheral_curves(peripheral_data, 0)
 *                 return
*/
  /*else*/ {
    __pyx_t_21 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_21);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_21, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2861, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_14 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(4, 2861, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_14) {
    } else {
      __pyx_t_1 = __pyx_t_14;
      goto __pyx_L35_bool_binop_done;
    }
    __pyx_t_9 = PyObject_Length(__pyx_v_peripheral_data); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2861, __pyx_L1_error)
    __pyx_t_14 = (__pyx_t_9 == 2);
    __pyx_t_1 = __pyx_t_14;
    __pyx_L35_bool_binop_done:;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2862
 *         else:
 *             if self.num_cusps() == 1 and len(peripheral_data) == 2:
 *                 self.set_peripheral_curves(peripheral_data, 0)             # <<<<<<<<<<<<<<
 *                 return
 *             if len(peripheral_data) > self.num_cusps():
*/
      __pyx_t_21 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_21);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_21, __pyx_v_peripheral_data, __pyx_mstate_global->__pyx_int_0};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_peripheral_curves, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2862, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2863
 *             if self.num_cusps() == 1 and len(peripheral_data) == 2:
 *                 self.set_peripheral_curves(peripheral_data, 0)
 *                 return             # <<<<<<<<<<<<<<
 *             if len(peripheral_data) > self.num_cusps():
 *                 raise IndexError('You provided more peripheral data '
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      goto __pyx_L0;

      /* "cython/core/triangulation.pyx":2861
 * 
 *         else:
 *             if self.num_cusps() == 1 and len(peripheral_data) == 2:             # <<<<<<<<<<<<<<
 *                 self.set_peripheral_curves(peripheral_data, 0)
 *                 return
*/
    }

    /* "cython/core/triangulation.pyx":2864
 *                 self.set_peripheral_curves(peripheral_data, 0)
 *                 return
 *             if len(peripheral_data) > self.num_cusps():             # <<<<<<<<<<<<<<
 *                 raise IndexError('You provided more peripheral data '
 *                                  'than there are cusps.')
*/
    __pyx_t_9 = PyObject_Length(__pyx_v_peripheral_data); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(4, 2864, __pyx_L1_error)
    __pyx_t_2 = PyLong_FromSsize_t(__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2864, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
      __pyx_t_21 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2864, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
    }
    __pyx_t_7 = PyObject_RichCompare(__pyx_t_2, __pyx_t_21, Py_GT); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2864, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2864, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/triangulation.pyx":2865
 *                 return
 *             if len(peripheral_data) > self.num_cusps():
 *                 raise IndexError('You provided more peripheral data '             # <<<<<<<<<<<<<<
 *                                  'than there are cusps.')
 * 
*/
      __pyx_t_21 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_21, __pyx_mstate_global->__pyx_kp_u_You_provided_more_peripheral_dat};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2865, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_Raise(__pyx_t_7, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __PYX_ERR(4, 2865, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":2864
 *                 self.set_peripheral_curves(peripheral_data, 0)
 *                 return
 *             if len(peripheral_data) > self.num_cusps():             # <<<<<<<<<<<<<<
 *                 raise IndexError('You provided more peripheral data '
 *                                  'than there are cusps.')
*/
    }

    /* "cython/core/triangulation.pyx":2868
 *                                  'than there are cusps.')
 * 
 *             matrices = <MatrixInt22 *>malloc(self.num_cusps() *             # <<<<<<<<<<<<<<
 *                                              sizeof(MatrixInt22))
 * 
*/
    __pyx_t_21 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_21);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_21, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2868, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }

    /* "cython/core/triangulation.pyx":2869
 * 
 *             matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                              sizeof(MatrixInt22))             # <<<<<<<<<<<<<<
 * 
 *             for n in range(self.num_cusps()):
*/
    __pyx_t_21 = __Pyx_PyLong_FromSize_t((sizeof(MatrixInt22))); if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2869, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_21);

    /* "cython/core/triangulation.pyx":2868
 *                                  'than there are cusps.')
 * 
 *             matrices = <MatrixInt22 *>malloc(self.num_cusps() *             # <<<<<<<<<<<<<<
 *                                              sizeof(MatrixInt22))
 * 
*/
    __pyx_t_2 = PyNumber_Multiply(__pyx_t_7, __pyx_t_21); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2868, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
    __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_2); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2868, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_matrices = ((MatrixInt22 *)malloc(__pyx_t_4));

    /* "cython/core/triangulation.pyx":2871
 *                                              sizeof(MatrixInt22))
 * 
 *             for n in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                 for i, j in [(0, 0), (0, 1), (1, 0), (1, 1)]:
 *                     matrices[n][i][j] = 1 if i == j else 0
*/
    __pyx_t_21 = NULL;
    __pyx_t_19 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_19);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_19, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2871, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_21, __pyx_t_7};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2871, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2871, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2871, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_8(__pyx_t_7);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2871, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2872
 * 
 *             for n in range(self.num_cusps()):
 *                 for i, j in [(0, 0), (0, 1), (1, 0), (1, 1)]:             # <<<<<<<<<<<<<<
 *                     matrices[n][i][j] = 1 if i == j else 0
 * 
*/
      __pyx_t_2 = __pyx_mstate_global->__pyx_tuple[16]; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_9 = 0;
      for (;;) {
        if (__pyx_t_9 >= 4) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_21 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9));
        #else
        __pyx_t_21 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_9);
        #endif
        ++__pyx_t_9;
        if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2872, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
        if (likely(__pyx_t_21 != Py_None)) {
          PyObject* sequence = __pyx_t_21;
          Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(4, 2872, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_19 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_19);
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_3);
          #else
          __pyx_t_19 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 2872, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_19);
          __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2872, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
          __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
        } else {
          __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(4, 2872, __pyx_L1_error)
        }
        __pyx_t_15 = __Pyx_PyLong_As_long(__pyx_t_3); if (unlikely((__pyx_t_15 == (long)-1) && PyErr_Occurred())) __PYX_ERR(4, 2872, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_19);
        __pyx_t_19 = 0;
        __pyx_v_j = __pyx_t_15;

        /* "cython/core/triangulation.pyx":2873
 *             for n in range(self.num_cusps()):
 *                 for i, j in [(0, 0), (0, 1), (1, 0), (1, 1)]:
 *                     matrices[n][i][j] = 1 if i == j else 0             # <<<<<<<<<<<<<<
 * 
 *             for i, basis in enumerate(peripheral_data):
*/
        __pyx_t_21 = __Pyx_PyLong_From_long(__pyx_v_j); if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2873, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
        __pyx_t_3 = PyObject_RichCompare(__pyx_v_i, __pyx_t_21, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2873, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2873, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (__pyx_t_1) {
          __pyx_t_12 = 1;
        } else {
          __pyx_t_12 = 0;
        }
        __pyx_t_17 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_17 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2873, __pyx_L1_error)
        __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2873, __pyx_L1_error)
        (((__pyx_v_matrices[__pyx_t_17])[__pyx_t_16])[__pyx_v_j]) = __pyx_t_12;

        /* "cython/core/triangulation.pyx":2872
 * 
 *             for n in range(self.num_cusps()):
 *                 for i, j in [(0, 0), (0, 1), (1, 0), (1, 1)]:             # <<<<<<<<<<<<<<
 *                     matrices[n][i][j] = 1 if i == j else 0
 * 
*/
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":2871
 *                                              sizeof(MatrixInt22))
 * 
 *             for n in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                 for i, j in [(0, 0), (0, 1), (1, 0), (1, 1)]:
 *                     matrices[n][i][j] = 1 if i == j else 0
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/triangulation.pyx":2875
 *                     matrices[n][i][j] = 1 if i == j else 0
 * 
 *             for i, basis in enumerate(peripheral_data):             # <<<<<<<<<<<<<<
 * 
 *                 meridian, longitude = basis
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_7 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_peripheral_data)) || PyTuple_CheckExact(__pyx_v_peripheral_data)) {
      __pyx_t_2 = __pyx_v_peripheral_data; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_9 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_peripheral_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 2875, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2875, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2875, __pyx_L1_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 2875, __pyx_L1_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2875, __pyx_L1_error)
      } else {
        __pyx_t_3 = __pyx_t_8(__pyx_t_2);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 2875, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_basis, __pyx_t_3);
      __pyx_t_3 = 0;
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_7);
      __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_t_7, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2875, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_7);
      __pyx_t_7 = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":2877
 *             for i, basis in enumerate(peripheral_data):
 * 
 *                 meridian, longitude = basis             # <<<<<<<<<<<<<<
 *                 a, b = meridian
 *                 c, d = longitude
*/
      if ((likely(PyTuple_CheckExact(__pyx_v_basis))) || (PyList_CheckExact(__pyx_v_basis))) {
        PyObject* sequence = __pyx_v_basis;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(4, 2877, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_21 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_21);
        } else {
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2877, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_21 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2877, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_21);
        }
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2877, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_21 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2877, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
        #endif
      } else {
        Py_ssize_t index = -1;
        __pyx_t_19 = PyObject_GetIter(__pyx_v_basis); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 2877, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_19);
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_19);
        index = 0; __pyx_t_3 = __pyx_t_11(__pyx_t_19); if (unlikely(!__pyx_t_3)) goto __pyx_L46_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        index = 1; __pyx_t_21 = __pyx_t_11(__pyx_t_19); if (unlikely(!__pyx_t_21)) goto __pyx_L46_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_21);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_19), 2) < (0)) __PYX_ERR(4, 2877, __pyx_L1_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
        goto __pyx_L47_unpacking_done;
        __pyx_L46_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(4, 2877, __pyx_L1_error)
        __pyx_L47_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_v_meridian, __pyx_t_3);
      __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_longitude, __pyx_t_21);
      __pyx_t_21 = 0;

      /* "cython/core/triangulation.pyx":2878
 * 
 *                 meridian, longitude = basis
 *                 a, b = meridian             # <<<<<<<<<<<<<<
 *                 c, d = longitude
 *                 if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
*/
      if ((likely(PyTuple_CheckExact(__pyx_v_meridian))) || (PyList_CheckExact(__pyx_v_meridian))) {
        PyObject* sequence = __pyx_v_meridian;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(4, 2878, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_21 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_21);
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_3);
        } else {
          __pyx_t_21 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2878, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_21);
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2878, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
        }
        #else
        __pyx_t_21 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2878, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2878, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        Py_ssize_t index = -1;
        __pyx_t_19 = PyObject_GetIter(__pyx_v_meridian); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 2878, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_19);
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_19);
        index = 0; __pyx_t_21 = __pyx_t_11(__pyx_t_19); if (unlikely(!__pyx_t_21)) goto __pyx_L48_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_21);
        index = 1; __pyx_t_3 = __pyx_t_11(__pyx_t_19); if (unlikely(!__pyx_t_3)) goto __pyx_L48_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_19), 2) < (0)) __PYX_ERR(4, 2878, __pyx_L1_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
        goto __pyx_L49_unpacking_done;
        __pyx_L48_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(4, 2878, __pyx_L1_error)
        __pyx_L49_unpacking_done:;
      }
      __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_21); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2878, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
      __pyx_t_13 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2878, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_a = __pyx_t_12;
      __pyx_v_b = __pyx_t_13;

      /* "cython/core/triangulation.pyx":2879
 *                 meridian, longitude = basis
 *                 a, b = meridian
 *                 c, d = longitude             # <<<<<<<<<<<<<<
 *                 if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
 *                     if self.is_orientable():
*/
      if ((likely(PyTuple_CheckExact(__pyx_v_longitude))) || (PyList_CheckExact(__pyx_v_longitude))) {
        PyObject* sequence = __pyx_v_longitude;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(4, 2879, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_21 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_21);
        } else {
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2879, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_21 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2879, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_21);
        }
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_21 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
        #endif
      } else {
        Py_ssize_t index = -1;
        __pyx_t_19 = PyObject_GetIter(__pyx_v_longitude); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 2879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_19);
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_19);
        index = 0; __pyx_t_3 = __pyx_t_11(__pyx_t_19); if (unlikely(!__pyx_t_3)) goto __pyx_L50_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        index = 1; __pyx_t_21 = __pyx_t_11(__pyx_t_19); if (unlikely(!__pyx_t_21)) goto __pyx_L50_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_21);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_19), 2) < (0)) __PYX_ERR(4, 2879, __pyx_L1_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
        goto __pyx_L51_unpacking_done;
        __pyx_L50_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(4, 2879, __pyx_L1_error)
        __pyx_L51_unpacking_done:;
      }
      __pyx_t_13 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2879, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_21); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2879, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
      __pyx_v_c = __pyx_t_13;
      __pyx_v_d = __pyx_t_12;

      /* "cython/core/triangulation.pyx":2880
 *                 a, b = meridian
 *                 c, d = longitude
 *                 if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):             # <<<<<<<<<<<<<<
 *                     if self.is_orientable():
 *                         free(matrices)
*/
      __pyx_t_14 = (((__pyx_v_a * __pyx_v_d) - (__pyx_v_b * __pyx_v_c)) != 1);
      if (__pyx_t_14) {
      } else {
        __pyx_t_1 = __pyx_t_14;
        goto __pyx_L53_bool_binop_done;
      }
      __pyx_t_3 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_21 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2880, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
      }
      __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_21); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(4, 2880, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
      if (!__pyx_t_14) {
      } else {
        __pyx_t_1 = __pyx_t_14;
        goto __pyx_L53_bool_binop_done;
      }
      __pyx_t_14 = (((__pyx_v_a * __pyx_v_d) - (__pyx_v_b * __pyx_v_c)) != -1L);
      __pyx_t_1 = __pyx_t_14;
      __pyx_L53_bool_binop_done:;
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":2881
 *                 c, d = longitude
 *                 if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
 *                     if self.is_orientable():             # <<<<<<<<<<<<<<
 *                         free(matrices)
 *                         raise ValueError('The data provided does not give a '
*/
        __pyx_t_3 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_3);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
          __pyx_t_21 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2881, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_21);
        }
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_21); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2881, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
        if (unlikely(__pyx_t_1)) {

          /* "cython/core/triangulation.pyx":2882
 *                 if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
 *                     if self.is_orientable():
 *                         free(matrices)             # <<<<<<<<<<<<<<
 *                         raise ValueError('The data provided does not give a '
 *                                          '(positively oriented) basis.')
*/
          free(__pyx_v_matrices);

          /* "cython/core/triangulation.pyx":2883
 *                     if self.is_orientable():
 *                         free(matrices)
 *                         raise ValueError('The data provided does not give a '             # <<<<<<<<<<<<<<
 *                                          '(positively oriented) basis.')
 *                     else:
*/
          __pyx_t_3 = NULL;
          __pyx_t_4 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_data_provided_does_not_give};
            __pyx_t_21 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2883, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_21);
          }
          __Pyx_Raise(__pyx_t_21, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
          __PYX_ERR(4, 2883, __pyx_L1_error)

          /* "cython/core/triangulation.pyx":2881
 *                 c, d = longitude
 *                 if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):
 *                     if self.is_orientable():             # <<<<<<<<<<<<<<
 *                         free(matrices)
 *                         raise ValueError('The data provided does not give a '
*/
        }

        /* "cython/core/triangulation.pyx":2886
 *                                          '(positively oriented) basis.')
 *                     else:
 *                         free(matrices)             # <<<<<<<<<<<<<<
 *                         raise ValueError('The data provided does not give a '
 *                                          'basis.')
*/
        /*else*/ {
          free(__pyx_v_matrices);

          /* "cython/core/triangulation.pyx":2887
 *                     else:
 *                         free(matrices)
 *                         raise ValueError('The data provided does not give a '             # <<<<<<<<<<<<<<
 *                                          'basis.')
 * 
*/
          __pyx_t_3 = NULL;
          __pyx_t_4 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_data_provided_does_not_give_2};
            __pyx_t_21 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2887, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_21);
          }
          __Pyx_Raise(__pyx_t_21, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
          __PYX_ERR(4, 2887, __pyx_L1_error)
        }

        /* "cython/core/triangulation.pyx":2880
 *                 a, b = meridian
 *                 c, d = longitude
 *                 if a*d - b*c != 1 and (self.is_orientable() or a*d - b*c != -1):             # <<<<<<<<<<<<<<
 *                     if self.is_orientable():
 *                         free(matrices)
*/
      }

      /* "cython/core/triangulation.pyx":2890
 *                                          'basis.')
 * 
 *                 if 'Klein' in self.cusp_info(i)['topology']:             # <<<<<<<<<<<<<<
 *                     if b != 0 or c != 0:
 *                         free(matrices)
*/
      __pyx_t_3 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_i};
        __pyx_t_21 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_21)) __PYX_ERR(4, 2890, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);
      }
      __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_topology); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2890, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
      __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_Klein, __pyx_t_3, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2890, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_1) {

        /* "cython/core/triangulation.pyx":2891
 * 
 *                 if 'Klein' in self.cusp_info(i)['topology']:
 *                     if b != 0 or c != 0:             # <<<<<<<<<<<<<<
 *                         free(matrices)
 *                         raise ValueError('The data provided are invalid for '
*/
        __pyx_t_14 = (__pyx_v_b != 0);
        if (!__pyx_t_14) {
        } else {
          __pyx_t_1 = __pyx_t_14;
          goto __pyx_L59_bool_binop_done;
        }
        __pyx_t_14 = (__pyx_v_c != 0);
        __pyx_t_1 = __pyx_t_14;
        __pyx_L59_bool_binop_done:;
        if (unlikely(__pyx_t_1)) {

          /* "cython/core/triangulation.pyx":2892
 *                 if 'Klein' in self.cusp_info(i)['topology']:
 *                     if b != 0 or c != 0:
 *                         free(matrices)             # <<<<<<<<<<<<<<
 *                         raise ValueError('The data provided are invalid for '
 *                                          'Klein bottle cusps.')
*/
          free(__pyx_v_matrices);

          /* "cython/core/triangulation.pyx":2893
 *                     if b != 0 or c != 0:
 *                         free(matrices)
 *                         raise ValueError('The data provided are invalid for '             # <<<<<<<<<<<<<<
 *                                          'Klein bottle cusps.')
 * 
*/
          __pyx_t_21 = NULL;
          __pyx_t_4 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_21, __pyx_mstate_global->__pyx_kp_u_The_data_provided_are_invalid_fo};
            __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2893, __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_ERR(4, 2893, __pyx_L1_error)

          /* "cython/core/triangulation.pyx":2891
 * 
 *                 if 'Klein' in self.cusp_info(i)['topology']:
 *                     if b != 0 or c != 0:             # <<<<<<<<<<<<<<
 *                         free(matrices)
 *                         raise ValueError('The data provided are invalid for '
*/
        }

        /* "cython/core/triangulation.pyx":2890
 *                                          'basis.')
 * 
 *                 if 'Klein' in self.cusp_info(i)['topology']:             # <<<<<<<<<<<<<<
 *                     if b != 0 or c != 0:
 *                         free(matrices)
*/
      }

      /* "cython/core/triangulation.pyx":2896
 *                                          'Klein bottle cusps.')
 * 
 *                 matrices[i][0][0] = a             # <<<<<<<<<<<<<<
 *                 matrices[i][0][1] = b
 *                 matrices[i][1][0] = c
*/
      __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2896, __pyx_L1_error)
      (((__pyx_v_matrices[__pyx_t_16])[0])[0]) = __pyx_v_a;

      /* "cython/core/triangulation.pyx":2897
 * 
 *                 matrices[i][0][0] = a
 *                 matrices[i][0][1] = b             # <<<<<<<<<<<<<<
 *                 matrices[i][1][0] = c
 *                 matrices[i][1][1] = d
*/
      __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2897, __pyx_L1_error)
      (((__pyx_v_matrices[__pyx_t_16])[0])[1]) = __pyx_v_b;

      /* "cython/core/triangulation.pyx":2898
 *                 matrices[i][0][0] = a
 *                 matrices[i][0][1] = b
 *                 matrices[i][1][0] = c             # <<<<<<<<<<<<<<
 *                 matrices[i][1][1] = d
 * 
*/
      __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2898, __pyx_L1_error)
      (((__pyx_v_matrices[__pyx_t_16])[1])[0]) = __pyx_v_c;

      /* "cython/core/triangulation.pyx":2899
 *                 matrices[i][0][1] = b
 *                 matrices[i][1][0] = c
 *                 matrices[i][1][1] = d             # <<<<<<<<<<<<<<
 * 
 *             if self.is_orientable():
*/
      __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 2899, __pyx_L1_error)
      (((__pyx_v_matrices[__pyx_t_16])[1])[1]) = __pyx_v_d;

      /* "cython/core/triangulation.pyx":2875
 *                     matrices[n][i][j] = 1 if i == j else 0
 * 
 *             for i, basis in enumerate(peripheral_data):             # <<<<<<<<<<<<<<
 * 
 *                 meridian, longitude = basis
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/triangulation.pyx":2901
 *                 matrices[i][1][1] = d
 * 
 *             if self.is_orientable():             # <<<<<<<<<<<<<<
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)
 *             else:
*/
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2901, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 2901, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":2902
 * 
 *             if self.is_orientable():
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)             # <<<<<<<<<<<<<<
 *             else:
 *                 result = change_peripheral_curves_nonorientable(
*/
      __pyx_t_18 = change_peripheral_curves(__pyx_v_self->c_triangulation, __pyx_v_matrices); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2902, __pyx_L1_error)
      __pyx_v_result = __pyx_t_18;

      /* "cython/core/triangulation.pyx":2901
 *                 matrices[i][1][1] = d
 * 
 *             if self.is_orientable():             # <<<<<<<<<<<<<<
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)
 *             else:
*/
      goto __pyx_L62;
    }

    /* "cython/core/triangulation.pyx":2904
 *                 result = change_peripheral_curves(self.c_triangulation, matrices)
 *             else:
 *                 result = change_peripheral_curves_nonorientable(             # <<<<<<<<<<<<<<
 *                     self.c_triangulation, matrices)
 *             free(matrices)
*/
    /*else*/ {

      /* "cython/core/triangulation.pyx":2905
 *             else:
 *                 result = change_peripheral_curves_nonorientable(
 *                     self.c_triangulation, matrices)             # <<<<<<<<<<<<<<
 *             free(matrices)
 *             if result == func_bad_input:
*/
      __pyx_v_result = change_peripheral_curves_nonorientable(__pyx_v_self->c_triangulation, __pyx_v_matrices);
    }
    __pyx_L62:;

    /* "cython/core/triangulation.pyx":2906
 *                 result = change_peripheral_curves_nonorientable(
 *                     self.c_triangulation, matrices)
 *             free(matrices)             # <<<<<<<<<<<<<<
 *             if result == func_bad_input:
 *                 raise ValueError('The peripheral data %s is not acceptable.' %
*/
    free(__pyx_v_matrices);

    /* "cython/core/triangulation.pyx":2907
 *                     self.c_triangulation, matrices)
 *             free(matrices)
 *             if result == func_bad_input:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The peripheral data %s is not acceptable.' %
 *                                  peripheral_data)
*/
    __pyx_t_1 = (__pyx_v_result == func_bad_input);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/triangulation.pyx":2908
 *             free(matrices)
 *             if result == func_bad_input:
 *                 raise ValueError('The peripheral data %s is not acceptable.' %             # <<<<<<<<<<<<<<
 *                                  peripheral_data)
 * 
*/
      __pyx_t_2 = NULL;

      /* "cython/core/triangulation.pyx":2909
 *             if result == func_bad_input:
 *                 raise ValueError('The peripheral data %s is not acceptable.' %
 *                                  peripheral_data)             # <<<<<<<<<<<<<<
 * 
 *     def has_finite_vertices(self) -> bool:
*/
      __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_The_peripheral_data_s_is_not_acc, __pyx_v_peripheral_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2908, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 2908, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_Raise(__pyx_t_7, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __PYX_ERR(4, 2908, __pyx_L1_error)

      /* "cython/core/triangulation.pyx":2907
 *                     self.c_triangulation, matrices)
 *             free(matrices)
 *             if result == func_bad_input:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The peripheral data %s is not acceptable.' %
 *                                  peripheral_data)
*/
    }
  }
  __pyx_L5:;

  /* "cython/core/triangulation.pyx":2776
 *         return c_repn_in_original_gens
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_19);
  __Pyx_XDECREF(__pyx_t_21);
  __Pyx_AddTraceback("SnapPy.Triangulation.set_peripheral_curves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_cobs);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_meridian);
  __Pyx_XDECREF(__pyx_v_longitude);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_basis);
  __Pyx_XDECREF(__pyx_v_which_cusp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2911
 *                                  peripheral_data)
 * 
 *     def has_finite_vertices(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         Returns ``True`` if and only if the triangulation has finite (non-ideal)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_141has_finite_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_140has_finite_vertices, "\n        Returns ``True`` if and only if the triangulation has finite (non-ideal)\n        vertices.\n\n        >>> T = Triangulation(\"m004\")\n        >>> T.has_finite_vertices()\n        False\n        >>> T.dehn_fill((12,13))\n        >>> S = T.filled_triangulation()\n        >>> S.has_finite_vertices()\n        True\n\n        When trying to find a hyperbolic structure, SnapPea will eliminate\n        finite vertices:\n\n        >>> M = S.with_hyperbolic_structure()\n        >>> M.has_finite_vertices()\n        False\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_141has_finite_vertices = {"has_finite_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_141has_finite_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_140has_finite_vertices};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_141has_finite_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("has_finite_vertices (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("has_finite_vertices", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("has_finite_vertices", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_140has_finite_vertices(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_140has_finite_vertices(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("has_finite_vertices", 0);

  /* "cython/core/triangulation.pyx":2932
 *         """
 *         # Bail if empty
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return False
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/triangulation.pyx":2933
 *         # Bail if empty
 *         if self.c_triangulation is NULL:
 *             return False             # <<<<<<<<<<<<<<
 * 
 *         count_cusps(self.c_triangulation)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cython/core/triangulation.pyx":2932
 *         """
 *         # Bail if empty
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return False
 * 
*/
  }

  /* "cython/core/triangulation.pyx":2935
 *             return False
 * 
 *         count_cusps(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         return get_num_fake_cusps(self.c_triangulation) > 0
 * 
*/
  count_cusps(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":2936
 * 
 *         count_cusps(self.c_triangulation)
 *         return get_num_fake_cusps(self.c_triangulation) > 0             # <<<<<<<<<<<<<<
 * 
 *     def triangulation_isosig(self,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = get_num_fake_cusps(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 2936, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyBool_FromLong((__pyx_t_2 > 0)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 2936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2911
 *                                  peripheral_data)
 * 
 *     def has_finite_vertices(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         Returns ``True`` if and only if the triangulation has finite (non-ideal)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Triangulation.has_finite_vertices", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":2938
 *         return get_num_fake_cusps(self.c_triangulation) > 0
 * 
 *     def triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                              decorated : bool = True,
 *                              ignore_cusp_ordering : bool = False,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_143triangulation_isosig(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_142triangulation_isosig, "\n        Returns the \"(decorated) isomorphism signature\", a compact text\n        representation of the triangulation::\n\n          >>> T = Triangulation('m004')\n          >>> T.triangulation_isosig()\n          'cPcbbbiht_BaCB'\n\n        This string can be used later to recreate an isomorphic triangulation::\n\n          >>> U = Triangulation('cPcbbbiht_BaCB')\n          >>> T == U\n          True\n\n        The isomorphism signature is also used to compute the\n        :meth:`isometry_signature <snappy.Manifold.isometry_signature>`.\n        It comes in two flavors controlled by the :attr:`decorated` flag.\n\n        **Undecorated isomorphism signature**\n\n        The undecorated isomorphism signature is a complete invariant of the\n        (oriented) triangulation up to combinatorial isomorphism::\n\n            >>> T = Triangulation('m015')\n            >>> T.triangulation_isosig(decorated=False)\n            'dLQbcccdero'\n\n        It was introduced in\n        `Burton '11 <http://arxiv.org/abs/1110.6080>`_. It canonizes and\n        generalizes the ealier dehydration string by\n        `Callahan, Hildebrand and Weeks '99\n        <https://doi.org/10.1090/S0025-5718-99-01036-4>`_.\n        The undecorated isomorphism signature can also be given to\n        `Regina <https://regina-normal.github.io/>`_'s\n        ``Triangulation3.fromIsoSig``.\n\n        By default, the orientation (if orientable) is ignored. More\n        precisely, it computes the string for both orientations (if orientable)\n        and uses the lexicographically smaller string::\n\n            >>> T = Triangulation('m015')\n            >>> T.triangulation_isosig(decorated=False)\n            'dLQbcccdero'\n            >>> T.reverse_orientation()\n            >>> T.triangulation_isosig(decorated=False)\n            'dLQbcccdero'\n\n        When specifying :attr:`ignore_orientation = False`, the result\n        encodes the orientation (if orientable). Now the result is\n        differen""t if we change the orientation of a chiral triangulation::\n\n            >>> T = Triangulation('m015')\n            >>> T.triangulation_isosig(decorated=False, ignore_orientation=False)\n            'dLQbcccdero'\n            >>> T.reverse_orientation()\n            >>> T.triangulation_isosig(decorated=False, ignore_orientation=False)\n            'dLQbccceekg'\n\n        **Decorated isomorphism signature (default)**\n\n        SnapPy can decorate the isomorphism signature to include the following\n        peripheral information in a canonical way (that is invariant under\n        the action by combinatorial isomorphisms of the triangulation):\n\n        #. Indexing of the cusps (that is, ideal vertices).\n\n           * Included by default.\n             Can be suppressed with :attr:`ignore_cusp_ordering = True`.\n\n        #. Peripheral curves (aka meridian and longitude, up to homotopy).\n\n           * Included by default.\n             Can be suppressed with :attr:`ignore_curves = True`.\n           * By default, the decoration encodes the oriented peripheral curves.\n             By specifying :attr:`ignore_curve_orientations = True`, it encodes\n             the unoriented peripheral curves instead.\n\n        #. Dehn-fillings and orientation of core curve (if present).\n\n           * By default, the decoration encodes the Dehn-fillings and the\n             orientation of the core curve.\n             That is, we encode the (unoriented) peripheral curve that is\n             used for the Dehn-filling as well as the orientation of the class\n             of peripheral curves intersecting that peripheral curve ones\n             (this explanation only works if the coefficients are co-prime\n             integers). Note that this behavior has changed in Version 3.3.\n             By specifying :attr:`ignore_filling_orientations = True`, the\n             decoration encodes the Dehn-fillings without any regard to\n             orientation.\n             That i""s, it normalizes the Dehn-filling coefficients by picking\n             a canonical pair among :math:`(m,l)` and :math:`(-m,-l)`.\n\n        Details of the encoding are explained in the\n        `SnapPy source code <https://github.com/3-manifolds/SnapPy/blob/master/python/decorated_isosig.py>`_.\n\n        **Example**\n\n        Let us consider the links :math:`9^2_{34}` and ``L9a21``. Note that we use\n        :meth:`canonical_retriangulation <snappy.Manifold.canonical_retriangulation>`\n        to make the following examples say something intrinsic about the\n        hyperbolic manifold::\n\n          >>> from snappy import Manifold\n          >>> M = Manifold('9^2_34').canonical_retriangulation()\n          >>> N = Manifold('L9a21').canonical_retriangulation()\n\n        The decorated isosig recovers the entire peripheral information faithfully\n        (including orientation, see below)::\n\n          >>> M.triangulation_isosig()\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_baBabbbBbC'\n          >>> K = Triangulation('oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_baBabbbBbC')\n          >>> M.isomorphisms_to(K)\n          [0 -> 0  1 -> 1\n          [1 0]   [1 0]\n          [0 1]   [0 1]\n          Extends to link]\n\n        The two links have isometric complements::\n\n          >>> M.triangulation_isosig(decorated=False)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo'\n          >>> N.triangulation_isosig(decorated=False)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo'\n\n        However, the complements have different handedness::\n\n          >>> M.triangulation_isosig(decorated=False,ignore_orientation=False)\n          'oLLzLPwzQQccdeghjiiklmnmnnuvuvvavovvffffo'\n          >>> N.triangulation_isosig(decorated=False,ignore_orientation=False)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo'\n\n        Also, the cusps/components of the link are indexed differently::\n\n          >>> M.triangulation_isosig(ignore_curves=True)\n       ""   'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_ba'\n          >>> N.triangulation_isosig(ignore_curves=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_ab'\n\n        Ignoring the indexing, we also see that the oriented merdians and\n        longitudes do not match::\n\n          >>> M.triangulation_isosig(ignore_cusp_ordering=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_bBbCBabb'\n          >>> N.triangulation_isosig(ignore_cusp_ordering=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_BbbCbabb'\n\n        However, they are the same links (ignoring indexing and orientation)::\n\n          >>> M.triangulation_isosig(ignore_cusp_ordering=True, ignore_curve_orientations=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_bBBcbabb'\n          >>> N.triangulation_isosig(ignore_cusp_ordering=True, ignore_curve_orientations=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_bBBcbabb'\n\n        Let us create two surgery presentations from the links (note that we\n        fill after\n        :meth:`canonical_retriangulation <snappy.Manifold.canonical_retriangulation>`\n        since it rejects Dehn-fillings)::\n\n          >>> M.dehn_fill((4, 5),0)\n          >>> N.dehn_fill((4,-5),1)\n\n        They are equivalent surgery presentations (of the same manifold)::\n\n          >>> M.triangulation_isosig(\n          ...         ignore_cusp_ordering=True,\n          ...         ignore_curves=True,\n          ...         ignore_filling_orientations=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo(0,0)(1,5)'\n          >>> N.triangulation_isosig(\n          ...         ignore_cusp_ordering=True,\n          ...         ignore_curves=True,\n          ...         ignore_filling_orientations=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo(0,0)(1,5)'\n\n        A geometric spun-triangulation of the three-fold cover of m007(3,1)::\n\n          >>> M = Manifold('gLLMQcbeefefujumapn(2,-1)')\n          >>> M.solut""ion_type()\n          'all tetrahedra positively oriented'\n\n        Specifying :attr:`ignore_filling_orientations = True` can change the\n        orientation of the core curve and a triangulation spinning the other\n        way that fails to be geometric::\n\n          >>> isosig = M.triangulation_isosig(\n          ...         ignore_orientation=False,\n          ...         ignore_curves=True,\n          ...         ignore_filling_orientations=True,\n          ...         ignore_cusp_ordering=True)\n          >>> isosig\n          'gLLMQcbeefefujumapn(-2,1)'\n          >>> Manifold(isosig).solution_type()\n          'contains negatively oriented tetrahedra'\n\n        Preserve the unoriented spun-triangulation structure including the\n        direction it is spinning::\n\n          >>> isosig = M.triangulation_isosig(\n          ...         ignore_cusp_ordering=True,\n          ...         ignore_curves=True)\n          >>> isosig\n          'gLLMQcbeefefpjaqupw(1,1)'\n          >>> Manifold(isosig).solution_type()\n          'all tetrahedra positively oriented'\n\n        **Orientation**\n\n        Note that :attr:`ignore_orientation=True` only applies to the undecorated\n        part of the isomorphism signature. The decoration can still capture the\n        the orientation.\n        More, precisely, the result of :meth:`.triangulation_isosig` depends on\n        the orientation (if the triangulation is orientable and chiral) if any\n        of the following is true:\n\n        #. :attr:`ignore_orientation = False`.\n\n        #. :attr:`decorated = True` and\n           :attr:`ignore_curves = False` and\n           :attr:`ignore_filling_orientations = False`.\n\n        In these cases, re-constructing a triangulation from the isomorphism\n        signature yields a triangulation with the same handedness.\n\n        :param decorated:\n                Include peripheral information such as indexing of the cusps,\n                (oriented or unoriented) peripher""al curves and\n                (oriented or unoriented) Dehn-fillings.\n        :param ignore_cusp_ordering:\n                Do not encode the indexing of the cusps.\n                Only relevant if :attr:`decorated = True`.\n        :param ignore_curves:\n                Do not encode the peripheral curves.\n                Only relevant if :attr:`decorated = True`.\n                This is new in SnapPy version 3.2.\n                If :attr:`ignore_curves = True`, the result of this method cannot\n                be given to prior versions.\n        :param ignore_curve_orientations:\n                Do not encode the orientations of the peripheral curves.\n                Only relevant if :attr:`decorated = True` and\n                :attr:`ignore_curves = False`.\n        :param ignore_filling_orientations:\n                Do not encode the orientation of the class of peripheral curves\n                intersecting the Dehn-fillings.\n                Only relevant if :attr:`decorated = True`.\n        :param ignore_orientation:\n                Do not encode the orientation of the triangulation in the\n                undecorated part of the triangulation isosig.\n                See above section about orientation.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_143triangulation_isosig = {"triangulation_isosig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_143triangulation_isosig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_142triangulation_isosig};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_143triangulation_isosig(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_decorated;
  int __pyx_v_ignore_cusp_ordering;
  int __pyx_v_ignore_curves;
  int __pyx_v_ignore_curve_orientations;
  int __pyx_v_ignore_filling_orientations;
  int __pyx_v_ignore_orientation;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("triangulation_isosig (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_decorated,&__pyx_mstate_global->__pyx_n_u_ignore_cusp_ordering,&__pyx_mstate_global->__pyx_n_u_ignore_curves,&__pyx_mstate_global->__pyx_n_u_ignore_curve_orientations,&__pyx_mstate_global->__pyx_n_u_ignore_filling_orientations,&__pyx_mstate_global->__pyx_n_u_ignore_orientation,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 2938, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "triangulation_isosig", 0) < (0)) __PYX_ERR(4, 2938, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 2938, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_decorated = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_decorated == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2939, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2939
 * 
 *     def triangulation_isosig(self,
 *                              decorated : bool = True,             # <<<<<<<<<<<<<<
 *                              ignore_cusp_ordering : bool = False,
 *                              ignore_curves : bool = False,
*/
      __pyx_v_decorated = ((int)1);
    }
    if (values[1]) {
      __pyx_v_ignore_cusp_ordering = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_ignore_cusp_ordering == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2940, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2940
 *     def triangulation_isosig(self,
 *                              decorated : bool = True,
 *                              ignore_cusp_ordering : bool = False,             # <<<<<<<<<<<<<<
 *                              ignore_curves : bool = False,
 *                              ignore_curve_orientations : bool = False,
*/
      __pyx_v_ignore_cusp_ordering = ((int)0);
    }
    if (values[2]) {
      __pyx_v_ignore_curves = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_ignore_curves == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2941, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2941
 *                              decorated : bool = True,
 *                              ignore_cusp_ordering : bool = False,
 *                              ignore_curves : bool = False,             # <<<<<<<<<<<<<<
 *                              ignore_curve_orientations : bool = False,
 *                              ignore_filling_orientations : bool = False,
*/
      __pyx_v_ignore_curves = ((int)0);
    }
    if (values[3]) {
      __pyx_v_ignore_curve_orientations = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_ignore_curve_orientations == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2942, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2942
 *                              ignore_cusp_ordering : bool = False,
 *                              ignore_curves : bool = False,
 *                              ignore_curve_orientations : bool = False,             # <<<<<<<<<<<<<<
 *                              ignore_filling_orientations : bool = False,
 *                              ignore_orientation : bool = True) -> str:
*/
      __pyx_v_ignore_curve_orientations = ((int)0);
    }
    if (values[4]) {
      __pyx_v_ignore_filling_orientations = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_ignore_filling_orientations == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2943, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2943
 *                              ignore_curves : bool = False,
 *                              ignore_curve_orientations : bool = False,
 *                              ignore_filling_orientations : bool = False,             # <<<<<<<<<<<<<<
 *                              ignore_orientation : bool = True) -> str:
 *         """
*/
      __pyx_v_ignore_filling_orientations = ((int)0);
    }
    if (values[5]) {
      __pyx_v_ignore_orientation = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_ignore_orientation == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 2944, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":2944
 *                              ignore_curve_orientations : bool = False,
 *                              ignore_filling_orientations : bool = False,
 *                              ignore_orientation : bool = True) -> str:             # <<<<<<<<<<<<<<
 *         """
 *         Returns the "(decorated) isomorphism signature", a compact text
*/
      __pyx_v_ignore_orientation = ((int)1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("triangulation_isosig", 0, 0, 6, __pyx_nargs); __PYX_ERR(4, 2938, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.triangulation_isosig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_142triangulation_isosig(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_decorated, __pyx_v_ignore_cusp_ordering, __pyx_v_ignore_curves, __pyx_v_ignore_curve_orientations, __pyx_v_ignore_filling_orientations, __pyx_v_ignore_orientation);

  /* "cython/core/triangulation.pyx":2938
 *         return get_num_fake_cusps(self.c_triangulation) > 0
 * 
 *     def triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                              decorated : bool = True,
 *                              ignore_cusp_ordering : bool = False,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_142triangulation_isosig(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_decorated, int __pyx_v_ignore_cusp_ordering, int __pyx_v_ignore_curves, int __pyx_v_ignore_curve_orientations, int __pyx_v_ignore_filling_orientations, int __pyx_v_ignore_orientation) {
  PyObject *__pyx_v_args = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  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;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("triangulation_isosig", 0);

  /* "cython/core/triangulation.pyx":3196
 *         """
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         args = (decorated,
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":3197
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         args = (decorated,
 *                 ignore_cusp_ordering,
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3197, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 3197, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":3196
 *         """
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         args = (decorated,
*/
  }

  /* "cython/core/triangulation.pyx":3198
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         args = (decorated,             # <<<<<<<<<<<<<<
 *                 ignore_cusp_ordering,
 *                 ignore_curves,
*/
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_decorated); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "cython/core/triangulation.pyx":3199
 *             raise ValueError('The Triangulation is empty.')
 *         args = (decorated,
 *                 ignore_cusp_ordering,             # <<<<<<<<<<<<<<
 *                 ignore_curves,
 *                 ignore_curve_orientations,
*/
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_ignore_cusp_ordering); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/triangulation.pyx":3200
 *         args = (decorated,
 *                 ignore_cusp_ordering,
 *                 ignore_curves,             # <<<<<<<<<<<<<<
 *                 ignore_curve_orientations,
 *                 ignore_filling_orientations,
*/
  __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_ignore_curves); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "cython/core/triangulation.pyx":3201
 *                 ignore_cusp_ordering,
 *                 ignore_curves,
 *                 ignore_curve_orientations,             # <<<<<<<<<<<<<<
 *                 ignore_filling_orientations,
 *                 ignore_orientation)
*/
  __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_ignore_curve_orientations); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "cython/core/triangulation.pyx":3202
 *                 ignore_curves,
 *                 ignore_curve_orientations,
 *                 ignore_filling_orientations,             # <<<<<<<<<<<<<<
 *                 ignore_orientation)
 *         try:
*/
  __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_ignore_filling_orientations); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);

  /* "cython/core/triangulation.pyx":3203
 *                 ignore_curve_orientations,
 *                 ignore_filling_orientations,
 *                 ignore_orientation)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._cache.lookup('triangulation_isosig', *args)
*/
  __pyx_t_8 = __Pyx_PyBool_FromLong(__pyx_v_ignore_orientation); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 3203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);

  /* "cython/core/triangulation.pyx":3198
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         args = (decorated,             # <<<<<<<<<<<<<<
 *                 ignore_cusp_ordering,
 *                 ignore_curves,
*/
  __pyx_t_9 = PyTuple_New(6); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2) != (0)) __PYX_ERR(4, 3198, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_3) != (0)) __PYX_ERR(4, 3198, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_5) != (0)) __PYX_ERR(4, 3198, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_6) != (0)) __PYX_ERR(4, 3198, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 4, __pyx_t_7) != (0)) __PYX_ERR(4, 3198, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_t_8) != (0)) __PYX_ERR(4, 3198, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_v_args = __pyx_t_9;
  __pyx_t_9 = 0;

  /* "cython/core/triangulation.pyx":3204
 *                 ignore_filling_orientations,
 *                 ignore_orientation)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('triangulation_isosig', *args)
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
    __Pyx_XGOTREF(__pyx_t_10);
    __Pyx_XGOTREF(__pyx_t_11);
    __Pyx_XGOTREF(__pyx_t_12);
    /*try:*/ {

      /* "cython/core/triangulation.pyx":3205
 *                 ignore_orientation)
 *         try:
 *             return self._cache.lookup('triangulation_isosig', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_cache, __pyx_mstate_global->__pyx_n_u_lookup); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3205, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_8 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 3205, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_tuple[17], __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3205, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_7, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 3205, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (!(likely(PyUnicode_CheckExact(__pyx_t_8))||((__pyx_t_8) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_8))) __PYX_ERR(4, 3205, __pyx_L4_error)
      __pyx_r = ((PyObject*)__pyx_t_8);
      __pyx_t_8 = 0;
      goto __pyx_L8_try_return;

      /* "cython/core/triangulation.pyx":3204
 *                 ignore_filling_orientations,
 *                 ignore_orientation)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('triangulation_isosig', *args)
 *         except KeyError:
*/
    }
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/triangulation.pyx":3206
 *         try:
 *             return self._cache.lookup('triangulation_isosig', *args)
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             pass
 * 
*/
    __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_13) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;

    /* "cython/core/triangulation.pyx":3204
 *                 ignore_filling_orientations,
 *                 ignore_orientation)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('triangulation_isosig', *args)
 *         except KeyError:
*/
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_11);
    __Pyx_XGIVEREF(__pyx_t_12);
    __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
    goto __pyx_L1_error;
    __pyx_L8_try_return:;
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_11);
    __Pyx_XGIVEREF(__pyx_t_12);
    __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
    goto __pyx_L0;
    __pyx_L5_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_11);
    __Pyx_XGIVEREF(__pyx_t_12);
    __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
  }

  /* "cython/core/triangulation.pyx":3209
 *             pass
 * 
 *         if decorated:             # <<<<<<<<<<<<<<
 *             result = decorated_isosig.decorated_isosig(
 *                 self, _triangulation_class,
*/
  if (__pyx_v_decorated) {

    /* "cython/core/triangulation.pyx":3210
 * 
 *         if decorated:
 *             result = decorated_isosig.decorated_isosig(             # <<<<<<<<<<<<<<
 *                 self, _triangulation_class,
 *                 ignore_cusp_ordering = ignore_cusp_ordering,
*/
    __pyx_t_7 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_decorated_isosig); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_decorated_isosig); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/triangulation.pyx":3211
 *         if decorated:
 *             result = decorated_isosig.decorated_isosig(
 *                 self, _triangulation_class,             # <<<<<<<<<<<<<<
 *                 ignore_cusp_ordering = ignore_cusp_ordering,
 *                 ignore_curves = ignore_curves,
*/
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_triangulation_class); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);

    /* "cython/core/triangulation.pyx":3212
 *             result = decorated_isosig.decorated_isosig(
 *                 self, _triangulation_class,
 *                 ignore_cusp_ordering = ignore_cusp_ordering,             # <<<<<<<<<<<<<<
 *                 ignore_curves = ignore_curves,
 *                 ignore_curve_orientations = ignore_curve_orientations,
*/
    __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_ignore_cusp_ordering); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "cython/core/triangulation.pyx":3213
 *                 self, _triangulation_class,
 *                 ignore_cusp_ordering = ignore_cusp_ordering,
 *                 ignore_curves = ignore_curves,             # <<<<<<<<<<<<<<
 *                 ignore_curve_orientations = ignore_curve_orientations,
 *                 ignore_filling_orientations = ignore_filling_orientations,
*/
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_ignore_curves); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3213, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "cython/core/triangulation.pyx":3214
 *                 ignore_cusp_ordering = ignore_cusp_ordering,
 *                 ignore_curves = ignore_curves,
 *                 ignore_curve_orientations = ignore_curve_orientations,             # <<<<<<<<<<<<<<
 *                 ignore_filling_orientations = ignore_filling_orientations,
 *                 ignore_orientation = ignore_orientation)
*/
    __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_ignore_curve_orientations); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cython/core/triangulation.pyx":3215
 *                 ignore_curves = ignore_curves,
 *                 ignore_curve_orientations = ignore_curve_orientations,
 *                 ignore_filling_orientations = ignore_filling_orientations,             # <<<<<<<<<<<<<<
 *                 ignore_orientation = ignore_orientation)
 *         else:
*/
    __pyx_t_14 = __Pyx_PyBool_FromLong(__pyx_v_ignore_filling_orientations); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 3215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);

    /* "cython/core/triangulation.pyx":3216
 *                 ignore_curve_orientations = ignore_curve_orientations,
 *                 ignore_filling_orientations = ignore_filling_orientations,
 *                 ignore_orientation = ignore_orientation)             # <<<<<<<<<<<<<<
 *         else:
 *             result = self._undecorated_triangulation_isosig(
*/
    __pyx_t_15 = __Pyx_PyBool_FromLong(__pyx_v_ignore_orientation); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 3216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_15);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_7);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 5 : 0)] = {__pyx_t_7, ((PyObject *)__pyx_v_self), __pyx_t_9};
      __pyx_t_16 = __Pyx_MakeVectorcallBuilderKwds(5); if (unlikely(!__pyx_t_16)) __PYX_ERR(4, 3210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ignore_cusp_ordering, __pyx_t_5, __pyx_t_16, __pyx_callargs+3, 0) < (0)) __PYX_ERR(4, 3210, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ignore_curves, __pyx_t_3, __pyx_t_16, __pyx_callargs+3, 1) < (0)) __PYX_ERR(4, 3210, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ignore_curve_orientations, __pyx_t_2, __pyx_t_16, __pyx_callargs+3, 2) < (0)) __PYX_ERR(4, 3210, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ignore_filling_orientations, __pyx_t_14, __pyx_t_16, __pyx_callargs+3, 3) < (0)) __PYX_ERR(4, 3210, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ignore_orientation, __pyx_t_15, __pyx_t_16, __pyx_callargs+3, 4) < (0)) __PYX_ERR(4, 3210, __pyx_L1_error)
      __pyx_t_8 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_16);
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 3210, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_v_result = __pyx_t_8;
    __pyx_t_8 = 0;

    /* "cython/core/triangulation.pyx":3209
 *             pass
 * 
 *         if decorated:             # <<<<<<<<<<<<<<
 *             result = decorated_isosig.decorated_isosig(
 *                 self, _triangulation_class,
*/
    goto __pyx_L12;
  }

  /* "cython/core/triangulation.pyx":3218
 *                 ignore_orientation = ignore_orientation)
 *         else:
 *             result = self._undecorated_triangulation_isosig(             # <<<<<<<<<<<<<<
 *                 ignore_orientation = ignore_orientation)
 *         return self._cache.save(result, 'triangulation_isosig', *args)
*/
  /*else*/ {
    __pyx_t_6 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_6);

    /* "cython/core/triangulation.pyx":3219
 *         else:
 *             result = self._undecorated_triangulation_isosig(
 *                 ignore_orientation = ignore_orientation)             # <<<<<<<<<<<<<<
 *         return self._cache.save(result, 'triangulation_isosig', *args)
 * 
*/
    __pyx_t_16 = __Pyx_PyBool_FromLong(__pyx_v_ignore_orientation); if (unlikely(!__pyx_t_16)) __PYX_ERR(4, 3219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_16);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_6, NULL};
      __pyx_t_15 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 3218, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_15);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ignore_orientation, __pyx_t_16, __pyx_t_15, __pyx_callargs+1, 0) < (0)) __PYX_ERR(4, 3218, __pyx_L1_error)
      __pyx_t_8 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_undecorated_triangulation_isosi, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_15);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 3218, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_v_result = __pyx_t_8;
    __pyx_t_8 = 0;
  }
  __pyx_L12:;

  /* "cython/core/triangulation.pyx":3220
 *             result = self._undecorated_triangulation_isosig(
 *                 ignore_orientation = ignore_orientation)
 *         return self._cache.save(result, 'triangulation_isosig', *args)             # <<<<<<<<<<<<<<
 * 
 *     def _undecorated_triangulation_isosig(self,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_cache, __pyx_mstate_global->__pyx_n_u_save); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_15 = PyTuple_New(2); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_15);
  __Pyx_INCREF(__pyx_v_result);
  __Pyx_GIVEREF(__pyx_v_result);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_15, 0, __pyx_v_result) != (0)) __PYX_ERR(4, 3220, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_triangulation_isosig);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_triangulation_isosig);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_15, 1, __pyx_mstate_global->__pyx_n_u_triangulation_isosig) != (0)) __PYX_ERR(4, 3220, __pyx_L1_error);
  __pyx_t_16 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_16)) __PYX_ERR(4, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_6 = PyNumber_Add(__pyx_t_15, __pyx_t_16); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_6, NULL); if (unlikely(!__pyx_t_16)) __PYX_ERR(4, 3220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (!(likely(PyUnicode_CheckExact(__pyx_t_16))||((__pyx_t_16) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_16))) __PYX_ERR(4, 3220, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_16);
  __pyx_t_16 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":2938
 *         return get_num_fake_cusps(self.c_triangulation) > 0
 * 
 *     def triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                              decorated : bool = True,
 *                              ignore_cusp_ordering : bool = False,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __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_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("SnapPy.Triangulation.triangulation_isosig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":3222
 *         return self._cache.save(result, 'triangulation_isosig', *args)
 * 
 *     def _undecorated_triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                                           ignore_orientation : bool = False) -> str:
 *         if self.c_triangulation is NULL:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_145_undecorated_triangulation_isosig(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_145_undecorated_triangulation_isosig = {"_undecorated_triangulation_isosig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_145_undecorated_triangulation_isosig, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_145_undecorated_triangulation_isosig(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_ignore_orientation;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_undecorated_triangulation_isosig (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_ignore_orientation,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3222, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3222, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_undecorated_triangulation_isosig", 0) < (0)) __PYX_ERR(4, 3222, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3222, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_ignore_orientation = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_ignore_orientation == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 3223, __pyx_L3_error)
    } else {

      /* "cython/core/triangulation.pyx":3223
 * 
 *     def _undecorated_triangulation_isosig(self,
 *                                           ignore_orientation : bool = False) -> str:             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
*/
      __pyx_v_ignore_orientation = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_undecorated_triangulation_isosig", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 3222, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._undecorated_triangulation_isosig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_144_undecorated_triangulation_isosig(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_ignore_orientation);

  /* "cython/core/triangulation.pyx":3222
 *         return self._cache.save(result, 'triangulation_isosig', *args)
 * 
 *     def _undecorated_triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                                           ignore_orientation : bool = False) -> str:
 *         if self.c_triangulation is NULL:
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_144_undecorated_triangulation_isosig(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_ignore_orientation) {
  char *__pyx_v_c_string;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  char const *__pyx_t_9;
  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;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_undecorated_triangulation_isosig", 0);

  /* "cython/core/triangulation.pyx":3224
 *     def _undecorated_triangulation_isosig(self,
 *                                           ignore_orientation : bool = False) -> str:
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":3225
 *                                           ignore_orientation : bool = False) -> str:
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         cdef char *c_string
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3225, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 3225, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":3224
 *     def _undecorated_triangulation_isosig(self,
 *                                           ignore_orientation : bool = False) -> str:
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":3228
 * 
 *         cdef char *c_string
 *         try:             # <<<<<<<<<<<<<<
 *             c_string = get_isomorphism_signature(
 *                 self.c_triangulation, ignore_orientation)
*/
  /*try:*/ {

    /* "cython/core/triangulation.pyx":3229
 *         cdef char *c_string
 *         try:
 *             c_string = get_isomorphism_signature(             # <<<<<<<<<<<<<<
 *                 self.c_triangulation, ignore_orientation)
 *             return to_str(c_string)
*/
    __pyx_v_c_string = get_isomorphism_signature(__pyx_v_self->c_triangulation, __pyx_v_ignore_orientation);

    /* "cython/core/triangulation.pyx":3231
 *             c_string = get_isomorphism_signature(
 *                 self.c_triangulation, ignore_orientation)
 *             return to_str(c_string)             # <<<<<<<<<<<<<<
 *         finally:
 *             free(c_string)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_to_str); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3231, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_c_string); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3231, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3231, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(4, 3231, __pyx_L5_error)
    __pyx_r = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;
    goto __pyx_L4_return;
  }

  /* "cython/core/triangulation.pyx":3233
 *             return to_str(c_string)
 *         finally:
 *             free(c_string)             # <<<<<<<<<<<<<<
 * 
 *     def _symplectic_form(self, u, v):
*/
  /*finally:*/ {
    __pyx_L5_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
       __Pyx_ExceptionSwap(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
      if ( unlikely(__Pyx_GetException(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12) < 0)) __Pyx_ErrFetch(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __Pyx_XGOTREF(__pyx_t_15);
      __pyx_t_7 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_9 = __pyx_filename;
      {
        free(__pyx_v_c_string);
      }
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_14);
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_ExceptionReset(__pyx_t_13, __pyx_t_14, __pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ErrRestore(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0;
      __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_8; __pyx_filename = __pyx_t_9;
      goto __pyx_L1_error;
    }
    __pyx_L4_return: {
      __pyx_t_16 = __pyx_r;
      __pyx_r = 0;
      free(__pyx_v_c_string);
      __pyx_r = __pyx_t_16;
      __pyx_t_16 = 0;
      goto __pyx_L0;
    }
  }

  /* "cython/core/triangulation.pyx":3222
 *         return self._cache.save(result, 'triangulation_isosig', *args)
 * 
 *     def _undecorated_triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                                           ignore_orientation : bool = False) -> str:
 *         if self.c_triangulation is NULL:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Triangulation._undecorated_triangulation_isosig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":3235
 *             free(c_string)
 * 
 *     def _symplectic_form(self, u, v):             # <<<<<<<<<<<<<<
 *         return sum([u[2 * i] * v[2 * i + 1] - u[2 * i + 1] * v[2 * i] for i in range(len(u) // 2)])
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_147_symplectic_form(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_147_symplectic_form = {"_symplectic_form", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_147_symplectic_form, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_147_symplectic_form(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_u = 0;
  PyObject *__pyx_v_v = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_symplectic_form (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_u,&__pyx_mstate_global->__pyx_n_u_v,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3235, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 3235, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3235, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_symplectic_form", 0) < (0)) __PYX_ERR(4, 3235, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_symplectic_form", 1, 2, 2, i); __PYX_ERR(4, 3235, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3235, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(4, 3235, __pyx_L3_error)
    }
    __pyx_v_u = values[0];
    __pyx_v_v = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_symplectic_form", 1, 2, 2, __pyx_nargs); __PYX_ERR(4, 3235, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._symplectic_form", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_146_symplectic_form(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_u, __pyx_v_v);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_146_symplectic_form(CYTHON_UNUSED struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_u, PyObject *__pyx_v_v) {
  PyObject *__pyx_9genexpr41__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_symplectic_form", 0);

  /* "cython/core/triangulation.pyx":3236
 * 
 *     def _symplectic_form(self, u, v):
 *         return sum([u[2 * i] * v[2 * i + 1] - u[2 * i + 1] * v[2 * i] for i in range(len(u) // 2)])             # <<<<<<<<<<<<<<
 * 
 *     def _is_symplectic(self, M):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3236, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = NULL;
    __pyx_t_6 = PyObject_Length(__pyx_v_u); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(4, 3236, __pyx_L5_error)
    __pyx_t_7 = PyLong_FromSsize_t(__Pyx_div_Py_ssize_t(__pyx_t_6, 2, 1)); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3236, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_7};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3236, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3236, __pyx_L5_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    for (;;) {
      {
        __pyx_t_4 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 3236, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_9genexpr41__pyx_v_i, __pyx_t_4);
      __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_2, __pyx_9genexpr41__pyx_v_i, 2, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_u, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_2, __pyx_9genexpr41__pyx_v_i, 2, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __Pyx_PyLong_AddObjC(__pyx_t_4, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_v, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = PyNumber_Multiply(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_2, __pyx_9genexpr41__pyx_v_i, 2, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_t_4, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_u, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_2, __pyx_9genexpr41__pyx_v_i, 2, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_v_v, __pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = PyNumber_Multiply(__pyx_t_4, __pyx_t_11); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __pyx_t_11 = PyNumber_Subtract(__pyx_t_10, __pyx_t_5); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_11))) __PYX_ERR(4, 3236, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_9genexpr41__pyx_v_i); __pyx_9genexpr41__pyx_v_i = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr41__pyx_v_i); __pyx_9genexpr41__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 3236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":3235
 *             free(c_string)
 * 
 *     def _symplectic_form(self, u, v):             # <<<<<<<<<<<<<<
 *         return sum([u[2 * i] * v[2 * i + 1] - u[2 * i + 1] * v[2 * i] for i in range(len(u) // 2)])
 * 
*/

  /* function exit code */
  __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_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.Triangulation._symplectic_form", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_9genexpr41__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":3238
 *         return sum([u[2 * i] * v[2 * i + 1] - u[2 * i + 1] * v[2 * i] for i in range(len(u) // 2)])
 * 
 *     def _is_symplectic(self, M):             # <<<<<<<<<<<<<<
 *         """
 *         Test if the matrix M is symplectic
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_149_is_symplectic(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_148_is_symplectic, "\n        Test if the matrix M is symplectic\n        :param M: square matrix\n        :return: true or false\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_149_is_symplectic = {"_is_symplectic", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_149_is_symplectic, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_148_is_symplectic};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_149_is_symplectic(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_M = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_is_symplectic (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_M,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3238, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3238, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_is_symplectic", 0) < (0)) __PYX_ERR(4, 3238, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_is_symplectic", 1, 1, 1, i); __PYX_ERR(4, 3238, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3238, __pyx_L3_error)
    }
    __pyx_v_M = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_is_symplectic", 1, 1, 1, __pyx_nargs); __PYX_ERR(4, 3238, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation._is_symplectic", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_148_is_symplectic(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_M);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_148_is_symplectic(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, PyObject *__pyx_v_M) {
  Py_ssize_t __pyx_v_n;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_j = NULL;
  PyObject *__pyx_v_omega = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_is_symplectic", 0);

  /* "cython/core/triangulation.pyx":3244
 *         :return: true or false
 *         """
 *         n = len(M)             # <<<<<<<<<<<<<<
 * 
 *         for i in range(n):
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_M); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(4, 3244, __pyx_L1_error)
  __pyx_v_n = __pyx_t_1;

  /* "cython/core/triangulation.pyx":3246
 *         n = len(M)
 * 
 *         for i in range(n):             # <<<<<<<<<<<<<<
 *             for j in range(i, n):
 *                 omega = abs(self._symplectic_form(M[i], M[j]))
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = PyLong_FromSsize_t(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 3246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3246, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    {
      __pyx_t_2 = __pyx_t_6(__pyx_t_4);
      if (unlikely(!__pyx_t_2)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 3246, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":3247
 * 
 *         for i in range(n):
 *             for j in range(i, n):             # <<<<<<<<<<<<<<
 *                 omega = abs(self._symplectic_form(M[i], M[j]))
 * 
*/
    __pyx_t_3 = NULL;
    __pyx_t_7 = PyLong_FromSsize_t(__pyx_v_n); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_i, __pyx_t_7};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3247, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 3247, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_8(__pyx_t_7);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 3247, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/triangulation.pyx":3248
 *         for i in range(n):
 *             for j in range(i, n):
 *                 omega = abs(self._symplectic_form(M[i], M[j]))             # <<<<<<<<<<<<<<
 * 
 *                 if i % 2 == 0 and j % 2 == 1 and j == i + 1:
*/
      __pyx_t_3 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_v_M, __pyx_v_i); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = __Pyx_PyObject_GetItem(__pyx_v_M, __pyx_v_j); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 3248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_9, __pyx_t_10};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_symplectic_form, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3248, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_10 = __Pyx_PyNumber_Absolute(__pyx_t_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 3248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_omega, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "cython/core/triangulation.pyx":3250
 *                 omega = abs(self._symplectic_form(M[i], M[j]))
 * 
 *                 if i % 2 == 0 and j % 2 == 1 and j == i + 1:             # <<<<<<<<<<<<<<
 *                     if omega != 2:
 *                         return False
*/
      __pyx_t_10 = __Pyx_PyLong_RemainderObjC(__pyx_v_i, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 3250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_12 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_10, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 3250, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (__pyx_t_12) {
      } else {
        __pyx_t_11 = __pyx_t_12;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_10 = __Pyx_PyLong_RemainderObjC(__pyx_v_j, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 3250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_12 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_10, __pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 3250, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (__pyx_t_12) {
      } else {
        __pyx_t_11 = __pyx_t_12;
        goto __pyx_L8_bool_binop_done;
      }
      __pyx_t_10 = __Pyx_PyLong_AddObjC(__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 3250, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_2 = PyObject_RichCompare(__pyx_v_j, __pyx_t_10, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3250, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(4, 3250, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_11 = __pyx_t_12;
      __pyx_L8_bool_binop_done:;
      if (__pyx_t_11) {

        /* "cython/core/triangulation.pyx":3251
 * 
 *                 if i % 2 == 0 and j % 2 == 1 and j == i + 1:
 *                     if omega != 2:             # <<<<<<<<<<<<<<
 *                         return False
 *                 elif omega:
*/
        __pyx_t_11 = (__Pyx_PyLong_BoolNeObjC(__pyx_v_omega, __pyx_mstate_global->__pyx_int_2, 2, 0)); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(4, 3251, __pyx_L1_error)
        if (__pyx_t_11) {

          /* "cython/core/triangulation.pyx":3252
 *                 if i % 2 == 0 and j % 2 == 1 and j == i + 1:
 *                     if omega != 2:
 *                         return False             # <<<<<<<<<<<<<<
 *                 elif omega:
 *                     return False
*/
          __Pyx_XDECREF(__pyx_r);
          __Pyx_INCREF(Py_False);
          __pyx_r = Py_False;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          goto __pyx_L0;

          /* "cython/core/triangulation.pyx":3251
 * 
 *                 if i % 2 == 0 and j % 2 == 1 and j == i + 1:
 *                     if omega != 2:             # <<<<<<<<<<<<<<
 *                         return False
 *                 elif omega:
*/
        }

        /* "cython/core/triangulation.pyx":3250
 *                 omega = abs(self._symplectic_form(M[i], M[j]))
 * 
 *                 if i % 2 == 0 and j % 2 == 1 and j == i + 1:             # <<<<<<<<<<<<<<
 *                     if omega != 2:
 *                         return False
*/
        goto __pyx_L7;
      }

      /* "cython/core/triangulation.pyx":3253
 *                     if omega != 2:
 *                         return False
 *                 elif omega:             # <<<<<<<<<<<<<<
 *                     return False
 * 
*/
      __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_v_omega); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(4, 3253, __pyx_L1_error)
      if (__pyx_t_11) {

        /* "cython/core/triangulation.pyx":3254
 *                         return False
 *                 elif omega:
 *                     return False             # <<<<<<<<<<<<<<
 * 
 *         return True
*/
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(Py_False);
        __pyx_r = Py_False;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L0;

        /* "cython/core/triangulation.pyx":3253
 *                     if omega != 2:
 *                         return False
 *                 elif omega:             # <<<<<<<<<<<<<<
 *                     return False
 * 
*/
      }
      __pyx_L7:;

      /* "cython/core/triangulation.pyx":3247
 * 
 *         for i in range(n):
 *             for j in range(i, n):             # <<<<<<<<<<<<<<
 *                 omega = abs(self._symplectic_form(M[i], M[j]))
 * 
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/triangulation.pyx":3246
 *         n = len(M)
 * 
 *         for i in range(n):             # <<<<<<<<<<<<<<
 *             for j in range(i, n):
 *                 omega = abs(self._symplectic_form(M[i], M[j]))
*/
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/triangulation.pyx":3256
 *                     return False
 * 
 *         return True             # <<<<<<<<<<<<<<
 * 
 *     def symplectic_basis(self, verify : bool = False):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_True);
  __pyx_r = Py_True;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":3238
 *         return sum([u[2 * i] * v[2 * i + 1] - u[2 * i + 1] * v[2 * i] for i in range(len(u) // 2)])
 * 
 *     def _is_symplectic(self, M):             # <<<<<<<<<<<<<<
 *         """
 *         Test if the matrix M is symplectic
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("SnapPy.Triangulation._is_symplectic", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XDECREF(__pyx_v_omega);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":3258
 *         return True
 * 
 *     def symplectic_basis(self, verify : bool = False):             # <<<<<<<<<<<<<<
 *         """
 *         Extend the Neumann-Zagier matrix to one which is symplectic
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_151symplectic_basis(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13Triangulation_150symplectic_basis, "\n        Extend the Neumann-Zagier matrix to one which is symplectic\n        (up to factors of 2) using oscillating curves, see\n        `Mathews and Purcell '22 <https://arxiv.org/abs/2208.06969>`_.\n        Only accepts triangulations with 1 cusp.\n\n          >>> M = Manifold(\"4_1\")\n          >>> M.symplectic_basis()\n          [-1  0 -1 -1]\n          [ 2  0 -2  0]\n          [-2 -1 -2 -1]\n          [ 0 -1 -2 -1]\n\n\n        :param verify: Explicitly test if the resulting matrix is symplectic.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13Triangulation_151symplectic_basis = {"symplectic_basis", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_151symplectic_basis, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_150symplectic_basis};
static PyObject *__pyx_pw_6SnapPy_13Triangulation_151symplectic_basis(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_verify;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("symplectic_basis (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_verify,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(4, 3258, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3258, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "symplectic_basis", 0) < (0)) __PYX_ERR(4, 3258, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(4, 3258, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_verify = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_verify == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 3258, __pyx_L3_error)
    } else {
      __pyx_v_verify = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("symplectic_basis", 0, 0, 1, __pyx_nargs); __PYX_ERR(4, 3258, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Triangulation.symplectic_basis", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_150symplectic_basis(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self), __pyx_v_verify);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_150symplectic_basis(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self, int __pyx_v_verify) {
  int **__pyx_v_g_eqns;
  int __pyx_v_num_rows;
  int __pyx_v_num_cols;
  int __pyx_v_dual_rows;
  int *__pyx_v_eqn;
  PyObject *__pyx_v_eqns = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_cusp_info = NULL;
  PyObject *__pyx_v_to_do = NULL;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_l = NULL;
  Py_ssize_t __pyx_v_rows;
  PyObject *__pyx_v_retval = NULL;
  int __pyx_9genexpr42__pyx_v_j;
  int __pyx_9genexpr43__pyx_v_j;
  Py_ssize_t __pyx_9genexpr44__pyx_v_i;
  Py_ssize_t __pyx_9genexpr45__pyx_v_j;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  Py_ssize_t __pyx_t_10;
  PyObject *(*__pyx_t_11)(PyObject *);
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  int **__pyx_t_16;
  Py_ssize_t __pyx_t_17;
  Py_ssize_t __pyx_t_18;
  Py_ssize_t __pyx_t_19;
  Py_ssize_t __pyx_t_20;
  Py_ssize_t __pyx_t_21;
  Py_ssize_t __pyx_t_22;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("symplectic_basis", 0);

  /* "cython/core/triangulation.pyx":3281
 *         cdef int* eqn;
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":3282
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         # current get_symplectic_eqns() implementation requires 1 cusp
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3282, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(4, 3282, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":3281
 *         cdef int* eqn;
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/triangulation.pyx":3285
 * 
 *         # current get_symplectic_eqns() implementation requires 1 cusp
 *         if self.num_cusps() > 1:             # <<<<<<<<<<<<<<
 *             raise ValueError('Triangulation contains {} cusps, only accepts triangulations with 1 cusp'.format(self.num_cusps()))
 * 
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3285, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 3285, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/triangulation.pyx":3286
 *         # current get_symplectic_eqns() implementation requires 1 cusp
 *         if self.num_cusps() > 1:
 *             raise ValueError('Triangulation contains {} cusps, only accepts triangulations with 1 cusp'.format(self.num_cusps()))             # <<<<<<<<<<<<<<
 * 
 *         eqns = []
*/
    __pyx_t_2 = NULL;
    __pyx_t_6 = __pyx_mstate_global->__pyx_kp_u_Triangulation_contains_cusps_onl;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_8 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3286, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_7};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_format, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3286, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_5};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3286, __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_ERR(4, 3286, __pyx_L1_error)

    /* "cython/core/triangulation.pyx":3285
 * 
 *         # current get_symplectic_eqns() implementation requires 1 cusp
 *         if self.num_cusps() > 1:             # <<<<<<<<<<<<<<
 *             raise ValueError('Triangulation contains {} cusps, only accepts triangulations with 1 cusp'.format(self.num_cusps()))
 * 
*/
  }

  /* "cython/core/triangulation.pyx":3288
 *             raise ValueError('Triangulation contains {} cusps, only accepts triangulations with 1 cusp'.format(self.num_cusps()))
 * 
 *         eqns = []             # <<<<<<<<<<<<<<
 * 
 *         peripheral_curves(self.c_triangulation)
*/
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_eqns = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":3290
 *         eqns = []
 * 
 *         peripheral_curves(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         # Cusp Equations
*/
  peripheral_curves(__pyx_v_self->c_triangulation);

  /* "cython/core/triangulation.pyx":3293
 * 
 *         # Cusp Equations
 *         for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:
*/
  __pyx_t_5 = NULL;
  __pyx_t_7 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_2};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3293, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    {
      __pyx_t_3 = __pyx_t_9(__pyx_t_2);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 3293, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":3294
 *         # Cusp Equations
 *         for i in range(self.num_cusps()):
 *             cusp_info = self.cusp_info(i)             # <<<<<<<<<<<<<<
 *             if cusp_info.is_complete:
 *                 to_do = [(1,0), (0,1)]
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_i};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3294, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_cusp_info, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/triangulation.pyx":3295
 *         for i in range(self.num_cusps()):
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:             # <<<<<<<<<<<<<<
 *                 to_do = [(1,0), (0,1)]
 *             else:
*/
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cusp_info, __pyx_mstate_global->__pyx_n_u_is_complete); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3295, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 3295, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":3296
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:
 *                 to_do = [(1,0), (0,1)]             # <<<<<<<<<<<<<<
 *             else:
 *                 to_do = [cusp_info.filling]
*/
      __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3296, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[5]);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_mstate_global->__pyx_tuple[5]) != (0)) __PYX_ERR(4, 3296, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[4]);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_mstate_global->__pyx_tuple[4]) != (0)) __PYX_ERR(4, 3296, __pyx_L1_error);
      __Pyx_XDECREF_SET(__pyx_v_to_do, ((PyObject*)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":3295
 *         for i in range(self.num_cusps()):
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:             # <<<<<<<<<<<<<<
 *                 to_do = [(1,0), (0,1)]
 *             else:
*/
      goto __pyx_L7;
    }

    /* "cython/core/triangulation.pyx":3298
 *                 to_do = [(1,0), (0,1)]
 *             else:
 *                 to_do = [cusp_info.filling]             # <<<<<<<<<<<<<<
 *             for (m, l) in to_do:
 *                 eqn = get_cusp_equation(self.c_triangulation,
*/
    /*else*/ {
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cusp_info, __pyx_mstate_global->__pyx_n_u_filling); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3298, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3298, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_3);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_3) != (0)) __PYX_ERR(4, 3298, __pyx_L1_error);
      __pyx_t_3 = 0;
      __Pyx_XDECREF_SET(__pyx_v_to_do, ((PyObject*)__pyx_t_5));
      __pyx_t_5 = 0;
    }
    __pyx_L7:;

    /* "cython/core/triangulation.pyx":3299
 *             else:
 *                 to_do = [cusp_info.filling]
 *             for (m, l) in to_do:             # <<<<<<<<<<<<<<
 *                 eqn = get_cusp_equation(self.c_triangulation,
 *                                         i, int(m), int(l), &num_rows)
*/
    __pyx_t_5 = __pyx_v_to_do; __Pyx_INCREF(__pyx_t_5);
    __pyx_t_10 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(4, 3299, __pyx_L1_error)
        #endif
        if (__pyx_t_10 >= __pyx_temp) break;
      }
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_10, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_10;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3299, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
        PyObject* sequence = __pyx_t_3;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(4, 3299, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_7 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_7);
          __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_6);
        } else {
          __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3299, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_7);
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3299, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_6);
        }
        #else
        __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3299, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3299, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        #endif
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_8 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 3299, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
        index = 0; __pyx_t_7 = __pyx_t_11(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L10_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_7);
        index = 1; __pyx_t_6 = __pyx_t_11(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L10_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_6);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_8), 2) < (0)) __PYX_ERR(4, 3299, __pyx_L1_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L11_unpacking_done;
        __pyx_L10_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(4, 3299, __pyx_L1_error)
        __pyx_L11_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_7);
      __pyx_t_7 = 0;
      __Pyx_XDECREF_SET(__pyx_v_l, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/triangulation.pyx":3301
 *             for (m, l) in to_do:
 *                 eqn = get_cusp_equation(self.c_triangulation,
 *                                         i, int(m), int(l), &num_rows)             # <<<<<<<<<<<<<<
 *                 eqns.append([eqn[j] for j in range(num_rows)])
 *                 free_cusp_equation(eqn)
*/
      __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_v_i); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 3301, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_m); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3301, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_13 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 3301, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_l); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3301, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_14 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_14 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 3301, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":3300
 *                 to_do = [cusp_info.filling]
 *             for (m, l) in to_do:
 *                 eqn = get_cusp_equation(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                         i, int(m), int(l), &num_rows)
 *                 eqns.append([eqn[j] for j in range(num_rows)])
*/
      __pyx_v_eqn = get_cusp_equation(__pyx_v_self->c_triangulation, __pyx_t_12, __pyx_t_13, __pyx_t_14, (&__pyx_v_num_rows));

      /* "cython/core/triangulation.pyx":3302
 *                 eqn = get_cusp_equation(self.c_triangulation,
 *                                         i, int(m), int(l), &num_rows)
 *                 eqns.append([eqn[j] for j in range(num_rows)])             # <<<<<<<<<<<<<<
 *                 free_cusp_equation(eqn)
 * 
*/
      { /* enter inner scope */
        __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3302, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_14 = __pyx_v_num_rows;
        __pyx_t_13 = __pyx_t_14;
        for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_13; __pyx_t_12+=1) {
          __pyx_9genexpr42__pyx_v_j = __pyx_t_12;
          __pyx_t_6 = __Pyx_PyLong_From_int((__pyx_v_eqn[__pyx_9genexpr42__pyx_v_j])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3302, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_6))) __PYX_ERR(4, 3302, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
      } /* exit inner scope */
      __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_eqns, __pyx_t_3); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(4, 3302, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":3303
 *                                         i, int(m), int(l), &num_rows)
 *                 eqns.append([eqn[j] for j in range(num_rows)])
 *                 free_cusp_equation(eqn)             # <<<<<<<<<<<<<<
 * 
 *         # Dual Curve Equations
*/
      free_cusp_equation(__pyx_v_eqn);

      /* "cython/core/triangulation.pyx":3299
 *             else:
 *                 to_do = [cusp_info.filling]
 *             for (m, l) in to_do:             # <<<<<<<<<<<<<<
 *                 eqn = get_cusp_equation(self.c_triangulation,
 *                                         i, int(m), int(l), &num_rows)
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/triangulation.pyx":3293
 * 
 *         # Cusp Equations
 *         for i in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *             cusp_info = self.cusp_info(i)
 *             if cusp_info.is_complete:
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/triangulation.pyx":3306
 * 
 *         # Dual Curve Equations
 *         g_eqns = get_symplectic_basis(self.c_triangulation, &dual_rows, &num_cols, 0)             # <<<<<<<<<<<<<<
 * 
 *         for i in range(dual_rows):
*/
  __pyx_t_16 = get_symplectic_basis(__pyx_v_self->c_triangulation, (&__pyx_v_dual_rows), (&__pyx_v_num_cols), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 3306, __pyx_L1_error)
  __pyx_v_g_eqns = __pyx_t_16;

  /* "cython/core/triangulation.pyx":3308
 *         g_eqns = get_symplectic_basis(self.c_triangulation, &dual_rows, &num_cols, 0)
 * 
 *         for i in range(dual_rows):             # <<<<<<<<<<<<<<
 *             eqns.append([g_eqns[i][j] for j in range(num_cols)])
 * 
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_dual_rows); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(4, 3308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    {
      __pyx_t_2 = __pyx_t_9(__pyx_t_3);
      if (unlikely(!__pyx_t_2)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(4, 3308, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":3309
 * 
 *         for i in range(dual_rows):
 *             eqns.append([g_eqns[i][j] for j in range(num_cols)])             # <<<<<<<<<<<<<<
 * 
 *         free_symplectic_basis(g_eqns, dual_rows)
*/
    { /* enter inner scope */
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3309, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_14 = __pyx_v_num_cols;
      __pyx_t_13 = __pyx_t_14;
      for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_13; __pyx_t_12+=1) {
        __pyx_9genexpr43__pyx_v_j = __pyx_t_12;
        __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(4, 3309, __pyx_L1_error)
        __pyx_t_5 = __Pyx_PyLong_From_int(((__pyx_v_g_eqns[__pyx_t_10])[__pyx_9genexpr43__pyx_v_j])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3309, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_5))) __PYX_ERR(4, 3309, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      }
    } /* exit inner scope */
    __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_eqns, __pyx_t_2); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(4, 3309, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/triangulation.pyx":3308
 *         g_eqns = get_symplectic_basis(self.c_triangulation, &dual_rows, &num_cols, 0)
 * 
 *         for i in range(dual_rows):             # <<<<<<<<<<<<<<
 *             eqns.append([g_eqns[i][j] for j in range(num_cols)])
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":3311
 *             eqns.append([g_eqns[i][j] for j in range(num_cols)])
 * 
 *         free_symplectic_basis(g_eqns, dual_rows)             # <<<<<<<<<<<<<<
 * 
 *         # Convert to Neumann Zagier Matrix
*/
  free_symplectic_basis(__pyx_v_g_eqns, __pyx_v_dual_rows); if (unlikely(PyErr_Occurred())) __PYX_ERR(4, 3311, __pyx_L1_error)

  /* "cython/core/triangulation.pyx":3314
 * 
 *         # Convert to Neumann Zagier Matrix
 *         rows = len(eqns)             # <<<<<<<<<<<<<<
 *         retval = [[eqns[i][3 * (j // 2) + j % 2] - eqns[i][3 * (j // 2) + 2] for j in range(rows)] for i in range(rows)]
 * 
*/
  __pyx_t_10 = __Pyx_PyList_GET_SIZE(__pyx_v_eqns); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(4, 3314, __pyx_L1_error)
  __pyx_v_rows = __pyx_t_10;

  /* "cython/core/triangulation.pyx":3315
 *         # Convert to Neumann Zagier Matrix
 *         rows = len(eqns)
 *         retval = [[eqns[i][3 * (j // 2) + j % 2] - eqns[i][3 * (j // 2) + 2] for j in range(rows)] for i in range(rows)]             # <<<<<<<<<<<<<<
 * 
 *         if verify:
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __pyx_v_rows;
    __pyx_t_17 = __pyx_t_10;
    for (__pyx_t_18 = 0; __pyx_t_18 < __pyx_t_17; __pyx_t_18+=1) {
      __pyx_9genexpr44__pyx_v_i = __pyx_t_18;
      { /* enter inner scope */
        __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 3315, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_19 = __pyx_v_rows;
        __pyx_t_20 = __pyx_t_19;
        for (__pyx_t_21 = 0; __pyx_t_21 < __pyx_t_20; __pyx_t_21+=1) {
          __pyx_9genexpr45__pyx_v_j = __pyx_t_21;
          __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_eqns, __pyx_9genexpr44__pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3315, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_22 = ((3 * __Pyx_div_Py_ssize_t(__pyx_9genexpr45__pyx_v_j, 2, 1)) + __Pyx_mod_Py_ssize_t(__pyx_9genexpr45__pyx_v_j, 2, 1));
          __pyx_t_6 = __Pyx_GetItemInt(__pyx_t_5, __pyx_t_22, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3315, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_t_5 = __Pyx_GetItemInt_List(__pyx_v_eqns, __pyx_9genexpr44__pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3315, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_22 = ((3 * __Pyx_div_Py_ssize_t(__pyx_9genexpr45__pyx_v_j, 2, 1)) + 2);
          __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_5, __pyx_t_22, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 3315, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_t_5 = PyNumber_Subtract(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3315, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_5))) __PYX_ERR(4, 3315, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      } /* exit inner scope */
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_2))) __PYX_ERR(4, 3315, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
  } /* exit inner scope */
  __pyx_v_retval = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cython/core/triangulation.pyx":3317
 *         retval = [[eqns[i][3 * (j // 2) + j % 2] - eqns[i][3 * (j // 2) + 2] for j in range(rows)] for i in range(rows)]
 * 
 *         if verify:             # <<<<<<<<<<<<<<
 *             if self._is_symplectic(retval):
 *                 print("Result is symplectic (up to factors of 2)")
*/
  if (__pyx_v_verify) {

    /* "cython/core/triangulation.pyx":3318
 * 
 *         if verify:
 *             if self._is_symplectic(retval):             # <<<<<<<<<<<<<<
 *                 print("Result is symplectic (up to factors of 2)")
 *             else:
*/
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_retval};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_symplectic, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3318, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(4, 3318, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_1) {

      /* "cython/core/triangulation.pyx":3319
 *         if verify:
 *             if self._is_symplectic(retval):
 *                 print("Result is symplectic (up to factors of 2)")             # <<<<<<<<<<<<<<
 *             else:
 *                 print("Warning: Result is not symplectic")
*/
      __pyx_t_2 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Result_is_symplectic_up_to_facto};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3319, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/triangulation.pyx":3318
 * 
 *         if verify:
 *             if self._is_symplectic(retval):             # <<<<<<<<<<<<<<
 *                 print("Result is symplectic (up to factors of 2)")
 *             else:
*/
      goto __pyx_L26;
    }

    /* "cython/core/triangulation.pyx":3321
 *                 print("Result is symplectic (up to factors of 2)")
 *             else:
 *                 print("Warning: Result is not symplectic")             # <<<<<<<<<<<<<<
 * 
 *         return matrix(retval)
*/
    /*else*/ {
      __pyx_t_2 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Warning_Result_is_not_symplectic};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3321, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __pyx_L26:;

    /* "cython/core/triangulation.pyx":3317
 *         retval = [[eqns[i][3 * (j // 2) + j % 2] - eqns[i][3 * (j // 2) + 2] for j in range(rows)] for i in range(rows)]
 * 
 *         if verify:             # <<<<<<<<<<<<<<
 *             if self._is_symplectic(retval):
 *                 print("Result is symplectic (up to factors of 2)")
*/
  }

  /* "cython/core/triangulation.pyx":3323
 *                 print("Warning: Result is not symplectic")
 * 
 *         return matrix(retval)             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_retval};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 3323, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/triangulation.pyx":3258
 *         return True
 * 
 *     def symplectic_basis(self, verify : bool = False):             # <<<<<<<<<<<<<<
 *         """
 *         Extend the Neumann-Zagier matrix to one which is symplectic
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.Triangulation.symplectic_basis", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_eqns);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_cusp_info);
  __Pyx_XDECREF(__pyx_v_to_do);
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XDECREF(__pyx_v_retval);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":74
 *     cdef _PDcode
 *     cdef _cover_info
 *     cdef readonly _cache             # <<<<<<<<<<<<<<
 *     cdef readonly LE
 *     cdef _link_file_full_path
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_6_cache_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_13Triangulation_6_cache_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_6_cache___get__(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_6_cache___get__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_cache);
  __pyx_r = __pyx_v_self->_cache;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/triangulation.pyx":75
 *     cdef _cover_info
 *     cdef readonly _cache
 *     cdef readonly LE             # <<<<<<<<<<<<<<
 *     cdef _link_file_full_path
 *     cdef hyperbolic_structure_initialized
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13Triangulation_2LE_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_13Triangulation_2LE_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_13Triangulation_2LE___get__(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13Triangulation_2LE___get__(struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->LE);
  __pyx_r = __pyx_v_self->LE;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":80
 *     """
 * 
 *     def __init__(self, spec=None):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             self.init_hyperbolic_structure()
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_8Manifold_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6SnapPy_8Manifold_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED PyObject *__pyx_v_spec = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_spec,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 80, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 80, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(1, 80, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 80, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_spec = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, __pyx_nargs); __PYX_ERR(1, 80, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold___init__(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_spec);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_8Manifold___init__(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_spec) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/manifold.pyx":81
 * 
 *     def __init__(self, spec=None):
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             self.init_hyperbolic_structure()
 *             do_Dehn_filling(self.c_triangulation)
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation != NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":82
 *     def __init__(self, spec=None):
 *         if self.c_triangulation != NULL:
 *             self.init_hyperbolic_structure()             # <<<<<<<<<<<<<<
 *             do_Dehn_filling(self.c_triangulation)
 * 
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_init_hyperbolic_structure, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 82, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":83
 *         if self.c_triangulation != NULL:
 *             self.init_hyperbolic_structure()
 *             do_Dehn_filling(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
*/
    do_Dehn_filling(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 83, __pyx_L1_error)

    /* "cython/core/manifold.pyx":81
 * 
 *     def __init__(self, spec=None):
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             self.init_hyperbolic_structure()
 *             do_Dehn_filling(self.c_triangulation)
*/
  }

  /* "cython/core/manifold.pyx":80
 *     """
 * 
 *     def __init__(self, spec=None):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             self.init_hyperbolic_structure()
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Manifold.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":85
 *             do_Dehn_filling(self.c_triangulation)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_3_number_(CYTHON_UNUSED PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_3_number_ = {"_number_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_3_number_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Manifold_3_number_(CYTHON_UNUSED PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_number_ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 85, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 85, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_number_", 0) < (0)) __PYX_ERR(1, 85, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_number_", 1, 1, 1, i); __PYX_ERR(1, 85, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 85, __pyx_L3_error)
    }
    __pyx_v_n = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_number_", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 85, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._number_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_2_number_(__pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_2_number_(PyObject *__pyx_v_n) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_number_", 0);

  /* "cython/core/manifold.pyx":87
 *     @staticmethod
 *     def _number_(n):
 *         return number.number_to_native_number(n)             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 87, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number_to_native_number); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 87, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_n};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 87, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":85
 *             do_Dehn_filling(self.c_triangulation)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Manifold._number_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":89
 *         return number.number_to_native_number(n)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def use_field_conversion(cls, func):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_5use_field_conversion(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_4use_field_conversion, "\n        A class method for specifying a numerical conversion function.\n        This method is deprecated: SnapPy will automatically use\n        SageMath number types or its own SnapPy number type depending on\n        whether SageMath is available or not.\n\n        SnapPy includes its own number type, snappy.Number, which can\n        represent floating point real or complex numbers of varying\n        precision.  (In fact, Number is a wrapper for a pari number of\n        type 't_INT', 't_FRAC', 't_REAL' or 't_COMPLEX', and the pari\n        gen can be extracted as an attribute: x.gen .)  Methods of\n        SnapPy objects which return numerical values will first compute\n        the value as a Number, and then optionally convert the Number\n        to a different numerical type which can be specified by calling\n        this class method.\n\n        By default SnapPy returns Numbers when loaded into python, and\n        elements of a Sage RealField or ComplexField when loaded into\n        Sage.  These will be 64 bit numbers for ordinary Manifolds and\n        212 bit numbers for high precision manifolds.\n\n        The func argument should be a function which accepts a number and\n        returns a numerical type of your choosing.  Alternatively, the\n        strings 'sage' or 'snappy' can be passed as arguments to select\n        either of the two default behaviors.\n\n        EXAMPLE::\n\n            sage: M = Manifold('m004')\n            sage: R = M.volume().parent()\n            sage: R.name().startswith('RealField')\n            True\n            sage: from snappy.number import SnapPyNumbers\n            sage: Manifold.use_field_conversion('snappy')\n            sage: M = Manifold('m004')\n            sage: R = M.volume().parent()\n            sage: isinstance(R, SnapPyNumbers)\n            True\n            sage: Manifold.use_field_conversion('sage')\n            sage: M = Manifold('m004')\n            sage: R = M.volume().parent()\n            sage: ""R.name().startswith('RealField')\n            True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_5use_field_conversion = {"use_field_conversion", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_5use_field_conversion, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_4use_field_conversion};
static PyObject *__pyx_pw_6SnapPy_8Manifold_5use_field_conversion(PyObject *__pyx_v_cls, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_func = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("use_field_conversion (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 89, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 89, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "use_field_conversion", 0) < (0)) __PYX_ERR(1, 89, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("use_field_conversion", 1, 1, 1, i); __PYX_ERR(1, 89, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 89, __pyx_L3_error)
    }
    __pyx_v_func = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("use_field_conversion", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 89, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.use_field_conversion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_4use_field_conversion(((PyTypeObject*)__pyx_v_cls), __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_4use_field_conversion(CYTHON_UNUSED PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("use_field_conversion", 0);

  /* "cython/core/manifold.pyx":135
 *             True
 *         """
 *         number.use_field_conversion(func)             # <<<<<<<<<<<<<<
 * 
 *     def init_hyperbolic_structure(self, force_recompute = False):
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_use_field_conversion); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_func};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":89
 *         return number.number_to_native_number(n)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def use_field_conversion(cls, func):
 *         """
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_AddTraceback("SnapPy.Manifold.use_field_conversion", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":137
 *         number.use_field_conversion(func)
 * 
 *     def init_hyperbolic_structure(self, force_recompute = False):             # <<<<<<<<<<<<<<
 *         if not self.c_triangulation:
 *             return
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_7init_hyperbolic_structure(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_7init_hyperbolic_structure = {"init_hyperbolic_structure", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_7init_hyperbolic_structure, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Manifold_7init_hyperbolic_structure(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_force_recompute = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("init_hyperbolic_structure (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_force_recompute,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 137, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 137, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "init_hyperbolic_structure", 0) < (0)) __PYX_ERR(1, 137, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 137, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_force_recompute = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("init_hyperbolic_structure", 0, 0, 1, __pyx_nargs); __PYX_ERR(1, 137, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.init_hyperbolic_structure", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_6init_hyperbolic_structure(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_force_recompute);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_6init_hyperbolic_structure(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_force_recompute) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("init_hyperbolic_structure", 0);

  /* "cython/core/manifold.pyx":138
 * 
 *     def init_hyperbolic_structure(self, force_recompute = False):
 *         if not self.c_triangulation:             # <<<<<<<<<<<<<<
 *             return
 *         if self.hyperbolic_structure_initialized and not force_recompute:
*/
  __pyx_t_1 = (!(__pyx_v_self->__pyx_base.c_triangulation != 0));
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":139
 *     def init_hyperbolic_structure(self, force_recompute = False):
 *         if not self.c_triangulation:
 *             return             # <<<<<<<<<<<<<<
 *         if self.hyperbolic_structure_initialized and not force_recompute:
 *             return
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":138
 * 
 *     def init_hyperbolic_structure(self, force_recompute = False):
 *         if not self.c_triangulation:             # <<<<<<<<<<<<<<
 *             return
 *         if self.hyperbolic_structure_initialized and not force_recompute:
*/
  }

  /* "cython/core/manifold.pyx":140
 *         if not self.c_triangulation:
 *             return
 *         if self.hyperbolic_structure_initialized and not force_recompute:             # <<<<<<<<<<<<<<
 *             return
 *         find_complete_hyperbolic_structure(self.c_triangulation)
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_self->__pyx_base.hyperbolic_structure_initialized); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 140, __pyx_L1_error)
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_force_recompute); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 140, __pyx_L1_error)
  __pyx_t_3 = (!__pyx_t_2);
  __pyx_t_1 = __pyx_t_3;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":141
 *             return
 *         if self.hyperbolic_structure_initialized and not force_recompute:
 *             return             # <<<<<<<<<<<<<<
 *         find_complete_hyperbolic_structure(self.c_triangulation)
 *         do_Dehn_filling(self.c_triangulation)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":140
 *         if not self.c_triangulation:
 *             return
 *         if self.hyperbolic_structure_initialized and not force_recompute:             # <<<<<<<<<<<<<<
 *             return
 *         find_complete_hyperbolic_structure(self.c_triangulation)
*/
  }

  /* "cython/core/manifold.pyx":142
 *         if self.hyperbolic_structure_initialized and not force_recompute:
 *             return
 *         find_complete_hyperbolic_structure(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         do_Dehn_filling(self.c_triangulation)
 *         self.hyperbolic_structure_initialized = True
*/
  find_complete_hyperbolic_structure(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 142, __pyx_L1_error)

  /* "cython/core/manifold.pyx":143
 *             return
 *         find_complete_hyperbolic_structure(self.c_triangulation)
 *         do_Dehn_filling(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         self.hyperbolic_structure_initialized = True
 * 
*/
  do_Dehn_filling(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 143, __pyx_L1_error)

  /* "cython/core/manifold.pyx":144
 *         find_complete_hyperbolic_structure(self.c_triangulation)
 *         do_Dehn_filling(self.c_triangulation)
 *         self.hyperbolic_structure_initialized = True             # <<<<<<<<<<<<<<
 * 
 *     def canonize(self) -> None:
*/
  __Pyx_INCREF(Py_True);
  __Pyx_GIVEREF(Py_True);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.hyperbolic_structure_initialized);
  __Pyx_DECREF(__pyx_v_self->__pyx_base.hyperbolic_structure_initialized);
  __pyx_v_self->__pyx_base.hyperbolic_structure_initialized = Py_True;

  /* "cython/core/manifold.pyx":137
 *         number.use_field_conversion(func)
 * 
 *     def init_hyperbolic_structure(self, force_recompute = False):             # <<<<<<<<<<<<<<
 *         if not self.c_triangulation:
 *             return
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.Manifold.init_hyperbolic_structure", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":146
 *         self.hyperbolic_structure_initialized = True
 * 
 *     def canonize(self) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Change the triangulation to an arbitrary retriangulation of
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_9canonize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_8canonize, "\n        Change the triangulation to an arbitrary retriangulation of\n        the canonical cell decomposition. See\n        :py:meth:`canonical_retriangulation <snappy.Manifold.canonical_retriangulation>`\n        to get the actual canonical cell decomposition.\n\n        >>> M = Manifold('m007')\n        >>> M.num_tetrahedra()\n        3\n        >>> M.canonize()\n        >>> M.num_tetrahedra()\n        4\n\n        Note: Due to rounding error, it is possible that this is actually\n        not a retriangulation of the canonical cell decomposition.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_9canonize = {"canonize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_9canonize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_8canonize};
static PyObject *__pyx_pw_6SnapPy_8Manifold_9canonize(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("canonize (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("canonize", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("canonize", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_8canonize(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_8canonize(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  FuncResult __pyx_v_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  FuncResult __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("canonize", 0);

  /* "cython/core/manifold.pyx":164
 *         """
 *         cdef c_FuncResult result
 *         result = proto_canonize(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         if FuncResult[result] != 'func_OK':
 *             raise RuntimeError('SnapPea failed to find the canonical '
*/
  __pyx_t_1 = proto_canonize(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 164, __pyx_L1_error)
  __pyx_v_result = __pyx_t_1;

  /* "cython/core/manifold.pyx":165
 *         cdef c_FuncResult result
 *         result = proto_canonize(self.c_triangulation)
 *         if FuncResult[result] != 'func_OK':             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea failed to find the canonical '
 *                                'triangulation.')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_FuncResult); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_FuncResult(__pyx_v_result); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_func_OK, Py_NE)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 165, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/manifold.pyx":166
 *         result = proto_canonize(self.c_triangulation)
 *         if FuncResult[result] != 'func_OK':
 *             raise RuntimeError('SnapPea failed to find the canonical '             # <<<<<<<<<<<<<<
 *                                'triangulation.')
 *         self._cache.clear(message='canonize')
*/
    __pyx_t_3 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_SnapPea_failed_to_find_the_canon};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 166, __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_ERR(1, 166, __pyx_L1_error)

    /* "cython/core/manifold.pyx":165
 *         cdef c_FuncResult result
 *         result = proto_canonize(self.c_triangulation)
 *         if FuncResult[result] != 'func_OK':             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea failed to find the canonical '
 *                                'triangulation.')
*/
  }

  /* "cython/core/manifold.pyx":168
 *             raise RuntimeError('SnapPea failed to find the canonical '
 *                                'triangulation.')
 *         self._cache.clear(message='canonize')             # <<<<<<<<<<<<<<
 * 
 *     def _canonical_retriangulation(self, opacities=None, top_level_tries=10):
*/
  __pyx_t_3 = __pyx_v_self->__pyx_base._cache;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_n_u_canonize, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 168, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/manifold.pyx":146
 *         self.hyperbolic_structure_initialized = True
 * 
 *     def canonize(self) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Change the triangulation to an arbitrary retriangulation of
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Manifold.canonize", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":170
 *         self._cache.clear(message='canonize')
 * 
 *     def _canonical_retriangulation(self, opacities=None, top_level_tries=10):             # <<<<<<<<<<<<<<
 *         """
 *         If this triangulation is a subdivision of the canonical cell
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_11_canonical_retriangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_10_canonical_retriangulation, "\n        If this triangulation is a subdivision of the canonical cell\n        decomposition, return the canonical retriangulation as Triangulation.\n\n        Warning: Many operations on a SnapPy Triangulation will remove the\n        finite vertices or change the triangulation so it is no longer the\n        canonical retriangulation.\n        By default, the algorithm numerically checks that the tilts are close\n        to zero to determine which faces are opaque or transparent.\n        But it can also be passed an explicit list of 4 * num_tetrahedra bool's\n        (one per face of each tet) that mark the opaque faces.\n\n        For example, m412's canonical cell decomposition consists of a single\n        cube. The canonical retriangulation thus has 12 simplices.\n\n        >>> M = Manifold(\"m412\")\n\n        Some isometries of M are not visible in this triangulation (not\n        even after calling M.canonize())\n\n        >>> len(M.isomorphisms_to(M))\n        4\n        >>> T = M._canonical_retriangulation()\n        >>> T.num_tetrahedra()\n        12\n\n        But all isometries of M are visible in its canonical retriangulation.\n\n        >>> len(T.isomorphisms_to(T))\n        8\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_11_canonical_retriangulation = {"_canonical_retriangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_11_canonical_retriangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_10_canonical_retriangulation};
static PyObject *__pyx_pw_6SnapPy_8Manifold_11_canonical_retriangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_opacities = 0;
  PyObject *__pyx_v_top_level_tries = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_canonical_retriangulation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_opacities,&__pyx_mstate_global->__pyx_n_u_top_level_tries,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 170, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 170, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 170, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_canonical_retriangulation", 0) < (0)) __PYX_ERR(1, 170, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_10));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 170, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 170, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_10));
    }
    __pyx_v_opacities = values[0];
    __pyx_v_top_level_tries = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_canonical_retriangulation", 0, 0, 2, __pyx_nargs); __PYX_ERR(1, 170, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._canonical_retriangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_10_canonical_retriangulation(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_opacities, __pyx_v_top_level_tries);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_10_canonical_retriangulation(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_opacities, PyObject *__pyx_v_top_level_tries) {
  Boolean *__pyx_v_c_opacities;
  Triangulation *__pyx_v_c_retriangulated_triangulation;
  int __pyx_v_n;
  PyObject *__pyx_v_result = 0;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_new_tri = 0;
  PyObject *__pyx_v_i = NULL;
  int __pyx_v_success;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  Boolean __pyx_t_9;
  FuncResult __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_canonical_retriangulation", 0);

  /* "cython/core/manifold.pyx":206
 *         cdef Boolean *c_opacities
 *         cdef c_Triangulation *c_retriangulated_triangulation
 *         cdef int n = get_num_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         cdef result
 *         cdef Triangulation new_tri
*/
  __pyx_t_1 = get_num_tetrahedra(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 206, __pyx_L1_error)
  __pyx_v_n = __pyx_t_1;

  /* "cython/core/manifold.pyx":210
 *         cdef Triangulation new_tri
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return ""
 * 
*/
  __pyx_t_2 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_2) {

    /* "cython/core/manifold.pyx":211
 * 
 *         if self.c_triangulation is NULL:
 *             return ""             # <<<<<<<<<<<<<<
 * 
 *         if opacities:
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__10);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u__10;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":210
 *         cdef Triangulation new_tri
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return ""
 * 
*/
  }

  /* "cython/core/manifold.pyx":213
 *             return ""
 * 
 *         if opacities:             # <<<<<<<<<<<<<<
 *             if not len(opacities) == 4 * n:
 *                 raise Exception("Number of opacities does not match.")
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_opacities); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 213, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cython/core/manifold.pyx":214
 * 
 *         if opacities:
 *             if not len(opacities) == 4 * n:             # <<<<<<<<<<<<<<
 *                 raise Exception("Number of opacities does not match.")
 *             c_opacities = <Boolean *>malloc(n * 4 * sizeof(Boolean))
*/
    __pyx_t_3 = PyObject_Length(__pyx_v_opacities); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 214, __pyx_L1_error)
    __pyx_t_2 = (!(__pyx_t_3 == (4 * __pyx_v_n)));
    if (unlikely(__pyx_t_2)) {

      /* "cython/core/manifold.pyx":215
 *         if opacities:
 *             if not len(opacities) == 4 * n:
 *                 raise Exception("Number of opacities does not match.")             # <<<<<<<<<<<<<<
 *             c_opacities = <Boolean *>malloc(n * 4 * sizeof(Boolean))
 *             for i in range(4 * n):
*/
      __pyx_t_5 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Number_of_opacities_does_not_mat};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_Exception)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 215, __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_ERR(1, 215, __pyx_L1_error)

      /* "cython/core/manifold.pyx":214
 * 
 *         if opacities:
 *             if not len(opacities) == 4 * n:             # <<<<<<<<<<<<<<
 *                 raise Exception("Number of opacities does not match.")
 *             c_opacities = <Boolean *>malloc(n * 4 * sizeof(Boolean))
*/
    }

    /* "cython/core/manifold.pyx":216
 *             if not len(opacities) == 4 * n:
 *                 raise Exception("Number of opacities does not match.")
 *             c_opacities = <Boolean *>malloc(n * 4 * sizeof(Boolean))             # <<<<<<<<<<<<<<
 *             for i in range(4 * n):
 *                 c_opacities[i] = 1 if opacities[i] else 0
*/
    __pyx_v_c_opacities = ((Boolean *)malloc(((__pyx_v_n * 4) * (sizeof(Boolean)))));

    /* "cython/core/manifold.pyx":217
 *                 raise Exception("Number of opacities does not match.")
 *             c_opacities = <Boolean *>malloc(n * 4 * sizeof(Boolean))
 *             for i in range(4 * n):             # <<<<<<<<<<<<<<
 *                 c_opacities[i] = 1 if opacities[i] else 0
 *             copy_triangulation(self.c_triangulation,
*/
    __pyx_t_5 = NULL;
    __pyx_t_7 = __Pyx_PyLong_From_long((4 * __pyx_v_n)); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_7};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 217, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 217, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    for (;;) {
      {
        __pyx_t_4 = __pyx_t_8(__pyx_t_7);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 217, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "cython/core/manifold.pyx":218
 *             c_opacities = <Boolean *>malloc(n * 4 * sizeof(Boolean))
 *             for i in range(4 * n):
 *                 c_opacities[i] = 1 if opacities[i] else 0             # <<<<<<<<<<<<<<
 *             copy_triangulation(self.c_triangulation,
 *                                &c_retriangulated_triangulation)
*/
      __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_opacities, __pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 218, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 218, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_2) {
        __pyx_t_9 = 1;
      } else {
        __pyx_t_9 = 0;
      }
      __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 218, __pyx_L1_error)
      (__pyx_v_c_opacities[__pyx_t_3]) = __pyx_t_9;

      /* "cython/core/manifold.pyx":217
 *                 raise Exception("Number of opacities does not match.")
 *             c_opacities = <Boolean *>malloc(n * 4 * sizeof(Boolean))
 *             for i in range(4 * n):             # <<<<<<<<<<<<<<
 *                 c_opacities[i] = 1 if opacities[i] else 0
 *             copy_triangulation(self.c_triangulation,
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/manifold.pyx":219
 *             for i in range(4 * n):
 *                 c_opacities[i] = 1 if opacities[i] else 0
 *             copy_triangulation(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                &c_retriangulated_triangulation)
 *         else:
*/
    copy_triangulation(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_c_retriangulated_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 219, __pyx_L1_error)

    /* "cython/core/manifold.pyx":213
 *             return ""
 * 
 *         if opacities:             # <<<<<<<<<<<<<<
 *             if not len(opacities) == 4 * n:
 *                 raise Exception("Number of opacities does not match.")
*/
    goto __pyx_L4;
  }

  /* "cython/core/manifold.pyx":222
 *                                &c_retriangulated_triangulation)
 *         else:
 *             success = False             # <<<<<<<<<<<<<<
 *             for i in range(top_level_tries):
 *                 c_opacities = NULL
*/
  /*else*/ {
    __pyx_v_success = 0;

    /* "cython/core/manifold.pyx":223
 *         else:
 *             success = False
 *             for i in range(top_level_tries):             # <<<<<<<<<<<<<<
 *                 c_opacities = NULL
 *                 copy_triangulation(self.c_triangulation,
*/
    __pyx_t_4 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_top_level_tries};
      __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 223, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_4 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 223, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    for (;;) {
      {
        __pyx_t_7 = __pyx_t_8(__pyx_t_4);
        if (unlikely(!__pyx_t_7)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 223, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "cython/core/manifold.pyx":224
 *             success = False
 *             for i in range(top_level_tries):
 *                 c_opacities = NULL             # <<<<<<<<<<<<<<
 *                 copy_triangulation(self.c_triangulation,
 *                                    &c_retriangulated_triangulation)
*/
      __pyx_v_c_opacities = NULL;

      /* "cython/core/manifold.pyx":225
 *             for i in range(top_level_tries):
 *                 c_opacities = NULL
 *                 copy_triangulation(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                    &c_retriangulated_triangulation)
 *                 result = proto_canonize(c_retriangulated_triangulation)
*/
      copy_triangulation(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_c_retriangulated_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 225, __pyx_L1_error)

      /* "cython/core/manifold.pyx":227
 *                 copy_triangulation(self.c_triangulation,
 *                                    &c_retriangulated_triangulation)
 *                 result = proto_canonize(c_retriangulated_triangulation)             # <<<<<<<<<<<<<<
 *                 if FuncResult[result] == 'func_OK':
 *                     success = True
*/
      __pyx_t_10 = proto_canonize(__pyx_v_c_retriangulated_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 227, __pyx_L1_error)
      __pyx_t_7 = __Pyx_PyLong_From_FuncResult(__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 227, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_v_result, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "cython/core/manifold.pyx":228
 *                                    &c_retriangulated_triangulation)
 *                 result = proto_canonize(c_retriangulated_triangulation)
 *                 if FuncResult[result] == 'func_OK':             # <<<<<<<<<<<<<<
 *                     success = True
 *                     break
*/
      __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_FuncResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 228, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_v_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 228, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_func_OK, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 228, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_2) {

        /* "cython/core/manifold.pyx":229
 *                 result = proto_canonize(c_retriangulated_triangulation)
 *                 if FuncResult[result] == 'func_OK':
 *                     success = True             # <<<<<<<<<<<<<<
 *                     break
 *                 else:
*/
        __pyx_v_success = 1;

        /* "cython/core/manifold.pyx":230
 *                 if FuncResult[result] == 'func_OK':
 *                     success = True
 *                     break             # <<<<<<<<<<<<<<
 *                 else:
 *                     free_triangulation(c_retriangulated_triangulation)
*/
        goto __pyx_L10_break;

        /* "cython/core/manifold.pyx":228
 *                                    &c_retriangulated_triangulation)
 *                 result = proto_canonize(c_retriangulated_triangulation)
 *                 if FuncResult[result] == 'func_OK':             # <<<<<<<<<<<<<<
 *                     success = True
 *                     break
*/
      }

      /* "cython/core/manifold.pyx":232
 *                     break
 *                 else:
 *                     free_triangulation(c_retriangulated_triangulation)             # <<<<<<<<<<<<<<
 * 
 *             if not success:
*/
      /*else*/ {
        free_triangulation(__pyx_v_c_retriangulated_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 232, __pyx_L1_error)
      }

      /* "cython/core/manifold.pyx":223
 *         else:
 *             success = False
 *             for i in range(top_level_tries):             # <<<<<<<<<<<<<<
 *                 c_opacities = NULL
 *                 copy_triangulation(self.c_triangulation,
*/
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L12_for_end;
    __pyx_L10_break:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L12_for_end;
    __pyx_L12_for_end:;

    /* "cython/core/manifold.pyx":234
 *                     free_triangulation(c_retriangulated_triangulation)
 * 
 *             if not success:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError('SnapPea failed to find the canonical '
 *                                    'triangulation.')
*/
    __pyx_t_2 = (!__pyx_v_success);
    if (unlikely(__pyx_t_2)) {

      /* "cython/core/manifold.pyx":235
 * 
 *             if not success:
 *                 raise RuntimeError('SnapPea failed to find the canonical '             # <<<<<<<<<<<<<<
 *                                    'triangulation.')
 * 
*/
      __pyx_t_5 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_SnapPea_failed_to_find_the_canon};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 235, __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_ERR(1, 235, __pyx_L1_error)

      /* "cython/core/manifold.pyx":234
 *                     free_triangulation(c_retriangulated_triangulation)
 * 
 *             if not success:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError('SnapPea failed to find the canonical '
 *                                    'triangulation.')
*/
    }
  }
  __pyx_L4:;

  /* "cython/core/manifold.pyx":238
 *                                    'triangulation.')
 * 
 *         canonical_retriangulation_with_opacities(             # <<<<<<<<<<<<<<
 *                 c_retriangulated_triangulation, c_opacities)
 * 
*/
  canonical_retriangulation_with_opacities(__pyx_v_c_retriangulated_triangulation, __pyx_v_c_opacities); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 238, __pyx_L1_error)

  /* "cython/core/manifold.pyx":241
 *                 c_retriangulated_triangulation, c_opacities)
 * 
 *         free(c_opacities)             # <<<<<<<<<<<<<<
 * 
 *         new_tri = _triangulation_class('empty')
*/
  free(__pyx_v_c_opacities);

  /* "cython/core/manifold.pyx":243
 *         free(c_opacities)
 * 
 *         new_tri = _triangulation_class('empty')             # <<<<<<<<<<<<<<
 *         new_tri.set_c_triangulation(c_retriangulated_triangulation)
 *         new_tri.set_name(self.name() + '_canonical')
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_triangulation_class); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(1, 243, __pyx_L1_error)
  __pyx_v_new_tri = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/manifold.pyx":244
 * 
 *         new_tri = _triangulation_class('empty')
 *         new_tri.set_c_triangulation(c_retriangulated_triangulation)             # <<<<<<<<<<<<<<
 *         new_tri.set_name(self.name() + '_canonical')
 * 
*/
  __pyx_t_4 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_new_tri->__pyx_vtab)->set_c_triangulation(__pyx_v_new_tri, __pyx_v_c_retriangulated_triangulation); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/manifold.pyx":245
 *         new_tri = _triangulation_class('empty')
 *         new_tri.set_c_triangulation(c_retriangulated_triangulation)
 *         new_tri.set_name(self.name() + '_canonical')             # <<<<<<<<<<<<<<
 * 
 *         return new_tri
*/
  __pyx_t_7 = ((PyObject *)__pyx_v_new_tri);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_11 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_11);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_11, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_11 = PyNumber_Add(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_canonical); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_11};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/manifold.pyx":247
 *         new_tri.set_name(self.name() + '_canonical')
 * 
 *         return new_tri             # <<<<<<<<<<<<<<
 * 
 *     def _canonical_cells_are_tetrahedra(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_new_tri);
  __pyx_r = ((PyObject *)__pyx_v_new_tri);
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":170
 *         self._cache.clear(message='canonize')
 * 
 *     def _canonical_retriangulation(self, opacities=None, top_level_tries=10):             # <<<<<<<<<<<<<<
 *         """
 *         If this triangulation is a subdivision of the canonical cell
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.Manifold._canonical_retriangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF((PyObject *)__pyx_v_new_tri);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":249
 *         return new_tri
 * 
 *     def _canonical_cells_are_tetrahedra(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns True if and only if the canonical
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_13_canonical_cells_are_tetrahedra(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_12_canonical_cells_are_tetrahedra, "\n        Returns True if and only if the canonical\n        cell decomposition is a triangulation.\n\n        >>> Manifold('K4a1')._canonical_cells_are_tetrahedra()\n        True\n        >>> Manifold('L6a4')._canonical_cells_are_tetrahedra()\n        False\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_13_canonical_cells_are_tetrahedra = {"_canonical_cells_are_tetrahedra", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_13_canonical_cells_are_tetrahedra, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_12_canonical_cells_are_tetrahedra};
static PyObject *__pyx_pw_6SnapPy_8Manifold_13_canonical_cells_are_tetrahedra(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_canonical_cells_are_tetrahedra (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_canonical_cells_are_tetrahedra", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_canonical_cells_are_tetrahedra", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_12_canonical_cells_are_tetrahedra(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_12_canonical_cells_are_tetrahedra(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_M = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_canonical_cells_are_tetrahedra", 0);

  /* "cython/core/manifold.pyx":261
 * 
 *         cdef Manifold M
 *         M = self.copy()             # <<<<<<<<<<<<<<
 *         M.canonize()
 *         canonical_retriangulation(M.c_triangulation)
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_copy, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(1, 261, __pyx_L1_error)
  __pyx_v_M = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":262
 *         cdef Manifold M
 *         M = self.copy()
 *         M.canonize()             # <<<<<<<<<<<<<<
 *         canonical_retriangulation(M.c_triangulation)
 *         count_cusps(M.c_triangulation)
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_M);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_canonize, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":263
 *         M = self.copy()
 *         M.canonize()
 *         canonical_retriangulation(M.c_triangulation)             # <<<<<<<<<<<<<<
 *         count_cusps(M.c_triangulation)
 *         return get_num_fake_cusps(M.c_triangulation) == 0
*/
  canonical_retriangulation(__pyx_v_M->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 263, __pyx_L1_error)

  /* "cython/core/manifold.pyx":264
 *         M.canonize()
 *         canonical_retriangulation(M.c_triangulation)
 *         count_cusps(M.c_triangulation)             # <<<<<<<<<<<<<<
 *         return get_num_fake_cusps(M.c_triangulation) == 0
 * 
*/
  count_cusps(__pyx_v_M->__pyx_base.c_triangulation);

  /* "cython/core/manifold.pyx":265
 *         canonical_retriangulation(M.c_triangulation)
 *         count_cusps(M.c_triangulation)
 *         return get_num_fake_cusps(M.c_triangulation) == 0             # <<<<<<<<<<<<<<
 * 
 *     def _from_string(self, string, initialize_structure=True):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = get_num_fake_cusps(__pyx_v_M->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 265, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_t_4 == 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":249
 *         return new_tri
 * 
 *     def _canonical_cells_are_tetrahedra(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns True if and only if the canonical
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Manifold._canonical_cells_are_tetrahedra", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_M);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":267
 *         return get_num_fake_cusps(M.c_triangulation) == 0
 * 
 *     def _from_string(self, string, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To create a
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_15_from_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_14_from_string, "\n        WARNING: Users should not use this function directly.  To create a\n        Manifold or ManifoldHP from a string containing the contents\n        of a triangulation file, simply do:\n\n        >>> M = Manifold('7_4')\n        >>> seed = M._to_string()\n        >>> N = Manifold(seed)\n        >>> N.volume() # doctest: +NUMERIC6\n        5.13794120\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_15_from_string = {"_from_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_15_from_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_14_from_string};
static PyObject *__pyx_pw_6SnapPy_8Manifold_15_from_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_string = 0;
  PyObject *__pyx_v_initialize_structure = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_string,&__pyx_mstate_global->__pyx_n_u_initialize_structure,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 267, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 267, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 267, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_from_string", 0) < (0)) __PYX_ERR(1, 267, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_from_string", 0, 1, 2, i); __PYX_ERR(1, 267, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 267, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 267, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_string = values[0];
    __pyx_v_initialize_structure = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_string", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 267, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_14_from_string(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_string, __pyx_v_initialize_structure);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_14_from_string(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_string, PyObject *__pyx_v_initialize_structure) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_from_string", 0);

  /* "cython/core/manifold.pyx":279
 *         5.13794120
 *         """
 *         Triangulation._from_string(self, string)             # <<<<<<<<<<<<<<
 *         if initialize_structure:
 *             self.init_hyperbolic_structure()
*/
  __pyx_t_2 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_string};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_string, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":280
 *         """
 *         Triangulation._from_string(self, string)
 *         if initialize_structure:             # <<<<<<<<<<<<<<
 *             self.init_hyperbolic_structure()
 * 
*/
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_initialize_structure); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 280, __pyx_L1_error)
  if (__pyx_t_4) {

    /* "cython/core/manifold.pyx":281
 *         Triangulation._from_string(self, string)
 *         if initialize_structure:
 *             self.init_hyperbolic_structure()             # <<<<<<<<<<<<<<
 * 
 *     def _from_bytes(self, bytestring, initialize_structure=True):
*/
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_init_hyperbolic_structure, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 281, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":280
 *         """
 *         Triangulation._from_string(self, string)
 *         if initialize_structure:             # <<<<<<<<<<<<<<
 *             self.init_hyperbolic_structure()
 * 
*/
  }

  /* "cython/core/manifold.pyx":267
 *         return get_num_fake_cusps(M.c_triangulation) == 0
 * 
 *     def _from_string(self, string, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To create a
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Manifold._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":283
 *             self.init_hyperbolic_structure()
 * 
 *     def _from_bytes(self, bytestring, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty manifold from a byte sequence generated by
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_17_from_bytes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_16_from_bytes, "\n        Fill an empty manifold from a byte sequence generated by\n        _to_bytes.\n        >>> M = Manifold('m125')\n        >>> N = Manifold('empty')\n        >>> N._from_bytes(M._to_bytes())\n        >>> N.is_isometric_to(M)\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_17_from_bytes = {"_from_bytes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_17_from_bytes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_16_from_bytes};
static PyObject *__pyx_pw_6SnapPy_8Manifold_17_from_bytes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_bytestring = 0;
  PyObject *__pyx_v_initialize_structure = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_bytes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_bytestring,&__pyx_mstate_global->__pyx_n_u_initialize_structure,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 283, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_from_bytes", 0) < (0)) __PYX_ERR(1, 283, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_from_bytes", 0, 1, 2, i); __PYX_ERR(1, 283, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 283, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_bytestring = values[0];
    __pyx_v_initialize_structure = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_bytes", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 283, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._from_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_16_from_bytes(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_bytestring, __pyx_v_initialize_structure);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_16_from_bytes(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_bytestring, PyObject *__pyx_v_initialize_structure) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_from_bytes", 0);

  /* "cython/core/manifold.pyx":293
 *         True
 *         """
 *         Triangulation._from_bytes(self, bytestring)             # <<<<<<<<<<<<<<
 *         if initialize_structure:
 *             self.init_hyperbolic_structure()
*/
  __pyx_t_2 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_bytestring};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_bytes, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":294
 *         """
 *         Triangulation._from_bytes(self, bytestring)
 *         if initialize_structure:             # <<<<<<<<<<<<<<
 *             self.init_hyperbolic_structure()
 * 
*/
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_initialize_structure); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 294, __pyx_L1_error)
  if (__pyx_t_4) {

    /* "cython/core/manifold.pyx":295
 *         Triangulation._from_bytes(self, bytestring)
 *         if initialize_structure:
 *             self.init_hyperbolic_structure()             # <<<<<<<<<<<<<<
 * 
 *     def _from_isosig(self, isosig, initialize_structure=True):
*/
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_init_hyperbolic_structure, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 295, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":294
 *         """
 *         Triangulation._from_bytes(self, bytestring)
 *         if initialize_structure:             # <<<<<<<<<<<<<<
 *             self.init_hyperbolic_structure()
 * 
*/
  }

  /* "cython/core/manifold.pyx":283
 *             self.init_hyperbolic_structure()
 * 
 *     def _from_bytes(self, bytestring, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty manifold from a byte sequence generated by
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Manifold._from_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":297
 *             self.init_hyperbolic_structure()
 * 
 *     def _from_isosig(self, isosig, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty manifold from an isosig generated by
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_19_from_isosig(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_18_from_isosig, "\n        Fill an empty manifold from an isosig generated by\n        triangulation_isosig.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_19_from_isosig = {"_from_isosig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_19_from_isosig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_18_from_isosig};
static PyObject *__pyx_pw_6SnapPy_8Manifold_19_from_isosig(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_isosig = 0;
  PyObject *__pyx_v_initialize_structure = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_isosig (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_isosig,&__pyx_mstate_global->__pyx_n_u_initialize_structure,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 297, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 297, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 297, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_from_isosig", 0) < (0)) __PYX_ERR(1, 297, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_from_isosig", 0, 1, 2, i); __PYX_ERR(1, 297, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 297, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 297, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_isosig = values[0];
    __pyx_v_initialize_structure = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_isosig", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 297, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._from_isosig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_18_from_isosig(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_isosig, __pyx_v_initialize_structure);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_18_from_isosig(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_isosig, PyObject *__pyx_v_initialize_structure) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_from_isosig", 0);

  /* "cython/core/manifold.pyx":302
 *         triangulation_isosig.
 *         """
 *         Triangulation._from_isosig(self, isosig)             # <<<<<<<<<<<<<<
 *         if self.c_triangulation == NULL:
 *             return
*/
  __pyx_t_2 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_isosig};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_from_isosig, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":303
 *         """
 *         Triangulation._from_isosig(self, isosig)
 *         if self.c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             return
 *         if initialize_structure:
*/
  __pyx_t_4 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_4) {

    /* "cython/core/manifold.pyx":304
 *         Triangulation._from_isosig(self, isosig)
 *         if self.c_triangulation == NULL:
 *             return             # <<<<<<<<<<<<<<
 *         if initialize_structure:
 *             self.init_hyperbolic_structure()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":303
 *         """
 *         Triangulation._from_isosig(self, isosig)
 *         if self.c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             return
 *         if initialize_structure:
*/
  }

  /* "cython/core/manifold.pyx":305
 *         if self.c_triangulation == NULL:
 *             return
 *         if initialize_structure:             # <<<<<<<<<<<<<<
 *             self.init_hyperbolic_structure()
 * 
*/
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_initialize_structure); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 305, __pyx_L1_error)
  if (__pyx_t_4) {

    /* "cython/core/manifold.pyx":306
 *             return
 *         if initialize_structure:
 *             self.init_hyperbolic_structure()             # <<<<<<<<<<<<<<
 * 
 *     def copy(self):
*/
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_init_hyperbolic_structure, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 306, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":305
 *         if self.c_triangulation == NULL:
 *             return
 *         if initialize_structure:             # <<<<<<<<<<<<<<
 *             self.init_hyperbolic_structure()
 * 
*/
  }

  /* "cython/core/manifold.pyx":297
 *             self.init_hyperbolic_structure()
 * 
 *     def _from_isosig(self, isosig, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty manifold from an isosig generated by
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Manifold._from_isosig", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":308
 *             self.init_hyperbolic_structure()
 * 
 *     def copy(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a copy of the manifold
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_21copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_20copy, "\n        Returns a copy of the manifold\n\n        >>> M = Manifold('m015')\n        >>> N = M.copy()\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_21copy = {"copy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_21copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_20copy};
static PyObject *__pyx_pw_6SnapPy_8Manifold_21copy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("copy (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("copy", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("copy", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_20copy(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_20copy(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  PyObject *__pyx_v_empty = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("copy", 0);

  /* "cython/core/manifold.pyx":315
 *         >>> N = M.copy()
 *         """
 *         empty = self.__class__('empty')             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is NULL:
 *             return empty
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_empty = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":316
 *         """
 *         empty = self.__class__('empty')
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return empty
 *         return Manifold_from_Triangulation(self, manifold_class=self.__class__)
*/
  __pyx_t_4 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_4) {

    /* "cython/core/manifold.pyx":317
 *         empty = self.__class__('empty')
 *         if self.c_triangulation is NULL:
 *             return empty             # <<<<<<<<<<<<<<
 *         return Manifold_from_Triangulation(self, manifold_class=self.__class__)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_empty);
    __pyx_r = __pyx_v_empty;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":316
 *         """
 *         empty = self.__class__('empty')
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return empty
 *         return Manifold_from_Triangulation(self, manifold_class=self.__class__)
*/
  }

  /* "cython/core/manifold.pyx":318
 *         if self.c_triangulation is NULL:
 *             return empty
 *         return Manifold_from_Triangulation(self, manifold_class=self.__class__)             # <<<<<<<<<<<<<<
 * 
 *     def cusp_neighborhood(self) -> CuspNeighborhood:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Manifold_from_Triangulation); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, ((PyObject *)__pyx_v_self)};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 318, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_manifold_class_2, __pyx_t_6, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 318, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 318, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":308
 *             self.init_hyperbolic_structure()
 * 
 *     def copy(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a copy of the manifold
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Manifold.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_empty);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":320
 *         return Manifold_from_Triangulation(self, manifold_class=self.__class__)
 * 
 *     def cusp_neighborhood(self) -> CuspNeighborhood:             # <<<<<<<<<<<<<<
 *         """
 *         Returns information about the cusp neighborhoods of the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_23cusp_neighborhood(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_22cusp_neighborhood, "\n        Returns information about the cusp neighborhoods of the\n        manifold, in the form of data about the corresponding horoball\n        diagrams in hyperbolic 3-space.\n\n        >>> M = Manifold('s000')\n        >>> CN = M.cusp_neighborhood()\n        >>> CN.volume() # doctest: +NUMERIC6\n        0.32475953\n        >>> len(CN.horoballs(0.01))\n        178\n        >>> CN.view()  # Opens picture of the horoballs  #doctest: +CYOPENGL\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_23cusp_neighborhood = {"cusp_neighborhood", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_23cusp_neighborhood, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_22cusp_neighborhood};
static PyObject *__pyx_pw_6SnapPy_8Manifold_23cusp_neighborhood(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cusp_neighborhood (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("cusp_neighborhood", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("cusp_neighborhood", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_22cusp_neighborhood(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_22cusp_neighborhood(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cusp_neighborhood", 0);

  /* "cython/core/manifold.pyx":334
 *         >>> CN.view()  # Opens picture of the horoballs  #doctest: +CYOPENGL
 *         """
 *         return CuspNeighborhood(self)             # <<<<<<<<<<<<<<
 * 
 *     def dirichlet_domain(self,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_CuspNeighborhood); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 334, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":320
 *         return Manifold_from_Triangulation(self, manifold_class=self.__class__)
 * 
 *     def cusp_neighborhood(self) -> CuspNeighborhood:             # <<<<<<<<<<<<<<
 *         """
 *         Returns information about the cusp neighborhoods of the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Manifold.cusp_neighborhood", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":336
 *         return CuspNeighborhood(self)
 * 
 *     def dirichlet_domain(self,             # <<<<<<<<<<<<<<
 *                          vertex_epsilon=default_vertex_epsilon,
 *                          displacement = (0.0, 0.0, 0.0),
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_25dirichlet_domain(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_24dirichlet_domain, "\n        Returns a :class:`DirichletDomain` object representing a Dirichlet\n        domain of the hyperbolic manifold, typically centered at a\n        point which is a local maximum of injectivity radius.  It will\n        have ideal vertices if the manifold is not closed.\n\n        >>> M = Manifold('m015')\n        >>> D = M.dirichlet_domain()\n        >>> D\n        32 finite vertices, 2 ideal vertices; 54 edges; 22 faces\n        >>> D.view()   #Shows 3d-graphical view.  #doctest: +CYOPENGL\n\n        The group elements for the face-pairings of the Dirichlet domain\n        can be given as words in the original generators of the\n        (unsimplified) fundamental group by setting :attr:`include_words = True`:\n\n        >>> sorted(M.dirichlet_domain(include_words = True).pairing_words()) #doctest: +ELLIPSIS\n        ['A', ...]\n\n        Other options can be provided to customize the computation;\n        the default choices are shown below:\n\n        >>> M.dirichlet_domain(vertex_epsilon=10.0**-8,\n        ...    displacement = [0.0, 0.0, 0.0],\n        ...    centroid_at_origin=True, maximize_injectivity_radius=True)\n        32 finite vertices, 2 ideal vertices; 54 edges; 22 faces\n\n        Here's one with different combinatorics:\n\n        >>> E = M.dirichlet_domain(displacement=[0.5, 0.3, -0.2],\n        ...                        maximize_injectivity_radius=False)\n        >>> E\n        44 finite vertices, 1 ideal vertices; 69 edges; 26 faces\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_25dirichlet_domain = {"dirichlet_domain", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_25dirichlet_domain, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_24dirichlet_domain};
static PyObject *__pyx_pw_6SnapPy_8Manifold_25dirichlet_domain(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_vertex_epsilon = 0;
  PyObject *__pyx_v_displacement = 0;
  int __pyx_v_centroid_at_origin;
  int __pyx_v_maximize_injectivity_radius;
  int __pyx_v_include_words;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dirichlet_domain (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_vertex_epsilon,&__pyx_mstate_global->__pyx_n_u_displacement,&__pyx_mstate_global->__pyx_n_u_centroid_at_origin,&__pyx_mstate_global->__pyx_n_u_maximize_injectivity_radius,&__pyx_mstate_global->__pyx_n_u_include_words,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 336, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "dirichlet_domain", 0) < (0)) __PYX_ERR(1, 336, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__29);

      /* "cython/core/manifold.pyx":338
 *     def dirichlet_domain(self,
 *                          vertex_epsilon=default_vertex_epsilon,
 *                          displacement = (0.0, 0.0, 0.0),             # <<<<<<<<<<<<<<
 *                          centroid_at_origin : bool = True,
 *                          maximize_injectivity_radius : bool = True,
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_tuple[18]));
    } else {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 336, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__29);
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_tuple[18]));
    }
    __pyx_v_vertex_epsilon = values[0];
    __pyx_v_displacement = values[1];
    if (values[2]) {
      __pyx_v_centroid_at_origin = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_centroid_at_origin == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 339, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":339
 *                          vertex_epsilon=default_vertex_epsilon,
 *                          displacement = (0.0, 0.0, 0.0),
 *                          centroid_at_origin : bool = True,             # <<<<<<<<<<<<<<
 *                          maximize_injectivity_radius : bool = True,
 *                          include_words : bool = False) -> DirichletDomain:
*/
      __pyx_v_centroid_at_origin = ((int)1);
    }
    if (values[3]) {
      __pyx_v_maximize_injectivity_radius = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_maximize_injectivity_radius == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 340, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":340
 *                          displacement = (0.0, 0.0, 0.0),
 *                          centroid_at_origin : bool = True,
 *                          maximize_injectivity_radius : bool = True,             # <<<<<<<<<<<<<<
 *                          include_words : bool = False) -> DirichletDomain:
 *         """
*/
      __pyx_v_maximize_injectivity_radius = ((int)1);
    }
    if (values[4]) {
      __pyx_v_include_words = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_include_words == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 341, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":341
 *                          centroid_at_origin : bool = True,
 *                          maximize_injectivity_radius : bool = True,
 *                          include_words : bool = False) -> DirichletDomain:             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`DirichletDomain` object representing a Dirichlet
*/
      __pyx_v_include_words = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("dirichlet_domain", 0, 0, 5, __pyx_nargs); __PYX_ERR(1, 336, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.dirichlet_domain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_24dirichlet_domain(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_vertex_epsilon, __pyx_v_displacement, __pyx_v_centroid_at_origin, __pyx_v_maximize_injectivity_radius, __pyx_v_include_words);

  /* "cython/core/manifold.pyx":336
 *         return CuspNeighborhood(self)
 * 
 *     def dirichlet_domain(self,             # <<<<<<<<<<<<<<
 *                          vertex_epsilon=default_vertex_epsilon,
 *                          displacement = (0.0, 0.0, 0.0),
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_24dirichlet_domain(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_vertex_epsilon, PyObject *__pyx_v_displacement, int __pyx_v_centroid_at_origin, int __pyx_v_maximize_injectivity_radius, int __pyx_v_include_words) {
  PyObject *__pyx_v_args = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dirichlet_domain", 0);

  /* "cython/core/manifold.pyx":376
 *         44 finite vertices, 1 ideal vertices; 69 edges; 26 faces
 *         """
 *         args = (vertex_epsilon, tuple(displacement), centroid_at_origin,             # <<<<<<<<<<<<<<
 *                 maximize_injectivity_radius, include_words)
 *         try:
*/
  __pyx_t_1 = __Pyx_PySequence_Tuple(__pyx_v_displacement); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_centroid_at_origin); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "cython/core/manifold.pyx":377
 *         """
 *         args = (vertex_epsilon, tuple(displacement), centroid_at_origin,
 *                 maximize_injectivity_radius, include_words)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._cache.lookup('dirichlet_domain', *args)
*/
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_maximize_injectivity_radius); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_include_words); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/manifold.pyx":376
 *         44 finite vertices, 1 ideal vertices; 69 edges; 26 faces
 *         """
 *         args = (vertex_epsilon, tuple(displacement), centroid_at_origin,             # <<<<<<<<<<<<<<
 *                 maximize_injectivity_radius, include_words)
 *         try:
*/
  __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(__pyx_v_vertex_epsilon);
  __Pyx_GIVEREF(__pyx_v_vertex_epsilon);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_vertex_epsilon) != (0)) __PYX_ERR(1, 376, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1) != (0)) __PYX_ERR(1, 376, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_2) != (0)) __PYX_ERR(1, 376, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_3) != (0)) __PYX_ERR(1, 376, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_t_4) != (0)) __PYX_ERR(1, 376, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_v_args = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":378
 *         args = (vertex_epsilon, tuple(displacement), centroid_at_origin,
 *                 maximize_injectivity_radius, include_words)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('dirichlet_domain', *args)
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cython/core/manifold.pyx":379
 *                 maximize_injectivity_radius, include_words)
 *         try:
 *             return self._cache.lookup('dirichlet_domain', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->__pyx_base._cache, __pyx_mstate_global->__pyx_n_u_lookup); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 379, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = PyNumber_Add(__pyx_mstate_global->__pyx_tuple[19], __pyx_v_args); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 379, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 379, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L7_try_return;

      /* "cython/core/manifold.pyx":378
 *         args = (vertex_epsilon, tuple(displacement), centroid_at_origin,
 *                 maximize_injectivity_radius, include_words)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('dirichlet_domain', *args)
 *         except KeyError:
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/manifold.pyx":380
 *         try:
 *             return self._cache.lookup('dirichlet_domain', *args)
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             pass
 * 
*/
    __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_9) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cython/core/manifold.pyx":378
 *         args = (vertex_epsilon, tuple(displacement), centroid_at_origin,
 *                 maximize_injectivity_radius, include_words)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('dirichlet_domain', *args)
 *         except KeyError:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
  }

  /* "cython/core/manifold.pyx":383
 *             pass
 * 
 *         return self._cache.save(DirichletDomain(self, *args),             # <<<<<<<<<<<<<<
 *                                 'dirichlet_domain', *args)
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->__pyx_base._cache, __pyx_mstate_global->__pyx_n_u_save); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_DirichletDomain); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_v_self)) != (0)) __PYX_ERR(1, 383, __pyx_L1_error);
  __pyx_t_2 = PyNumber_Add(__pyx_t_5, __pyx_v_args); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5) != (0)) __PYX_ERR(1, 383, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_dirichlet_domain);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_dirichlet_domain);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_mstate_global->__pyx_n_u_dirichlet_domain) != (0)) __PYX_ERR(1, 383, __pyx_L1_error);
  __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":384
 * 
 *         return self._cache.save(DirichletDomain(self, *args),
 *                                 'dirichlet_domain', *args)             # <<<<<<<<<<<<<<
 * 
 *     def browse(self):
*/
  __pyx_t_5 = PyNumber_Add(__pyx_t_2, __pyx_v_args); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":383
 *             pass
 * 
 *         return self._cache.save(DirichletDomain(self, *args),             # <<<<<<<<<<<<<<
 *                                 'dirichlet_domain', *args)
 * 
*/
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":336
 *         return CuspNeighborhood(self)
 * 
 *     def dirichlet_domain(self,             # <<<<<<<<<<<<<<
 *                          vertex_epsilon=default_vertex_epsilon,
 *                          displacement = (0.0, 0.0, 0.0),
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.Manifold.dirichlet_domain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":386
 *                                 'dirichlet_domain', *args)
 * 
 *     def browse(self):             # <<<<<<<<<<<<<<
 *         """
 *         Opens browser window with a graphical interface, which allows to
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_27browse(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_26browse, "\n        Opens browser window with a graphical interface, which allows to\n        explore the manifold and interact with it.\n        This includes: invariants, Dirichlet domain, cusp neighborhoods,\n        inside view, symmetry, Dehn filling, drilling, etc.\n\n        >>> M = Manifold('m125')\n        >>> M.browse()  #doctest: +CYOPENGL\n\n        This does not work when using SnapPy in a Docker container.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_27browse = {"browse", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_27browse, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_26browse};
static PyObject *__pyx_pw_6SnapPy_8Manifold_27browse(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("browse (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("browse", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("browse", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_26browse(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_26browse(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("browse", 0);

  /* "cython/core/manifold.pyx":398
 *         This does not work when using SnapPy in a Docker container.
 *         """
 *         if Browser is None:             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Browser not imported; Tk, CyOpenGL or pypng is probably missing.")
 *         return Browser(self)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_Browser); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__pyx_t_1 == Py_None);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/manifold.pyx":399
 *         """
 *         if Browser is None:
 *             raise RuntimeError("Browser not imported; Tk, CyOpenGL or pypng is probably missing.")             # <<<<<<<<<<<<<<
 *         return Browser(self)
 * 
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Browser_not_imported_Tk_CyOpenGL};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 399, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 399, __pyx_L1_error)

    /* "cython/core/manifold.pyx":398
 *         This does not work when using SnapPy in a Docker container.
 *         """
 *         if Browser is None:             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Browser not imported; Tk, CyOpenGL or pypng is probably missing.")
 *         return Browser(self)
*/
  }

  /* "cython/core/manifold.pyx":400
 *         if Browser is None:
 *             raise RuntimeError("Browser not imported; Tk, CyOpenGL or pypng is probably missing.")
 *         return Browser(self)             # <<<<<<<<<<<<<<
 * 
 *     def filled_triangulation(
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Browser); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":386
 *                                 'dirichlet_domain', *args)
 * 
 *     def browse(self):             # <<<<<<<<<<<<<<
 *         """
 *         Opens browser window with a graphical interface, which allows to
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.Manifold.browse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":402
 *         return Browser(self)
 * 
 *     def filled_triangulation(             # <<<<<<<<<<<<<<
 *             self, cusps_to_fill='all') -> 'snappy.Manifold':
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_29filled_triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_28filled_triangulation, "\n        Return a new Manifold where the specified cusps have been\n        permanently filled in.\n\n        Filling all the cusps results in a Triangulation rather\n        than a Manifold, since SnapPea can't deal with hyperbolic\n        structures when there are no cusps.\n\n        Examples:\n\n        >>> M = Manifold('m125(1,2)(3,4)')\n        >>> N = M.filled_triangulation()\n        >>> N.num_cusps()\n        0\n\n        Filling cusps 0 and 2 :\n\n        >>> M = Manifold('v3227(1,2)(3,4)(5,6)')\n        >>> M.filled_triangulation([0,2])\n        v3227_filled(3,4)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_29filled_triangulation = {"filled_triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_29filled_triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_28filled_triangulation};
static PyObject *__pyx_pw_6SnapPy_8Manifold_29filled_triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_cusps_to_fill = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("filled_triangulation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cusps_to_fill,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 402, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 402, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "filled_triangulation", 0) < (0)) __PYX_ERR(1, 402, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_all));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 402, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_all));
    }
    __pyx_v_cusps_to_fill = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("filled_triangulation", 0, 0, 1, __pyx_nargs); __PYX_ERR(1, 402, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.filled_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_28filled_triangulation(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_cusps_to_fill);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_28filled_triangulation(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_cusps_to_fill) {
  PyObject *__pyx_v_filled = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("filled_triangulation", 0);

  /* "cython/core/manifold.pyx":425
 *         v3227_filled(3,4)
 *         """
 *         filled = _triangulation_class.filled_triangulation(self, cusps_to_fill)             # <<<<<<<<<<<<<<
 *         if filled.num_cusps() == 0:
 *             return Triangulation_from_Manifold(filled)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_triangulation_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_filled_triangulation); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_cusps_to_fill};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 425, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_filled = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":426
 *         """
 *         filled = _triangulation_class.filled_triangulation(self, cusps_to_fill)
 *         if filled.num_cusps() == 0:             # <<<<<<<<<<<<<<
 *             return Triangulation_from_Manifold(filled)
 *         return filled
*/
  __pyx_t_4 = __pyx_v_filled;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 426, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_6 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 426, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_6) {

    /* "cython/core/manifold.pyx":427
 *         filled = _triangulation_class.filled_triangulation(self, cusps_to_fill)
 *         if filled.num_cusps() == 0:
 *             return Triangulation_from_Manifold(filled)             # <<<<<<<<<<<<<<
 *         return filled
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Triangulation_from_Manifold); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_filled};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 427, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":426
 *         """
 *         filled = _triangulation_class.filled_triangulation(self, cusps_to_fill)
 *         if filled.num_cusps() == 0:             # <<<<<<<<<<<<<<
 *             return Triangulation_from_Manifold(filled)
 *         return filled
*/
  }

  /* "cython/core/manifold.pyx":428
 *         if filled.num_cusps() == 0:
 *             return Triangulation_from_Manifold(filled)
 *         return filled             # <<<<<<<<<<<<<<
 * 
 *     def fundamental_group(
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_filled);
  __pyx_r = __pyx_v_filled;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":402
 *         return Browser(self)
 * 
 *     def filled_triangulation(             # <<<<<<<<<<<<<<
 *             self, cusps_to_fill='all') -> 'snappy.Manifold':
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Manifold.filled_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_filled);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":430
 *         return filled
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_31fundamental_group(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_30fundamental_group, "\n        Return a :class:`HolonomyGroup` representing the fundamental group of\n        the manifold, together with its holonomy representation.  If\n        integer Dehn surgery parameters have been set, then the\n        corresponding peripheral elements are killed.\n\n        >>> M = Manifold('m004')\n        >>> G = M.fundamental_group()\n        >>> G\n        Generators:\n           a,b\n        Relators:\n           aaabABBAb\n        >>> G.peripheral_curves()\n        [('ab', 'aBAbABab')]\n        >>> G.SL2C('baaBA') # doctest: +NUMERIC6\n        [ 2.50000000 - 2.59807621*I -6.06217783 - 0.50000000*I]\n        [ 0.86602540 - 2.50000000*I -4.00000000 + 1.73205081*I]\n\n        There are three optional arguments all of which default to True:\n\n        - simplify_presentation\n        - fillings_may_affect_generators\n        - minimize_number_of_generators\n\n        >>> M.fundamental_group(False, False, False)\n        Generators:\n           a,b,c\n        Relators:\n           CbAcB\n           BacA\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_31fundamental_group = {"fundamental_group", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_31fundamental_group, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_30fundamental_group};
static PyObject *__pyx_pw_6SnapPy_8Manifold_31fundamental_group(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_simplify_presentation;
  int __pyx_v_fillings_may_affect_generators;
  int __pyx_v_minimize_number_of_generators;
  int __pyx_v_try_hard_to_shorten_relators;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("fundamental_group (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_simplify_presentation,&__pyx_mstate_global->__pyx_n_u_fillings_may_affect_generators,&__pyx_mstate_global->__pyx_n_u_minimize_number_of_generators,&__pyx_mstate_global->__pyx_n_u_try_hard_to_shorten_relators,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 430, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(1, 430, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 430, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 430, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 430, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "fundamental_group", 0) < (0)) __PYX_ERR(1, 430, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(1, 430, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 430, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 430, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 430, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_simplify_presentation = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_simplify_presentation == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 432, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":432
 *     def fundamental_group(
 *             self,
 *             simplify_presentation : bool = True,             # <<<<<<<<<<<<<<
 *             fillings_may_affect_generators : bool = True,
 *             minimize_number_of_generators : bool = True,
*/
      __pyx_v_simplify_presentation = ((int)1);
    }
    if (values[1]) {
      __pyx_v_fillings_may_affect_generators = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_fillings_may_affect_generators == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 433, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":433
 *             self,
 *             simplify_presentation : bool = True,
 *             fillings_may_affect_generators : bool = True,             # <<<<<<<<<<<<<<
 *             minimize_number_of_generators : bool = True,
 *             try_hard_to_shorten_relators : bool = True
*/
      __pyx_v_fillings_may_affect_generators = ((int)1);
    }
    if (values[2]) {
      __pyx_v_minimize_number_of_generators = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_minimize_number_of_generators == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 434, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":434
 *             simplify_presentation : bool = True,
 *             fillings_may_affect_generators : bool = True,
 *             minimize_number_of_generators : bool = True,             # <<<<<<<<<<<<<<
 *             try_hard_to_shorten_relators : bool = True
 *         ) -> HolonomyGroup:
*/
      __pyx_v_minimize_number_of_generators = ((int)1);
    }
    if (values[3]) {
      __pyx_v_try_hard_to_shorten_relators = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_try_hard_to_shorten_relators == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 435, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":435
 *             fillings_may_affect_generators : bool = True,
 *             minimize_number_of_generators : bool = True,
 *             try_hard_to_shorten_relators : bool = True             # <<<<<<<<<<<<<<
 *         ) -> HolonomyGroup:
 *         """
*/
      __pyx_v_try_hard_to_shorten_relators = ((int)1);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("fundamental_group", 0, 0, 4, __pyx_nargs); __PYX_ERR(1, 430, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.fundamental_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_30fundamental_group(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_simplify_presentation, __pyx_v_fillings_may_affect_generators, __pyx_v_minimize_number_of_generators, __pyx_v_try_hard_to_shorten_relators);

  /* "cython/core/manifold.pyx":430
 *         return filled
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_30fundamental_group(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, int __pyx_v_simplify_presentation, int __pyx_v_fillings_may_affect_generators, int __pyx_v_minimize_number_of_generators, int __pyx_v_try_hard_to_shorten_relators) {
  PyObject *__pyx_v_args = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  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;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("fundamental_group", 0);

  /* "cython/core/manifold.pyx":469
 *            BacA
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":470
 *         """
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         args = (simplify_presentation, fillings_may_affect_generators,
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 470, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 470, __pyx_L1_error)

    /* "cython/core/manifold.pyx":469
 *            BacA
 *         """
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/manifold.pyx":472
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         args = (simplify_presentation, fillings_may_affect_generators,             # <<<<<<<<<<<<<<
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:
*/
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_simplify_presentation); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_fillings_may_affect_generators); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/manifold.pyx":473
 * 
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._cache.lookup('fundamental_group', *args)
*/
  __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_minimize_number_of_generators); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_v_try_hard_to_shorten_relators); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "cython/core/manifold.pyx":472
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         args = (simplify_presentation, fillings_may_affect_generators,             # <<<<<<<<<<<<<<
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:
*/
  __pyx_t_7 = PyTuple_New(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(1, 472, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3) != (0)) __PYX_ERR(1, 472, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_5) != (0)) __PYX_ERR(1, 472, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_6) != (0)) __PYX_ERR(1, 472, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_v_args = __pyx_t_7;
  __pyx_t_7 = 0;

  /* "cython/core/manifold.pyx":474
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('fundamental_group', *args)
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_10);
    /*try:*/ {

      /* "cython/core/manifold.pyx":475
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:
 *             return self._cache.lookup('fundamental_group', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->__pyx_base._cache, __pyx_mstate_global->__pyx_n_u_lookup); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 475, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_6 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 475, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = PyNumber_Add(__pyx_mstate_global->__pyx_tuple[15], __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 475, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 475, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_6;
      __pyx_t_6 = 0;
      goto __pyx_L8_try_return;

      /* "cython/core/manifold.pyx":474
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('fundamental_group', *args)
 *         except KeyError:
*/
    }
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/manifold.pyx":476
 *         try:
 *             return self._cache.lookup('fundamental_group', *args)
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             pass
 * 
*/
    __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_11) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;

    /* "cython/core/manifold.pyx":474
 *         args = (simplify_presentation, fillings_may_affect_generators,
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('fundamental_group', *args)
 *         except KeyError:
*/
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    goto __pyx_L1_error;
    __pyx_L8_try_return:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    goto __pyx_L0;
    __pyx_L5_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
  }

  /* "cython/core/manifold.pyx":479
 *             pass
 * 
 *         result = HolonomyGroup(self, *args)             # <<<<<<<<<<<<<<
 *         return self._cache.save(result, 'fundamental_group', *args)
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HolonomyGroup); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_v_self)) != (0)) __PYX_ERR(1, 479, __pyx_L1_error);
  __pyx_t_7 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = PyNumber_Add(__pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_result = __pyx_t_7;
  __pyx_t_7 = 0;

  /* "cython/core/manifold.pyx":480
 * 
 *         result = HolonomyGroup(self, *args)
 *         return self._cache.save(result, 'fundamental_group', *args)             # <<<<<<<<<<<<<<
 * 
 *     def symmetry_group(self, of_link : bool = False) -> SymmetryGroup:
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->__pyx_base._cache, __pyx_mstate_global->__pyx_n_u_save); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_result);
  __Pyx_GIVEREF(__pyx_v_result);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_result) != (0)) __PYX_ERR(1, 480, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_fundamental_group);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_fundamental_group);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_mstate_global->__pyx_n_u_fundamental_group) != (0)) __PYX_ERR(1, 480, __pyx_L1_error);
  __pyx_t_6 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyNumber_Add(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_5, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":430
 *         return filled
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Manifold.fundamental_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":482
 *         return self._cache.save(result, 'fundamental_group', *args)
 * 
 *     def symmetry_group(self, of_link : bool = False) -> SymmetryGroup:             # <<<<<<<<<<<<<<
 *         """
 *         Returns the symmetry group of the Manifold.
*/

/* Python wrapper */
static struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_pw_6SnapPy_8Manifold_33symmetry_group(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_32symmetry_group, "\n        Returns the symmetry group of the Manifold.\n        If the flag \"of_link\" is set, then it only returns symmetries\n        that preserves the meridians.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_33symmetry_group = {"symmetry_group", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_33symmetry_group, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_32symmetry_group};
static struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_pw_6SnapPy_8Manifold_33symmetry_group(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_of_link;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("symmetry_group (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_of_link,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 482, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 482, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "symmetry_group", 0) < (0)) __PYX_ERR(1, 482, __pyx_L3_error)
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 482, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_of_link = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_of_link == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 482, __pyx_L3_error)
    } else {
      __pyx_v_of_link = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("symmetry_group", 0, 0, 1, __pyx_nargs); __PYX_ERR(1, 482, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.symmetry_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_32symmetry_group(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_of_link);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_pf_6SnapPy_8Manifold_32symmetry_group(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, int __pyx_v_of_link) {
  SymmetryGroup *__pyx_v_symmetries_of_manifold;
  SymmetryGroup *__pyx_v_symmetries_of_link;
  Triangulation *__pyx_v_c_symmetric_triangulation;
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_symmetric_triangulation = 0;
  Boolean __pyx_v_is_full_group;
  FuncResult __pyx_v_result;
  struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_symmetry_group = 0;
  struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  FuncResult __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("symmetry_group", 0);

  /* "cython/core/manifold.pyx":488
 *         that preserves the meridians.
 *         """
 *         cdef c_SymmetryGroup* symmetries_of_manifold = NULL             # <<<<<<<<<<<<<<
 *         cdef c_SymmetryGroup* symmetries_of_link = NULL
 *         cdef c_Triangulation* c_symmetric_triangulation = NULL
*/
  __pyx_v_symmetries_of_manifold = NULL;

  /* "cython/core/manifold.pyx":489
 *         """
 *         cdef c_SymmetryGroup* symmetries_of_manifold = NULL
 *         cdef c_SymmetryGroup* symmetries_of_link = NULL             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_symmetric_triangulation = NULL
 *         cdef Manifold symmetric_triangulation
*/
  __pyx_v_symmetries_of_link = NULL;

  /* "cython/core/manifold.pyx":490
 *         cdef c_SymmetryGroup* symmetries_of_manifold = NULL
 *         cdef c_SymmetryGroup* symmetries_of_link = NULL
 *         cdef c_Triangulation* c_symmetric_triangulation = NULL             # <<<<<<<<<<<<<<
 *         cdef Manifold symmetric_triangulation
 *         cdef Boolean is_full_group
*/
  __pyx_v_c_symmetric_triangulation = NULL;

  /* "cython/core/manifold.pyx":496
 *         cdef SymmetryGroup symmetry_group
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":497
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         try:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 497, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 497, __pyx_L1_error)

    /* "cython/core/manifold.pyx":496
 *         cdef SymmetryGroup symmetry_group
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/manifold.pyx":499
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('symmetry_group', of_link)
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    /*try:*/ {

      /* "cython/core/manifold.pyx":500
 * 
 *         try:
 *             return self._cache.lookup('symmetry_group', of_link)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
      __Pyx_XDECREF((PyObject *)__pyx_r);
      __pyx_t_3 = __pyx_v_self->__pyx_base._cache;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_8 = __Pyx_PyBool_FromLong(__pyx_v_of_link); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 500, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_symmetry_group, __pyx_t_8};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lookup, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 500, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup))))) __PYX_ERR(1, 500, __pyx_L4_error)
      __pyx_r = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_t_2);
      __pyx_t_2 = 0;
      goto __pyx_L8_try_return;

      /* "cython/core/manifold.pyx":499
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('symmetry_group', of_link)
 *         except KeyError:
*/
    }
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cython/core/manifold.pyx":501
 *         try:
 *             return self._cache.lookup('symmetry_group', of_link)
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             pass
 * 
*/
    __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_9) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;

    /* "cython/core/manifold.pyx":499
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('symmetry_group', of_link)
 *         except KeyError:
*/
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
    goto __pyx_L1_error;
    __pyx_L8_try_return:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
    goto __pyx_L0;
    __pyx_L5_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
  }

  /* "cython/core/manifold.pyx":504
 *             pass
 * 
 *         result = compute_symmetry_group(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                         &symmetries_of_manifold,
 *                                         &symmetries_of_link,
*/
  __pyx_t_10 = compute_symmetry_group(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_symmetries_of_manifold), (&__pyx_v_symmetries_of_link), (&__pyx_v_c_symmetric_triangulation), (&__pyx_v_is_full_group)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 504, __pyx_L1_error)
  __pyx_v_result = __pyx_t_10;

  /* "cython/core/manifold.pyx":510
 *                                         &is_full_group)
 * 
 *         if result != func_OK:             # <<<<<<<<<<<<<<
 *             raise ValueError('SnapPea failed to compute any part '
 *                              'of the symmetry group.')
*/
  __pyx_t_1 = (__pyx_v_result != func_OK);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":511
 * 
 *         if result != func_OK:
 *             raise ValueError('SnapPea failed to compute any part '             # <<<<<<<<<<<<<<
 *                              'of the symmetry group.')
 * 
*/
    __pyx_t_8 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_kp_u_SnapPea_failed_to_compute_any_pa};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 511, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 511, __pyx_L1_error)

    /* "cython/core/manifold.pyx":510
 *                                         &is_full_group)
 * 
 *         if result != func_OK:             # <<<<<<<<<<<<<<
 *             raise ValueError('SnapPea failed to compute any part '
 *                              'of the symmetry group.')
*/
  }

  /* "cython/core/manifold.pyx":514
 *                              'of the symmetry group.')
 * 
 *         symmetric_triangulation = self.__class__('empty')             # <<<<<<<<<<<<<<
 *         symmetric_triangulation.set_c_triangulation(c_symmetric_triangulation)
 *         self._cache.save(symmetric_triangulation, 'symmetric_triangulation')
*/
  __pyx_t_8 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(1, 514, __pyx_L1_error)
  __pyx_v_symmetric_triangulation = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":515
 * 
 *         symmetric_triangulation = self.__class__('empty')
 *         symmetric_triangulation.set_c_triangulation(c_symmetric_triangulation)             # <<<<<<<<<<<<<<
 *         self._cache.save(symmetric_triangulation, 'symmetric_triangulation')
 * 
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_symmetric_triangulation->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_symmetric_triangulation), __pyx_v_c_symmetric_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":516
 *         symmetric_triangulation = self.__class__('empty')
 *         symmetric_triangulation.set_c_triangulation(c_symmetric_triangulation)
 *         self._cache.save(symmetric_triangulation, 'symmetric_triangulation')             # <<<<<<<<<<<<<<
 * 
 *         symmetry_group = SymmetryGroup(B2B(is_full_group), True)
*/
  __pyx_t_8 = __pyx_v_self->__pyx_base._cache;
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_8, ((PyObject *)__pyx_v_symmetric_triangulation), __pyx_mstate_global->__pyx_n_u_symmetric_triangulation};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_save, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":518
 *         self._cache.save(symmetric_triangulation, 'symmetric_triangulation')
 * 
 *         symmetry_group = SymmetryGroup(B2B(is_full_group), True)             # <<<<<<<<<<<<<<
 *         if of_link:
 *             free_symmetry_group(symmetries_of_manifold)
*/
  __pyx_t_8 = NULL;
  __pyx_t_3 = __pyx_f_6SnapPy_B2B(__pyx_v_is_full_group); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_8, __pyx_t_3, Py_True};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 518, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_symmetry_group = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":519
 * 
 *         symmetry_group = SymmetryGroup(B2B(is_full_group), True)
 *         if of_link:             # <<<<<<<<<<<<<<
 *             free_symmetry_group(symmetries_of_manifold)
 *             symmetry_group._set_c_symmetry_group(symmetries_of_link)
*/
  if (__pyx_v_of_link) {

    /* "cython/core/manifold.pyx":520
 *         symmetry_group = SymmetryGroup(B2B(is_full_group), True)
 *         if of_link:
 *             free_symmetry_group(symmetries_of_manifold)             # <<<<<<<<<<<<<<
 *             symmetry_group._set_c_symmetry_group(symmetries_of_link)
 *         else:
*/
    free_symmetry_group(__pyx_v_symmetries_of_manifold); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 520, __pyx_L1_error)

    /* "cython/core/manifold.pyx":521
 *         if of_link:
 *             free_symmetry_group(symmetries_of_manifold)
 *             symmetry_group._set_c_symmetry_group(symmetries_of_link)             # <<<<<<<<<<<<<<
 *         else:
 *             free_symmetry_group(symmetries_of_link)
*/
    __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *)__pyx_v_symmetry_group->__pyx_vtab)->_set_c_symmetry_group(__pyx_v_symmetry_group, __pyx_v_symmetries_of_link); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":519
 * 
 *         symmetry_group = SymmetryGroup(B2B(is_full_group), True)
 *         if of_link:             # <<<<<<<<<<<<<<
 *             free_symmetry_group(symmetries_of_manifold)
 *             symmetry_group._set_c_symmetry_group(symmetries_of_link)
*/
    goto __pyx_L13;
  }

  /* "cython/core/manifold.pyx":523
 *             symmetry_group._set_c_symmetry_group(symmetries_of_link)
 *         else:
 *             free_symmetry_group(symmetries_of_link)             # <<<<<<<<<<<<<<
 *             symmetry_group._set_c_symmetry_group(symmetries_of_manifold)
 * 
*/
  /*else*/ {
    free_symmetry_group(__pyx_v_symmetries_of_link); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 523, __pyx_L1_error)

    /* "cython/core/manifold.pyx":524
 *         else:
 *             free_symmetry_group(symmetries_of_link)
 *             symmetry_group._set_c_symmetry_group(symmetries_of_manifold)             # <<<<<<<<<<<<<<
 * 
 *         return self._cache.save(symmetry_group, 'symmetry_group', of_link)
*/
    __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *)__pyx_v_symmetry_group->__pyx_vtab)->_set_c_symmetry_group(__pyx_v_symmetry_group, __pyx_v_symmetries_of_manifold); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 524, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_L13:;

  /* "cython/core/manifold.pyx":526
 *             symmetry_group._set_c_symmetry_group(symmetries_of_manifold)
 * 
 *         return self._cache.save(symmetry_group, 'symmetry_group', of_link)             # <<<<<<<<<<<<<<
 * 
 *     def symmetric_triangulation(self):
*/
  __Pyx_XDECREF((PyObject *)__pyx_r);
  __pyx_t_3 = __pyx_v_self->__pyx_base._cache;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_8 = __Pyx_PyBool_FromLong(__pyx_v_of_link); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_3, ((PyObject *)__pyx_v_symmetry_group), __pyx_mstate_global->__pyx_n_u_symmetry_group, __pyx_t_8};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_save, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup))))) __PYX_ERR(1, 526, __pyx_L1_error)
  __pyx_r = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":482
 *         return self._cache.save(result, 'fundamental_group', *args)
 * 
 *     def symmetry_group(self, of_link : bool = False) -> SymmetryGroup:             # <<<<<<<<<<<<<<
 *         """
 *         Returns the symmetry group of the Manifold.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.Manifold.symmetry_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_symmetric_triangulation);
  __Pyx_XDECREF((PyObject *)__pyx_v_symmetry_group);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":528
 *         return self._cache.save(symmetry_group, 'symmetry_group', of_link)
 * 
 *     def symmetric_triangulation(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Dehn filling description of the manifold realizing
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_35symmetric_triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_34symmetric_triangulation, "\n        Returns a Dehn filling description of the manifold realizing\n        the symmetry group.\n\n        >>> M = Manifold('m003(-3,1)')\n        >>> M.symmetry_group()\n        D6\n        >>> N = M.symmetric_triangulation()\n        >>> N\n        m003(1,0)(1,0)(1,0)\n        >>> N.dehn_fill( [(0,0), (0,0), (0,0)] )\n        >>> N.symmetry_group(of_link=True)\n        D6\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_35symmetric_triangulation = {"symmetric_triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_35symmetric_triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_34symmetric_triangulation};
static PyObject *__pyx_pw_6SnapPy_8Manifold_35symmetric_triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("symmetric_triangulation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("symmetric_triangulation", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("symmetric_triangulation", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_34symmetric_triangulation(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_34symmetric_triangulation(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("symmetric_triangulation", 0);

  /* "cython/core/manifold.pyx":543
 *         D6
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('symmetric_triangulation')
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "cython/core/manifold.pyx":544
 *         """
 *         try:
 *             return self._cache.lookup('symmetric_triangulation')             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             self.symmetry_group()
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __pyx_v_self->__pyx_base._cache;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_symmetric_triangulation};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lookup, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 544, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "cython/core/manifold.pyx":543
 *         D6
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('symmetric_triangulation')
 *         except KeyError:
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/manifold.pyx":545
 *         try:
 *             return self._cache.lookup('symmetric_triangulation')
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             self.symmetry_group()
 *             return self._cache.lookup('symmetric_triangulation')
*/
    __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_7) {
      __Pyx_AddTraceback("SnapPy.Manifold.symmetric_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_8) < 0) __PYX_ERR(1, 545, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_8);

      /* "cython/core/manifold.pyx":546
 *             return self._cache.lookup('symmetric_triangulation')
 *         except KeyError:
 *             self.symmetry_group()             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('symmetric_triangulation')
 * 
*/
      __pyx_t_10 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_10);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL};
        __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_symmetry_group, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 546, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_9);
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "cython/core/manifold.pyx":547
 *         except KeyError:
 *             self.symmetry_group()
 *             return self._cache.lookup('symmetric_triangulation')             # <<<<<<<<<<<<<<
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Manifold':
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_10 = __pyx_v_self->__pyx_base._cache;
      __Pyx_INCREF(__pyx_t_10);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_mstate_global->__pyx_n_u_symmetric_triangulation};
        __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lookup, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 547, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_9);
      }
      __pyx_r = __pyx_t_9;
      __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L6_except_return;
    }
    goto __pyx_L5_except_error;

    /* "cython/core/manifold.pyx":543
 *         D6
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('symmetric_triangulation')
 *         except KeyError:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "cython/core/manifold.pyx":528
 *         return self._cache.save(symmetry_group, 'symmetry_group', of_link)
 * 
 *     def symmetric_triangulation(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Dehn filling description of the manifold realizing
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("SnapPy.Manifold.symmetric_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":549
 *             return self._cache.lookup('symmetric_triangulation')
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Manifold':             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`Manifold` representing the finite cover specified by a
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_37cover(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_36cover, "\n        Returns a :class:`Manifold` representing the finite cover specified by a\n        transitive permutation representation.  The representation is\n        specified by a list of permutations, one for each generator of the\n        simplified presentation of the fundamental group.  Each permutation is\n        specified as a list ``P`` such such that ``set(P) == set(range(d))``\n        where ``d`` is the degree of the cover.\n\n        >>> M = Manifold('m004')\n        >>> N0 = M.cover([[1, 3, 0, 4, 2], [0, 2, 1, 4, 3]])\n        >>> abs(N0.volume()/M.volume() - 5) < 0.0000000001\n        True\n\n\n        If within SageMath, the permutations can also be of type\n        ``PermutationGroupElement``, in which case they act on the set\n        ``range(1, d + 1)``.  Or, you can specify a GAP or Magma subgroup\n        of the fundamental group.     Some examples::\n\n          sage: M = Manifold('m004')\n\n        The basic method::\n\n          sage: N0 = M.cover([[1, 3, 0, 4, 2], [0, 2, 1, 4, 3]])\n\n        From a Gap subgroup::\n\n          sage: G = gap(M.fundamental_group())\n          sage: H = G.LowIndexSubgroupsFpGroup(5)[9]\n          sage: N1 = M.cover(H)\n          sage: N0 == N1\n          True\n\n        Or a homomorphism to a permutation group::\n\n          sage: f = G.GQuotients(PSL(2,7))[1]\n          sage: N2 = M.cover(f)\n          sage: N2.volume()/M.volume() # doctest: +NUMERIC9\n          8.00000000\n\n        Or maybe we want larger cover coming from the kernel of this::\n\n          sage: N3 = M.cover(f.Kernel())\n          sage: N3.volume()/M.volume() # doctest: +NUMERIC9\n          168.00000000\n\n        Check the homology against what Gap computes directly::\n\n          sage: N3.homology().betti_number()\n          32\n          sage: len([ x for x in f.Kernel().AbelianInvariants().sage() if x == 0])\n          32\n\n        We can do the same for Magma::\n\n          sage: G = magma(M.fundamental_group())             #doctest: +SKI""P\n          sage: Q, f = G.pQuotient(5, 1, nvals = 2)          #doctest: +SKIP\n          sage: M.cover(f.Kernel()).volume()                 #doctest: +SKIP\n          10.14941606\n          sage: h = G.SimpleQuotients(1, 11, 2, 10000)[1,1]  #doctest: +SKIP\n          sage: N4 = M.cover(h)                              #doctest: +SKIP\n          sage: N2 == N4                                     #doctest: +SKIP\n          True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_37cover = {"cover", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_37cover, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_36cover};
static PyObject *__pyx_pw_6SnapPy_8Manifold_37cover(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_permutation_rep = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cover (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_permutation_rep,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 549, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 549, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "cover", 0) < (0)) __PYX_ERR(1, 549, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("cover", 1, 1, 1, i); __PYX_ERR(1, 549, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 549, __pyx_L3_error)
    }
    __pyx_v_permutation_rep = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cover", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 549, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.cover", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_36cover(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_permutation_rep);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_36cover(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_permutation_rep) {
  PyObject *__pyx_v_cover = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cover", 0);

  /* "cython/core/manifold.pyx":614
 *           True
 *         """
 *         cover = Triangulation.cover(self, permutation_rep)             # <<<<<<<<<<<<<<
 *         return Manifold_from_Triangulation(cover, recompute=False,
 *                                            manifold_class=self.__class__)
*/
  __pyx_t_2 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_permutation_rep};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cover, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 614, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_cover = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":615
 *         """
 *         cover = Triangulation.cover(self, permutation_rep)
 *         return Manifold_from_Triangulation(cover, recompute=False,             # <<<<<<<<<<<<<<
 *                                            manifold_class=self.__class__)
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Manifold_from_Triangulation); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/manifold.pyx":616
 *         cover = Triangulation.cover(self, permutation_rep)
 *         return Manifold_from_Triangulation(cover, recompute=False,
 *                                            manifold_class=self.__class__)             # <<<<<<<<<<<<<<
 * 
 *     def covers(
*/
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_2, __pyx_v_cover};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_recompute, Py_False, __pyx_t_6, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 615, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_manifold_class_2, __pyx_t_5, __pyx_t_6, __pyx_callargs+2, 1) < (0)) __PYX_ERR(1, 615, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":549
 *             return self._cache.lookup('symmetric_triangulation')
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Manifold':             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`Manifold` representing the finite cover specified by a
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Manifold.cover", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_cover);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":618
 *                                            manifold_class=self.__class__)
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_39covers(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_38covers, "\n        Returns a list of :class:`Manifold`\\ s corresponding to all of the\n        finite covers of the given degree.  The default method is\n        'low_index' for general covers and 'snappea' for cyclic\n        covers.  The former uses Sim's algorithm while the latter\n        uses the original Snappea algorithm.\n\n        WARNING: If the degree is large this might take a very, very,\n        very long time.\n\n        >>> M = Manifold('m003')\n        >>> covers = M.covers(4)\n        >>> sorted(N.homology() for N in covers)\n        [Z/3 + Z/15 + Z, Z/5 + Z + Z]\n\n        It is faster to look just at cyclic covers.\n\n        >>> covers = M.covers(4, cover_type='cyclic')\n        >>> [(N, N.homology()) for N in covers]\n        [(m003~cyc~0(0,0), Z/3 + Z/15 + Z)]\n\n        Here we check that we get the same number of covers with the\n        'snappea' and 'low_index' methods.\n\n        >>> M = Manifold('m125')\n        >>> len(M.covers(5))\n        19\n        >>> len(M.covers(5, method='snappea'))\n        19\n\n        If you are using Sage, you can use GAP to find the subgroups,\n        which is often much faster, by specifying the optional\n        argument method = 'gap' If you have Magma installed, you can\n        used it to do the heavy lifting by specifying method='magma'.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_39covers = {"covers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_39covers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_38covers};
static PyObject *__pyx_pw_6SnapPy_8Manifold_39covers(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_degree = 0;
  PyObject *__pyx_v_method = 0;
  PyObject *__pyx_v_cover_type = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("covers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_degree,&__pyx_mstate_global->__pyx_n_u_method,&__pyx_mstate_global->__pyx_n_u_cover_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 618, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 618, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 618, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 618, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "covers", 0) < (0)) __PYX_ERR(1, 618, __pyx_L3_error)

      /* "cython/core/manifold.pyx":621
 *             self,
 *             degree,
 *             method : typing.Optional[str] = None,             # <<<<<<<<<<<<<<
 *             cover_type : str  = 'all'
 *         ) -> 'list[snappy.Manifold]':
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_n_u_all));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("covers", 0, 1, 3, i); __PYX_ERR(1, 618, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 618, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 618, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 618, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject*)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_n_u_all));
    }
    __pyx_v_degree = values[0];
    __pyx_v_method = ((PyObject*)values[1]);
    __pyx_v_cover_type = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("covers", 0, 1, 3, __pyx_nargs); __PYX_ERR(1, 618, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.covers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_method), (&PyUnicode_Type), 1, "method", 2))) __PYX_ERR(1, 621, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cover_type), (&PyUnicode_Type), 0, "cover_type", 2))) __PYX_ERR(1, 622, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_38covers(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_degree, __pyx_v_method, __pyx_v_cover_type);

  /* "cython/core/manifold.pyx":618
 *                                            manifold_class=self.__class__)
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_38covers(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_degree, PyObject *__pyx_v_method, PyObject *__pyx_v_cover_type) {
  PyObject *__pyx_v_covers = NULL;
  PyObject *__pyx_9genexpr46__pyx_v_cover = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  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;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("covers", 0);

  /* "cython/core/manifold.pyx":659
 *         used it to do the heavy lifting by specifying method='magma'.
 *         """
 *         covers = Triangulation.covers(self, degree, method,cover_type)             # <<<<<<<<<<<<<<
 *         return [Manifold_from_Triangulation(cover,
 *                                             recompute=False,
*/
  __pyx_t_2 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_degree, __pyx_v_method, __pyx_v_cover_type};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_covers, __pyx_callargs+__pyx_t_3, (5-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_covers = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":660
 *         """
 *         covers = Triangulation.covers(self, degree, method,cover_type)
 *         return [Manifold_from_Triangulation(cover,             # <<<<<<<<<<<<<<
 *                                             recompute=False,
 *                                             manifold_class=self.__class__)
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 660, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/manifold.pyx":663
 *                                             recompute=False,
 *                                             manifold_class=self.__class__)
 *                 for cover in covers]             # <<<<<<<<<<<<<<
 * 
 *     cdef _real_volume(self):
*/
    if (likely(PyList_CheckExact(__pyx_v_covers)) || PyTuple_CheckExact(__pyx_v_covers)) {
      __pyx_t_2 = __pyx_v_covers; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_4 = 0;
      __pyx_t_5 = NULL;
    } else {
      __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_covers); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 663, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 663, __pyx_L5_error)
    }
    for (;;) {
      if (likely(!__pyx_t_5)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 663, __pyx_L5_error)
            #endif
            if (__pyx_t_4 >= __pyx_temp) break;
          }
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_4;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 663, __pyx_L5_error)
            #endif
            if (__pyx_t_4 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4));
          #else
          __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4);
          #endif
          ++__pyx_t_4;
        }
        if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 663, __pyx_L5_error)
      } else {
        __pyx_t_6 = __pyx_t_5(__pyx_t_2);
        if (unlikely(!__pyx_t_6)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 663, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_9genexpr46__pyx_v_cover, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/manifold.pyx":660
 *         """
 *         covers = Triangulation.covers(self, degree, method,cover_type)
 *         return [Manifold_from_Triangulation(cover,             # <<<<<<<<<<<<<<
 *                                             recompute=False,
 *                                             manifold_class=self.__class__)
*/
      __pyx_t_7 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_Manifold_from_Triangulation); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 660, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_8);

      /* "cython/core/manifold.pyx":662
 *         return [Manifold_from_Triangulation(cover,
 *                                             recompute=False,
 *                                             manifold_class=self.__class__)             # <<<<<<<<<<<<<<
 *                 for cover in covers]
 * 
*/
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 662, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_3 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_7);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_3 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_7, __pyx_9genexpr46__pyx_v_cover};
        __pyx_t_10 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 660, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_10);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_recompute, Py_False, __pyx_t_10, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 660, __pyx_L5_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_manifold_class_2, __pyx_t_9, __pyx_t_10, __pyx_callargs+2, 1) < (0)) __PYX_ERR(1, 660, __pyx_L5_error)
        __pyx_t_6 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 660, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(1, 660, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/manifold.pyx":663
 *                                             recompute=False,
 *                                             manifold_class=self.__class__)
 *                 for cover in covers]             # <<<<<<<<<<<<<<
 * 
 *     cdef _real_volume(self):
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_9genexpr46__pyx_v_cover); __pyx_9genexpr46__pyx_v_cover = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr46__pyx_v_cover); __pyx_9genexpr46__pyx_v_cover = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":618
 *                                            manifold_class=self.__class__)
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __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_AddTraceback("SnapPy.Manifold.covers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_covers);
  __Pyx_XDECREF(__pyx_9genexpr46__pyx_v_cover);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":665
 *                 for cover in covers]
 * 
 *     cdef _real_volume(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the (real) volume as a Number.
*/

static PyObject *__pyx_f_6SnapPy_8Manifold__real_volume(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  int __pyx_v_acc;
  PyObject *__pyx_v_solution_type = 0;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_9genexpr47__pyx_v_z = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  PyObject *(*__pyx_t_10)(PyObject *);
  PyObject *__pyx_t_11 = NULL;
  __pyx_t_6SnapPy_Real __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_real_volume", 0);

  /* "cython/core/manifold.pyx":671
 *         cdef int acc
 *         cdef solution_type
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 0
 *         solution_type = self.solution_type()
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":672
 *         cdef solution_type
 *         if self.c_triangulation is NULL:
 *             return 0             # <<<<<<<<<<<<<<
 *         solution_type = self.solution_type()
 *         if solution_type in ('not attempted', 'no solution found'):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_r = __pyx_mstate_global->__pyx_int_0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":671
 *         cdef int acc
 *         cdef solution_type
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 0
 *         solution_type = self.solution_type()
*/
  }

  /* "cython/core/manifold.pyx":673
 *         if self.c_triangulation is NULL:
 *             return 0
 *         solution_type = self.solution_type()             # <<<<<<<<<<<<<<
 *         if solution_type in ('not attempted', 'no solution found'):
 *             raise ValueError('Solution type is: %s' % solution_type)
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_solution_type, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 673, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_solution_type = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":674
 *             return 0
 *         solution_type = self.solution_type()
 *         if solution_type in ('not attempted', 'no solution found'):             # <<<<<<<<<<<<<<
 *             raise ValueError('Solution type is: %s' % solution_type)
 *         if Number._default_precision > 64:
*/
  __Pyx_INCREF(__pyx_v_solution_type);
  __pyx_t_2 = __pyx_v_solution_type;
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_not_attempted, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 674, __pyx_L1_error)
  if (!__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_no_solution_found, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 674, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_5;
  __pyx_L5_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __pyx_t_1;
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/manifold.pyx":675
 *         solution_type = self.solution_type()
 *         if solution_type in ('not attempted', 'no solution found'):
 *             raise ValueError('Solution type is: %s' % solution_type)             # <<<<<<<<<<<<<<
 *         if Number._default_precision > 64:
 *             # must provide a start value to get the correct precision
*/
    __pyx_t_3 = NULL;
    __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Solution_type_is_s, __pyx_v_solution_type); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 675, __pyx_L1_error)

    /* "cython/core/manifold.pyx":674
 *             return 0
 *         solution_type = self.solution_type()
 *         if solution_type in ('not attempted', 'no solution found'):             # <<<<<<<<<<<<<<
 *             raise ValueError('Solution type is: %s' % solution_type)
 *         if Number._default_precision > 64:
*/
  }

  /* "cython/core/manifold.pyx":676
 *         if solution_type in ('not attempted', 'no solution found'):
 *             raise ValueError('Solution type is: %s' % solution_type)
 *         if Number._default_precision > 64:             # <<<<<<<<<<<<<<
 *             # must provide a start value to get the correct precision
 *             result = sum(
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 676, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_default_precision); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 676, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_RichCompare(__pyx_t_6, __pyx_mstate_global->__pyx_int_64, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 676, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 676, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_5) {

    /* "cython/core/manifold.pyx":678
 *         if Number._default_precision > 64:
 *             # must provide a start value to get the correct precision
 *             result = sum(             # <<<<<<<<<<<<<<
 *                 [z.volume() for z in self._get_tetrahedra_shapes('filled')],
 *                 Number(0))
*/
    __pyx_t_6 = NULL;
    { /* enter inner scope */

      /* "cython/core/manifold.pyx":679
 *             # must provide a start value to get the correct precision
 *             result = sum(
 *                 [z.volume() for z in self._get_tetrahedra_shapes('filled')],             # <<<<<<<<<<<<<<
 *                 Number(0))
 *         else:
*/
      __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 679, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_8 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_8);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_n_u_filled_2};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_tetrahedra_shapes, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 679, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) {
        __pyx_t_8 = __pyx_t_7; __Pyx_INCREF(__pyx_t_8);
        __pyx_t_9 = 0;
        __pyx_t_10 = NULL;
      } else {
        __pyx_t_9 = -1; __pyx_t_8 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 679, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 679, __pyx_L10_error)
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      for (;;) {
        if (likely(!__pyx_t_10)) {
          if (likely(PyList_CheckExact(__pyx_t_8))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 679, __pyx_L10_error)
              #endif
              if (__pyx_t_9 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_9;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 679, __pyx_L10_error)
              #endif
              if (__pyx_t_9 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_7 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_9));
            #else
            __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_8, __pyx_t_9);
            #endif
            ++__pyx_t_9;
          }
          if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 679, __pyx_L10_error)
        } else {
          __pyx_t_7 = __pyx_t_10(__pyx_t_8);
          if (unlikely(!__pyx_t_7)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 679, __pyx_L10_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_XDECREF_SET(__pyx_9genexpr47__pyx_v_z, __pyx_t_7);
        __pyx_t_7 = 0;
        __pyx_t_11 = __pyx_9genexpr47__pyx_v_z;
        __Pyx_INCREF(__pyx_t_11);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, NULL};
          __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_volume, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 679, __pyx_L10_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_7))) __PYX_ERR(1, 679, __pyx_L10_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      }
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_9genexpr47__pyx_v_z); __pyx_9genexpr47__pyx_v_z = 0;
      goto __pyx_L14_exit_scope;
      __pyx_L10_error:;
      __Pyx_XDECREF(__pyx_9genexpr47__pyx_v_z); __pyx_9genexpr47__pyx_v_z = 0;
      goto __pyx_L1_error;
      __pyx_L14_exit_scope:;
    } /* exit inner scope */

    /* "cython/core/manifold.pyx":680
 *             result = sum(
 *                 [z.volume() for z in self._get_tetrahedra_shapes('filled')],
 *                 Number(0))             # <<<<<<<<<<<<<<
 *         else:
 *             result = Number(<double>volume(self.c_triangulation, &acc))
*/
    __pyx_t_7 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 680, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_11))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_11);
      assert(__pyx_t_7);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_int_0};
      __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 680, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_t_3, __pyx_t_8};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 678, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_result = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":676
 *         if solution_type in ('not attempted', 'no solution found'):
 *             raise ValueError('Solution type is: %s' % solution_type)
 *         if Number._default_precision > 64:             # <<<<<<<<<<<<<<
 *             # must provide a start value to get the correct precision
 *             result = sum(
*/
    goto __pyx_L7;
  }

  /* "cython/core/manifold.pyx":682
 *                 Number(0))
 *         else:
 *             result = Number(<double>volume(self.c_triangulation, &acc))             # <<<<<<<<<<<<<<
 *             result.accuracy = acc
 *         return result
*/
  /*else*/ {
    __pyx_t_8 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 682, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_12 = volume(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_acc)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 682, __pyx_L1_error)
    __pyx_t_6 = PyFloat_FromDouble(((double)__pyx_t_12)); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 682, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3);
      assert(__pyx_t_8);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_6};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 682, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_result = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":683
 *         else:
 *             result = Number(<double>volume(self.c_triangulation, &acc))
 *             result.accuracy = acc             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_acc); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_result, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_2) < (0)) __PYX_ERR(1, 683, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_L7:;

  /* "cython/core/manifold.pyx":684
 *             result = Number(<double>volume(self.c_triangulation, &acc))
 *             result.accuracy = acc
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     cdef _cusped_complex_volume(self, Complex *volume, int *accuracy):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":665
 *                 for cover in covers]
 * 
 *     cdef _real_volume(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the (real) volume as a Number.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.Manifold._real_volume", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_solution_type);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_9genexpr47__pyx_v_z);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":686
 *         return result
 * 
 *     cdef _cusped_complex_volume(self, Complex *volume, int *accuracy):             # <<<<<<<<<<<<<<
 *         """
 *         Computes the complex volume of the manifold, computed using
*/

static PyObject *__pyx_f_6SnapPy_8Manifold__cusped_complex_volume(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, Complex *__pyx_v_volume, int *__pyx_v_accuracy) {
  const char* __pyx_v_err_msg;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Complex __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_cusped_complex_volume", 0);

  /* "cython/core/manifold.pyx":703
 *         True
 *         """
 *         cdef const_char_ptr err_msg=NULL             # <<<<<<<<<<<<<<
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
*/
  __pyx_v_err_msg = NULL;

  /* "cython/core/manifold.pyx":704
 *         """
 *         cdef const_char_ptr err_msg=NULL
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":705
 *         cdef const_char_ptr err_msg=NULL
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         volume[0] = complex_volume(self.c_triangulation,
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 705, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 705, __pyx_L1_error)

    /* "cython/core/manifold.pyx":704
 *         """
 *         cdef const_char_ptr err_msg=NULL
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/manifold.pyx":707
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         volume[0] = complex_volume(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                    &err_msg,
 *                                    accuracy)
*/
  __pyx_t_5 = complex_volume(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_err_msg), __pyx_v_accuracy); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 707, __pyx_L1_error)
  (__pyx_v_volume[0]) = __pyx_t_5;

  /* "cython/core/manifold.pyx":710
 *                                    &err_msg,
 *                                    accuracy)
 *         if err_msg is NULL:             # <<<<<<<<<<<<<<
 *             return
 *         raise ValueError(err_msg)
*/
  __pyx_t_1 = (__pyx_v_err_msg == NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":711
 *                                    accuracy)
 *         if err_msg is NULL:
 *             return             # <<<<<<<<<<<<<<
 *         raise ValueError(err_msg)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":710
 *                                    &err_msg,
 *                                    accuracy)
 *         if err_msg is NULL:             # <<<<<<<<<<<<<<
 *             return
 *         raise ValueError(err_msg)
*/
  }

  /* "cython/core/manifold.pyx":712
 *         if err_msg is NULL:
 *             return
 *         raise ValueError(err_msg)             # <<<<<<<<<<<<<<
 * 
 *     def _complex_volume(self):
*/
  __pyx_t_3 = NULL;
  __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_err_msg); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 712, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_Raise(__pyx_t_2, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __PYX_ERR(1, 712, __pyx_L1_error)

  /* "cython/core/manifold.pyx":686
 *         return result
 * 
 *     cdef _cusped_complex_volume(self, Complex *volume, int *accuracy):             # <<<<<<<<<<<<<<
 *         """
 *         Computes the complex volume of the manifold, computed using
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Manifold._cusped_complex_volume", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":714
 *         raise ValueError(err_msg)
 * 
 *     def _complex_volume(self):             # <<<<<<<<<<<<<<
 *         cdef Complex volume
 *         cdef int accuracy
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_41_complex_volume(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_41_complex_volume = {"_complex_volume", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_41_complex_volume, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Manifold_41_complex_volume(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_complex_volume (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_complex_volume", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_complex_volume", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_40_complex_volume(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_40_complex_volume(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  Complex __pyx_v_volume;
  int __pyx_v_accuracy;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_complex_volume", 0);

  /* "cython/core/manifold.pyx":717
 *         cdef Complex volume
 *         cdef int accuracy
 *         if True in self.cusp_info('is_complete'):             # <<<<<<<<<<<<<<
 *             self._cusped_complex_volume(&volume, &accuracy)
 *             set_CS_value(self.c_triangulation, volume.imag / PI_SQUARED_BY_2)
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_n_u_is_complete};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = (__Pyx_PySequence_ContainsTF(Py_True, __pyx_t_1, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(1, 717, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cython/core/manifold.pyx":718
 *         cdef int accuracy
 *         if True in self.cusp_info('is_complete'):
 *             self._cusped_complex_volume(&volume, &accuracy)             # <<<<<<<<<<<<<<
 *             set_CS_value(self.c_triangulation, volume.imag / PI_SQUARED_BY_2)
 *             result = Complex2Number(volume)
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_self->__pyx_base.__pyx_vtab)->_cusped_complex_volume(__pyx_v_self, (&__pyx_v_volume), (&__pyx_v_accuracy)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":719
 *         if True in self.cusp_info('is_complete'):
 *             self._cusped_complex_volume(&volume, &accuracy)
 *             set_CS_value(self.c_triangulation, volume.imag / PI_SQUARED_BY_2)             # <<<<<<<<<<<<<<
 *             result = Complex2Number(volume)
 *             result.accuracy = accuracy
*/
    if (unlikely(PI_SQUARED_BY_2 == 0)) {
      PyErr_SetString(PyExc_ZeroDivisionError, "float division");
      __PYX_ERR(1, 719, __pyx_L1_error)
    }
    set_CS_value(__pyx_v_self->__pyx_base.c_triangulation, (__pyx_v_volume.imag / ((__pyx_t_6SnapPy_Real)PI_SQUARED_BY_2))); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 719, __pyx_L1_error)

    /* "cython/core/manifold.pyx":720
 *             self._cusped_complex_volume(&volume, &accuracy)
 *             set_CS_value(self.c_triangulation, volume.imag / PI_SQUARED_BY_2)
 *             result = Complex2Number(volume)             # <<<<<<<<<<<<<<
 *             result.accuracy = accuracy
 *         else:
*/
    __pyx_t_1 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_volume); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 720, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_result = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":721
 *             set_CS_value(self.c_triangulation, volume.imag / PI_SQUARED_BY_2)
 *             result = Complex2Number(volume)
 *             result.accuracy = accuracy             # <<<<<<<<<<<<<<
 *         else:
 *             result = self._real_volume() + (
*/
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_accuracy); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_result, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_1) < (0)) __PYX_ERR(1, 721, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":717
 *         cdef Complex volume
 *         cdef int accuracy
 *         if True in self.cusp_info('is_complete'):             # <<<<<<<<<<<<<<
 *             self._cusped_complex_volume(&volume, &accuracy)
 *             set_CS_value(self.c_triangulation, volume.imag / PI_SQUARED_BY_2)
*/
    goto __pyx_L3;
  }

  /* "cython/core/manifold.pyx":723
 *             result.accuracy = accuracy
 *         else:
 *             result = self._real_volume() + (             # <<<<<<<<<<<<<<
 *                 self._chern_simons() *
 *                 Real2Number(PI_SQUARED_BY_2) * Number('I'))
*/
  /*else*/ {
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_self->__pyx_base.__pyx_vtab)->_real_volume(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/manifold.pyx":724
 *         else:
 *             result = self._real_volume() + (
 *                 self._chern_simons() *             # <<<<<<<<<<<<<<
 *                 Real2Number(PI_SQUARED_BY_2) * Number('I'))
 *         return self._number_(result)
*/
    __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_self->__pyx_base.__pyx_vtab)->_chern_simons(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 724, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cython/core/manifold.pyx":725
 *             result = self._real_volume() + (
 *                 self._chern_simons() *
 *                 Real2Number(PI_SQUARED_BY_2) * Number('I'))             # <<<<<<<<<<<<<<
 *         return self._number_(result)
 * 
*/
    __pyx_t_5 = __pyx_f_6SnapPy_Real2Number(PI_SQUARED_BY_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "cython/core/manifold.pyx":724
 *         else:
 *             result = self._real_volume() + (
 *                 self._chern_simons() *             # <<<<<<<<<<<<<<
 *                 Real2Number(PI_SQUARED_BY_2) * Number('I'))
 *         return self._number_(result)
*/
    __pyx_t_6 = PyNumber_Multiply(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 724, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/manifold.pyx":725
 *             result = self._real_volume() + (
 *                 self._chern_simons() *
 *                 Real2Number(PI_SQUARED_BY_2) * Number('I'))             # <<<<<<<<<<<<<<
 *         return self._number_(result)
 * 
*/
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_3 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_3 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_n_u_I};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 725, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_7 = PyNumber_Multiply(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/manifold.pyx":723
 *             result.accuracy = accuracy
 *         else:
 *             result = self._real_volume() + (             # <<<<<<<<<<<<<<
 *                 self._chern_simons() *
 *                 Real2Number(PI_SQUARED_BY_2) * Number('I'))
*/
    __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_v_result = __pyx_t_5;
    __pyx_t_5 = 0;
  }
  __pyx_L3:;

  /* "cython/core/manifold.pyx":726
 *                 self._chern_simons() *
 *                 Real2Number(PI_SQUARED_BY_2) * Number('I'))
 *         return self._number_(result)             # <<<<<<<<<<<<<<
 * 
 *     def volume(self, accuracy=False, verified = False, bits_prec = None):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_7 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_result};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 726, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":714
 *         raise ValueError(err_msg)
 * 
 *     def _complex_volume(self):             # <<<<<<<<<<<<<<
 *         cdef Complex volume
 *         cdef int accuracy
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Manifold._complex_volume", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":728
 *         return self._number_(result)
 * 
 *     def volume(self, accuracy=False, verified = False, bits_prec = None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the volume of the current solution to the hyperbolic
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_43volume(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_42volume, "\n        Returns the volume of the current solution to the hyperbolic\n        gluing equations; if the solution is sufficiently non-degenerate,\n        this is the sum of the volumes of the hyperbolic pieces in\n        the geometric decomposition of the manifold.\n\n        >>> M = Manifold('m004')\n        >>> M.volume() # doctest: +NUMERIC6\n        2.02988321\n        >>> M.solution_type()\n        'all tetrahedra positively oriented'\n\n        The return value has an extra attribute, accuracy, which is the\n        number of digits of accuracy as *estimated* by SnapPea.  When\n        printing the volume, the result is rounded to 1 more than this\n        number of digits.\n\n        >>> vol, accuracy = M.volume(accuracy = True)\n        >>> accuracy in (10, 63) # Low precision, High precision\n        True\n\n        Inside SageMath, verified computation of the volume of a\n        hyperbolic manifold is also possible (this will verify first\n        that the manifold is indeed hyperbolic)::\n\n            sage: M.volume(verified=True, bits_prec=100)   #doctest: +NUMERIC24\n            2.029883212819307250042405109?\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_43volume = {"volume", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_43volume, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_42volume};
static PyObject *__pyx_pw_6SnapPy_8Manifold_43volume(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_accuracy = 0;
  PyObject *__pyx_v_verified = 0;
  PyObject *__pyx_v_bits_prec = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("volume (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_accuracy,&__pyx_mstate_global->__pyx_n_u_verified,&__pyx_mstate_global->__pyx_n_u_bits_prec,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 728, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "volume", 0) < (0)) __PYX_ERR(1, 728, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_accuracy = values[0];
    __pyx_v_verified = values[1];
    __pyx_v_bits_prec = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("volume", 0, 0, 3, __pyx_nargs); __PYX_ERR(1, 728, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.volume", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_42volume(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_accuracy, __pyx_v_verified, __pyx_v_bits_prec);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_42volume(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_accuracy, PyObject *__pyx_v_verified, PyObject *__pyx_v_bits_prec) {
  PyObject *__pyx_v_vol = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("volume", 0);

  /* "cython/core/manifold.pyx":758
 *         """
 * 
 *         if verified or bits_prec:             # <<<<<<<<<<<<<<
 *             if accuracy:
 *                 raise ValueError(
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_verified); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 758, __pyx_L1_error)
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_bits_prec); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 758, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":759
 * 
 *         if verified or bits_prec:
 *             if accuracy:             # <<<<<<<<<<<<<<
 *                 raise ValueError(
 *                     'SnapPea kernel style estimation of accuracy not available '
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_accuracy); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 759, __pyx_L1_error)
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/manifold.pyx":760
 *         if verified or bits_prec:
 *             if accuracy:
 *                 raise ValueError(             # <<<<<<<<<<<<<<
 *                     'SnapPea kernel style estimation of accuracy not available '
 *                     'for arbitrary precision/interval arithmetic.')
*/
      __pyx_t_4 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_SnapPea_kernel_style_estimation};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 760, __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_ERR(1, 760, __pyx_L1_error)

      /* "cython/core/manifold.pyx":759
 * 
 *         if verified or bits_prec:
 *             if accuracy:             # <<<<<<<<<<<<<<
 *                 raise ValueError(
 *                     'SnapPea kernel style estimation of accuracy not available '
*/
    }

    /* "cython/core/manifold.pyx":764
 *                     'for arbitrary precision/interval arithmetic.')
 * 
 *             return verify.compute_volume(             # <<<<<<<<<<<<<<
 *                 self, verified=verified, bits_prec=bits_prec)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_verify); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_compute_volume); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/manifold.pyx":765
 * 
 *             return verify.compute_volume(
 *                 self, verified=verified, bits_prec=bits_prec)             # <<<<<<<<<<<<<<
 * 
 *         vol = self._real_volume()
*/
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_4, ((PyObject *)__pyx_v_self)};
      __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 764, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_verified, __pyx_v_verified, __pyx_t_6, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 764, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_bits_prec, __pyx_v_bits_prec, __pyx_t_6, __pyx_callargs+2, 1) < (0)) __PYX_ERR(1, 764, __pyx_L1_error)
      __pyx_t_3 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 764, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":758
 *         """
 * 
 *         if verified or bits_prec:             # <<<<<<<<<<<<<<
 *             if accuracy:
 *                 raise ValueError(
*/
  }

  /* "cython/core/manifold.pyx":767
 *                 self, verified=verified, bits_prec=bits_prec)
 * 
 *         vol = self._real_volume()             # <<<<<<<<<<<<<<
 *         if accuracy:
 *             return (self._number_(vol), vol.accuracy)
*/
  __pyx_t_3 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_self->__pyx_base.__pyx_vtab)->_real_volume(__pyx_v_self); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_vol = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/manifold.pyx":768
 * 
 *         vol = self._real_volume()
 *         if accuracy:             # <<<<<<<<<<<<<<
 *             return (self._number_(vol), vol.accuracy)
 *         else:
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_accuracy); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 768, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":769
 *         vol = self._real_volume()
 *         if accuracy:
 *             return (self._number_(vol), vol.accuracy)             # <<<<<<<<<<<<<<
 *         else:
 *             return self._number_(vol)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_vol};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 769, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_vol, __pyx_mstate_global->__pyx_n_u_accuracy); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(1, 769, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_7) != (0)) __PYX_ERR(1, 769, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_t_7 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":768
 * 
 *         vol = self._real_volume()
 *         if accuracy:             # <<<<<<<<<<<<<<
 *             return (self._number_(vol), vol.accuracy)
 *         else:
*/
  }

  /* "cython/core/manifold.pyx":771
 *             return (self._number_(vol), vol.accuracy)
 *         else:
 *             return self._number_(vol)             # <<<<<<<<<<<<<<
 * 
 *     cdef _old_chern_simons(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_vol};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 771, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/manifold.pyx":728
 *         return self._number_(result)
 * 
 *     def volume(self, accuracy=False, verified = False, bits_prec = None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the volume of the current solution to the hyperbolic
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.Manifold.volume", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_vol);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":773
 *             return self._number_(vol)
 * 
 *     cdef _old_chern_simons(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the Chern-Simons invariant as a Number.  The value
*/

static PyObject *__pyx_f_6SnapPy_8Manifold__old_chern_simons(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  Boolean __pyx_v_is_known;
  Boolean __pyx_v_requires_initialization;
  __pyx_t_6SnapPy_Real __pyx_v_CS;
  int __pyx_v_accuracy;
  PyObject *__pyx_v_cs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_old_chern_simons", 0);

  /* "cython/core/manifold.pyx":783
 *         cdef int accuracy
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 0
 *         get_CS_value(self.c_triangulation,
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":784
 * 
 *         if self.c_triangulation is NULL:
 *             return 0             # <<<<<<<<<<<<<<
 *         get_CS_value(self.c_triangulation,
 *                      &is_known,
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_r = __pyx_mstate_global->__pyx_int_0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":783
 *         cdef int accuracy
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 0
 *         get_CS_value(self.c_triangulation,
*/
  }

  /* "cython/core/manifold.pyx":785
 *         if self.c_triangulation is NULL:
 *             return 0
 *         get_CS_value(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                      &is_known,
 *                      &CS,
*/
  get_CS_value(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_is_known), (&__pyx_v_CS), (&__pyx_v_accuracy), (&__pyx_v_requires_initialization)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 785, __pyx_L1_error)

  /* "cython/core/manifold.pyx":790
 *                      &accuracy,
 *                      &requires_initialization)
 *         if not is_known:             # <<<<<<<<<<<<<<
 *             raise ValueError("The Chern-Simons invariant isn't "
 *                              "currently known.")
*/
  __pyx_t_1 = (!(__pyx_v_is_known != 0));
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":791
 *                      &requires_initialization)
 *         if not is_known:
 *             raise ValueError("The Chern-Simons invariant isn't "             # <<<<<<<<<<<<<<
 *                              "currently known.")
 *         cs = Real2Number(CS)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Chern_Simons_invariant_isn_t};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 791, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 791, __pyx_L1_error)

    /* "cython/core/manifold.pyx":790
 *                      &accuracy,
 *                      &requires_initialization)
 *         if not is_known:             # <<<<<<<<<<<<<<
 *             raise ValueError("The Chern-Simons invariant isn't "
 *                              "currently known.")
*/
  }

  /* "cython/core/manifold.pyx":793
 *             raise ValueError("The Chern-Simons invariant isn't "
 *                              "currently known.")
 *         cs = Real2Number(CS)             # <<<<<<<<<<<<<<
 *         cs.accuracy = accuracy
 *         return cs
*/
  __pyx_t_2 = __pyx_f_6SnapPy_Real2Number(__pyx_v_CS); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_cs = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":794
 *                              "currently known.")
 *         cs = Real2Number(CS)
 *         cs.accuracy = accuracy             # <<<<<<<<<<<<<<
 *         return cs
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_accuracy); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 794, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_cs, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_2) < (0)) __PYX_ERR(1, 794, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":795
 *         cs = Real2Number(CS)
 *         cs.accuracy = accuracy
 *         return cs             # <<<<<<<<<<<<<<
 * 
 *     cdef _chern_simons(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_cs);
  __pyx_r = __pyx_v_cs;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":773
 *             return self._number_(vol)
 * 
 *     cdef _old_chern_simons(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the Chern-Simons invariant as a Number.  The value
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Manifold._old_chern_simons", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_cs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":797
 *         return cs
 * 
 *     cdef _chern_simons(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the Chern-Simons invariant as a Number.  The value
*/

static PyObject *__pyx_f_6SnapPy_8Manifold__chern_simons(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  Complex __pyx_v_volume;
  __pyx_t_6SnapPy_Real __pyx_v_cs_value;
  int __pyx_v_accuracy;
  PyObject *__pyx_v_solution_type = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_chern_simons", 0);

  /* "cython/core/manifold.pyx":806
 *         cdef Real cs_value
 *         cdef int accuracy
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 0
 *         solution_type = self.solution_type()
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":807
 *         cdef int accuracy
 *         if self.c_triangulation is NULL:
 *             return 0             # <<<<<<<<<<<<<<
 *         solution_type = self.solution_type()
 *         if solution_type in ('not attempted', 'no solution found'):
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_r = __pyx_mstate_global->__pyx_int_0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":806
 *         cdef Real cs_value
 *         cdef int accuracy
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return 0
 *         solution_type = self.solution_type()
*/
  }

  /* "cython/core/manifold.pyx":808
 *         if self.c_triangulation is NULL:
 *             return 0
 *         solution_type = self.solution_type()             # <<<<<<<<<<<<<<
 *         if solution_type in ('not attempted', 'no solution found'):
 *             raise ValueError('The solution type is: %s' % solution_type)
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_solution_type, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 808, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_solution_type = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":809
 *             return 0
 *         solution_type = self.solution_type()
 *         if solution_type in ('not attempted', 'no solution found'):             # <<<<<<<<<<<<<<
 *             raise ValueError('The solution type is: %s' % solution_type)
 *         if True not in self.cusp_info('is_complete'):
*/
  __Pyx_INCREF(__pyx_v_solution_type);
  __pyx_t_2 = __pyx_v_solution_type;
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_not_attempted, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 809, __pyx_L1_error)
  if (!__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_5 = (__Pyx_PyUnicode_Equals(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_no_solution_found, Py_EQ)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 809, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_5;
  __pyx_L5_bool_binop_done:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __pyx_t_1;
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/manifold.pyx":810
 *         solution_type = self.solution_type()
 *         if solution_type in ('not attempted', 'no solution found'):
 *             raise ValueError('The solution type is: %s' % solution_type)             # <<<<<<<<<<<<<<
 *         if True not in self.cusp_info('is_complete'):
 *             result = self._old_chern_simons()
*/
    __pyx_t_3 = NULL;
    __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_The_solution_type_is_s, __pyx_v_solution_type); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_6};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 810, __pyx_L1_error)

    /* "cython/core/manifold.pyx":809
 *             return 0
 *         solution_type = self.solution_type()
 *         if solution_type in ('not attempted', 'no solution found'):             # <<<<<<<<<<<<<<
 *             raise ValueError('The solution type is: %s' % solution_type)
 *         if True not in self.cusp_info('is_complete'):
*/
  }

  /* "cython/core/manifold.pyx":811
 *         if solution_type in ('not attempted', 'no solution found'):
 *             raise ValueError('The solution type is: %s' % solution_type)
 *         if True not in self.cusp_info('is_complete'):             # <<<<<<<<<<<<<<
 *             result = self._old_chern_simons()
 *         else:
*/
  __pyx_t_6 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_n_u_is_complete};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_5 = (__Pyx_PySequence_ContainsTF(Py_True, __pyx_t_2, Py_NE)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 811, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_5) {

    /* "cython/core/manifold.pyx":812
 *             raise ValueError('The solution type is: %s' % solution_type)
 *         if True not in self.cusp_info('is_complete'):
 *             result = self._old_chern_simons()             # <<<<<<<<<<<<<<
 *         else:
 *             self._cusped_complex_volume(&volume, &accuracy)
*/
    __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_self->__pyx_base.__pyx_vtab)->_old_chern_simons(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 812, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_result = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":811
 *         if solution_type in ('not attempted', 'no solution found'):
 *             raise ValueError('The solution type is: %s' % solution_type)
 *         if True not in self.cusp_info('is_complete'):             # <<<<<<<<<<<<<<
 *             result = self._old_chern_simons()
 *         else:
*/
    goto __pyx_L7;
  }

  /* "cython/core/manifold.pyx":814
 *             result = self._old_chern_simons()
 *         else:
 *             self._cusped_complex_volume(&volume, &accuracy)             # <<<<<<<<<<<<<<
 *             cs_value = volume.imag / PI_SQUARED_BY_2
 *             result = Real2Number(cs_value)
*/
  /*else*/ {
    __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_self->__pyx_base.__pyx_vtab)->_cusped_complex_volume(__pyx_v_self, (&__pyx_v_volume), (&__pyx_v_accuracy)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 814, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":815
 *         else:
 *             self._cusped_complex_volume(&volume, &accuracy)
 *             cs_value = volume.imag / PI_SQUARED_BY_2             # <<<<<<<<<<<<<<
 *             result = Real2Number(cs_value)
 *             result.accuracy = accuracy - 1 if accuracy else None
*/
    if (unlikely(PI_SQUARED_BY_2 == 0)) {
      PyErr_SetString(PyExc_ZeroDivisionError, "float division");
      __PYX_ERR(1, 815, __pyx_L1_error)
    }
    __pyx_v_cs_value = (__pyx_v_volume.imag / ((__pyx_t_6SnapPy_Real)PI_SQUARED_BY_2));

    /* "cython/core/manifold.pyx":816
 *             self._cusped_complex_volume(&volume, &accuracy)
 *             cs_value = volume.imag / PI_SQUARED_BY_2
 *             result = Real2Number(cs_value)             # <<<<<<<<<<<<<<
 *             result.accuracy = accuracy - 1 if accuracy else None
 *             set_CS_value(self.c_triangulation, cs_value)
*/
    __pyx_t_2 = __pyx_f_6SnapPy_Real2Number(__pyx_v_cs_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_result = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":817
 *             cs_value = volume.imag / PI_SQUARED_BY_2
 *             result = Real2Number(cs_value)
 *             result.accuracy = accuracy - 1 if accuracy else None             # <<<<<<<<<<<<<<
 *             set_CS_value(self.c_triangulation, cs_value)
 *         return result
*/
    __pyx_t_5 = (__pyx_v_accuracy != 0);
    if (__pyx_t_5) {
      __pyx_t_6 = __Pyx_PyLong_From_long((__pyx_v_accuracy - 1)); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 817, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_2 = __pyx_t_6;
      __pyx_t_6 = 0;
    } else {
      __Pyx_INCREF(Py_None);
      __pyx_t_2 = Py_None;
    }
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_result, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_2) < (0)) __PYX_ERR(1, 817, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":818
 *             result = Real2Number(cs_value)
 *             result.accuracy = accuracy - 1 if accuracy else None
 *             set_CS_value(self.c_triangulation, cs_value)             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
    set_CS_value(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_cs_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 818, __pyx_L1_error)
  }
  __pyx_L7:;

  /* "cython/core/manifold.pyx":819
 *             result.accuracy = accuracy - 1 if accuracy else None
 *             set_CS_value(self.c_triangulation, cs_value)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def chern_simons(self, accuracy = False):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":797
 *         return cs
 * 
 *     cdef _chern_simons(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the Chern-Simons invariant as a Number.  The value
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Manifold._chern_simons", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_solution_type);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":821
 *         return result
 * 
 *     def chern_simons(self, accuracy = False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the Chern-Simons invariant of the manifold (normalized by
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_45chern_simons(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_44chern_simons, "\n        Returns the Chern-Simons invariant of the manifold (normalized by\n        dividing it by :math:`2 \\pi^2`), if it is known.\n\n        >>> M = Manifold('m015')\n        >>> M.chern_simons() # doctest: +NUMERIC6\n        -0.15320413\n\n        The return value has an extra attribute, accuracy, which\n        is the number of digits of accuracy as *estimated* by SnapPea.\n\n        >>> cs, accuracy = M.chern_simons(accuracy = True)\n        >>> accuracy in (8, 9, 56, 57) # Low and High precision\n        True\n\n        By default, when the manifold has at least one cusp, Zickert's\n        algorithm is used; when the manifold is closed we use SnapPea's\n        original algorithm, which is based on Meyerhoff-Hodgson-Neumann.\n\n        Note: When computing the Chern-Simons invariant of a closed\n        manifold, one must sometimes compute it first for the unfilled\n        manifold so as to initialize SnapPea's internals.  For instance,\n\n        >>> M = Manifold('5_2')\n        >>> M.chern_simons() # doctest: +NUMERIC6\n        -0.15320413\n        >>> M.dehn_fill( (1,2) )\n        >>> M.chern_simons() # doctest: +NUMERIC6\n        0.07731787\n\n        works, but will fail with\n        ``ValueError: The Chern-Simons invariant isn't currently known.``\n        if the first call to chern_simons is not made.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_45chern_simons = {"chern_simons", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_45chern_simons, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_44chern_simons};
static PyObject *__pyx_pw_6SnapPy_8Manifold_45chern_simons(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_accuracy = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("chern_simons (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_accuracy,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 821, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 821, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "chern_simons", 0) < (0)) __PYX_ERR(1, 821, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 821, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_accuracy = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("chern_simons", 0, 0, 1, __pyx_nargs); __PYX_ERR(1, 821, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.chern_simons", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_44chern_simons(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_accuracy);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_44chern_simons(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_accuracy) {
  PyObject *__pyx_v_cs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("chern_simons", 0);

  /* "cython/core/manifold.pyx":857
 *         """
 * 
 *         cs = self._chern_simons()             # <<<<<<<<<<<<<<
 *         if accuracy:
 *             return (self._number_(cs), cs.accuracy)
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_self->__pyx_base.__pyx_vtab)->_chern_simons(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 857, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cs = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":858
 * 
 *         cs = self._chern_simons()
 *         if accuracy:             # <<<<<<<<<<<<<<
 *             return (self._number_(cs), cs.accuracy)
 *         else:
*/
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_accuracy); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 858, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "cython/core/manifold.pyx":859
 *         cs = self._chern_simons()
 *         if accuracy:
 *             return (self._number_(cs), cs.accuracy)             # <<<<<<<<<<<<<<
 *         else:
 *             return self._number_(cs)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_cs};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 859, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cs, __pyx_mstate_global->__pyx_n_u_accuracy); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 859, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 859, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(1, 859, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3) != (0)) __PYX_ERR(1, 859, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":858
 * 
 *         cs = self._chern_simons()
 *         if accuracy:             # <<<<<<<<<<<<<<
 *             return (self._number_(cs), cs.accuracy)
 *         else:
*/
  }

  /* "cython/core/manifold.pyx":861
 *             return (self._number_(cs), cs.accuracy)
 *         else:
 *             return self._number_(cs)             # <<<<<<<<<<<<<<
 * 
 *     def without_hyperbolic_structure(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_cs};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 861, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/manifold.pyx":821
 *         return result
 * 
 *     def chern_simons(self, accuracy = False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the Chern-Simons invariant of the manifold (normalized by
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.Manifold.chern_simons", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_cs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":863
 *             return self._number_(cs)
 * 
 *     def without_hyperbolic_structure(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns self as a :class:`Triangulation`, forgetting the hyperbolic
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_47without_hyperbolic_structure(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_46without_hyperbolic_structure, "\n        Returns self as a :class:`Triangulation`, forgetting the hyperbolic\n        structure in the process.\n\n        >>> M = Manifold('9_42')\n        >>> T = M.without_hyperbolic_structure()\n        >>> hasattr(T, 'volume')\n        False\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_47without_hyperbolic_structure = {"without_hyperbolic_structure", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_47without_hyperbolic_structure, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_46without_hyperbolic_structure};
static PyObject *__pyx_pw_6SnapPy_8Manifold_47without_hyperbolic_structure(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("without_hyperbolic_structure (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("without_hyperbolic_structure", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("without_hyperbolic_structure", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_46without_hyperbolic_structure(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_46without_hyperbolic_structure(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("without_hyperbolic_structure", 0);

  /* "cython/core/manifold.pyx":873
 *         False
 *         """
 *         return Triangulation_from_Manifold(self)             # <<<<<<<<<<<<<<
 * 
 *     def _polish_hyperbolic_structures(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Triangulation_from_Manifold); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 873, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":863
 *             return self._number_(cs)
 * 
 *     def without_hyperbolic_structure(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns self as a :class:`Triangulation`, forgetting the hyperbolic
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Manifold.without_hyperbolic_structure", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":875
 *         return Triangulation_from_Manifold(self)
 * 
 *     def _polish_hyperbolic_structures(self):             # <<<<<<<<<<<<<<
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_49_polish_hyperbolic_structures(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_49_polish_hyperbolic_structures = {"_polish_hyperbolic_structures", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_49_polish_hyperbolic_structures, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Manifold_49_polish_hyperbolic_structures(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_polish_hyperbolic_structures (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_polish_hyperbolic_structures", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_polish_hyperbolic_structures", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_48_polish_hyperbolic_structures(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_48_polish_hyperbolic_structures(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_polish_hyperbolic_structures", 0);

  /* "cython/core/manifold.pyx":876
 * 
 *     def _polish_hyperbolic_structures(self):
 *         polish_hyperbolic_structures(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,
*/
  polish_hyperbolic_structures(__pyx_v_self->__pyx_base.c_triangulation);

  /* "cython/core/manifold.pyx":875
 *         return Triangulation_from_Manifold(self)
 * 
 *     def _polish_hyperbolic_structures(self):             # <<<<<<<<<<<<<<
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":878
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,             # <<<<<<<<<<<<<<
 *                           bits_prec=None, dec_prec=None,
 *                           intervals=False):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_51tetrahedra_shapes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_50tetrahedra_shapes, "\n        Gives the shapes of the tetrahedra in the current solution to\n        the gluing equations.  Returns a list containing one info object\n        for each tetrahedron.  The keys are:\n\n        - rect : the shape of the tetrahedron, as a point in the\n          complex plane.\n\n        - log : the log of the shape\n\n        - accuracies: a list of the approximate accuracies of the\n          shapes, in order (rect re, rect im, log re, log im)\n\n        If the optional variable 'part' is set to one of the above,\n        then the function returns only that component of the data.\n\n        If the flag 'fixed_alignment' is set to False, then the edges\n        used to report the shape parameters are chosen so as to\n        normalize the triangle.\n\n        >>> M = Manifold('m015')\n        >>> M.tetrahedra_shapes(part='rect') # doctest: +NUMERIC6\n        [0.66235898 + 0.56227951*I, 0.66235898 + 0.56227951*I, 0.66235898 + 0.56227951*I]\n        >>> M.tetrahedra_shapes() #doctest:+SKIP\n        [{'accuracies': (11, 11, 12, 11), 'log': -0.14059979 + 0.70385772*I, 'rect': 0.66235898 + 0.56227951*I},\n         {'accuracies': (11, 11, 11, 11), 'log': -0.14059979 + 0.70385772*I, 'rect': 0.66235898 + 0.56227951*I},\n         {'accuracies': (11, 11, 11, 11), 'log': -0.14059979 + 0.70385772*I, 'rect': 0.66235898 + 0.56227951*I}]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_51tetrahedra_shapes = {"tetrahedra_shapes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_51tetrahedra_shapes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_50tetrahedra_shapes};
static PyObject *__pyx_pw_6SnapPy_8Manifold_51tetrahedra_shapes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_part = 0;
  PyObject *__pyx_v_fixed_alignment = 0;
  PyObject *__pyx_v_bits_prec = 0;
  PyObject *__pyx_v_dec_prec = 0;
  PyObject *__pyx_v_intervals = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("tetrahedra_shapes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_part,&__pyx_mstate_global->__pyx_n_u_fixed_alignment,&__pyx_mstate_global->__pyx_n_u_bits_prec,&__pyx_mstate_global->__pyx_n_u_dec_prec,&__pyx_mstate_global->__pyx_n_u_intervals,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 878, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "tetrahedra_shapes", 0) < (0)) __PYX_ERR(1, 878, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/manifold.pyx":879
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,
 *                           bits_prec=None, dec_prec=None,             # <<<<<<<<<<<<<<
 *                           intervals=False):
 *         """
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/manifold.pyx":880
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,
 *                           bits_prec=None, dec_prec=None,
 *                           intervals=False):             # <<<<<<<<<<<<<<
 *         """
 *         Gives the shapes of the tetrahedra in the current solution to
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 878, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "cython/core/manifold.pyx":878
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,             # <<<<<<<<<<<<<<
 *                           bits_prec=None, dec_prec=None,
 *                           intervals=False):
*/
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/manifold.pyx":879
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,
 *                           bits_prec=None, dec_prec=None,             # <<<<<<<<<<<<<<
 *                           intervals=False):
 *         """
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/manifold.pyx":880
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,
 *                           bits_prec=None, dec_prec=None,
 *                           intervals=False):             # <<<<<<<<<<<<<<
 *         """
 *         Gives the shapes of the tetrahedra in the current solution to
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_part = values[0];
    __pyx_v_fixed_alignment = values[1];
    __pyx_v_bits_prec = values[2];
    __pyx_v_dec_prec = values[3];
    __pyx_v_intervals = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("tetrahedra_shapes", 0, 0, 5, __pyx_nargs); __PYX_ERR(1, 878, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.tetrahedra_shapes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_50tetrahedra_shapes(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_part, __pyx_v_fixed_alignment, __pyx_v_bits_prec, __pyx_v_dec_prec, __pyx_v_intervals);

  /* "cython/core/manifold.pyx":878
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,             # <<<<<<<<<<<<<<
 *                           bits_prec=None, dec_prec=None,
 *                           intervals=False):
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_50tetrahedra_shapes(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_part, PyObject *__pyx_v_fixed_alignment, PyObject *__pyx_v_bits_prec, PyObject *__pyx_v_dec_prec, PyObject *__pyx_v_intervals) {
  __pyx_t_6SnapPy_Real __pyx_v_rect_re;
  __pyx_t_6SnapPy_Real __pyx_v_rect_im;
  __pyx_t_6SnapPy_Real __pyx_v_log_re;
  __pyx_t_6SnapPy_Real __pyx_v_log_im;
  int __pyx_v_acc_rec_re;
  int __pyx_v_acc_rec_im;
  int __pyx_v_acc_log_re;
  int __pyx_v_acc_log_im;
  Boolean __pyx_v_is_geometric;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_shapes = NULL;
  PyObject *__pyx_v_z = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_rect_shape = NULL;
  PyObject *__pyx_v_log_shape = NULL;
  PyObject *__pyx_v_engine = NULL;
  PyObject *__pyx_9genexpr48__pyx_v_a = NULL;
  PyObject *__pyx_9genexpr49__pyx_v_a = NULL;
  PyObject *__pyx_9genexpr50__pyx_v_z = NULL;
  PyObject *__pyx_9genexpr51__pyx_v_a = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  PyObject *(*__pyx_t_10)(PyObject *);
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  int __pyx_t_14;
  Boolean __pyx_t_15;
  int __pyx_t_16;
  int __pyx_t_17;
  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;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("tetrahedra_shapes", 0);

  /* "cython/core/manifold.pyx":913
 *         cdef Boolean is_geometric
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return []
 * 
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":914
 * 
 *         if self.c_triangulation is NULL:
 *             return []             # <<<<<<<<<<<<<<
 * 
 *         # The SnapPea kernel itself supports non-orientable manifolds,
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 914, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":913
 *         cdef Boolean is_geometric
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return []
 * 
*/
  }

  /* "cython/core/manifold.pyx":919
 *         # but the extensions in snap and verify don't.
 *         # Thus work in double cover and use every other shape.
 *         if not self.is_orientable() and (bits_prec or dec_prec or intervals):             # <<<<<<<<<<<<<<
 *             result = self.orientation_cover().tetrahedra_shapes(
 *                                        part=part,
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 919, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 919, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_6 = (!__pyx_t_5);
  if (__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_bits_prec); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 919, __pyx_L1_error)
  if (!__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_dec_prec); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 919, __pyx_L1_error)
  if (!__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_intervals); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 919, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_6;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":920
 *         # Thus work in double cover and use every other shape.
 *         if not self.is_orientable() and (bits_prec or dec_prec or intervals):
 *             result = self.orientation_cover().tetrahedra_shapes(             # <<<<<<<<<<<<<<
 *                                        part=part,
 *                                        fixed_alignment=fixed_alignment,
*/
    __pyx_t_8 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_orientation_cover, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 920, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_3 = __pyx_t_7;
    __Pyx_INCREF(__pyx_t_3);

    /* "cython/core/manifold.pyx":924
 *                                        fixed_alignment=fixed_alignment,
 *                                        bits_prec=bits_prec, dec_prec=dec_prec,
 *                                        intervals=intervals)[::2]             # <<<<<<<<<<<<<<
 *             if part is not None:
 *                 return result
*/
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 5 : 0)] = {__pyx_t_3, NULL};
      __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(5); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 920, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_part, __pyx_v_part, __pyx_t_8, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 920, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_fixed_alignment, __pyx_v_fixed_alignment, __pyx_t_8, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 920, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_bits_prec, __pyx_v_bits_prec, __pyx_t_8, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 920, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_dec_prec, __pyx_v_dec_prec, __pyx_t_8, __pyx_callargs+1, 3) < (0)) __PYX_ERR(1, 920, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_intervals, __pyx_v_intervals, __pyx_t_8, __pyx_callargs+1, 4) < (0)) __PYX_ERR(1, 920, __pyx_L1_error)
      __pyx_t_2 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_tetrahedra_shapes, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 920, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_mstate_global->__pyx_slice[3]); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 924, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_result = __pyx_t_7;
    __pyx_t_7 = 0;

    /* "cython/core/manifold.pyx":925
 *                                        bits_prec=bits_prec, dec_prec=dec_prec,
 *                                        intervals=intervals)[::2]
 *             if part is not None:             # <<<<<<<<<<<<<<
 *                 return result
 *             else:
*/
    __pyx_t_1 = (__pyx_v_part != Py_None);
    if (__pyx_t_1) {

      /* "cython/core/manifold.pyx":926
 *                                        intervals=intervals)[::2]
 *             if part is not None:
 *                 return result             # <<<<<<<<<<<<<<
 *             else:
 *                 return ListOnePerLine(result)
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_result);
      __pyx_r = __pyx_v_result;
      goto __pyx_L0;

      /* "cython/core/manifold.pyx":925
 *                                        bits_prec=bits_prec, dec_prec=dec_prec,
 *                                        intervals=intervals)[::2]
 *             if part is not None:             # <<<<<<<<<<<<<<
 *                 return result
 *             else:
*/
    }

    /* "cython/core/manifold.pyx":928
 *                 return result
 *             else:
 *                 return ListOnePerLine(result)             # <<<<<<<<<<<<<<
 * 
 *         result = []
*/
    /*else*/ {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_ListOnePerLine); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 928, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_result};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 928, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __pyx_r = __pyx_t_7;
      __pyx_t_7 = 0;
      goto __pyx_L0;
    }

    /* "cython/core/manifold.pyx":919
 *         # but the extensions in snap and verify don't.
 *         # Thus work in double cover and use every other shape.
 *         if not self.is_orientable() and (bits_prec or dec_prec or intervals):             # <<<<<<<<<<<<<<
 *             result = self.orientation_cover().tetrahedra_shapes(
 *                                        part=part,
*/
  }

  /* "cython/core/manifold.pyx":930
 *                 return ListOnePerLine(result)
 * 
 *         result = []             # <<<<<<<<<<<<<<
 *         if bits_prec or dec_prec:
 *             if fixed_alignment is False:
*/
  __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_v_result = __pyx_t_7;
  __pyx_t_7 = 0;

  /* "cython/core/manifold.pyx":931
 * 
 *         result = []
 *         if bits_prec or dec_prec:             # <<<<<<<<<<<<<<
 *             if fixed_alignment is False:
 *                 raise ValueError(
*/
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_bits_prec); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 931, __pyx_L1_error)
  if (!__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L11_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_dec_prec); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 931, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_6;
  __pyx_L11_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":932
 *         result = []
 *         if bits_prec or dec_prec:
 *             if fixed_alignment is False:             # <<<<<<<<<<<<<<
 *                 raise ValueError(
 *                     'High precision shapes must be computed '
*/
    __pyx_t_1 = (__pyx_v_fixed_alignment == Py_False);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/manifold.pyx":933
 *         if bits_prec or dec_prec:
 *             if fixed_alignment is False:
 *                 raise ValueError(             # <<<<<<<<<<<<<<
 *                     'High precision shapes must be computed '
 *                     'in the fixed alignment')
*/
      __pyx_t_8 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_kp_u_High_precision_shapes_must_be_co};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 933, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_Raise(__pyx_t_7, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __PYX_ERR(1, 933, __pyx_L1_error)

      /* "cython/core/manifold.pyx":932
 *         result = []
 *         if bits_prec or dec_prec:
 *             if fixed_alignment is False:             # <<<<<<<<<<<<<<
 *                 raise ValueError(
 *                     'High precision shapes must be computed '
*/
    }

    /* "cython/core/manifold.pyx":936
 *                     'High precision shapes must be computed '
 *                     'in the fixed alignment')
 *             shapes = snap.polished_tetrahedra_shapes(             # <<<<<<<<<<<<<<
 *                 self, dec_prec=dec_prec, bits_prec=bits_prec,
 *                 ignore_solution_type=True)
*/
    __pyx_t_8 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_snap); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 936, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_polished_tetrahedra_shapes); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 936, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":938
 *             shapes = snap.polished_tetrahedra_shapes(
 *                 self, dec_prec=dec_prec, bits_prec=bits_prec,
 *                 ignore_solution_type=True)             # <<<<<<<<<<<<<<
 *             for z in shapes:
 *                 result.append(ShapeInfo(rect=z,
*/
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3);
      assert(__pyx_t_8);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 3 : 0)] = {__pyx_t_8, ((PyObject *)__pyx_v_self)};
      __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 936, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_dec_prec, __pyx_v_dec_prec, __pyx_t_2, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 936, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_bits_prec, __pyx_v_bits_prec, __pyx_t_2, __pyx_callargs+2, 1) < (0)) __PYX_ERR(1, 936, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_ignore_solution_type, Py_True, __pyx_t_2, __pyx_callargs+2, 2) < (0)) __PYX_ERR(1, 936, __pyx_L1_error)
      __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 936, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_v_shapes = __pyx_t_7;
    __pyx_t_7 = 0;

    /* "cython/core/manifold.pyx":939
 *                 self, dec_prec=dec_prec, bits_prec=bits_prec,
 *                 ignore_solution_type=True)
 *             for z in shapes:             # <<<<<<<<<<<<<<
 *                 result.append(ShapeInfo(rect=z,
 *                                         log=z.log(),
*/
    if (likely(PyList_CheckExact(__pyx_v_shapes)) || PyTuple_CheckExact(__pyx_v_shapes)) {
      __pyx_t_7 = __pyx_v_shapes; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_shapes); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 939, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 939, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_10)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 939, __pyx_L1_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 939, __pyx_L1_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_9));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 939, __pyx_L1_error)
      } else {
        __pyx_t_3 = __pyx_t_10(__pyx_t_7);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 939, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_z, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/manifold.pyx":940
 *                 ignore_solution_type=True)
 *             for z in shapes:
 *                 result.append(ShapeInfo(rect=z,             # <<<<<<<<<<<<<<
 *                                         log=z.log(),
 *                                         accuracies=(None, None, None, None)))
*/
      __pyx_t_2 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_ShapeInfo); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 940, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);

      /* "cython/core/manifold.pyx":941
 *             for z in shapes:
 *                 result.append(ShapeInfo(rect=z,
 *                                         log=z.log(),             # <<<<<<<<<<<<<<
 *                                         accuracies=(None, None, None, None)))
 *         else:
*/
      __pyx_t_12 = __pyx_v_z;
      __Pyx_INCREF(__pyx_t_12);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
        __pyx_t_11 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_log, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 941, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
      }

      /* "cython/core/manifold.pyx":942
 *                 result.append(ShapeInfo(rect=z,
 *                                         log=z.log(),
 *                                         accuracies=(None, None, None, None)))             # <<<<<<<<<<<<<<
 *         else:
 *             for i in range(self.num_tetrahedra()):
*/
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 3 : 0)] = {__pyx_t_2, NULL};
        __pyx_t_12 = __Pyx_MakeVectorcallBuilderKwds(3); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 940, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_rect, __pyx_v_z, __pyx_t_12, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 940, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_log, __pyx_t_11, __pyx_t_12, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 940, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_accuracies, __pyx_mstate_global->__pyx_tuple[20], __pyx_t_12, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 940, __pyx_L1_error)
        __pyx_t_3 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_12);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 940, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }

      /* "cython/core/manifold.pyx":940
 *                 ignore_solution_type=True)
 *             for z in shapes:
 *                 result.append(ShapeInfo(rect=z,             # <<<<<<<<<<<<<<
 *                                         log=z.log(),
 *                                         accuracies=(None, None, None, None)))
*/
      __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_t_3); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(1, 940, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/manifold.pyx":939
 *                 self, dec_prec=dec_prec, bits_prec=bits_prec,
 *                 ignore_solution_type=True)
 *             for z in shapes:             # <<<<<<<<<<<<<<
 *                 result.append(ShapeInfo(rect=z,
 *                                         log=z.log(),
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/manifold.pyx":931
 * 
 *         result = []
 *         if bits_prec or dec_prec:             # <<<<<<<<<<<<<<
 *             if fixed_alignment is False:
 *                 raise ValueError(
*/
    goto __pyx_L10;
  }

  /* "cython/core/manifold.pyx":944
 *                                         accuracies=(None, None, None, None)))
 *         else:
 *             for i in range(self.num_tetrahedra()):             # <<<<<<<<<<<<<<
 *                 get_tet_shape(self.c_triangulation, i, filled, fixed_alignment,
 *                               &rect_re, &rect_im, &log_re, &log_im,
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_12 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_12);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 944, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 944, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_8 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 944, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    for (;;) {
      {
        __pyx_t_7 = __pyx_t_10(__pyx_t_8);
        if (unlikely(!__pyx_t_7)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 944, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "cython/core/manifold.pyx":945
 *         else:
 *             for i in range(self.num_tetrahedra()):
 *                 get_tet_shape(self.c_triangulation, i, filled, fixed_alignment,             # <<<<<<<<<<<<<<
 *                               &rect_re, &rect_im, &log_re, &log_im,
 *                               &acc_rec_re, &acc_rec_im,
*/
      __pyx_t_14 = __Pyx_PyLong_As_int(__pyx_v_i); if (unlikely((__pyx_t_14 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 945, __pyx_L1_error)
      __pyx_t_15 = __Pyx_PyLong_As_Boolean(__pyx_v_fixed_alignment); if (unlikely((__pyx_t_15 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(1, 945, __pyx_L1_error)

      /* "cython/core/manifold.pyx":949
 *                               &acc_rec_re, &acc_rec_im,
 *                               &acc_log_re, &acc_log_im,
 *                               &is_geometric)             # <<<<<<<<<<<<<<
 * 
 *                 rect_shape=Number(RealImag2gen(rect_re, rect_im))
*/
      get_tet_shape(__pyx_v_self->__pyx_base.c_triangulation, __pyx_t_14, filled, __pyx_t_15, (&__pyx_v_rect_re), (&__pyx_v_rect_im), (&__pyx_v_log_re), (&__pyx_v_log_im), (&__pyx_v_acc_rec_re), (&__pyx_v_acc_rec_im), (&__pyx_v_acc_log_re), (&__pyx_v_acc_log_im), (&__pyx_v_is_geometric)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 945, __pyx_L1_error)

      /* "cython/core/manifold.pyx":951
 *                               &is_geometric)
 * 
 *                 rect_shape=Number(RealImag2gen(rect_re, rect_im))             # <<<<<<<<<<<<<<
 *                 rect_shape.accuracy=min(acc_rec_re, acc_rec_im)
 *                 log_shape=Number(RealImag2gen(log_re, log_im))
*/
      __pyx_t_3 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 951, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_11 = __pyx_f_6SnapPy_RealImag2gen(__pyx_v_rect_re, __pyx_v_rect_im); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 951, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_12))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_12);
        assert(__pyx_t_3);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_11};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 951, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_XDECREF_SET(__pyx_v_rect_shape, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "cython/core/manifold.pyx":952
 * 
 *                 rect_shape=Number(RealImag2gen(rect_re, rect_im))
 *                 rect_shape.accuracy=min(acc_rec_re, acc_rec_im)             # <<<<<<<<<<<<<<
 *                 log_shape=Number(RealImag2gen(log_re, log_im))
 *                 log_shape.accuracy=min(acc_log_re, acc_log_im)
*/
      __pyx_t_14 = __pyx_v_acc_rec_im;
      __pyx_t_16 = __pyx_v_acc_rec_re;
      __pyx_t_1 = (__pyx_t_14 < __pyx_t_16);
      if (__pyx_t_1) {
        __pyx_t_17 = __pyx_t_14;
      } else {
        __pyx_t_17 = __pyx_t_16;
      }
      __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_t_17); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 952, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_PyObject_SetAttrStr(__pyx_v_rect_shape, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_7) < (0)) __PYX_ERR(1, 952, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cython/core/manifold.pyx":953
 *                 rect_shape=Number(RealImag2gen(rect_re, rect_im))
 *                 rect_shape.accuracy=min(acc_rec_re, acc_rec_im)
 *                 log_shape=Number(RealImag2gen(log_re, log_im))             # <<<<<<<<<<<<<<
 *                 log_shape.accuracy=min(acc_log_re, acc_log_im)
 *                 if part in ['rect', 'log', 'accuracies']:
*/
      __pyx_t_12 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 953, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_3 = __pyx_f_6SnapPy_RealImag2gen(__pyx_v_log_re, __pyx_v_log_im); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 953, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_11))) {
        __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_11);
        assert(__pyx_t_12);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_12);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_3};
        __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 953, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_XDECREF_SET(__pyx_v_log_shape, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "cython/core/manifold.pyx":954
 *                 rect_shape.accuracy=min(acc_rec_re, acc_rec_im)
 *                 log_shape=Number(RealImag2gen(log_re, log_im))
 *                 log_shape.accuracy=min(acc_log_re, acc_log_im)             # <<<<<<<<<<<<<<
 *                 if part in ['rect', 'log', 'accuracies']:
 *                     # Don't compute volumes as they will be thrown away.
*/
      __pyx_t_17 = __pyx_v_acc_log_im;
      __pyx_t_14 = __pyx_v_acc_log_re;
      __pyx_t_1 = (__pyx_t_17 < __pyx_t_14);
      if (__pyx_t_1) {
        __pyx_t_16 = __pyx_t_17;
      } else {
        __pyx_t_16 = __pyx_t_14;
      }
      __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_t_16); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 954, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_PyObject_SetAttrStr(__pyx_v_log_shape, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_7) < (0)) __PYX_ERR(1, 954, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cython/core/manifold.pyx":955
 *                 log_shape=Number(RealImag2gen(log_re, log_im))
 *                 log_shape.accuracy=min(acc_log_re, acc_log_im)
 *                 if part in ['rect', 'log', 'accuracies']:             # <<<<<<<<<<<<<<
 *                     # Don't compute volumes as they will be thrown away.
 *                     result.append(ShapeInfo(
*/
      __Pyx_INCREF(__pyx_v_part);
      __pyx_t_7 = __pyx_v_part;
      __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_rect, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 955, __pyx_L1_error)
      if (!__pyx_t_6) {
      } else {
        __pyx_t_1 = __pyx_t_6;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_log, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 955, __pyx_L1_error)
      if (!__pyx_t_6) {
      } else {
        __pyx_t_1 = __pyx_t_6;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_accuracies, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 955, __pyx_L1_error)
      __pyx_t_1 = __pyx_t_6;
      __pyx_L20_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_6 = __pyx_t_1;
      if (__pyx_t_6) {

        /* "cython/core/manifold.pyx":957
 *                 if part in ['rect', 'log', 'accuracies']:
 *                     # Don't compute volumes as they will be thrown away.
 *                     result.append(ShapeInfo(             # <<<<<<<<<<<<<<
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),
*/
        __pyx_t_11 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_ShapeInfo); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 957, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);

        /* "cython/core/manifold.pyx":958
 *                     # Don't compute volumes as they will be thrown away.
 *                     result.append(ShapeInfo(
 *                             rect=self._number_(rect_shape),             # <<<<<<<<<<<<<<
 *                             log=self._number_(log_shape),
 *                             accuracies=(acc_rec_re, acc_rec_im,
*/
        __pyx_t_2 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_rect_shape};
          __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 958, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
        }

        /* "cython/core/manifold.pyx":959
 *                     result.append(ShapeInfo(
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),             # <<<<<<<<<<<<<<
 *                             accuracies=(acc_rec_re, acc_rec_im,
 *                                         acc_log_re, acc_log_im)))
*/
        __pyx_t_18 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_18);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_18, __pyx_v_log_shape};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 959, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }

        /* "cython/core/manifold.pyx":960
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),
 *                             accuracies=(acc_rec_re, acc_rec_im,             # <<<<<<<<<<<<<<
 *                                         acc_log_re, acc_log_im)))
 *                 else:
*/
        __pyx_t_18 = __Pyx_PyLong_From_int(__pyx_v_acc_rec_re); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 960, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_18);
        __pyx_t_19 = __Pyx_PyLong_From_int(__pyx_v_acc_rec_im); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 960, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_19);

        /* "cython/core/manifold.pyx":961
 *                             log=self._number_(log_shape),
 *                             accuracies=(acc_rec_re, acc_rec_im,
 *                                         acc_log_re, acc_log_im)))             # <<<<<<<<<<<<<<
 *                 else:
 *                     result.append(ShapeInfo(
*/
        __pyx_t_20 = __Pyx_PyLong_From_int(__pyx_v_acc_log_re); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 961, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_20);
        __pyx_t_21 = __Pyx_PyLong_From_int(__pyx_v_acc_log_im); if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 961, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);

        /* "cython/core/manifold.pyx":960
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),
 *                             accuracies=(acc_rec_re, acc_rec_im,             # <<<<<<<<<<<<<<
 *                                         acc_log_re, acc_log_im)))
 *                 else:
*/
        __pyx_t_22 = PyTuple_New(4); if (unlikely(!__pyx_t_22)) __PYX_ERR(1, 960, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_22);
        __Pyx_GIVEREF(__pyx_t_18);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_22, 0, __pyx_t_18) != (0)) __PYX_ERR(1, 960, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_19);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_22, 1, __pyx_t_19) != (0)) __PYX_ERR(1, 960, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_20);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_22, 2, __pyx_t_20) != (0)) __PYX_ERR(1, 960, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_21);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_22, 3, __pyx_t_21) != (0)) __PYX_ERR(1, 960, __pyx_L1_error);
        __pyx_t_18 = 0;
        __pyx_t_19 = 0;
        __pyx_t_20 = 0;
        __pyx_t_21 = 0;
        __pyx_t_4 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_3);
          assert(__pyx_t_11);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_11);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
          __pyx_t_4 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 3 : 0)] = {__pyx_t_11, NULL};
          __pyx_t_21 = __Pyx_MakeVectorcallBuilderKwds(3); if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 957, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_21);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_rect, __pyx_t_12, __pyx_t_21, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 957, __pyx_L1_error)
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_log, __pyx_t_2, __pyx_t_21, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 957, __pyx_L1_error)
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_accuracies, __pyx_t_22, __pyx_t_21, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 957, __pyx_L1_error)
          __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_21);
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
          __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 957, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }

        /* "cython/core/manifold.pyx":957
 *                 if part in ['rect', 'log', 'accuracies']:
 *                     # Don't compute volumes as they will be thrown away.
 *                     result.append(ShapeInfo(             # <<<<<<<<<<<<<<
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),
*/
        __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_t_7); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(1, 957, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "cython/core/manifold.pyx":955
 *                 log_shape=Number(RealImag2gen(log_re, log_im))
 *                 log_shape.accuracy=min(acc_log_re, acc_log_im)
 *                 if part in ['rect', 'log', 'accuracies']:             # <<<<<<<<<<<<<<
 *                     # Don't compute volumes as they will be thrown away.
 *                     result.append(ShapeInfo(
*/
        goto __pyx_L19;
      }

      /* "cython/core/manifold.pyx":963
 *                                         acc_log_re, acc_log_im)))
 *                 else:
 *                     result.append(ShapeInfo(             # <<<<<<<<<<<<<<
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),
*/
      /*else*/ {
        __pyx_t_3 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_ShapeInfo); if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 963, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_21);

        /* "cython/core/manifold.pyx":964
 *                 else:
 *                     result.append(ShapeInfo(
 *                             rect=self._number_(rect_shape),             # <<<<<<<<<<<<<<
 *                             log=self._number_(log_shape),
 *                             volume=rect_shape.volume(),
*/
        __pyx_t_2 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_rect_shape};
          __pyx_t_22 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_22)) __PYX_ERR(1, 964, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_22);
        }

        /* "cython/core/manifold.pyx":965
 *                     result.append(ShapeInfo(
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),             # <<<<<<<<<<<<<<
 *                             volume=rect_shape.volume(),
 *                             accuracies=(acc_rec_re, acc_rec_im,
*/
        __pyx_t_12 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_12);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_v_log_shape};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 965, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }

        /* "cython/core/manifold.pyx":966
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),
 *                             volume=rect_shape.volume(),             # <<<<<<<<<<<<<<
 *                             accuracies=(acc_rec_re, acc_rec_im,
 *                                         acc_log_re, acc_log_im)))
*/
        __pyx_t_11 = __pyx_v_rect_shape;
        __Pyx_INCREF(__pyx_t_11);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, NULL};
          __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_volume, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 966, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
        }

        /* "cython/core/manifold.pyx":967
 *                             log=self._number_(log_shape),
 *                             volume=rect_shape.volume(),
 *                             accuracies=(acc_rec_re, acc_rec_im,             # <<<<<<<<<<<<<<
 *                                         acc_log_re, acc_log_im)))
 * 
*/
        __pyx_t_11 = __Pyx_PyLong_From_int(__pyx_v_acc_rec_re); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 967, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_20 = __Pyx_PyLong_From_int(__pyx_v_acc_rec_im); if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 967, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_20);

        /* "cython/core/manifold.pyx":968
 *                             volume=rect_shape.volume(),
 *                             accuracies=(acc_rec_re, acc_rec_im,
 *                                         acc_log_re, acc_log_im)))             # <<<<<<<<<<<<<<
 * 
 *         if intervals:
*/
        __pyx_t_19 = __Pyx_PyLong_From_int(__pyx_v_acc_log_re); if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 968, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_19);
        __pyx_t_18 = __Pyx_PyLong_From_int(__pyx_v_acc_log_im); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 968, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_18);

        /* "cython/core/manifold.pyx":967
 *                             log=self._number_(log_shape),
 *                             volume=rect_shape.volume(),
 *                             accuracies=(acc_rec_re, acc_rec_im,             # <<<<<<<<<<<<<<
 *                                         acc_log_re, acc_log_im)))
 * 
*/
        __pyx_t_23 = PyTuple_New(4); if (unlikely(!__pyx_t_23)) __PYX_ERR(1, 967, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_23);
        __Pyx_GIVEREF(__pyx_t_11);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_23, 0, __pyx_t_11) != (0)) __PYX_ERR(1, 967, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_20);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_23, 1, __pyx_t_20) != (0)) __PYX_ERR(1, 967, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_19);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_23, 2, __pyx_t_19) != (0)) __PYX_ERR(1, 967, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_18);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_23, 3, __pyx_t_18) != (0)) __PYX_ERR(1, 967, __pyx_L1_error);
        __pyx_t_11 = 0;
        __pyx_t_20 = 0;
        __pyx_t_19 = 0;
        __pyx_t_18 = 0;
        __pyx_t_4 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_21))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_21);
          assert(__pyx_t_3);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_21);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_21, __pyx__function);
          __pyx_t_4 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 4 : 0)] = {__pyx_t_3, NULL};
          __pyx_t_18 = __Pyx_MakeVectorcallBuilderKwds(4); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 963, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_18);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_rect, __pyx_t_22, __pyx_t_18, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 963, __pyx_L1_error)
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_log, __pyx_t_2, __pyx_t_18, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 963, __pyx_L1_error)
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_volume, __pyx_t_12, __pyx_t_18, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 963, __pyx_L1_error)
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_accuracies, __pyx_t_23, __pyx_t_18, __pyx_callargs+1, 3) < (0)) __PYX_ERR(1, 963, __pyx_L1_error)
          __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_21, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_18);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
          __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
          __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 963, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }

        /* "cython/core/manifold.pyx":963
 *                                         acc_log_re, acc_log_im)))
 *                 else:
 *                     result.append(ShapeInfo(             # <<<<<<<<<<<<<<
 *                             rect=self._number_(rect_shape),
 *                             log=self._number_(log_shape),
*/
        __pyx_t_13 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_t_7); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(1, 963, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      }
      __pyx_L19:;

      /* "cython/core/manifold.pyx":944
 *                                         accuracies=(None, None, None, None)))
 *         else:
 *             for i in range(self.num_tetrahedra()):             # <<<<<<<<<<<<<<
 *                 get_tet_shape(self.c_triangulation, i, filled, fixed_alignment,
 *                               &rect_re, &rect_im, &log_re, &log_im,
*/
    }
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __pyx_L10:;

  /* "cython/core/manifold.pyx":970
 *                                         acc_log_re, acc_log_im)))
 * 
 *         if intervals:             # <<<<<<<<<<<<<<
 *             if bits_prec or dec_prec:
 *                 engine = verify.CertifiedShapesEngine(
*/
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_intervals); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 970, __pyx_L1_error)
  if (__pyx_t_6) {

    /* "cython/core/manifold.pyx":971
 * 
 *         if intervals:
 *             if bits_prec or dec_prec:             # <<<<<<<<<<<<<<
 *                 engine = verify.CertifiedShapesEngine(
 *                     self, [a['rect'] for a in result],
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_bits_prec); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 971, __pyx_L1_error)
    if (!__pyx_t_1) {
    } else {
      __pyx_t_6 = __pyx_t_1;
      goto __pyx_L26_bool_binop_done;
    }
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_dec_prec); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 971, __pyx_L1_error)
    __pyx_t_6 = __pyx_t_1;
    __pyx_L26_bool_binop_done:;
    if (__pyx_t_6) {

      /* "cython/core/manifold.pyx":972
 *         if intervals:
 *             if bits_prec or dec_prec:
 *                 engine = verify.CertifiedShapesEngine(             # <<<<<<<<<<<<<<
 *                     self, [a['rect'] for a in result],
 *                     dec_prec=dec_prec, bits_prec=bits_prec)
*/
      __pyx_t_7 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_verify); if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 972, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_CertifiedShapesEngine); if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 972, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_18);
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

      /* "cython/core/manifold.pyx":973
 *             if bits_prec or dec_prec:
 *                 engine = verify.CertifiedShapesEngine(
 *                     self, [a['rect'] for a in result],             # <<<<<<<<<<<<<<
 *                     dec_prec=dec_prec, bits_prec=bits_prec)
 *             else:
*/
      { /* enter inner scope */
        __pyx_t_21 = PyList_New(0); if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 973, __pyx_L30_error)
        __Pyx_GOTREF(__pyx_t_21);
        if (likely(PyList_CheckExact(__pyx_v_result)) || PyTuple_CheckExact(__pyx_v_result)) {
          __pyx_t_23 = __pyx_v_result; __Pyx_INCREF(__pyx_t_23);
          __pyx_t_9 = 0;
          __pyx_t_10 = NULL;
        } else {
          __pyx_t_9 = -1; __pyx_t_23 = PyObject_GetIter(__pyx_v_result); if (unlikely(!__pyx_t_23)) __PYX_ERR(1, 973, __pyx_L30_error)
          __Pyx_GOTREF(__pyx_t_23);
          __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_23); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 973, __pyx_L30_error)
        }
        for (;;) {
          if (likely(!__pyx_t_10)) {
            if (likely(PyList_CheckExact(__pyx_t_23))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_23);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 973, __pyx_L30_error)
                #endif
                if (__pyx_t_9 >= __pyx_temp) break;
              }
              __pyx_t_12 = __Pyx_PyList_GetItemRefFast(__pyx_t_23, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_9;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_23);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 973, __pyx_L30_error)
                #endif
                if (__pyx_t_9 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_12 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_23, __pyx_t_9));
              #else
              __pyx_t_12 = __Pyx_PySequence_ITEM(__pyx_t_23, __pyx_t_9);
              #endif
              ++__pyx_t_9;
            }
            if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 973, __pyx_L30_error)
          } else {
            __pyx_t_12 = __pyx_t_10(__pyx_t_23);
            if (unlikely(!__pyx_t_12)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 973, __pyx_L30_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_XDECREF_SET(__pyx_9genexpr48__pyx_v_a, __pyx_t_12);
          __pyx_t_12 = 0;
          __pyx_t_12 = __Pyx_PyObject_Dict_GetItem(__pyx_9genexpr48__pyx_v_a, __pyx_mstate_global->__pyx_n_u_rect); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 973, __pyx_L30_error)
          __Pyx_GOTREF(__pyx_t_12);
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_21, (PyObject*)__pyx_t_12))) __PYX_ERR(1, 973, __pyx_L30_error)
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        }
        __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
        __Pyx_XDECREF(__pyx_9genexpr48__pyx_v_a); __pyx_9genexpr48__pyx_v_a = 0;
        goto __pyx_L34_exit_scope;
        __pyx_L30_error:;
        __Pyx_XDECREF(__pyx_9genexpr48__pyx_v_a); __pyx_9genexpr48__pyx_v_a = 0;
        goto __pyx_L1_error;
        __pyx_L34_exit_scope:;
      } /* exit inner scope */

      /* "cython/core/manifold.pyx":974
 *                 engine = verify.CertifiedShapesEngine(
 *                     self, [a['rect'] for a in result],
 *                     dec_prec=dec_prec, bits_prec=bits_prec)             # <<<<<<<<<<<<<<
 *             else:
 *                 engine = verify.CertifiedShapesEngine(
*/
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_18))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_18);
        assert(__pyx_t_7);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_18);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_18, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_7, ((PyObject *)__pyx_v_self), __pyx_t_21};
        __pyx_t_23 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_23)) __PYX_ERR(1, 972, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_23);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_dec_prec, __pyx_v_dec_prec, __pyx_t_23, __pyx_callargs+3, 0) < (0)) __PYX_ERR(1, 972, __pyx_L1_error)
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_bits_prec, __pyx_v_bits_prec, __pyx_t_23, __pyx_callargs+3, 1) < (0)) __PYX_ERR(1, 972, __pyx_L1_error)
        __pyx_t_8 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_18, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_23);
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
        __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
        __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 972, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __pyx_v_engine = __pyx_t_8;
      __pyx_t_8 = 0;

      /* "cython/core/manifold.pyx":971
 * 
 *         if intervals:
 *             if bits_prec or dec_prec:             # <<<<<<<<<<<<<<
 *                 engine = verify.CertifiedShapesEngine(
 *                     self, [a['rect'] for a in result],
*/
      goto __pyx_L25;
    }

    /* "cython/core/manifold.pyx":976
 *                     dec_prec=dec_prec, bits_prec=bits_prec)
 *             else:
 *                 engine = verify.CertifiedShapesEngine(             # <<<<<<<<<<<<<<
 *                     self, [a['rect'] for a in result],
 *                     bits_prec = self._precision())
*/
    /*else*/ {
      __pyx_t_18 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_23, __pyx_mstate_global->__pyx_n_u_verify); if (unlikely(!__pyx_t_23)) __PYX_ERR(1, 976, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_23);
      __pyx_t_21 = __Pyx_PyObject_GetAttrStr(__pyx_t_23, __pyx_mstate_global->__pyx_n_u_CertifiedShapesEngine); if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 976, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
      __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;

      /* "cython/core/manifold.pyx":977
 *             else:
 *                 engine = verify.CertifiedShapesEngine(
 *                     self, [a['rect'] for a in result],             # <<<<<<<<<<<<<<
 *                     bits_prec = self._precision())
 *             if not engine.expand_until_certified():
*/
      { /* enter inner scope */
        __pyx_t_23 = PyList_New(0); if (unlikely(!__pyx_t_23)) __PYX_ERR(1, 977, __pyx_L37_error)
        __Pyx_GOTREF(__pyx_t_23);
        if (likely(PyList_CheckExact(__pyx_v_result)) || PyTuple_CheckExact(__pyx_v_result)) {
          __pyx_t_7 = __pyx_v_result; __Pyx_INCREF(__pyx_t_7);
          __pyx_t_9 = 0;
          __pyx_t_10 = NULL;
        } else {
          __pyx_t_9 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_result); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 977, __pyx_L37_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 977, __pyx_L37_error)
        }
        for (;;) {
          if (likely(!__pyx_t_10)) {
            if (likely(PyList_CheckExact(__pyx_t_7))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 977, __pyx_L37_error)
                #endif
                if (__pyx_t_9 >= __pyx_temp) break;
              }
              __pyx_t_12 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_9;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 977, __pyx_L37_error)
                #endif
                if (__pyx_t_9 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_12 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_9));
              #else
              __pyx_t_12 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_9);
              #endif
              ++__pyx_t_9;
            }
            if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 977, __pyx_L37_error)
          } else {
            __pyx_t_12 = __pyx_t_10(__pyx_t_7);
            if (unlikely(!__pyx_t_12)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 977, __pyx_L37_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_XDECREF_SET(__pyx_9genexpr49__pyx_v_a, __pyx_t_12);
          __pyx_t_12 = 0;
          __pyx_t_12 = __Pyx_PyObject_Dict_GetItem(__pyx_9genexpr49__pyx_v_a, __pyx_mstate_global->__pyx_n_u_rect); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 977, __pyx_L37_error)
          __Pyx_GOTREF(__pyx_t_12);
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_23, (PyObject*)__pyx_t_12))) __PYX_ERR(1, 977, __pyx_L37_error)
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        }
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_9genexpr49__pyx_v_a); __pyx_9genexpr49__pyx_v_a = 0;
        goto __pyx_L41_exit_scope;
        __pyx_L37_error:;
        __Pyx_XDECREF(__pyx_9genexpr49__pyx_v_a); __pyx_9genexpr49__pyx_v_a = 0;
        goto __pyx_L1_error;
        __pyx_L41_exit_scope:;
      } /* exit inner scope */

      /* "cython/core/manifold.pyx":978
 *                 engine = verify.CertifiedShapesEngine(
 *                     self, [a['rect'] for a in result],
 *                     bits_prec = self._precision())             # <<<<<<<<<<<<<<
 *             if not engine.expand_until_certified():
 *                 raise RuntimeError('Could not certify shape intervals, either '
*/
      __pyx_t_12 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_12);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_precision, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 978, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_21))) {
        __pyx_t_18 = PyMethod_GET_SELF(__pyx_t_21);
        assert(__pyx_t_18);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_21);
        __Pyx_INCREF(__pyx_t_18);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_21, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_18, ((PyObject *)__pyx_v_self), __pyx_t_23};
        __pyx_t_12 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 976, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_12);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_bits_prec, __pyx_t_7, __pyx_t_12, __pyx_callargs+3, 0) < (0)) __PYX_ERR(1, 976, __pyx_L1_error)
        __pyx_t_8 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_21, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_12);
        __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0;
        __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 976, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __pyx_v_engine = __pyx_t_8;
      __pyx_t_8 = 0;
    }
    __pyx_L25:;

    /* "cython/core/manifold.pyx":979
 *                     self, [a['rect'] for a in result],
 *                     bits_prec = self._precision())
 *             if not engine.expand_until_certified():             # <<<<<<<<<<<<<<
 *                 raise RuntimeError('Could not certify shape intervals, either '
 *                                    'there are degenerate shapes or the '
*/
    __pyx_t_21 = __pyx_v_engine;
    __Pyx_INCREF(__pyx_t_21);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_21, NULL};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_expand_until_certified, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 979, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(1, 979, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_1 = (!__pyx_t_6);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/manifold.pyx":980
 *                     bits_prec = self._precision())
 *             if not engine.expand_until_certified():
 *                 raise RuntimeError('Could not certify shape intervals, either '             # <<<<<<<<<<<<<<
 *                                    'there are degenerate shapes or the '
 *                                    'precision must be increased.')
*/
      __pyx_t_21 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_21, __pyx_mstate_global->__pyx_kp_u_Could_not_certify_shape_interval};
        __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 980, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(1, 980, __pyx_L1_error)

      /* "cython/core/manifold.pyx":979
 *                     self, [a['rect'] for a in result],
 *                     bits_prec = self._precision())
 *             if not engine.expand_until_certified():             # <<<<<<<<<<<<<<
 *                 raise RuntimeError('Could not certify shape intervals, either '
 *                                    'there are degenerate shapes or the '
*/
    }

    /* "cython/core/manifold.pyx":983
 *                                    'there are degenerate shapes or the '
 *                                    'precision must be increased.')
 *             result = [ ShapeInfo(rect=z,             # <<<<<<<<<<<<<<
 *                                  log=z.log(),
 *                                  accuracies=(None,None,None,None))
*/
    { /* enter inner scope */
      __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 983, __pyx_L45_error)
      __Pyx_GOTREF(__pyx_t_8);

      /* "cython/core/manifold.pyx":986
 *                                  log=z.log(),
 *                                  accuracies=(None,None,None,None))
 *                        for z in engine.certified_shapes ]             # <<<<<<<<<<<<<<
 * 
 *         if part is not None:
*/
      __pyx_t_21 = __Pyx_PyObject_GetAttrStr(__pyx_v_engine, __pyx_mstate_global->__pyx_n_u_certified_shapes); if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 986, __pyx_L45_error)
      __Pyx_GOTREF(__pyx_t_21);
      if (likely(PyList_CheckExact(__pyx_t_21)) || PyTuple_CheckExact(__pyx_t_21)) {
        __pyx_t_12 = __pyx_t_21; __Pyx_INCREF(__pyx_t_12);
        __pyx_t_9 = 0;
        __pyx_t_10 = NULL;
      } else {
        __pyx_t_9 = -1; __pyx_t_12 = PyObject_GetIter(__pyx_t_21); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 986, __pyx_L45_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 986, __pyx_L45_error)
      }
      __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
      for (;;) {
        if (likely(!__pyx_t_10)) {
          if (likely(PyList_CheckExact(__pyx_t_12))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_12);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 986, __pyx_L45_error)
              #endif
              if (__pyx_t_9 >= __pyx_temp) break;
            }
            __pyx_t_21 = __Pyx_PyList_GetItemRefFast(__pyx_t_12, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_9;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_12);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 986, __pyx_L45_error)
              #endif
              if (__pyx_t_9 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_21 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_12, __pyx_t_9));
            #else
            __pyx_t_21 = __Pyx_PySequence_ITEM(__pyx_t_12, __pyx_t_9);
            #endif
            ++__pyx_t_9;
          }
          if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 986, __pyx_L45_error)
        } else {
          __pyx_t_21 = __pyx_t_10(__pyx_t_12);
          if (unlikely(!__pyx_t_21)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 986, __pyx_L45_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_21);
        __Pyx_XDECREF_SET(__pyx_9genexpr50__pyx_v_z, __pyx_t_21);
        __pyx_t_21 = 0;

        /* "cython/core/manifold.pyx":983
 *                                    'there are degenerate shapes or the '
 *                                    'precision must be increased.')
 *             result = [ ShapeInfo(rect=z,             # <<<<<<<<<<<<<<
 *                                  log=z.log(),
 *                                  accuracies=(None,None,None,None))
*/
        __pyx_t_7 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_23, __pyx_mstate_global->__pyx_n_u_ShapeInfo); if (unlikely(!__pyx_t_23)) __PYX_ERR(1, 983, __pyx_L45_error)
        __Pyx_GOTREF(__pyx_t_23);

        /* "cython/core/manifold.pyx":984
 *                                    'precision must be increased.')
 *             result = [ ShapeInfo(rect=z,
 *                                  log=z.log(),             # <<<<<<<<<<<<<<
 *                                  accuracies=(None,None,None,None))
 *                        for z in engine.certified_shapes ]
*/
        __pyx_t_2 = __pyx_9genexpr50__pyx_v_z;
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
          __pyx_t_18 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_log, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 984, __pyx_L45_error)
          __Pyx_GOTREF(__pyx_t_18);
        }

        /* "cython/core/manifold.pyx":985
 *             result = [ ShapeInfo(rect=z,
 *                                  log=z.log(),
 *                                  accuracies=(None,None,None,None))             # <<<<<<<<<<<<<<
 *                        for z in engine.certified_shapes ]
 * 
*/
        __pyx_t_4 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_23))) {
          __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_23);
          assert(__pyx_t_7);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_23);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_23, __pyx__function);
          __pyx_t_4 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 3 : 0)] = {__pyx_t_7, NULL};
          __pyx_t_2 = __Pyx_MakeVectorcallBuilderKwds(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 983, __pyx_L45_error)
          __Pyx_GOTREF(__pyx_t_2);
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_rect, __pyx_9genexpr50__pyx_v_z, __pyx_t_2, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 983, __pyx_L45_error)
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_log, __pyx_t_18, __pyx_t_2, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 983, __pyx_L45_error)
          if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_accuracies, __pyx_mstate_global->__pyx_tuple[20], __pyx_t_2, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 983, __pyx_L45_error)
          __pyx_t_21 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_23, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
          if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 983, __pyx_L45_error)
          __Pyx_GOTREF(__pyx_t_21);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_21))) __PYX_ERR(1, 983, __pyx_L45_error)
        __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

        /* "cython/core/manifold.pyx":986
 *                                  log=z.log(),
 *                                  accuracies=(None,None,None,None))
 *                        for z in engine.certified_shapes ]             # <<<<<<<<<<<<<<
 * 
 *         if part is not None:
*/
      }
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_9genexpr50__pyx_v_z); __pyx_9genexpr50__pyx_v_z = 0;
      goto __pyx_L49_exit_scope;
      __pyx_L45_error:;
      __Pyx_XDECREF(__pyx_9genexpr50__pyx_v_z); __pyx_9genexpr50__pyx_v_z = 0;
      goto __pyx_L1_error;
      __pyx_L49_exit_scope:;
    } /* exit inner scope */
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_8);
    __pyx_t_8 = 0;

    /* "cython/core/manifold.pyx":970
 *                                         acc_log_re, acc_log_im)))
 * 
 *         if intervals:             # <<<<<<<<<<<<<<
 *             if bits_prec or dec_prec:
 *                 engine = verify.CertifiedShapesEngine(
*/
  }

  /* "cython/core/manifold.pyx":988
 *                        for z in engine.certified_shapes ]
 * 
 *         if part is not None:             # <<<<<<<<<<<<<<
 *             try:
 *                 return [a[part] for a in result]
*/
  __pyx_t_1 = (__pyx_v_part != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":989
 * 
 *         if part is not None:
 *             try:             # <<<<<<<<<<<<<<
 *                 return [a[part] for a in result]
 *             except KeyError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_24, &__pyx_t_25, &__pyx_t_26);
      __Pyx_XGOTREF(__pyx_t_24);
      __Pyx_XGOTREF(__pyx_t_25);
      __Pyx_XGOTREF(__pyx_t_26);
      /*try:*/ {

        /* "cython/core/manifold.pyx":990
 *         if part is not None:
 *             try:
 *                 return [a[part] for a in result]             # <<<<<<<<<<<<<<
 *             except KeyError:
 *                 raise ValueError('A non-existent shape data type '
*/
        __Pyx_XDECREF(__pyx_r);
        { /* enter inner scope */
          __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 990, __pyx_L59_error)
          __Pyx_GOTREF(__pyx_t_8);
          if (likely(PyList_CheckExact(__pyx_v_result)) || PyTuple_CheckExact(__pyx_v_result)) {
            __pyx_t_12 = __pyx_v_result; __Pyx_INCREF(__pyx_t_12);
            __pyx_t_9 = 0;
            __pyx_t_10 = NULL;
          } else {
            __pyx_t_9 = -1; __pyx_t_12 = PyObject_GetIter(__pyx_v_result); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 990, __pyx_L59_error)
            __Pyx_GOTREF(__pyx_t_12);
            __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 990, __pyx_L59_error)
          }
          for (;;) {
            if (likely(!__pyx_t_10)) {
              if (likely(PyList_CheckExact(__pyx_t_12))) {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_12);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 990, __pyx_L59_error)
                  #endif
                  if (__pyx_t_9 >= __pyx_temp) break;
                }
                __pyx_t_21 = __Pyx_PyList_GetItemRefFast(__pyx_t_12, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
                ++__pyx_t_9;
              } else {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_12);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 990, __pyx_L59_error)
                  #endif
                  if (__pyx_t_9 >= __pyx_temp) break;
                }
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                __pyx_t_21 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_12, __pyx_t_9));
                #else
                __pyx_t_21 = __Pyx_PySequence_ITEM(__pyx_t_12, __pyx_t_9);
                #endif
                ++__pyx_t_9;
              }
              if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 990, __pyx_L59_error)
            } else {
              __pyx_t_21 = __pyx_t_10(__pyx_t_12);
              if (unlikely(!__pyx_t_21)) {
                PyObject* exc_type = PyErr_Occurred();
                if (exc_type) {
                  if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 990, __pyx_L59_error)
                  PyErr_Clear();
                }
                break;
              }
            }
            __Pyx_GOTREF(__pyx_t_21);
            __Pyx_XDECREF_SET(__pyx_9genexpr51__pyx_v_a, __pyx_t_21);
            __pyx_t_21 = 0;
            __pyx_t_21 = __Pyx_PyObject_GetItem(__pyx_9genexpr51__pyx_v_a, __pyx_v_part); if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 990, __pyx_L59_error)
            __Pyx_GOTREF(__pyx_t_21);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_21))) __PYX_ERR(1, 990, __pyx_L59_error)
            __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
          }
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_9genexpr51__pyx_v_a); __pyx_9genexpr51__pyx_v_a = 0;
          goto __pyx_L63_exit_scope;
          __pyx_L59_error:;
          __Pyx_XDECREF(__pyx_9genexpr51__pyx_v_a); __pyx_9genexpr51__pyx_v_a = 0;
          goto __pyx_L51_error;
          __pyx_L63_exit_scope:;
        } /* exit inner scope */
        __pyx_r = __pyx_t_8;
        __pyx_t_8 = 0;
        goto __pyx_L55_try_return;

        /* "cython/core/manifold.pyx":989
 * 
 *         if part is not None:
 *             try:             # <<<<<<<<<<<<<<
 *                 return [a[part] for a in result]
 *             except KeyError:
*/
      }
      __pyx_L51_error:;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0;
      __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0;
      __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
      __Pyx_XDECREF(__pyx_t_22); __pyx_t_22 = 0;
      __Pyx_XDECREF(__pyx_t_23); __pyx_t_23 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cython/core/manifold.pyx":991
 *             try:
 *                 return [a[part] for a in result]
 *             except KeyError:             # <<<<<<<<<<<<<<
 *                 raise ValueError('A non-existent shape data type '
 *                                  'was specified.')
*/
      __pyx_t_16 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
      if (__pyx_t_16) {
        __Pyx_AddTraceback("SnapPy.Manifold.tetrahedra_shapes", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_12, &__pyx_t_21) < 0) __PYX_ERR(1, 991, __pyx_L53_except_error)
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_12);
        __Pyx_XGOTREF(__pyx_t_21);

        /* "cython/core/manifold.pyx":992
 *                 return [a[part] for a in result]
 *             except KeyError:
 *                 raise ValueError('A non-existent shape data type '             # <<<<<<<<<<<<<<
 *                                  'was specified.')
 *         else:
*/
        __pyx_t_2 = NULL;
        __pyx_t_4 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_A_non_existent_shape_data_type_w};
          __pyx_t_23 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_23)) __PYX_ERR(1, 992, __pyx_L53_except_error)
          __Pyx_GOTREF(__pyx_t_23);
        }
        __Pyx_Raise(__pyx_t_23, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_23); __pyx_t_23 = 0;
        __PYX_ERR(1, 992, __pyx_L53_except_error)
      }
      goto __pyx_L53_except_error;

      /* "cython/core/manifold.pyx":989
 * 
 *         if part is not None:
 *             try:             # <<<<<<<<<<<<<<
 *                 return [a[part] for a in result]
 *             except KeyError:
*/
      __pyx_L53_except_error:;
      __Pyx_XGIVEREF(__pyx_t_24);
      __Pyx_XGIVEREF(__pyx_t_25);
      __Pyx_XGIVEREF(__pyx_t_26);
      __Pyx_ExceptionReset(__pyx_t_24, __pyx_t_25, __pyx_t_26);
      goto __pyx_L1_error;
      __pyx_L55_try_return:;
      __Pyx_XGIVEREF(__pyx_t_24);
      __Pyx_XGIVEREF(__pyx_t_25);
      __Pyx_XGIVEREF(__pyx_t_26);
      __Pyx_ExceptionReset(__pyx_t_24, __pyx_t_25, __pyx_t_26);
      goto __pyx_L0;
    }

    /* "cython/core/manifold.pyx":988
 *                        for z in engine.certified_shapes ]
 * 
 *         if part is not None:             # <<<<<<<<<<<<<<
 *             try:
 *                 return [a[part] for a in result]
*/
  }

  /* "cython/core/manifold.pyx":995
 *                                  'was specified.')
 *         else:
 *             return ListOnePerLine(result)             # <<<<<<<<<<<<<<
 * 
 *     def _get_tetrahedra_shapes(self, which_solution):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_12 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_ListOnePerLine); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 995, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_8);
      assert(__pyx_t_12);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_12);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_v_result};
      __pyx_t_21 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 995, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_21);
    }
    __pyx_r = __pyx_t_21;
    __pyx_t_21 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/manifold.pyx":878
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,             # <<<<<<<<<<<<<<
 *                           bits_prec=None, dec_prec=None,
 *                           intervals=False):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __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_AddTraceback("SnapPy.Manifold.tetrahedra_shapes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_shapes);
  __Pyx_XDECREF(__pyx_v_z);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_rect_shape);
  __Pyx_XDECREF(__pyx_v_log_shape);
  __Pyx_XDECREF(__pyx_v_engine);
  __Pyx_XDECREF(__pyx_9genexpr48__pyx_v_a);
  __Pyx_XDECREF(__pyx_9genexpr49__pyx_v_a);
  __Pyx_XDECREF(__pyx_9genexpr50__pyx_v_z);
  __Pyx_XDECREF(__pyx_9genexpr51__pyx_v_a);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":997
 *             return ListOnePerLine(result)
 * 
 *     def _get_tetrahedra_shapes(self, which_solution):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of the tetrahedra shapes from one of the two
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_53_get_tetrahedra_shapes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_52_get_tetrahedra_shapes, "\n        Return a list of the tetrahedra shapes from one of the two\n        solutions maintained in the SnapPea triangulation structure.\n        The which_solution argument must take one of the values\n        'filled' or 'complete'.  This sets fixed_alignment = True.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_53_get_tetrahedra_shapes = {"_get_tetrahedra_shapes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_53_get_tetrahedra_shapes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_52_get_tetrahedra_shapes};
static PyObject *__pyx_pw_6SnapPy_8Manifold_53_get_tetrahedra_shapes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_solution = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_get_tetrahedra_shapes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_solution,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 997, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 997, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_get_tetrahedra_shapes", 0) < (0)) __PYX_ERR(1, 997, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_get_tetrahedra_shapes", 1, 1, 1, i); __PYX_ERR(1, 997, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 997, __pyx_L3_error)
    }
    __pyx_v_which_solution = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_get_tetrahedra_shapes", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 997, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._get_tetrahedra_shapes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_52_get_tetrahedra_shapes(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_which_solution);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_52_get_tetrahedra_shapes(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_which_solution) {
  int __pyx_v_i;
  __pyx_t_6SnapPy_Real __pyx_v_rect_re;
  __pyx_t_6SnapPy_Real __pyx_v_rect_im;
  __pyx_t_6SnapPy_Real __pyx_v_log_re;
  __pyx_t_6SnapPy_Real __pyx_v_log_im;
  int __pyx_v_acc_rec_re;
  int __pyx_v_acc_rec_im;
  int __pyx_v_acc_log_re;
  int __pyx_v_acc_log_im;
  Boolean __pyx_v_is_geometric;
  FillingStatus __pyx_v_soln;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_get_tetrahedra_shapes", 0);

  /* "cython/core/manifold.pyx":1010
 *         cdef c_FillingStatus soln
 * 
 *         if which_solution == 'filled':             # <<<<<<<<<<<<<<
 *             soln = filled
 *         elif which_solution == 'complete':
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_which_solution, __pyx_mstate_global->__pyx_n_u_filled_2, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1010, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1011
 * 
 *         if which_solution == 'filled':
 *             soln = filled             # <<<<<<<<<<<<<<
 *         elif which_solution == 'complete':
 *             soln = complete
*/
    __pyx_v_soln = filled;

    /* "cython/core/manifold.pyx":1010
 *         cdef c_FillingStatus soln
 * 
 *         if which_solution == 'filled':             # <<<<<<<<<<<<<<
 *             soln = filled
 *         elif which_solution == 'complete':
*/
    goto __pyx_L3;
  }

  /* "cython/core/manifold.pyx":1012
 *         if which_solution == 'filled':
 *             soln = filled
 *         elif which_solution == 'complete':             # <<<<<<<<<<<<<<
 *             soln = complete
 *         else:
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_which_solution, __pyx_mstate_global->__pyx_n_u_complete_2, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1012, __pyx_L1_error)
  if (likely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1013
 *             soln = filled
 *         elif which_solution == 'complete':
 *             soln = complete             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError("Please specify 'filled' or 'complete'.")
*/
    __pyx_v_soln = complete;

    /* "cython/core/manifold.pyx":1012
 *         if which_solution == 'filled':
 *             soln = filled
 *         elif which_solution == 'complete':             # <<<<<<<<<<<<<<
 *             soln = complete
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cython/core/manifold.pyx":1015
 *             soln = complete
 *         else:
 *             raise ValueError("Please specify 'filled' or 'complete'.")             # <<<<<<<<<<<<<<
 *         result = []
 *         for i in range(self.num_tetrahedra()):
*/
  /*else*/ {
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Please_specify_filled_or_complet};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1015, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1015, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cython/core/manifold.pyx":1016
 *         else:
 *             raise ValueError("Please specify 'filled' or 'complete'.")
 *         result = []             # <<<<<<<<<<<<<<
 *         for i in range(self.num_tetrahedra()):
 *             get_tet_shape(self.c_triangulation, i, soln, True,
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_result = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1017
 *             raise ValueError("Please specify 'filled' or 'complete'.")
 *         result = []
 *         for i in range(self.num_tetrahedra()):             # <<<<<<<<<<<<<<
 *             get_tet_shape(self.c_triangulation, i, soln, True,
 *                           &rect_re, &rect_im, &log_re, &log_im,
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1017, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1017, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_6 = __pyx_t_5;
  for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
    __pyx_v_i = __pyx_t_7;

    /* "cython/core/manifold.pyx":1018
 *         result = []
 *         for i in range(self.num_tetrahedra()):
 *             get_tet_shape(self.c_triangulation, i, soln, True,             # <<<<<<<<<<<<<<
 *                           &rect_re, &rect_im, &log_re, &log_im,
 *                           &acc_rec_re, &acc_rec_im, &acc_log_re, &acc_log_im,
*/
    get_tet_shape(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_i, __pyx_v_soln, 1, (&__pyx_v_rect_re), (&__pyx_v_rect_im), (&__pyx_v_log_re), (&__pyx_v_log_im), (&__pyx_v_acc_rec_re), (&__pyx_v_acc_rec_im), (&__pyx_v_acc_log_re), (&__pyx_v_acc_log_im), (&__pyx_v_is_geometric)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1018, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1022
 *                           &acc_rec_re, &acc_rec_im, &acc_log_re, &acc_log_im,
 *                           &is_geometric)
 *             result.append(Number(RealImag2gen(rect_re, rect_im)))             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1022, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __pyx_f_6SnapPy_RealImag2gen(__pyx_v_rect_re, __pyx_v_rect_im); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1022, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_9};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1022, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_result, __pyx_t_2); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(1, 1022, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }

  /* "cython/core/manifold.pyx":1023
 *                           &is_geometric)
 *             result.append(Number(RealImag2gen(rect_re, rect_im)))
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def set_tetrahedra_shapes(self,
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":997
 *             return ListOnePerLine(result)
 * 
 *     def _get_tetrahedra_shapes(self, which_solution):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of the tetrahedra shapes from one of the two
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Manifold._get_tetrahedra_shapes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1025
 *         return result
 * 
 *     def set_tetrahedra_shapes(self,             # <<<<<<<<<<<<<<
 *                               filled_shapes=None,
 *                               complete_shapes=None,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_55set_tetrahedra_shapes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_54set_tetrahedra_shapes, "\n        Replaces the tetrahedron shapes with those in the given lists,\n        and sets the Dehn filling coefficients as specified by the\n        fillings argument.  The shapes will get double precision\n        values; polishing will be needed for high precision shapes.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_55set_tetrahedra_shapes = {"set_tetrahedra_shapes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_55set_tetrahedra_shapes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_54set_tetrahedra_shapes};
static PyObject *__pyx_pw_6SnapPy_8Manifold_55set_tetrahedra_shapes(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_filled_shapes = 0;
  PyObject *__pyx_v_complete_shapes = 0;
  PyObject *__pyx_v_fillings = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_tetrahedra_shapes (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_filled_shapes,&__pyx_mstate_global->__pyx_n_u_complete_shapes,&__pyx_mstate_global->__pyx_n_u_fillings,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1025, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1025, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1025, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1025, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_tetrahedra_shapes", 0) < (0)) __PYX_ERR(1, 1025, __pyx_L3_error)

      /* "cython/core/manifold.pyx":1026
 * 
 *     def set_tetrahedra_shapes(self,
 *                               filled_shapes=None,             # <<<<<<<<<<<<<<
 *                               complete_shapes=None,
 *                               fillings=None, ):
*/
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/manifold.pyx":1027
 *     def set_tetrahedra_shapes(self,
 *                               filled_shapes=None,
 *                               complete_shapes=None,             # <<<<<<<<<<<<<<
 *                               fillings=None, ):
 *         """
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/manifold.pyx":1028
 *                               filled_shapes=None,
 *                               complete_shapes=None,
 *                               fillings=None, ):             # <<<<<<<<<<<<<<
 *         """
 *         Replaces the tetrahedron shapes with those in the given lists,
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1025, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1025, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1025, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "cython/core/manifold.pyx":1026
 * 
 *     def set_tetrahedra_shapes(self,
 *                               filled_shapes=None,             # <<<<<<<<<<<<<<
 *                               complete_shapes=None,
 *                               fillings=None, ):
*/
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/manifold.pyx":1027
 *     def set_tetrahedra_shapes(self,
 *                               filled_shapes=None,
 *                               complete_shapes=None,             # <<<<<<<<<<<<<<
 *                               fillings=None, ):
 *         """
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/manifold.pyx":1028
 *                               filled_shapes=None,
 *                               complete_shapes=None,
 *                               fillings=None, ):             # <<<<<<<<<<<<<<
 *         """
 *         Replaces the tetrahedron shapes with those in the given lists,
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_filled_shapes = values[0];
    __pyx_v_complete_shapes = values[1];
    __pyx_v_fillings = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_tetrahedra_shapes", 0, 0, 3, __pyx_nargs); __PYX_ERR(1, 1025, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.set_tetrahedra_shapes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_54set_tetrahedra_shapes(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_filled_shapes, __pyx_v_complete_shapes, __pyx_v_fillings);

  /* "cython/core/manifold.pyx":1025
 *         return result
 * 
 *     def set_tetrahedra_shapes(self,             # <<<<<<<<<<<<<<
 *                               filled_shapes=None,
 *                               complete_shapes=None,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_54set_tetrahedra_shapes(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_filled_shapes, PyObject *__pyx_v_complete_shapes, PyObject *__pyx_v_fillings) {
  int __pyx_v_i;
  int __pyx_v_N;
  Complex *__pyx_v_filled_shape_array;
  Complex *__pyx_v_complete_shape_array;
  PyObject *__pyx_v_shape = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  __pyx_t_double_complex __pyx_t_9;
  Complex __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_tetrahedra_shapes", 0);

  /* "cython/core/manifold.pyx":1036
 *         """
 *         cdef int i, N
 *         cdef Complex *filled_shape_array = NULL             # <<<<<<<<<<<<<<
 *         cdef Complex *complete_shape_array = NULL
 * 
*/
  __pyx_v_filled_shape_array = NULL;

  /* "cython/core/manifold.pyx":1037
 *         cdef int i, N
 *         cdef Complex *filled_shape_array = NULL
 *         cdef Complex *complete_shape_array = NULL             # <<<<<<<<<<<<<<
 * 
 *         if self.c_triangulation is NULL:
*/
  __pyx_v_complete_shape_array = NULL;

  /* "cython/core/manifold.pyx":1039
 *         cdef Complex *complete_shape_array = NULL
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         N = get_num_tetrahedra(self.c_triangulation)
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1040
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         N = get_num_tetrahedra(self.c_triangulation)
 *         if filled_shapes is not None:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1040, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1040, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1039
 *         cdef Complex *complete_shape_array = NULL
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         N = get_num_tetrahedra(self.c_triangulation)
*/
  }

  /* "cython/core/manifold.pyx":1041
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         N = get_num_tetrahedra(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         if filled_shapes is not None:
 *             filled_shape_array = <Complex *>malloc(N*sizeof(Complex))
*/
  __pyx_t_5 = get_num_tetrahedra(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1041, __pyx_L1_error)
  __pyx_v_N = __pyx_t_5;

  /* "cython/core/manifold.pyx":1042
 *             raise ValueError('The Triangulation is empty.')
 *         N = get_num_tetrahedra(self.c_triangulation)
 *         if filled_shapes is not None:             # <<<<<<<<<<<<<<
 *             filled_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(filled_shapes):
*/
  __pyx_t_1 = (__pyx_v_filled_shapes != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1043
 *         N = get_num_tetrahedra(self.c_triangulation)
 *         if filled_shapes is not None:
 *             filled_shape_array = <Complex *>malloc(N*sizeof(Complex))             # <<<<<<<<<<<<<<
 *             for i, shape in enumerate(filled_shapes):
 *                 filled_shape_array[i] = complex2Complex(complex(shape))
*/
    __pyx_v_filled_shape_array = ((Complex *)malloc((__pyx_v_N * (sizeof(Complex)))));

    /* "cython/core/manifold.pyx":1044
 *         if filled_shapes is not None:
 *             filled_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(filled_shapes):             # <<<<<<<<<<<<<<
 *                 filled_shape_array[i] = complex2Complex(complex(shape))
 *         if complete_shapes is not None:
*/
    __pyx_t_5 = 0;
    if (likely(PyList_CheckExact(__pyx_v_filled_shapes)) || PyTuple_CheckExact(__pyx_v_filled_shapes)) {
      __pyx_t_2 = __pyx_v_filled_shapes; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_filled_shapes); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1044, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1044, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1044, __pyx_L1_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1044, __pyx_L1_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1044, __pyx_L1_error)
      } else {
        __pyx_t_3 = __pyx_t_7(__pyx_t_2);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 1044, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_shape, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_v_i = __pyx_t_5;
      __pyx_t_5 = (__pyx_t_5 + 1);

      /* "cython/core/manifold.pyx":1045
 *             filled_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(filled_shapes):
 *                 filled_shape_array[i] = complex2Complex(complex(shape))             # <<<<<<<<<<<<<<
 *         if complete_shapes is not None:
 *             complete_shape_array = <Complex *>malloc(N*sizeof(Complex))
*/
      __pyx_t_8 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_shape};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyComplex_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1045, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_9 = __Pyx_PyComplex_As___pyx_t_double_complex(__pyx_t_3); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1045, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_10 = __pyx_f_6SnapPy_complex2Complex(__pyx_t_9); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1045, __pyx_L1_error)
      (__pyx_v_filled_shape_array[__pyx_v_i]) = __pyx_t_10;

      /* "cython/core/manifold.pyx":1044
 *         if filled_shapes is not None:
 *             filled_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(filled_shapes):             # <<<<<<<<<<<<<<
 *                 filled_shape_array[i] = complex2Complex(complex(shape))
 *         if complete_shapes is not None:
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1042
 *             raise ValueError('The Triangulation is empty.')
 *         N = get_num_tetrahedra(self.c_triangulation)
 *         if filled_shapes is not None:             # <<<<<<<<<<<<<<
 *             filled_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(filled_shapes):
*/
  }

  /* "cython/core/manifold.pyx":1046
 *             for i, shape in enumerate(filled_shapes):
 *                 filled_shape_array[i] = complex2Complex(complex(shape))
 *         if complete_shapes is not None:             # <<<<<<<<<<<<<<
 *             complete_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(complete_shapes):
*/
  __pyx_t_1 = (__pyx_v_complete_shapes != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1047
 *                 filled_shape_array[i] = complex2Complex(complex(shape))
 *         if complete_shapes is not None:
 *             complete_shape_array = <Complex *>malloc(N*sizeof(Complex))             # <<<<<<<<<<<<<<
 *             for i, shape in enumerate(complete_shapes):
 *                 complete_shape_array[i] = complex2Complex(complex(shape))
*/
    __pyx_v_complete_shape_array = ((Complex *)malloc((__pyx_v_N * (sizeof(Complex)))));

    /* "cython/core/manifold.pyx":1048
 *         if complete_shapes is not None:
 *             complete_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(complete_shapes):             # <<<<<<<<<<<<<<
 *                 complete_shape_array[i] = complex2Complex(complex(shape))
 *         if fillings:
*/
    __pyx_t_5 = 0;
    if (likely(PyList_CheckExact(__pyx_v_complete_shapes)) || PyTuple_CheckExact(__pyx_v_complete_shapes)) {
      __pyx_t_2 = __pyx_v_complete_shapes; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_complete_shapes); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1048, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1048, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1048, __pyx_L1_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1048, __pyx_L1_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1048, __pyx_L1_error)
      } else {
        __pyx_t_3 = __pyx_t_7(__pyx_t_2);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 1048, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_shape, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_v_i = __pyx_t_5;
      __pyx_t_5 = (__pyx_t_5 + 1);

      /* "cython/core/manifold.pyx":1049
 *             complete_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(complete_shapes):
 *                 complete_shape_array[i] = complex2Complex(complex(shape))             # <<<<<<<<<<<<<<
 *         if fillings:
 *             set_cusps(self.c_triangulation, fillings)
*/
      __pyx_t_8 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_v_shape};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyComplex_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1049, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_9 = __Pyx_PyComplex_As___pyx_t_double_complex(__pyx_t_3); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1049, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_10 = __pyx_f_6SnapPy_complex2Complex(__pyx_t_9); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1049, __pyx_L1_error)
      (__pyx_v_complete_shape_array[__pyx_v_i]) = __pyx_t_10;

      /* "cython/core/manifold.pyx":1048
 *         if complete_shapes is not None:
 *             complete_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(complete_shapes):             # <<<<<<<<<<<<<<
 *                 complete_shape_array[i] = complex2Complex(complex(shape))
 *         if fillings:
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1046
 *             for i, shape in enumerate(filled_shapes):
 *                 filled_shape_array[i] = complex2Complex(complex(shape))
 *         if complete_shapes is not None:             # <<<<<<<<<<<<<<
 *             complete_shape_array = <Complex *>malloc(N*sizeof(Complex))
 *             for i, shape in enumerate(complete_shapes):
*/
  }

  /* "cython/core/manifold.pyx":1050
 *             for i, shape in enumerate(complete_shapes):
 *                 complete_shape_array[i] = complex2Complex(complex(shape))
 *         if fillings:             # <<<<<<<<<<<<<<
 *             set_cusps(self.c_triangulation, fillings)
 *         set_tet_shapes(self.c_triangulation,
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_fillings); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1050, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1051
 *                 complete_shape_array[i] = complex2Complex(complex(shape))
 *         if fillings:
 *             set_cusps(self.c_triangulation, fillings)             # <<<<<<<<<<<<<<
 *         set_tet_shapes(self.c_triangulation,
 *                        filled_shape_array,
*/
    __pyx_t_5 = __pyx_f_6SnapPy_set_cusps(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_fillings); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(1, 1051, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1050
 *             for i, shape in enumerate(complete_shapes):
 *                 complete_shape_array[i] = complex2Complex(complex(shape))
 *         if fillings:             # <<<<<<<<<<<<<<
 *             set_cusps(self.c_triangulation, fillings)
 *         set_tet_shapes(self.c_triangulation,
*/
  }

  /* "cython/core/manifold.pyx":1052
 *         if fillings:
 *             set_cusps(self.c_triangulation, fillings)
 *         set_tet_shapes(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                        filled_shape_array,
 *                        complete_shape_array)
*/
  set_tet_shapes(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_filled_shape_array, __pyx_v_complete_shape_array);

  /* "cython/core/manifold.pyx":1055
 *                        filled_shape_array,
 *                        complete_shape_array)
 *         compute_holonomies(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         compute_edge_angle_sums(self.c_triangulation)
 *         if filled_shape_array != NULL:
*/
  compute_holonomies(__pyx_v_self->__pyx_base.c_triangulation);

  /* "cython/core/manifold.pyx":1056
 *                        complete_shape_array)
 *         compute_holonomies(self.c_triangulation)
 *         compute_edge_angle_sums(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         if filled_shape_array != NULL:
 *             free(filled_shape_array)
*/
  compute_edge_angle_sums(__pyx_v_self->__pyx_base.c_triangulation);

  /* "cython/core/manifold.pyx":1057
 *         compute_holonomies(self.c_triangulation)
 *         compute_edge_angle_sums(self.c_triangulation)
 *         if filled_shape_array != NULL:             # <<<<<<<<<<<<<<
 *             free(filled_shape_array)
 *         if complete_shape_array != NULL:
*/
  __pyx_t_1 = (__pyx_v_filled_shape_array != NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1058
 *         compute_edge_angle_sums(self.c_triangulation)
 *         if filled_shape_array != NULL:
 *             free(filled_shape_array)             # <<<<<<<<<<<<<<
 *         if complete_shape_array != NULL:
 *             free(complete_shape_array)
*/
    free(__pyx_v_filled_shape_array);

    /* "cython/core/manifold.pyx":1057
 *         compute_holonomies(self.c_triangulation)
 *         compute_edge_angle_sums(self.c_triangulation)
 *         if filled_shape_array != NULL:             # <<<<<<<<<<<<<<
 *             free(filled_shape_array)
 *         if complete_shape_array != NULL:
*/
  }

  /* "cython/core/manifold.pyx":1059
 *         if filled_shape_array != NULL:
 *             free(filled_shape_array)
 *         if complete_shape_array != NULL:             # <<<<<<<<<<<<<<
 *             free(complete_shape_array)
 *         self._cache.clear(message='Manifold.set_tetrahedra_shapes')
*/
  __pyx_t_1 = (__pyx_v_complete_shape_array != NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1060
 *             free(filled_shape_array)
 *         if complete_shape_array != NULL:
 *             free(complete_shape_array)             # <<<<<<<<<<<<<<
 *         self._cache.clear(message='Manifold.set_tetrahedra_shapes')
 * 
*/
    free(__pyx_v_complete_shape_array);

    /* "cython/core/manifold.pyx":1059
 *         if filled_shape_array != NULL:
 *             free(filled_shape_array)
 *         if complete_shape_array != NULL:             # <<<<<<<<<<<<<<
 *             free(complete_shape_array)
 *         self._cache.clear(message='Manifold.set_tetrahedra_shapes')
*/
  }

  /* "cython/core/manifold.pyx":1061
 *         if complete_shape_array != NULL:
 *             free(complete_shape_array)
 *         self._cache.clear(message='Manifold.set_tetrahedra_shapes')             # <<<<<<<<<<<<<<
 * 
 *     def solution_type(self, enum=False):
*/
  __pyx_t_3 = __pyx_v_self->__pyx_base._cache;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
    __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_kp_u_Manifold_set_tetrahedra_shapes, __pyx_t_8, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 1061, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1025
 *         return result
 * 
 *     def set_tetrahedra_shapes(self,             # <<<<<<<<<<<<<<
 *                               filled_shapes=None,
 *                               complete_shapes=None,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.Manifold.set_tetrahedra_shapes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1063
 *         self._cache.clear(message='Manifold.set_tetrahedra_shapes')
 * 
 *     def solution_type(self, enum=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the type of the current solution to the gluing
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_57solution_type(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_56solution_type, "\n        Returns the type of the current solution to the gluing\n        equations, basically a summary of how degenerate the solution\n        is.  If the flag :attr:`enum=True` is set, then an integer value is\n        returned. The possible answers are:\n\n        - 0: ``not attempted``\n\n        - 1: ``all tetrahedra positively oriented`` aka *geometric_solution*\n\n          Should correspond to a genuine hyperbolic structure.\n\n        - 2: ``contains negatively oriented tetrahedra`` aka *nongeometric solution*\n\n          Probably corresponds to a hyperbolic structure but some\n          simplices have reversed orientations.\n\n        - 3: ``contains flat tetrahedra`` (should be called ``all tetrahedra flat``)\n\n          All tetrahedra have shape in :math:`\\mathbb{R} - \\{0, 1\\}`.\n\n        - 4: ``contains degenerate tetrahedra``\n\n          Some shapes are close to :math:`\\{0,1, \\infty\\}`.\n\n        - 5: ``unrecognized solution type``\n\n        - 6: ``no solution found``\n\n        >>> M = Manifold('m007')\n        >>> M.solution_type()\n        'all tetrahedra positively oriented'\n        >>> M.dehn_fill( (3,1) )\n        >>> M.solution_type()\n        'contains negatively oriented tetrahedra'\n        >>> M.dehn_fill( (3,-1) )\n        >>> M.solution_type()\n        'contains degenerate tetrahedra'\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_57solution_type = {"solution_type", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_57solution_type, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_56solution_type};
static PyObject *__pyx_pw_6SnapPy_8Manifold_57solution_type(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_enum = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("solution_type (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_enum,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1063, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1063, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "solution_type", 0) < (0)) __PYX_ERR(1, 1063, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1063, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_enum = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("solution_type", 0, 0, 1, __pyx_nargs); __PYX_ERR(1, 1063, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.solution_type", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_56solution_type(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_enum);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_56solution_type(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_enum) {
  SolutionType __pyx_v_solution_type;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  SolutionType __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("solution_type", 0);

  /* "cython/core/manifold.pyx":1105
 *         cdef c_SolutionType solution_type
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         solution_type = get_filled_solution_type(self.c_triangulation)
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1106
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         solution_type = get_filled_solution_type(self.c_triangulation)
 *         if enum:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1106, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1106, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1105
 *         cdef c_SolutionType solution_type
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         solution_type = get_filled_solution_type(self.c_triangulation)
*/
  }

  /* "cython/core/manifold.pyx":1107
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         solution_type = get_filled_solution_type(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         if enum:
 *             return solution_type
*/
  __pyx_t_5 = get_filled_solution_type(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1107, __pyx_L1_error)
  __pyx_v_solution_type = __pyx_t_5;

  /* "cython/core/manifold.pyx":1108
 *             raise ValueError('The Triangulation is empty.')
 *         solution_type = get_filled_solution_type(self.c_triangulation)
 *         if enum:             # <<<<<<<<<<<<<<
 *             return solution_type
 *         else:
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_enum); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1108, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1109
 *         solution_type = get_filled_solution_type(self.c_triangulation)
 *         if enum:
 *             return solution_type             # <<<<<<<<<<<<<<
 *         else:
 *             return SolutionType[solution_type]
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_SolutionType(__pyx_v_solution_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1109, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":1108
 *             raise ValueError('The Triangulation is empty.')
 *         solution_type = get_filled_solution_type(self.c_triangulation)
 *         if enum:             # <<<<<<<<<<<<<<
 *             return solution_type
 *         else:
*/
  }

  /* "cython/core/manifold.pyx":1111
 *             return solution_type
 *         else:
 *             return SolutionType[solution_type]             # <<<<<<<<<<<<<<
 * 
 *     def set_target_holonomy(self, target, which_cusp=0, recompute=True):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_SolutionType); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyLong_From_SolutionType(__pyx_v_solution_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/manifold.pyx":1063
 *         self._cache.clear(message='Manifold.set_tetrahedra_shapes')
 * 
 *     def solution_type(self, enum=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the type of the current solution to the gluing
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Manifold.solution_type", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1113
 *             return SolutionType[solution_type]
 * 
 *     def set_target_holonomy(self, target, which_cusp=0, recompute=True):             # <<<<<<<<<<<<<<
 *         """
 *         M.set_target_holonomy(target, which_cusp=0, recompute=True)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_59set_target_holonomy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_58set_target_holonomy, "\n        M.set_target_holonomy(target, which_cusp=0, recompute=True)\n\n        Computes a geometric structure in which the Dehn filling curve\n        on the specified cusp has holonomy equal to the target value.\n        The holonomies of Dehn filling curves on other cusps are left\n        unchanged.  If the 'recompute' flag is False, the Dehn filling\n        equations are modified, but not solved.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_59set_target_holonomy = {"set_target_holonomy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_59set_target_holonomy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_58set_target_holonomy};
static PyObject *__pyx_pw_6SnapPy_8Manifold_59set_target_holonomy(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_target = 0;
  PyObject *__pyx_v_which_cusp = 0;
  PyObject *__pyx_v_recompute = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_target_holonomy (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_recompute,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1113, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1113, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1113, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1113, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_target_holonomy", 0) < (0)) __PYX_ERR(1, 1113, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_target_holonomy", 0, 1, 3, i); __PYX_ERR(1, 1113, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1113, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1113, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1113, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_target = values[0];
    __pyx_v_which_cusp = values[1];
    __pyx_v_recompute = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_target_holonomy", 0, 1, 3, __pyx_nargs); __PYX_ERR(1, 1113, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.set_target_holonomy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_58set_target_holonomy(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_target, __pyx_v_which_cusp, __pyx_v_recompute);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_58set_target_holonomy(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_target, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_recompute) {
  Complex __pyx_v_c_target;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Complex __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_target_holonomy", 0);

  /* "cython/core/manifold.pyx":1124
 *         """
 *         cdef Complex c_target
 *         c_target = Object2Complex(target)             # <<<<<<<<<<<<<<
 *         set_target_holonomy(self.c_triangulation,
 *                             which_cusp, c_target, recompute)
*/
  __pyx_t_1 = __pyx_f_6SnapPy_Object2Complex(__pyx_v_target); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1124, __pyx_L1_error)
  __pyx_v_c_target = __pyx_t_1;

  /* "cython/core/manifold.pyx":1126
 *         c_target = Object2Complex(target)
 *         set_target_holonomy(self.c_triangulation,
 *                             which_cusp, c_target, recompute)             # <<<<<<<<<<<<<<
 * 
 *     def cusp_info(self, data_spec=None, verified = False, bits_prec = None):
*/
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_v_which_cusp); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1126, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_v_recompute); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1126, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1125
 *         cdef Complex c_target
 *         c_target = Object2Complex(target)
 *         set_target_holonomy(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                             which_cusp, c_target, recompute)
 * 
*/
  set_target_holonomy(__pyx_v_self->__pyx_base.c_triangulation, __pyx_t_2, __pyx_v_c_target, __pyx_t_3);

  /* "cython/core/manifold.pyx":1113
 *             return SolutionType[solution_type]
 * 
 *     def set_target_holonomy(self, target, which_cusp=0, recompute=True):             # <<<<<<<<<<<<<<
 *         """
 *         M.set_target_holonomy(target, which_cusp=0, recompute=True)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.Manifold.set_target_holonomy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1128
 *                             which_cusp, c_target, recompute)
 * 
 *     def cusp_info(self, data_spec=None, verified = False, bits_prec = None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an info object containing information about the given
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_61cusp_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_60cusp_info, "\n        Returns an info object containing information about the given\n        cusp.   Usage:\n\n        >>> M = Manifold('v3227(0,0)(1,2)(3,2)')\n        >>> M.cusp_info(1)\n        Cusp 1 : torus cusp with Dehn filling coefficients (M, L) = (1.0, 2.0)\n\n        To get more detailed information about the cusp, we do\n\n        >>> c = M.cusp_info(0)\n        >>> c.shape # doctest: +NUMERIC6\n        0.11044502 + 0.94677098*I\n        >>> c.modulus# doctest: +NUMERIC6\n        -0.12155872 + 1.04204128*I\n        >>> sorted(c.keys())\n        ['filling', 'holonomies', 'holonomy_accuracy', 'index', 'is_complete', 'modulus', 'shape', 'shape_accuracy', 'topology']\n\n        Here 'shape' is the shape of the cusp, i.e.\n        (longitude/meridian)\n        and 'modulus' is its shape in the geometrically preferred\n        basis, i.e.\n        ( (second shortest translation)/(shortest translation)).\n        For cusps that are filled, one instead cares about the\n        holonomies:\n\n        >>> M.cusp_info(-1)['holonomies'] # doctest: +NUMERIC6\n        (-0.59883089 + 1.09812548*I, 0.89824633 + 1.49440443*I)\n\n        The complex numbers returned for the shape and for the two\n        holonomies have an extra attribute, accuracy, which is\n        SnapPea's *estimate* of their accuracy.\n\n        You can also get information about multiple cusps at once:\n\n        >>> M.cusp_info() # doctest: +NUMERIC6\n        [Cusp 0 : complete torus cusp of shape 0.11044502 + 0.94677098*I,\n         Cusp 1 : torus cusp with Dehn filling coefficients (M, L) = (1.0, 2.0),\n         Cusp 2 : torus cusp with Dehn filling coefficients (M, L) = (3.0, 2.0)]\n        >>> M.cusp_info('is_complete')\n        [True, False, False]\n\n        The cusp shapes can be verified::\n\n            sage: M = Manifold('m292')\n            sage: M.cusp_info('shape', verified = True, bits_prec = 60) # doctest: +NUMERIC12\n            [-0.1766049820997? + 1.2028208192855?*I,\n             -0.17660498""20997? + 1.2028208192855?*I]\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_61cusp_info = {"cusp_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_61cusp_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_60cusp_info};
static PyObject *__pyx_pw_6SnapPy_8Manifold_61cusp_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_data_spec = 0;
  PyObject *__pyx_v_verified = 0;
  PyObject *__pyx_v_bits_prec = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cusp_info (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_data_spec,&__pyx_mstate_global->__pyx_n_u_verified,&__pyx_mstate_global->__pyx_n_u_bits_prec,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1128, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1128, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1128, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1128, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "cusp_info", 0) < (0)) __PYX_ERR(1, 1128, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1128, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1128, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1128, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_data_spec = values[0];
    __pyx_v_verified = values[1];
    __pyx_v_bits_prec = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("cusp_info", 0, 0, 3, __pyx_nargs); __PYX_ERR(1, 1128, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.cusp_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_60cusp_info(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_data_spec, __pyx_v_verified, __pyx_v_bits_prec);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_60cusp_info(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_data_spec, PyObject *__pyx_v_verified, PyObject *__pyx_v_bits_prec) {
  int __pyx_v_cusp_index;
  CuspTopology __pyx_v_topology;
  Boolean __pyx_v_is_complete;
  __pyx_t_6SnapPy_Real __pyx_v_m;
  __pyx_t_6SnapPy_Real __pyx_v_l;
  Complex __pyx_v_initial_shape;
  Complex __pyx_v_current_shape;
  int __pyx_v_initial_shape_accuracy;
  int __pyx_v_current_shape_accuracy;
  Complex __pyx_v_initial_modulus;
  Complex __pyx_v_current_modulus;
  int __pyx_v_meridian_accuracy;
  int __pyx_v_longitude_accuracy;
  int __pyx_v_singularity_index;
  int __pyx_v_accuracy;
  Complex __pyx_v_c_meridian;
  Complex __pyx_v_c_longitude;
  Complex __pyx_v_c_core_length;
  PyObject *__pyx_v_shape = NULL;
  PyObject *__pyx_v_meridian = NULL;
  PyObject *__pyx_v_longitude = NULL;
  PyObject *__pyx_v_modulus = NULL;
  PyObject *__pyx_v_info = NULL;
  PyObject *__pyx_v_core_length = NULL;
  PyObject *__pyx_9genexpr52__pyx_v_i = NULL;
  PyObject *__pyx_9genexpr53__pyx_v_c = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  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)(PyObject *);
  Py_ssize_t __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  int __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cusp_info", 0);

  /* "cython/core/manifold.pyx":1189
 *         cdef Complex c_meridian, c_longitude, c_core_length
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1190
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         if verified or bits_prec:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1190, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1190, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1189
 *         cdef Complex c_meridian, c_longitude, c_core_length
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/manifold.pyx":1192
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         if verified or bits_prec:             # <<<<<<<<<<<<<<
 *             if not data_spec == 'shape':
 *                 raise Exception("Verified and arbitrary precision computation "
*/
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_verified); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 1192, __pyx_L1_error)
  if (!__pyx_t_5) {
  } else {
    __pyx_t_1 = __pyx_t_5;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_bits_prec); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(1, 1192, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_5;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1193
 * 
 *         if verified or bits_prec:
 *             if not data_spec == 'shape':             # <<<<<<<<<<<<<<
 *                 raise Exception("Verified and arbitrary precision computation "
 *                                 "of cusp_info only "
*/
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_data_spec, __pyx_mstate_global->__pyx_n_u_shape, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1193, __pyx_L1_error)
    __pyx_t_5 = (!__pyx_t_1);
    if (unlikely(__pyx_t_5)) {

      /* "cython/core/manifold.pyx":1194
 *         if verified or bits_prec:
 *             if not data_spec == 'shape':
 *                 raise Exception("Verified and arbitrary precision computation "             # <<<<<<<<<<<<<<
 *                                 "of cusp_info only "
 *                                 "implemented for cusp shapes. Pass 'shape' "
*/
      __pyx_t_3 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Verified_and_arbitrary_precision};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_Exception)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1194, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(1, 1194, __pyx_L1_error)

      /* "cython/core/manifold.pyx":1193
 * 
 *         if verified or bits_prec:
 *             if not data_spec == 'shape':             # <<<<<<<<<<<<<<
 *                 raise Exception("Verified and arbitrary precision computation "
 *                                 "of cusp_info only "
*/
    }

    /* "cython/core/manifold.pyx":1198
 *                                 "implemented for cusp shapes. Pass 'shape' "
 *                                 "as first argument to cusp_info().")
 *             return cusps_compute_cusp_shapes(self, verified = verified,             # <<<<<<<<<<<<<<
 *                                               bits_prec = bits_prec)
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cusps_compute_cusp_shapes); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);

    /* "cython/core/manifold.pyx":1199
 *                                 "as first argument to cusp_info().")
 *             return cusps_compute_cusp_shapes(self, verified = verified,
 *                                               bits_prec = bits_prec)             # <<<<<<<<<<<<<<
 * 
 *         if data_spec is None:
*/
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_3, ((PyObject *)__pyx_v_self)};
      __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1198, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_verified, __pyx_v_verified, __pyx_t_7, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 1198, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_bits_prec, __pyx_v_bits_prec, __pyx_t_7, __pyx_callargs+2, 1) < (0)) __PYX_ERR(1, 1198, __pyx_L1_error)
      __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1198, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":1192
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         if verified or bits_prec:             # <<<<<<<<<<<<<<
 *             if not data_spec == 'shape':
 *                 raise Exception("Verified and arbitrary precision computation "
*/
  }

  /* "cython/core/manifold.pyx":1201
 *                                               bits_prec = bits_prec)
 * 
 *         if data_spec is None:             # <<<<<<<<<<<<<<
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])
*/
  __pyx_t_5 = (__pyx_v_data_spec == Py_None);
  if (__pyx_t_5) {

    /* "cython/core/manifold.pyx":1202
 * 
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)             # <<<<<<<<<<<<<<
 *                                    for i in range(self.num_cusps())])
 *         # Need to check that data_spec has string type
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_ListOnePerLine); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1202, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    { /* enter inner scope */
      __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1202, __pyx_L11_error)
      __Pyx_GOTREF(__pyx_t_3);

      /* "cython/core/manifold.pyx":1203
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])             # <<<<<<<<<<<<<<
 *         # Need to check that data_spec has string type
 *         if isinstance(data_spec, str):
*/
      __pyx_t_9 = NULL;
      __pyx_t_11 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_11);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_11, NULL};
        __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1203, __pyx_L11_error)
        __Pyx_GOTREF(__pyx_t_10);
      }
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_10};
        __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1203, __pyx_L11_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __pyx_t_10 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1203, __pyx_L11_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1203, __pyx_L11_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      for (;;) {
        {
          __pyx_t_8 = __pyx_t_12(__pyx_t_10);
          if (unlikely(!__pyx_t_8)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 1203, __pyx_L11_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_XDECREF_SET(__pyx_9genexpr52__pyx_v_i, __pyx_t_8);
        __pyx_t_8 = 0;

        /* "cython/core/manifold.pyx":1202
 * 
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)             # <<<<<<<<<<<<<<
 *                                    for i in range(self.num_cusps())])
 *         # Need to check that data_spec has string type
*/
        __pyx_t_9 = ((PyObject *)__pyx_v_self);
        __Pyx_INCREF(__pyx_t_9);
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_9genexpr52__pyx_v_i};
          __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1202, __pyx_L11_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_8))) __PYX_ERR(1, 1202, __pyx_L11_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

        /* "cython/core/manifold.pyx":1203
 *         if data_spec is None:
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])             # <<<<<<<<<<<<<<
 *         # Need to check that data_spec has string type
 *         if isinstance(data_spec, str):
*/
      }
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_9genexpr52__pyx_v_i); __pyx_9genexpr52__pyx_v_i = 0;
      goto __pyx_L15_exit_scope;
      __pyx_L11_error:;
      __Pyx_XDECREF(__pyx_9genexpr52__pyx_v_i); __pyx_9genexpr52__pyx_v_i = 0;
      goto __pyx_L1_error;
      __pyx_L15_exit_scope:;
    } /* exit inner scope */
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_3};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1202, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":1201
 *                                               bits_prec = bits_prec)
 * 
 *         if data_spec is None:             # <<<<<<<<<<<<<<
 *             return ListOnePerLine([self.cusp_info(i)
 *                                    for i in range(self.num_cusps())])
*/
  }

  /* "cython/core/manifold.pyx":1205
 *                                    for i in range(self.num_cusps())])
 *         # Need to check that data_spec has string type
 *         if isinstance(data_spec, str):             # <<<<<<<<<<<<<<
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(
*/
  __pyx_t_5 = PyUnicode_Check(__pyx_v_data_spec); 
  if (__pyx_t_5) {

    /* "cython/core/manifold.pyx":1206
 *         # Need to check that data_spec has string type
 *         if isinstance(data_spec, str):
 *             return [c[data_spec] for c in self.cusp_info()]             # <<<<<<<<<<<<<<
 *         cusp_index = valid_index(
 *             data_spec, self.num_cusps(),
*/
    __Pyx_XDECREF(__pyx_r);
    { /* enter inner scope */
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1206, __pyx_L19_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1206, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) {
        __pyx_t_3 = __pyx_t_7; __Pyx_INCREF(__pyx_t_3);
        __pyx_t_13 = 0;
        __pyx_t_12 = NULL;
      } else {
        __pyx_t_13 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1206, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1206, __pyx_L19_error)
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      for (;;) {
        if (likely(!__pyx_t_12)) {
          if (likely(PyList_CheckExact(__pyx_t_3))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1206, __pyx_L19_error)
              #endif
              if (__pyx_t_13 >= __pyx_temp) break;
            }
            __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_13, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_13;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1206, __pyx_L19_error)
              #endif
              if (__pyx_t_13 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_7 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_13));
            #else
            __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_13);
            #endif
            ++__pyx_t_13;
          }
          if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1206, __pyx_L19_error)
        } else {
          __pyx_t_7 = __pyx_t_12(__pyx_t_3);
          if (unlikely(!__pyx_t_7)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 1206, __pyx_L19_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_XDECREF_SET(__pyx_9genexpr53__pyx_v_c, __pyx_t_7);
        __pyx_t_7 = 0;
        __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_9genexpr53__pyx_v_c, __pyx_v_data_spec); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1206, __pyx_L19_error)
        __Pyx_GOTREF(__pyx_t_7);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_7))) __PYX_ERR(1, 1206, __pyx_L19_error)
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_9genexpr53__pyx_v_c); __pyx_9genexpr53__pyx_v_c = 0;
      goto __pyx_L23_exit_scope;
      __pyx_L19_error:;
      __Pyx_XDECREF(__pyx_9genexpr53__pyx_v_c); __pyx_9genexpr53__pyx_v_c = 0;
      goto __pyx_L1_error;
      __pyx_L23_exit_scope:;
    } /* exit inner scope */
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":1205
 *                                    for i in range(self.num_cusps())])
 *         # Need to check that data_spec has string type
 *         if isinstance(data_spec, str):             # <<<<<<<<<<<<<<
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(
*/
  }

  /* "cython/core/manifold.pyx":1207
 *         if isinstance(data_spec, str):
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(             # <<<<<<<<<<<<<<
 *             data_spec, self.num_cusps(),
 *             'The specified cusp (%s) does not exist.')
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);

  /* "cython/core/manifold.pyx":1208
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(
 *             data_spec, self.num_cusps(),             # <<<<<<<<<<<<<<
 *             'The specified cusp (%s) does not exist.')
 * 
*/
  __pyx_t_10 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_10);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_data_spec, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_The_specified_cusp_s_does_not_ex};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }

  /* "cython/core/manifold.pyx":1207
 *         if isinstance(data_spec, str):
 *             return [c[data_spec] for c in self.cusp_info()]
 *         cusp_index = valid_index(             # <<<<<<<<<<<<<<
 *             data_spec, self.num_cusps(),
 *             'The specified cusp (%s) does not exist.')
*/
  __pyx_t_14 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_14 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_cusp_index = __pyx_t_14;

  /* "cython/core/manifold.pyx":1211
 *             'The specified cusp (%s) does not exist.')
 * 
 *         get_cusp_info(self.c_triangulation, cusp_index,             # <<<<<<<<<<<<<<
 *                       &topology, &is_complete, &m, &l,
 *                       &initial_shape, &current_shape,
*/
  get_cusp_info(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_cusp_index, (&__pyx_v_topology), (&__pyx_v_is_complete), (&__pyx_v_m), (&__pyx_v_l), (&__pyx_v_initial_shape), (&__pyx_v_current_shape), (&__pyx_v_initial_shape_accuracy), (&__pyx_v_current_shape_accuracy), (&__pyx_v_initial_modulus), (&__pyx_v_current_modulus));

  /* "cython/core/manifold.pyx":1216
 *                       &initial_shape_accuracy, &current_shape_accuracy,
 *                       &initial_modulus, &current_modulus)
 *         get_holonomy(self.c_triangulation, cusp_index,             # <<<<<<<<<<<<<<
 *                      &c_meridian, &c_longitude,
 *                      &meridian_accuracy, &longitude_accuracy)
*/
  get_holonomy(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_cusp_index, (&__pyx_v_c_meridian), (&__pyx_v_c_longitude), (&__pyx_v_meridian_accuracy), (&__pyx_v_longitude_accuracy)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1216, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1219
 *                      &c_meridian, &c_longitude,
 *                      &meridian_accuracy, &longitude_accuracy)
 *         shape= Complex2Number(current_shape)             # <<<<<<<<<<<<<<
 *         shape.accuracy = current_shape_accuracy
 *         meridian = Complex2Number(c_meridian)
*/
  __pyx_t_2 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_current_shape); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_shape = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1220
 *                      &meridian_accuracy, &longitude_accuracy)
 *         shape= Complex2Number(current_shape)
 *         shape.accuracy = current_shape_accuracy             # <<<<<<<<<<<<<<
 *         meridian = Complex2Number(c_meridian)
 *         meridian.accuracy = meridian_accuracy
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_current_shape_accuracy); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_shape, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_2) < (0)) __PYX_ERR(1, 1220, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1221
 *         shape= Complex2Number(current_shape)
 *         shape.accuracy = current_shape_accuracy
 *         meridian = Complex2Number(c_meridian)             # <<<<<<<<<<<<<<
 *         meridian.accuracy = meridian_accuracy
 *         longitude = Complex2Number(c_longitude)
*/
  __pyx_t_2 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_c_meridian); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_meridian = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1222
 *         shape.accuracy = current_shape_accuracy
 *         meridian = Complex2Number(c_meridian)
 *         meridian.accuracy = meridian_accuracy             # <<<<<<<<<<<<<<
 *         longitude = Complex2Number(c_longitude)
 *         longitude.accuracy = longitude_accuracy
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_meridian_accuracy); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_meridian, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_2) < (0)) __PYX_ERR(1, 1222, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1223
 *         meridian = Complex2Number(c_meridian)
 *         meridian.accuracy = meridian_accuracy
 *         longitude = Complex2Number(c_longitude)             # <<<<<<<<<<<<<<
 *         longitude.accuracy = longitude_accuracy
 *         modulus = Complex2Number(current_modulus)
*/
  __pyx_t_2 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_c_longitude); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_longitude = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1224
 *         meridian.accuracy = meridian_accuracy
 *         longitude = Complex2Number(c_longitude)
 *         longitude.accuracy = longitude_accuracy             # <<<<<<<<<<<<<<
 *         modulus = Complex2Number(current_modulus)
 *         info = {
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_longitude_accuracy); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_longitude, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_2) < (0)) __PYX_ERR(1, 1224, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1225
 *         longitude = Complex2Number(c_longitude)
 *         longitude.accuracy = longitude_accuracy
 *         modulus = Complex2Number(current_modulus)             # <<<<<<<<<<<<<<
 *         info = {
 *             'index' : cusp_index,
*/
  __pyx_t_2 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_current_modulus); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_modulus = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1227
 *         modulus = Complex2Number(current_modulus)
 *         info = {
 *             'index' : cusp_index,             # <<<<<<<<<<<<<<
 *             'topology' : CuspTopology[topology],
 *             'is_complete' : B2B(is_complete),
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_v_cusp_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_7) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/manifold.pyx":1228
 *         info = {
 *             'index' : cusp_index,
 *             'topology' : CuspTopology[topology],             # <<<<<<<<<<<<<<
 *             'is_complete' : B2B(is_complete),
 *             'filling' : (Real2float(m), Real2float(l)),
*/
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_CuspTopology); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_PyLong_From_CuspTopology(__pyx_v_topology); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_topology, __pyx_t_3) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/manifold.pyx":1229
 *             'index' : cusp_index,
 *             'topology' : CuspTopology[topology],
 *             'is_complete' : B2B(is_complete),             # <<<<<<<<<<<<<<
 *             'filling' : (Real2float(m), Real2float(l)),
 *             'shape': self._number_(shape),
*/
  __pyx_t_3 = __pyx_f_6SnapPy_B2B(__pyx_v_is_complete); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_is_complete, __pyx_t_3) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/manifold.pyx":1230
 *             'topology' : CuspTopology[topology],
 *             'is_complete' : B2B(is_complete),
 *             'filling' : (Real2float(m), Real2float(l)),             # <<<<<<<<<<<<<<
 *             'shape': self._number_(shape),
 *             'shape_accuracy': current_shape_accuracy,
*/
  __pyx_t_3 = __pyx_f_6SnapPy_Real2float(__pyx_v_m); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __pyx_f_6SnapPy_Real2float(__pyx_v_l); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3) != (0)) __PYX_ERR(1, 1230, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(1, 1230, __pyx_L1_error);
  __pyx_t_3 = 0;
  __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_filling, __pyx_t_7) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/manifold.pyx":1231
 *             'is_complete' : B2B(is_complete),
 *             'filling' : (Real2float(m), Real2float(l)),
 *             'shape': self._number_(shape),             # <<<<<<<<<<<<<<
 *             'shape_accuracy': current_shape_accuracy,
 *             'modulus': self._number_(modulus),
*/
  __pyx_t_6 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_shape};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1231, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_shape, __pyx_t_7) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/manifold.pyx":1232
 *             'filling' : (Real2float(m), Real2float(l)),
 *             'shape': self._number_(shape),
 *             'shape_accuracy': current_shape_accuracy,             # <<<<<<<<<<<<<<
 *             'modulus': self._number_(modulus),
 *             'holonomies': (self._number_(meridian), self._number_(longitude)),
*/
  __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_v_current_shape_accuracy); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_shape_accuracy, __pyx_t_7) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/manifold.pyx":1233
 *             'shape': self._number_(shape),
 *             'shape_accuracy': current_shape_accuracy,
 *             'modulus': self._number_(modulus),             # <<<<<<<<<<<<<<
 *             'holonomies': (self._number_(meridian), self._number_(longitude)),
 *             'holonomy_accuracy': min(meridian_accuracy,longitude_accuracy)
*/
  __pyx_t_6 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_modulus};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1233, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_modulus, __pyx_t_7) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/manifold.pyx":1234
 *             'shape_accuracy': current_shape_accuracy,
 *             'modulus': self._number_(modulus),
 *             'holonomies': (self._number_(meridian), self._number_(longitude)),             # <<<<<<<<<<<<<<
 *             'holonomy_accuracy': min(meridian_accuracy,longitude_accuracy)
 *         }
*/
  __pyx_t_6 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_meridian};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_longitude};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7) != (0)) __PYX_ERR(1, 1234, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_6) != (0)) __PYX_ERR(1, 1234, __pyx_L1_error);
  __pyx_t_7 = 0;
  __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_holonomies, __pyx_t_3) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/manifold.pyx":1235
 *             'modulus': self._number_(modulus),
 *             'holonomies': (self._number_(meridian), self._number_(longitude)),
 *             'holonomy_accuracy': min(meridian_accuracy,longitude_accuracy)             # <<<<<<<<<<<<<<
 *         }
 * 
*/
  __pyx_t_14 = __pyx_v_longitude_accuracy;
  __pyx_t_15 = __pyx_v_meridian_accuracy;
  __pyx_t_5 = (__pyx_t_14 < __pyx_t_15);
  if (__pyx_t_5) {
    __pyx_t_16 = __pyx_t_14;
  } else {
    __pyx_t_16 = __pyx_t_15;
  }
  __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_t_16); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_holonomy_accuracy, __pyx_t_3) < (0)) __PYX_ERR(1, 1227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_info = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1238
 *         }
 * 
 *         core_geodesic(self.c_triangulation, cusp_index,             # <<<<<<<<<<<<<<
 *                       &singularity_index, &c_core_length, &accuracy)
 * 
*/
  core_geodesic(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_cusp_index, (&__pyx_v_singularity_index), (&__pyx_v_c_core_length), (&__pyx_v_accuracy)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1238, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1241
 *                       &singularity_index, &c_core_length, &accuracy)
 * 
 *         if singularity_index != 0:             # <<<<<<<<<<<<<<
 *             core_length = Complex2Number(c_core_length)
 *             core_length.accuracy = accuracy
*/
  __pyx_t_5 = (__pyx_v_singularity_index != 0);
  if (__pyx_t_5) {

    /* "cython/core/manifold.pyx":1242
 * 
 *         if singularity_index != 0:
 *             core_length = Complex2Number(c_core_length)             # <<<<<<<<<<<<<<
 *             core_length.accuracy = accuracy
 *             info.update({
*/
    __pyx_t_2 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_c_core_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_core_length = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1243
 *         if singularity_index != 0:
 *             core_length = Complex2Number(c_core_length)
 *             core_length.accuracy = accuracy             # <<<<<<<<<<<<<<
 *             info.update({
 *                 'core_length': self._number_(core_length),
*/
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_accuracy); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_core_length, __pyx_mstate_global->__pyx_n_u_accuracy, __pyx_t_2) < (0)) __PYX_ERR(1, 1243, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1245
 *             core_length.accuracy = accuracy
 *             info.update({
 *                 'core_length': self._number_(core_length),             # <<<<<<<<<<<<<<
 *                 'singularity_index': singularity_index
 *             })
*/
    __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_core_length};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1245, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_core_length, __pyx_t_3) < (0)) __PYX_ERR(1, 1245, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/manifold.pyx":1246
 *             info.update({
 *                 'core_length': self._number_(core_length),
 *                 'singularity_index': singularity_index             # <<<<<<<<<<<<<<
 *             })
 * 
*/
    __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_singularity_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_singularity_index, __pyx_t_3) < (0)) __PYX_ERR(1, 1245, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/manifold.pyx":1244
 *             core_length = Complex2Number(c_core_length)
 *             core_length.accuracy = accuracy
 *             info.update({             # <<<<<<<<<<<<<<
 *                 'core_length': self._number_(core_length),
 *                 'singularity_index': singularity_index
*/
    __pyx_t_3 = __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyDict_Type__update, __pyx_v_info, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1244, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/manifold.pyx":1241
 *                       &singularity_index, &c_core_length, &accuracy)
 * 
 *         if singularity_index != 0:             # <<<<<<<<<<<<<<
 *             core_length = Complex2Number(c_core_length)
 *             core_length.accuracy = accuracy
*/
  }

  /* "cython/core/manifold.pyx":1249
 *             })
 * 
 *         return CuspInfo(**info)             # <<<<<<<<<<<<<<
 * 
 *     def dehn_fill(self, filling_data, which_cusp=None) -> None:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_CuspInfo); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyDict_Copy(__pyx_v_info); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1128
 *                             which_cusp, c_target, recompute)
 * 
 *     def cusp_info(self, data_spec=None, verified = False, bits_prec = None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an info object containing information about the given
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __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_AddTraceback("SnapPy.Manifold.cusp_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_shape);
  __Pyx_XDECREF(__pyx_v_meridian);
  __Pyx_XDECREF(__pyx_v_longitude);
  __Pyx_XDECREF(__pyx_v_modulus);
  __Pyx_XDECREF(__pyx_v_info);
  __Pyx_XDECREF(__pyx_v_core_length);
  __Pyx_XDECREF(__pyx_9genexpr52__pyx_v_i);
  __Pyx_XDECREF(__pyx_9genexpr53__pyx_v_c);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1251
 *         return CuspInfo(**info)
 * 
 *     def dehn_fill(self, filling_data, which_cusp=None) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Set the Dehn filling coefficients of the cusps.  This can be
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_63dehn_fill(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_62dehn_fill, "\n        Set the Dehn filling coefficients of the cusps.  This can be\n        specified in the following ways, where the cusps are numbered\n        by 0,1,...,(num_cusps - 1).\n\n        - Fill cusp 2:\n\n          >>> M = Manifold('8^4_1')\n          >>> M.dehn_fill((2,3), 2)\n          >>> M\n          8^4_1(0,0)(0,0)(2,3)(0,0)\n\n        - Fill the last cusp:\n\n          >>> M.dehn_fill((1,5), -1)\n          >>> M\n          8^4_1(0,0)(0,0)(2,3)(1,5)\n\n        - Fill the first two cusps:\n\n          >>> M.dehn_fill( [ (3,0), (1, -4) ])\n          >>> M\n          8^4_1(3,0)(1,-4)(2,3)(1,5)\n\n        - When there is only one cusp, there's a shortcut\n\n          >>> N = Manifold('m004')\n          >>> N.dehn_fill( (-3,4) )\n          >>> N\n          m004(-3,4)\n\n        Does not return a new Manifold.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_63dehn_fill = {"dehn_fill", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_63dehn_fill, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_62dehn_fill};
static PyObject *__pyx_pw_6SnapPy_8Manifold_63dehn_fill(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_filling_data = 0;
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dehn_fill (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_filling_data,&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1251, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1251, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1251, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "dehn_fill", 0) < (0)) __PYX_ERR(1, 1251, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("dehn_fill", 0, 1, 2, i); __PYX_ERR(1, 1251, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1251, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1251, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_filling_data = values[0];
    __pyx_v_which_cusp = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("dehn_fill", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 1251, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.dehn_fill", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_62dehn_fill(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_filling_data, __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_62dehn_fill(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_filling_data, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dehn_fill", 0);

  /* "cython/core/manifold.pyx":1285
 *         Does not return a new Manifold.
 *         """
 *         Triangulation.dehn_fill(self, filling_data, which_cusp)             # <<<<<<<<<<<<<<
 *         do_Dehn_filling(self.c_triangulation)
 *         self._cache.clear(message='Manifold.dehn_fill')
*/
  __pyx_t_2 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, ((PyObject *)__pyx_v_self), __pyx_v_filling_data, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_callargs+__pyx_t_3, (4-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":1286
 *         """
 *         Triangulation.dehn_fill(self, filling_data, which_cusp)
 *         do_Dehn_filling(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         self._cache.clear(message='Manifold.dehn_fill')
 * 
*/
  do_Dehn_filling(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1286, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1287
 *         Triangulation.dehn_fill(self, filling_data, which_cusp)
 *         do_Dehn_filling(self.c_triangulation)
 *         self._cache.clear(message='Manifold.dehn_fill')             # <<<<<<<<<<<<<<
 * 
 *     def set_peripheral_curves(self, peripheral_data,
*/
  __pyx_t_2 = __pyx_v_self->__pyx_base._cache;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_kp_u_Manifold_dehn_fill, __pyx_t_4, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 1287, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":1251
 *         return CuspInfo(**info)
 * 
 *     def dehn_fill(self, filling_data, which_cusp=None) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Set the Dehn filling coefficients of the cusps.  This can be
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Manifold.dehn_fill", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1289
 *         self._cache.clear(message='Manifold.dehn_fill')
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_65set_peripheral_curves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_64set_peripheral_curves, "\n        Each cusp has a preferred marking. In the case of a torus\n        cusp, this is pair of essential simple curves meeting in one\n        point; equivalently, a basis of the first homology of the\n        boundary torus. These curves are called the meridian and the\n        longitude.\n\n        This method changes these markings in various ways.  In many\n        cases, if the flag return_matrices is True then it returns\n        a list of change-of-basis matrices is returned, one per\n        cusp, which will restore the original markings if passed\n        as peripheral_data.\n\n        - Make the shortest curves the meridians, and the second\n          shortest curves the longitudes.\n\n          >>> M = Manifold('5_2')\n          >>> M.cusp_info('shape') # doctest: +NUMERIC6\n          [-2.49024467 + 2.97944707*I]\n          >>> cob = M.set_peripheral_curves('shortest', return_matrices=True)\n          >>> M.cusp_info('shape') # doctest: +NUMERIC6\n          [-0.49024467 + 2.97944707*I]\n          >>> cob\n          [[[1, 0], [-2, 1]]]\n          >>> M.set_peripheral_curves(cob)\n          >>> M.cusp_info('shape') # doctest: +NUMERIC6\n          [-2.49024467 + 2.97944707*I]\n\n          You can also make just the meridians as short as\n          possible while fixing the longitudes via the option\n          'shortest_meridians', and conversely with\n          'shortest_longitudes'.\n\n        - If cusps are Dehn filled, make those curves meridians.\n\n          >>> M = Manifold('m125(0,0)(2,5)')\n          >>> M.set_peripheral_curves('fillings')\n          >>> M\n          m125(0,0)(1,0)\n\n        - Change the basis of a particular cusp, say the first one:\n\n          >>> M.set_peripheral_curves( [ (1,2), (1,3) ] , 0)\n\n          Here (1,2) is the new meridian written in the old basis, and\n          (1,3) the new longitude.\n\n        - Change the basis of all the cusps at once\n\n          >>> new_curves = [ [(1,-1), (1,0)],  [(3,2), (-2,-1)] ]""\n          >>> M.set_peripheral_curves(new_curves)\n          >>> M\n          m125(0,0)(-1,-2)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_65set_peripheral_curves = {"set_peripheral_curves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_65set_peripheral_curves, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_64set_peripheral_curves};
static PyObject *__pyx_pw_6SnapPy_8Manifold_65set_peripheral_curves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_peripheral_data = 0;
  PyObject *__pyx_v_which_cusp = 0;
  PyObject *__pyx_v_return_matrices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_peripheral_curves (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_peripheral_data,&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_return_matrices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1289, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_peripheral_curves", 0) < (0)) __PYX_ERR(1, 1289, __pyx_L3_error)

      /* "cython/core/manifold.pyx":1290
 * 
 *     def set_peripheral_curves(self, peripheral_data,
 *                               which_cusp=None, return_matrices=False):             # <<<<<<<<<<<<<<
 *         """
 *         Each cusp has a preferred marking. In the case of a torus
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_peripheral_curves", 0, 1, 3, i); __PYX_ERR(1, 1289, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1289, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_peripheral_data = values[0];
    __pyx_v_which_cusp = values[1];
    __pyx_v_return_matrices = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_peripheral_curves", 0, 1, 3, __pyx_nargs); __PYX_ERR(1, 1289, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.set_peripheral_curves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_64set_peripheral_curves(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_peripheral_data, __pyx_v_which_cusp, __pyx_v_return_matrices);

  /* "cython/core/manifold.pyx":1289
 *         self._cache.clear(message='Manifold.dehn_fill')
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_64set_peripheral_curves(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_peripheral_data, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_return_matrices) {
  int __pyx_v_d;
  MatrixInt22 *__pyx_v_matrices;
  PyObject *__pyx_v_cusps = NULL;
  PyObject *__pyx_v_cobs = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_peripheral_curves", 0);
  __Pyx_INCREF(__pyx_v_which_cusp);

  /* "cython/core/manifold.pyx":1348
 *         cdef MatrixInt22 *matrices
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1349
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty')             # <<<<<<<<<<<<<<
 * 
 *         if which_cusp is not None:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty_2};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1349, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1349, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1348
 *         cdef MatrixInt22 *matrices
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty')
 * 
*/
  }

  /* "cython/core/manifold.pyx":1351
 *             raise ValueError('The Triangulation is empty')
 * 
 *         if which_cusp is not None:             # <<<<<<<<<<<<<<
 *             which_cusp = valid_index(
 *                 which_cusp, self.num_cusps(),
*/
  __pyx_t_1 = (__pyx_v_which_cusp != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1352
 * 
 *         if which_cusp is not None:
 *             which_cusp = valid_index(             # <<<<<<<<<<<<<<
 *                 which_cusp, self.num_cusps(),
 *                 'The specified cusp (%s) does not exist.')
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1352, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "cython/core/manifold.pyx":1353
 *         if which_cusp is not None:
 *             which_cusp = valid_index(
 *                 which_cusp, self.num_cusps(),             # <<<<<<<<<<<<<<
 *                 'The specified cusp (%s) does not exist.')
 * 
*/
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1353, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_which_cusp, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_The_specified_cusp_s_does_not_ex};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1352, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF_SET(__pyx_v_which_cusp, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1351
 *             raise ValueError('The Triangulation is empty')
 * 
 *         if which_cusp is not None:             # <<<<<<<<<<<<<<
 *             which_cusp = valid_index(
 *                 which_cusp, self.num_cusps(),
*/
  }

  /* "cython/core/manifold.pyx":1356
 *                 'The specified cusp (%s) does not exist.')
 * 
 *         self._cache.clear(message='Manifold.set_peripheral_curves')             # <<<<<<<<<<<<<<
 * 
 *         if peripheral_data == 'shortest_meridians':
*/
  __pyx_t_5 = __pyx_v_self->__pyx_base._cache;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_message, __pyx_mstate_global->__pyx_kp_u_Manifold_set_peripheral_curves, __pyx_t_6, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 1356, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_clear, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1358
 *         self._cache.clear(message='Manifold.set_peripheral_curves')
 * 
 *         if peripheral_data == 'shortest_meridians':             # <<<<<<<<<<<<<<
 *             # For each cusp, replace its current meridian with the
 *             # shortest one possible.
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_peripheral_data, __pyx_mstate_global->__pyx_n_u_shortest_meridians, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1358, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1361
 *             # For each cusp, replace its current meridian with the
 *             # shortest one possible.
 *             cusps = [which_cusp] if which_cusp else range(self.num_cusps())             # <<<<<<<<<<<<<<
 *             cobs = []
 *             for i in cusps:
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_which_cusp); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1361, __pyx_L1_error)
    if (__pyx_t_1) {
      __pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1361, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_v_which_cusp);
      __Pyx_GIVEREF(__pyx_v_which_cusp);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_v_which_cusp) != (0)) __PYX_ERR(1, 1361, __pyx_L1_error);
      __pyx_t_2 = __pyx_t_6;
      __pyx_t_6 = 0;
    } else {
      __pyx_t_5 = NULL;
      __pyx_t_7 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
        __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1361, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
        __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1361, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __pyx_t_2 = __pyx_t_6;
      __pyx_t_6 = 0;
    }
    __pyx_v_cusps = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1362
 *             # shortest one possible.
 *             cusps = [which_cusp] if which_cusp else range(self.num_cusps())
 *             cobs = []             # <<<<<<<<<<<<<<
 *             for i in cusps:
 *                 d = (1/self.cusp_info(i)['shape']).real().round()
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1362, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_cobs = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1363
 *             cusps = [which_cusp] if which_cusp else range(self.num_cusps())
 *             cobs = []
 *             for i in cusps:             # <<<<<<<<<<<<<<
 *                 d = (1/self.cusp_info(i)['shape']).real().round()
 *                 self.set_peripheral_curves([(1, -d), (0,1)], i)
*/
    if (likely(PyList_CheckExact(__pyx_v_cusps)) || PyTuple_CheckExact(__pyx_v_cusps)) {
      __pyx_t_2 = __pyx_v_cusps; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_cusps); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1363, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1363, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1363, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1363, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_8));
          #else
          __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1363, __pyx_L1_error)
      } else {
        __pyx_t_6 = __pyx_t_9(__pyx_t_2);
        if (unlikely(!__pyx_t_6)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 1363, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/manifold.pyx":1364
 *             cobs = []
 *             for i in cusps:
 *                 d = (1/self.cusp_info(i)['shape']).real().round()             # <<<<<<<<<<<<<<
 *                 self.set_peripheral_curves([(1, -d), (0,1)], i)
 *                 cobs.append([[1,d],[0,1]])
*/
      __pyx_t_11 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_11);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_v_i};
        __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1364, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
      }
      __pyx_t_11 = __Pyx_PyObject_Dict_GetItem(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_shape); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1364, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = __Pyx_PyNumber_Divide(__pyx_mstate_global->__pyx_int_1, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1364, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __pyx_t_7 = __pyx_t_10;
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_real, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1364, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __pyx_t_3 = __pyx_t_5;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_round, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1364, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_6); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1364, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_v_d = __pyx_t_12;

      /* "cython/core/manifold.pyx":1365
 *             for i in cusps:
 *                 d = (1/self.cusp_info(i)['shape']).real().round()
 *                 self.set_peripheral_curves([(1, -d), (0,1)], i)             # <<<<<<<<<<<<<<
 *                 cobs.append([[1,d],[0,1]])
 *             if return_matrices:
*/
      __pyx_t_5 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_3 = __Pyx_PyLong_From_int((-__pyx_v_d)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1365, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1365, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(1, 1365, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_3);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_3) != (0)) __PYX_ERR(1, 1365, __pyx_L1_error);
      __pyx_t_3 = 0;
      __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1365, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_10);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_10) != (0)) __PYX_ERR(1, 1365, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[4]);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_mstate_global->__pyx_tuple[4]) != (0)) __PYX_ERR(1, 1365, __pyx_L1_error);
      __pyx_t_10 = 0;
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_3, __pyx_v_i};
        __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_peripheral_curves, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1365, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/manifold.pyx":1366
 *                 d = (1/self.cusp_info(i)['shape']).real().round()
 *                 self.set_peripheral_curves([(1, -d), (0,1)], i)
 *                 cobs.append([[1,d],[0,1]])             # <<<<<<<<<<<<<<
 *             if return_matrices:
 *                 return cobs
*/
      __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_d); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1366, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1366, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(1, 1366, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_t_6) != (0)) __PYX_ERR(1, 1366, __pyx_L1_error);
      __pyx_t_6 = 0;
      __pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1366, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(1, 1366, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 1, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(1, 1366, __pyx_L1_error);
      __pyx_t_5 = PyList_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1366, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_3);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_3) != (0)) __PYX_ERR(1, 1366, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 1, __pyx_t_6) != (0)) __PYX_ERR(1, 1366, __pyx_L1_error);
      __pyx_t_3 = 0;
      __pyx_t_6 = 0;
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_cobs, __pyx_t_5); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(1, 1366, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cython/core/manifold.pyx":1363
 *             cusps = [which_cusp] if which_cusp else range(self.num_cusps())
 *             cobs = []
 *             for i in cusps:             # <<<<<<<<<<<<<<
 *                 d = (1/self.cusp_info(i)['shape']).real().round()
 *                 self.set_peripheral_curves([(1, -d), (0,1)], i)
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1367
 *                 self.set_peripheral_curves([(1, -d), (0,1)], i)
 *                 cobs.append([[1,d],[0,1]])
 *             if return_matrices:             # <<<<<<<<<<<<<<
 *                 return cobs
 * 
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_return_matrices); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1367, __pyx_L1_error)
    if (__pyx_t_1) {

      /* "cython/core/manifold.pyx":1368
 *                 cobs.append([[1,d],[0,1]])
 *             if return_matrices:
 *                 return cobs             # <<<<<<<<<<<<<<
 * 
 *         elif peripheral_data == 'shortest_longitudes':
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_cobs);
      __pyx_r = __pyx_v_cobs;
      goto __pyx_L0;

      /* "cython/core/manifold.pyx":1367
 *                 self.set_peripheral_curves([(1, -d), (0,1)], i)
 *                 cobs.append([[1,d],[0,1]])
 *             if return_matrices:             # <<<<<<<<<<<<<<
 *                 return cobs
 * 
*/
    }

    /* "cython/core/manifold.pyx":1358
 *         self._cache.clear(message='Manifold.set_peripheral_curves')
 * 
 *         if peripheral_data == 'shortest_meridians':             # <<<<<<<<<<<<<<
 *             # For each cusp, replace its current meridian with the
 *             # shortest one possible.
*/
    goto __pyx_L5;
  }

  /* "cython/core/manifold.pyx":1370
 *                 return cobs
 * 
 *         elif peripheral_data == 'shortest_longitudes':             # <<<<<<<<<<<<<<
 *             # For each cusp, replace its current longitude with the
 *             # shortest one possible.
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_peripheral_data, __pyx_mstate_global->__pyx_n_u_shortest_longitudes, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1370, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1373
 *             # For each cusp, replace its current longitude with the
 *             # shortest one possible.
 *             cusps = [which_cusp] if which_cusp else range(self.num_cusps())             # <<<<<<<<<<<<<<
 *             cobs = []
 *             for i in cusps:
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_which_cusp); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1373, __pyx_L1_error)
    if (__pyx_t_1) {
      __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1373, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_which_cusp);
      __Pyx_GIVEREF(__pyx_v_which_cusp);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_v_which_cusp) != (0)) __PYX_ERR(1, 1373, __pyx_L1_error);
      __pyx_t_2 = __pyx_t_5;
      __pyx_t_5 = 0;
    } else {
      __pyx_t_6 = NULL;
      __pyx_t_10 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_10);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL};
        __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1373, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_3};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1373, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __pyx_t_2 = __pyx_t_5;
      __pyx_t_5 = 0;
    }
    __pyx_v_cusps = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1374
 *             # shortest one possible.
 *             cusps = [which_cusp] if which_cusp else range(self.num_cusps())
 *             cobs = []             # <<<<<<<<<<<<<<
 *             for i in cusps:
 *                 d = self.cusp_info(i)['shape'].real().round()
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_cobs = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1375
 *             cusps = [which_cusp] if which_cusp else range(self.num_cusps())
 *             cobs = []
 *             for i in cusps:             # <<<<<<<<<<<<<<
 *                 d = self.cusp_info(i)['shape'].real().round()
 *                 self.set_peripheral_curves([(1, 0), (-d,1)], i)
*/
    if (likely(PyList_CheckExact(__pyx_v_cusps)) || PyTuple_CheckExact(__pyx_v_cusps)) {
      __pyx_t_2 = __pyx_v_cusps; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_cusps); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1375, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1375, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1375, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(1, 1375, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_8));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1375, __pyx_L1_error)
      } else {
        __pyx_t_5 = __pyx_t_9(__pyx_t_2);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 1375, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "cython/core/manifold.pyx":1376
 *             cobs = []
 *             for i in cusps:
 *                 d = self.cusp_info(i)['shape'].real().round()             # <<<<<<<<<<<<<<
 *                 self.set_peripheral_curves([(1, 0), (-d,1)], i)
 *                 cobs.append([[1,0],[d,1]])
*/
      __pyx_t_11 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_11);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_v_i};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1376, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __pyx_t_11 = __Pyx_PyObject_Dict_GetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_shape); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1376, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_10 = __pyx_t_11;
      __Pyx_INCREF(__pyx_t_10);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, NULL};
        __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_real, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1376, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __pyx_t_3 = __pyx_t_6;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_round, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1376, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_5); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1376, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_d = __pyx_t_12;

      /* "cython/core/manifold.pyx":1377
 *             for i in cusps:
 *                 d = self.cusp_info(i)['shape'].real().round()
 *                 self.set_peripheral_curves([(1, 0), (-d,1)], i)             # <<<<<<<<<<<<<<
 *                 cobs.append([[1,0],[d,1]])
 *             if return_matrices:
*/
      __pyx_t_6 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_3 = __Pyx_PyLong_From_int((-__pyx_v_d)); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1377, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1377, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_GIVEREF(__pyx_t_3);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_3) != (0)) __PYX_ERR(1, 1377, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(1, 1377, __pyx_L1_error);
      __pyx_t_3 = 0;
      __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1377, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_tuple[5]);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_mstate_global->__pyx_tuple[5]) != (0)) __PYX_ERR(1, 1377, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_11);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_t_11) != (0)) __PYX_ERR(1, 1377, __pyx_L1_error);
      __pyx_t_11 = 0;
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_t_3, __pyx_v_i};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_peripheral_curves, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1377, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "cython/core/manifold.pyx":1378
 *                 d = self.cusp_info(i)['shape'].real().round()
 *                 self.set_peripheral_curves([(1, 0), (-d,1)], i)
 *                 cobs.append([[1,0],[d,1]])             # <<<<<<<<<<<<<<
 *             if return_matrices:
 *                 return cobs
*/
      __pyx_t_5 = PyList_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1378, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(1, 1378, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 1, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(1, 1378, __pyx_L1_error);
      __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_d); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1378, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1378, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_3);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_3) != (0)) __PYX_ERR(1, 1378, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 1, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(1, 1378, __pyx_L1_error);
      __pyx_t_3 = 0;
      __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1378, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_5);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_5) != (0)) __PYX_ERR(1, 1378, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 1, __pyx_t_6) != (0)) __PYX_ERR(1, 1378, __pyx_L1_error);
      __pyx_t_5 = 0;
      __pyx_t_6 = 0;
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_cobs, __pyx_t_3); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(1, 1378, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/manifold.pyx":1375
 *             cusps = [which_cusp] if which_cusp else range(self.num_cusps())
 *             cobs = []
 *             for i in cusps:             # <<<<<<<<<<<<<<
 *                 d = self.cusp_info(i)['shape'].real().round()
 *                 self.set_peripheral_curves([(1, 0), (-d,1)], i)
*/
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1379
 *                 self.set_peripheral_curves([(1, 0), (-d,1)], i)
 *                 cobs.append([[1,0],[d,1]])
 *             if return_matrices:             # <<<<<<<<<<<<<<
 *                 return cobs
 * 
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_return_matrices); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1379, __pyx_L1_error)
    if (__pyx_t_1) {

      /* "cython/core/manifold.pyx":1380
 *                 cobs.append([[1,0],[d,1]])
 *             if return_matrices:
 *                 return cobs             # <<<<<<<<<<<<<<
 * 
 *         elif peripheral_data == 'shortest':
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_cobs);
      __pyx_r = __pyx_v_cobs;
      goto __pyx_L0;

      /* "cython/core/manifold.pyx":1379
 *                 self.set_peripheral_curves([(1, 0), (-d,1)], i)
 *                 cobs.append([[1,0],[d,1]])
 *             if return_matrices:             # <<<<<<<<<<<<<<
 *                 return cobs
 * 
*/
    }

    /* "cython/core/manifold.pyx":1370
 *                 return cobs
 * 
 *         elif peripheral_data == 'shortest_longitudes':             # <<<<<<<<<<<<<<
 *             # For each cusp, replace its current longitude with the
 *             # shortest one possible.
*/
    goto __pyx_L5;
  }

  /* "cython/core/manifold.pyx":1382
 *                 return cobs
 * 
 *         elif peripheral_data == 'shortest':             # <<<<<<<<<<<<<<
 *             if which_cusp is not None:
 *                 raise ValueError("You must apply 'shortest' to all "
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_peripheral_data, __pyx_mstate_global->__pyx_n_u_shortest, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1382, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1383
 * 
 *         elif peripheral_data == 'shortest':
 *             if which_cusp is not None:             # <<<<<<<<<<<<<<
 *                 raise ValueError("You must apply 'shortest' to all "
 *                                  "of the cusps.")
*/
    __pyx_t_1 = (__pyx_v_which_cusp != Py_None);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/manifold.pyx":1384
 *         elif peripheral_data == 'shortest':
 *             if which_cusp is not None:
 *                 raise ValueError("You must apply 'shortest' to all "             # <<<<<<<<<<<<<<
 *                                  "of the cusps.")
 *             if return_matrices:
*/
      __pyx_t_3 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_You_must_apply_shortest_to_all_o};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1384, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(1, 1384, __pyx_L1_error)

      /* "cython/core/manifold.pyx":1383
 * 
 *         elif peripheral_data == 'shortest':
 *             if which_cusp is not None:             # <<<<<<<<<<<<<<
 *                 raise ValueError("You must apply 'shortest' to all "
 *                                  "of the cusps.")
*/
    }

    /* "cython/core/manifold.pyx":1386
 *                 raise ValueError("You must apply 'shortest' to all "
 *                                  "of the cusps.")
 *             if return_matrices:             # <<<<<<<<<<<<<<
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                                  sizeof(MatrixInt22))
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_return_matrices); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1386, __pyx_L1_error)
    if (__pyx_t_1) {

      /* "cython/core/manifold.pyx":1387
 *                                  "of the cusps.")
 *             if return_matrices:
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *             # <<<<<<<<<<<<<<
 *                                                  sizeof(MatrixInt22))
 *                 install_shortest_with_matrices(self.c_triangulation, matrices)
*/
      __pyx_t_3 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1387, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }

      /* "cython/core/manifold.pyx":1388
 *             if return_matrices:
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                                  sizeof(MatrixInt22))             # <<<<<<<<<<<<<<
 *                 install_shortest_with_matrices(self.c_triangulation, matrices)
 *                 cobs = []
*/
      __pyx_t_3 = __Pyx_PyLong_FromSize_t((sizeof(MatrixInt22))); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1388, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);

      /* "cython/core/manifold.pyx":1387
 *                                  "of the cusps.")
 *             if return_matrices:
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *             # <<<<<<<<<<<<<<
 *                                                  sizeof(MatrixInt22))
 *                 install_shortest_with_matrices(self.c_triangulation, matrices)
*/
      __pyx_t_6 = PyNumber_Multiply(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1387, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_6); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1387, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_v_matrices = ((MatrixInt22 *)malloc(__pyx_t_4));

      /* "cython/core/manifold.pyx":1389
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                                  sizeof(MatrixInt22))
 *                 install_shortest_with_matrices(self.c_triangulation, matrices)             # <<<<<<<<<<<<<<
 *                 cobs = []
 *                 for n in range(self.num_cusps()):
*/
      install_shortest_with_matrices(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_matrices);

      /* "cython/core/manifold.pyx":1390
 *                                                  sizeof(MatrixInt22))
 *                 install_shortest_with_matrices(self.c_triangulation, matrices)
 *                 cobs = []             # <<<<<<<<<<<<<<
 *                 for n in range(self.num_cusps()):
 *                     cobs.append([ [ matrices[n][1][1], -matrices[n][0][1] ],
*/
      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1390, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_v_cobs = ((PyObject*)__pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/manifold.pyx":1391
 *                 install_shortest_with_matrices(self.c_triangulation, matrices)
 *                 cobs = []
 *                 for n in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                     cobs.append([ [ matrices[n][1][1], -matrices[n][0][1] ],
 *                                   [ -matrices[n][1][0], matrices[n][0][0] ] ])
*/
      __pyx_t_3 = NULL;
      __pyx_t_5 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1391, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_2};
        __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1391, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __pyx_t_2 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1391, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1391, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      for (;;) {
        {
          __pyx_t_6 = __pyx_t_9(__pyx_t_2);
          if (unlikely(!__pyx_t_6)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 1391, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_6);
        __pyx_t_6 = 0;

        /* "cython/core/manifold.pyx":1392
 *                 cobs = []
 *                 for n in range(self.num_cusps()):
 *                     cobs.append([ [ matrices[n][1][1], -matrices[n][0][1] ],             # <<<<<<<<<<<<<<
 *                                   [ -matrices[n][1][0], matrices[n][0][0] ] ])
 *                 free(matrices)
*/
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1392, __pyx_L1_error)
        __pyx_t_6 = __Pyx_PyLong_From_int((((__pyx_v_matrices[__pyx_t_8])[1])[1])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1392, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1392, __pyx_L1_error)
        __pyx_t_3 = __Pyx_PyLong_From_int((-(((__pyx_v_matrices[__pyx_t_8])[0])[1]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1392, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_5 = PyList_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1392, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_6) != (0)) __PYX_ERR(1, 1392, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_5, 1, __pyx_t_3) != (0)) __PYX_ERR(1, 1392, __pyx_L1_error);
        __pyx_t_6 = 0;
        __pyx_t_3 = 0;

        /* "cython/core/manifold.pyx":1393
 *                 for n in range(self.num_cusps()):
 *                     cobs.append([ [ matrices[n][1][1], -matrices[n][0][1] ],
 *                                   [ -matrices[n][1][0], matrices[n][0][0] ] ])             # <<<<<<<<<<<<<<
 *                 free(matrices)
 *                 return cobs
*/
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1393, __pyx_L1_error)
        __pyx_t_3 = __Pyx_PyLong_From_int((-(((__pyx_v_matrices[__pyx_t_8])[1])[0]))); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1393, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1393, __pyx_L1_error)
        __pyx_t_6 = __Pyx_PyLong_From_int((((__pyx_v_matrices[__pyx_t_8])[0])[0])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1393, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_11 = PyList_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1393, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_GIVEREF(__pyx_t_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 0, __pyx_t_3) != (0)) __PYX_ERR(1, 1393, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_11, 1, __pyx_t_6) != (0)) __PYX_ERR(1, 1393, __pyx_L1_error);
        __pyx_t_3 = 0;
        __pyx_t_6 = 0;

        /* "cython/core/manifold.pyx":1392
 *                 cobs = []
 *                 for n in range(self.num_cusps()):
 *                     cobs.append([ [ matrices[n][1][1], -matrices[n][0][1] ],             # <<<<<<<<<<<<<<
 *                                   [ -matrices[n][1][0], matrices[n][0][0] ] ])
 *                 free(matrices)
*/
        __pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1392, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_5) != (0)) __PYX_ERR(1, 1392, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_11);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 1, __pyx_t_11) != (0)) __PYX_ERR(1, 1392, __pyx_L1_error);
        __pyx_t_5 = 0;
        __pyx_t_11 = 0;
        __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_cobs, __pyx_t_6); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(1, 1392, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cython/core/manifold.pyx":1391
 *                 install_shortest_with_matrices(self.c_triangulation, matrices)
 *                 cobs = []
 *                 for n in range(self.num_cusps()):             # <<<<<<<<<<<<<<
 *                     cobs.append([ [ matrices[n][1][1], -matrices[n][0][1] ],
 *                                   [ -matrices[n][1][0], matrices[n][0][0] ] ])
*/
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/manifold.pyx":1394
 *                     cobs.append([ [ matrices[n][1][1], -matrices[n][0][1] ],
 *                                   [ -matrices[n][1][0], matrices[n][0][0] ] ])
 *                 free(matrices)             # <<<<<<<<<<<<<<
 *                 return cobs
 *             else:
*/
      free(__pyx_v_matrices);

      /* "cython/core/manifold.pyx":1395
 *                                   [ -matrices[n][1][0], matrices[n][0][0] ] ])
 *                 free(matrices)
 *                 return cobs             # <<<<<<<<<<<<<<
 *             else:
 *                 install_shortest_bases(self.c_triangulation)
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_cobs);
      __pyx_r = __pyx_v_cobs;
      goto __pyx_L0;

      /* "cython/core/manifold.pyx":1386
 *                 raise ValueError("You must apply 'shortest' to all "
 *                                  "of the cusps.")
 *             if return_matrices:             # <<<<<<<<<<<<<<
 *                 matrices = <MatrixInt22 *>malloc(self.num_cusps() *
 *                                                  sizeof(MatrixInt22))
*/
    }

    /* "cython/core/manifold.pyx":1397
 *                 return cobs
 *             else:
 *                 install_shortest_bases(self.c_triangulation)             # <<<<<<<<<<<<<<
 * 
 *         else:
*/
    /*else*/ {
      install_shortest_bases(__pyx_v_self->__pyx_base.c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1397, __pyx_L1_error)
    }

    /* "cython/core/manifold.pyx":1382
 *                 return cobs
 * 
 *         elif peripheral_data == 'shortest':             # <<<<<<<<<<<<<<
 *             if which_cusp is not None:
 *                 raise ValueError("You must apply 'shortest' to all "
*/
    goto __pyx_L5;
  }

  /* "cython/core/manifold.pyx":1400
 * 
 *         else:
 *             return Triangulation.set_peripheral_curves(             # <<<<<<<<<<<<<<
 *                 self, peripheral_data, which_cusp,return_matrices)
 * 
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_6 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation);
    __Pyx_INCREF(__pyx_t_6);

    /* "cython/core/manifold.pyx":1401
 *         else:
 *             return Triangulation.set_peripheral_curves(
 *                 self, peripheral_data, which_cusp,return_matrices)             # <<<<<<<<<<<<<<
 * 
 *     def dual_curves(self, max_segments=6):
*/
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_v_peripheral_data, __pyx_v_which_cusp, __pyx_v_return_matrices};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_peripheral_curves, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1400, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }
  __pyx_L5:;

  /* "cython/core/manifold.pyx":1289
 *         self._cache.clear(message='Manifold.dehn_fill')
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.Manifold.set_peripheral_curves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_cusps);
  __Pyx_XDECREF(__pyx_v_cobs);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_which_cusp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1403
 *                 self, peripheral_data, which_cusp,return_matrices)
 * 
 *     def dual_curves(self, max_segments=6):             # <<<<<<<<<<<<<<
 *         """
 *         Constructs a *reasonable* selection of simple closed curves in
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_67dual_curves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_66dual_curves, "\n        Constructs a *reasonable* selection of simple closed curves in\n        a manifold's dual 1-skeleton.  In particular, it returns those\n        that appear to represent geodesics. The resulting curves can\n        be drilled out.\n\n        >>> M = Manifold('m015')\n        >>> curves = M.dual_curves()\n        >>> curves # doctest: +NUMERIC6\n        [  0: orientation-preserving curve of length 0.56239915 - 2.81543089*I,\n           1: orientation-preserving curve of length 1.12479830 + 0.65232354*I,\n           2: orientation-preserving curve of length 1.26080402 + 1.97804689*I,\n           3: orientation-preserving curve of length 1.58826933 + 1.67347167*I,\n           4: orientation-preserving curve of length 1.68719745 + 2.81543089*I]\n\n        Each curve is returned as an info object with these keys\n\n        >>> sorted(curves[0].keys())\n        ['complete_length', 'filled_length', 'index', 'max_segments', 'parity']\n\n        We can drill out any of these curves to get a new manifold\n        with one more cusp.\n\n        >>> N = M.drill(curves[0])\n        >>> (M.num_cusps(), N.num_cusps())\n        (1, 2)\n\n        By default, this function only finds curves of length 6; this\n        can be changed by specifying the optional argument\n        max_segments\n\n        >>> M.dual_curves(max_segments=2) # doctest: +NUMERIC6\n        [  0: orientation-preserving curve of length 0.56239915 - 2.81543089*I]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_67dual_curves = {"dual_curves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_67dual_curves, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_66dual_curves};
static PyObject *__pyx_pw_6SnapPy_8Manifold_67dual_curves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_max_segments = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dual_curves (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_max_segments,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1403, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1403, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "dual_curves", 0) < (0)) __PYX_ERR(1, 1403, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_6));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1403, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_6));
    }
    __pyx_v_max_segments = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("dual_curves", 0, 0, 1, __pyx_nargs); __PYX_ERR(1, 1403, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.dual_curves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_66dual_curves(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_max_segments);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_66dual_curves(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_max_segments) {
  int __pyx_v_i;
  int __pyx_v_num_curves;
  DualOneSkeletonCurve **__pyx_v_curve_list;
  MatrixParity __pyx_v_parity;
  Complex __pyx_v_complete_length;
  Complex __pyx_v_filled_length;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  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;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dual_curves", 0);

  /* "cython/core/manifold.pyx":1443
 *         cdef Complex complete_length, filled_length
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         dual_curves(self.c_triangulation,
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1444
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         dual_curves(self.c_triangulation,
 *                     max_segments,
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1444, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1444, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1443
 *         cdef Complex complete_length, filled_length
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         dual_curves(self.c_triangulation,
*/
  }

  /* "cython/core/manifold.pyx":1446
 *             raise ValueError('The Triangulation is empty.')
 *         dual_curves(self.c_triangulation,
 *                     max_segments,             # <<<<<<<<<<<<<<
 *                     &num_curves,
 *                     &curve_list)
*/
  __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_v_max_segments); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1446, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1445
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         dual_curves(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                     max_segments,
 *                     &num_curves,
*/
  dual_curves(__pyx_v_self->__pyx_base.c_triangulation, __pyx_t_5, (&__pyx_v_num_curves), (&__pyx_v_curve_list)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1445, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1449
 *                     &num_curves,
 *                     &curve_list)
 *         result = []             # <<<<<<<<<<<<<<
 *         for i from 0 <= i < num_curves:
 *             get_dual_curve_info(
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_result = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1450
 *                     &curve_list)
 *         result = []
 *         for i from 0 <= i < num_curves:             # <<<<<<<<<<<<<<
 *             get_dual_curve_info(
 *                 curve_list[i],
*/
  __pyx_t_5 = __pyx_v_num_curves;
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_5; __pyx_v_i++) {

    /* "cython/core/manifold.pyx":1451
 *         result = []
 *         for i from 0 <= i < num_curves:
 *             get_dual_curve_info(             # <<<<<<<<<<<<<<
 *                 curve_list[i],
 *                 &complete_length,
*/
    get_dual_curve_info((__pyx_v_curve_list[__pyx_v_i]), (&__pyx_v_complete_length), (&__pyx_v_filled_length), (&__pyx_v_parity)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1451, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1458
 *                 )
 *             result.append(
 *                 DualCurveInfo(             # <<<<<<<<<<<<<<
 *                     index=i,
 *                     parity=parity,
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DualCurveInfo); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1458, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);

    /* "cython/core/manifold.pyx":1459
 *             result.append(
 *                 DualCurveInfo(
 *                     index=i,             # <<<<<<<<<<<<<<
 *                     parity=parity,
 *                     filled_length=self._number_(Complex2Number(filled_length)),
*/
    __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_v_i); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1459, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "cython/core/manifold.pyx":1460
 *                 DualCurveInfo(
 *                     index=i,
 *                     parity=parity,             # <<<<<<<<<<<<<<
 *                     filled_length=self._number_(Complex2Number(filled_length)),
 *                     complete_length=self._number_(Complex2Number(complete_length)),
*/
    __pyx_t_8 = __Pyx_PyLong_From_MatrixParity(__pyx_v_parity); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1460, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);

    /* "cython/core/manifold.pyx":1461
 *                     index=i,
 *                     parity=parity,
 *                     filled_length=self._number_(Complex2Number(filled_length)),             # <<<<<<<<<<<<<<
 *                     complete_length=self._number_(Complex2Number(complete_length)),
 *                     max_segments=max_segments
*/
    __pyx_t_10 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_11 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_filled_length); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1461, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_11};
      __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1461, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
    }

    /* "cython/core/manifold.pyx":1462
 *                     parity=parity,
 *                     filled_length=self._number_(Complex2Number(filled_length)),
 *                     complete_length=self._number_(Complex2Number(complete_length)),             # <<<<<<<<<<<<<<
 *                     max_segments=max_segments
 *                   )
*/
    __pyx_t_10 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_12 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_complete_length); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_12};
      __pyx_t_11 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1462, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
    }

    /* "cython/core/manifold.pyx":1463
 *                     filled_length=self._number_(Complex2Number(filled_length)),
 *                     complete_length=self._number_(Complex2Number(complete_length)),
 *                     max_segments=max_segments             # <<<<<<<<<<<<<<
 *                   )
 *                )
*/
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 5 : 0)] = {__pyx_t_3, NULL};
      __pyx_t_12 = __Pyx_MakeVectorcallBuilderKwds(5); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1458, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_index, __pyx_t_7, __pyx_t_12, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 1458, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_parity, __pyx_t_8, __pyx_t_12, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 1458, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_filled_length, __pyx_t_9, __pyx_t_12, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 1458, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_complete_length, __pyx_t_11, __pyx_t_12, __pyx_callargs+1, 3) < (0)) __PYX_ERR(1, 1458, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_max_segments, __pyx_v_max_segments, __pyx_t_12, __pyx_callargs+1, 4) < (0)) __PYX_ERR(1, 1458, __pyx_L1_error)
      __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_12);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1458, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }

    /* "cython/core/manifold.pyx":1457
 *                 &parity
 *                 )
 *             result.append(             # <<<<<<<<<<<<<<
 *                 DualCurveInfo(
 *                     index=i,
*/
    __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_result, __pyx_t_2); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(1, 1457, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }

  /* "cython/core/manifold.pyx":1466
 *                   )
 *                )
 *         free_dual_curves(num_curves, curve_list)             # <<<<<<<<<<<<<<
 *         return ListOnePerLine(result)
 * 
*/
  free_dual_curves(__pyx_v_num_curves, __pyx_v_curve_list); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1466, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1467
 *                )
 *         free_dual_curves(num_curves, curve_list)
 *         return ListOnePerLine(result)             # <<<<<<<<<<<<<<
 * 
 *     def length_spectrum(self,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_ListOnePerLine); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_12))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_12);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_result};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1467, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1403
 *                 self, peripheral_data, which_cusp,return_matrices)
 * 
 *     def dual_curves(self, max_segments=6):             # <<<<<<<<<<<<<<
 *         """
 *         Constructs a *reasonable* selection of simple closed curves in
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __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_AddTraceback("SnapPy.Manifold.dual_curves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1469
 *         return ListOnePerLine(result)
 * 
 *     def length_spectrum(self,             # <<<<<<<<<<<<<<
 *                         cutoff=1.0,
 *                         full_rigor : bool =True,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_69length_spectrum(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_68length_spectrum, "\n        Returns a list of geodesics (with multiplicities) of length\n        up to the specified cutoff value. (The default cutoff is 1.0.)\n\n        Here's a quick example:\n\n        >>> L = Manifold(\"m016\").length_spectrum(0.75, include_words=True)\n        >>> L # doctest: +SKIP\n        mult  length                                  topology     parity word\n        1     0.58460368501799 +  2.49537045556047*I  circle       +      a\n        1     0.72978937305180 +  3.02669828218116*I  circle       +      Bc\n\n        Access just the length:\n\n        >>> L[0].length # doctest: +NUMERIC6\n        0.584603685017987 + 2.495370455560469*I\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_69length_spectrum = {"length_spectrum", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_69length_spectrum, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_68length_spectrum};
static PyObject *__pyx_pw_6SnapPy_8Manifold_69length_spectrum(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_cutoff = 0;
  int __pyx_v_full_rigor;
  int __pyx_v_grouped;
  int __pyx_v_include_words;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("length_spectrum (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cutoff,&__pyx_mstate_global->__pyx_n_u_full_rigor,&__pyx_mstate_global->__pyx_n_u_grouped,&__pyx_mstate_global->__pyx_n_u_include_words,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1469, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(1, 1469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "length_spectrum", 0) < (0)) __PYX_ERR(1, 1469, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_1_0));
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(1, 1469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(1, 1469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1469, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_1_0));
    }
    __pyx_v_cutoff = values[0];
    if (values[1]) {
      __pyx_v_full_rigor = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_full_rigor == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1471, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":1471
 *     def length_spectrum(self,
 *                         cutoff=1.0,
 *                         full_rigor : bool =True,             # <<<<<<<<<<<<<<
 *                         grouped : bool = True,
 *                         include_words : bool = False):
*/
      __pyx_v_full_rigor = ((int)1);
    }
    if (values[2]) {
      __pyx_v_grouped = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_grouped == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1472, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":1472
 *                         cutoff=1.0,
 *                         full_rigor : bool =True,
 *                         grouped : bool = True,             # <<<<<<<<<<<<<<
 *                         include_words : bool = False):
 *         """
*/
      __pyx_v_grouped = ((int)1);
    }
    if (values[3]) {
      __pyx_v_include_words = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_include_words == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1473, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":1473
 *                         full_rigor : bool =True,
 *                         grouped : bool = True,
 *                         include_words : bool = False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of geodesics (with multiplicities) of length
*/
      __pyx_v_include_words = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("length_spectrum", 0, 0, 4, __pyx_nargs); __PYX_ERR(1, 1469, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.length_spectrum", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_68length_spectrum(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_cutoff, __pyx_v_full_rigor, __pyx_v_grouped, __pyx_v_include_words);

  /* "cython/core/manifold.pyx":1469
 *         return ListOnePerLine(result)
 * 
 *     def length_spectrum(self,             # <<<<<<<<<<<<<<
 *                         cutoff=1.0,
 *                         full_rigor : bool =True,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_68length_spectrum(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_cutoff, int __pyx_v_full_rigor, int __pyx_v_grouped, int __pyx_v_include_words) {
  PyObject *__pyx_v_args = NULL;
  PyObject *__pyx_v_D = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  int __pyx_t_8;
  size_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("length_spectrum", 0);

  /* "cython/core/manifold.pyx":1491
 *         0.584603685017987 + 2.495370455560469*I
 *         """
 *         args = (cutoff, full_rigor, grouped, include_words)             # <<<<<<<<<<<<<<
 *         try:
 *             return self._cache.lookup('length_spectrum', *args)
*/
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_full_rigor); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_grouped); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_include_words); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_cutoff);
  __Pyx_GIVEREF(__pyx_v_cutoff);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_cutoff) != (0)) __PYX_ERR(1, 1491, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1) != (0)) __PYX_ERR(1, 1491, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2) != (0)) __PYX_ERR(1, 1491, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_3) != (0)) __PYX_ERR(1, 1491, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_v_args = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/manifold.pyx":1492
 *         """
 *         args = (cutoff, full_rigor, grouped, include_words)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('length_spectrum', *args)
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    /*try:*/ {

      /* "cython/core/manifold.pyx":1493
 *         args = (cutoff, full_rigor, grouped, include_words)
 *         try:
 *             return self._cache.lookup('length_spectrum', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->__pyx_base._cache, __pyx_mstate_global->__pyx_n_u_lookup); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1493, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyNumber_Add(__pyx_mstate_global->__pyx_tuple[21], __pyx_v_args); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1493, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1493, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L7_try_return;

      /* "cython/core/manifold.pyx":1492
 *         """
 *         args = (cutoff, full_rigor, grouped, include_words)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('length_spectrum', *args)
 *         except KeyError:
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/manifold.pyx":1494
 *         try:
 *             return self._cache.lookup('length_spectrum', *args)
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             pass
 *         D = self.dirichlet_domain(include_words = include_words)
*/
    __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_8) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;

    /* "cython/core/manifold.pyx":1492
 *         """
 *         args = (cutoff, full_rigor, grouped, include_words)
 *         try:             # <<<<<<<<<<<<<<
 *             return self._cache.lookup('length_spectrum', *args)
 *         except KeyError:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_6, __pyx_t_7);
  }

  /* "cython/core/manifold.pyx":1496
 *         except KeyError:
 *             pass
 *         D = self.dirichlet_domain(include_words = include_words)             # <<<<<<<<<<<<<<
 *         return self._cache.save(
 *             D.length_spectrum_dicts(
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_include_words); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1496, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_include_words, __pyx_t_4, __pyx_t_1, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 1496, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_dirichlet_domain, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_1);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1496, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_D = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1497
 *             pass
 *         D = self.dirichlet_domain(include_words = include_words)
 *         return self._cache.save(             # <<<<<<<<<<<<<<
 *             D.length_spectrum_dicts(
 *                 cutoff_length = cutoff,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->__pyx_base._cache, __pyx_mstate_global->__pyx_n_u_save); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "cython/core/manifold.pyx":1498
 *         D = self.dirichlet_domain(include_words = include_words)
 *         return self._cache.save(
 *             D.length_spectrum_dicts(             # <<<<<<<<<<<<<<
 *                 cutoff_length = cutoff,
 *                 full_rigor = full_rigor,
*/
  __pyx_t_4 = __pyx_v_D;
  __Pyx_INCREF(__pyx_t_4);

  /* "cython/core/manifold.pyx":1500
 *             D.length_spectrum_dicts(
 *                 cutoff_length = cutoff,
 *                 full_rigor = full_rigor,             # <<<<<<<<<<<<<<
 *                 grouped = grouped),
 *             'length_spectrum',
*/
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_full_rigor); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/manifold.pyx":1501
 *                 cutoff_length = cutoff,
 *                 full_rigor = full_rigor,
 *                 grouped = grouped),             # <<<<<<<<<<<<<<
 *             'length_spectrum',
 *             *args)
*/
  __pyx_t_10 = __Pyx_PyBool_FromLong(__pyx_v_grouped); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_9 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 3 : 0)] = {__pyx_t_4, NULL};
    __pyx_t_11 = __Pyx_MakeVectorcallBuilderKwds(3); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1498, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_cutoff_length, __pyx_v_cutoff, __pyx_t_11, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 1498, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_full_rigor, __pyx_t_3, __pyx_t_11, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 1498, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_grouped, __pyx_t_10, __pyx_t_11, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 1498, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_length_spectrum_dicts, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_11);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1498, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "cython/core/manifold.pyx":1497
 *             pass
 *         D = self.dirichlet_domain(include_words = include_words)
 *         return self._cache.save(             # <<<<<<<<<<<<<<
 *             D.length_spectrum_dicts(
 *                 cutoff_length = cutoff,
*/
  __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_1) != (0)) __PYX_ERR(1, 1497, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_length_spectrum);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_length_spectrum);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_mstate_global->__pyx_n_u_length_spectrum) != (0)) __PYX_ERR(1, 1497, __pyx_L1_error);
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":1503
 *                 grouped = grouped),
 *             'length_spectrum',
 *             *args)             # <<<<<<<<<<<<<<
 * 
 *     def drill(self, which_curve, max_segments=6):
*/
  __pyx_t_1 = PyNumber_Add(__pyx_t_11, __pyx_v_args); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

  /* "cython/core/manifold.pyx":1497
 *             pass
 *         D = self.dirichlet_domain(include_words = include_words)
 *         return self._cache.save(             # <<<<<<<<<<<<<<
 *             D.length_spectrum_dicts(
 *                 cutoff_length = cutoff,
*/
  __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_11;
  __pyx_t_11 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1469
 *         return ListOnePerLine(result)
 * 
 *     def length_spectrum(self,             # <<<<<<<<<<<<<<
 *                         cutoff=1.0,
 *                         full_rigor : bool =True,
*/

  /* function exit code */
  __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_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.Manifold.length_spectrum", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_D);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1505
 *             *args)
 * 
 *     def drill(self, which_curve, max_segments=6):             # <<<<<<<<<<<<<<
 *         """
 *         Drills out the specified dual curve from among all dual curves
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_71drill(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_70drill, "\n        Drills out the specified dual curve from among all dual curves\n        with at most max_segments, which defaults to 6. The method\n        dual_curve allows one to see the properties of curves before\n        choosing which one to drill out.\n\n        >>> M = Manifold('v3000')\n        >>> N = M.drill(0, max_segments=3)\n        >>> (M.num_cusps(), N.num_cusps())\n        (1, 2)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_71drill = {"drill", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_71drill, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_70drill};
static PyObject *__pyx_pw_6SnapPy_8Manifold_71drill(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_curve = 0;
  PyObject *__pyx_v_max_segments = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("drill (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_curve,&__pyx_mstate_global->__pyx_n_u_max_segments,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1505, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1505, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1505, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "drill", 0) < (0)) __PYX_ERR(1, 1505, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_6));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("drill", 0, 1, 2, i); __PYX_ERR(1, 1505, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1505, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1505, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_6));
    }
    __pyx_v_which_curve = values[0];
    __pyx_v_max_segments = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("drill", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 1505, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.drill", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_70drill(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_which_curve, __pyx_v_max_segments);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_70drill(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_which_curve, PyObject *__pyx_v_max_segments) {
  int __pyx_v_num_curves;
  DualOneSkeletonCurve **__pyx_v_curve_list;
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_result = 0;
  char *__pyx_v_c_new_name;
  PyObject *__pyx_v_new_name = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  char *__pyx_t_9;
  int __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  Triangulation *__pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("drill", 0);
  __Pyx_INCREF(__pyx_v_which_curve);
  __Pyx_INCREF(__pyx_v_max_segments);

  /* "cython/core/manifold.pyx":1524
 *         cdef char* c_new_name
 * 
 *         if isinstance(which_curve, DualCurveInfo):             # <<<<<<<<<<<<<<
 *             max_segments = which_curve.max_segments
 *             which_curve = which_curve.index
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_DualCurveInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1524, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_which_curve, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(1, 1524, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/manifold.pyx":1525
 * 
 *         if isinstance(which_curve, DualCurveInfo):
 *             max_segments = which_curve.max_segments             # <<<<<<<<<<<<<<
 *             which_curve = which_curve.index
 * 
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_which_curve, __pyx_mstate_global->__pyx_n_u_max_segments); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_max_segments, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":1526
 *         if isinstance(which_curve, DualCurveInfo):
 *             max_segments = which_curve.max_segments
 *             which_curve = which_curve.index             # <<<<<<<<<<<<<<
 * 
 *         new_name = to_byte_str(self.name() + '-%d' % which_curve)
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_which_curve, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_which_curve, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":1524
 *         cdef char* c_new_name
 * 
 *         if isinstance(which_curve, DualCurveInfo):             # <<<<<<<<<<<<<<
 *             max_segments = which_curve.max_segments
 *             which_curve = which_curve.index
*/
  }

  /* "cython/core/manifold.pyx":1528
 *             which_curve = which_curve.index
 * 
 *         new_name = to_byte_str(self.name() + '-%d' % which_curve)             # <<<<<<<<<<<<<<
 *         c_new_name = new_name
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d_4, __pyx_v_which_curve); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = PyNumber_Add(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_new_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":1529
 * 
 *         new_name = to_byte_str(self.name() + '-%d' % which_curve)
 *         c_new_name = new_name             # <<<<<<<<<<<<<<
 * 
 *         dual_curves(self.c_triangulation,
*/
  __pyx_t_9 = __Pyx_PyObject_AsWritableString(__pyx_v_new_name); if (unlikely((!__pyx_t_9) && PyErr_Occurred())) __PYX_ERR(1, 1529, __pyx_L1_error)
  __pyx_v_c_new_name = __pyx_t_9;

  /* "cython/core/manifold.pyx":1532
 * 
 *         dual_curves(self.c_triangulation,
 *                     max_segments,             # <<<<<<<<<<<<<<
 *                     &num_curves,
 *                     &curve_list)
*/
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_max_segments); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1532, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1531
 *         c_new_name = new_name
 * 
 *         dual_curves(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                     max_segments,
 *                     &num_curves,
*/
  dual_curves(__pyx_v_self->__pyx_base.c_triangulation, __pyx_t_10, (&__pyx_v_num_curves), (&__pyx_v_curve_list)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1531, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1536
 *                     &curve_list)
 * 
 *         if which_curve not in range(num_curves):             # <<<<<<<<<<<<<<
 *             raise IndexError('The drilling curve requested is not '
 *                              'in range(%d).' % num_curves)
*/
  __pyx_t_4 = NULL;
  __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_v_num_curves); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_which_curve, __pyx_t_1, Py_NE)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(1, 1536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/manifold.pyx":1537
 * 
 *         if which_curve not in range(num_curves):
 *             raise IndexError('The drilling curve requested is not '             # <<<<<<<<<<<<<<
 *                              'in range(%d).' % num_curves)
 * 
*/
    __pyx_t_8 = NULL;

    /* "cython/core/manifold.pyx":1538
 *         if which_curve not in range(num_curves):
 *             raise IndexError('The drilling curve requested is not '
 *                              'in range(%d).' % num_curves)             # <<<<<<<<<<<<<<
 * 
 *         c_triangulation = drill_cusp(self.c_triangulation,
*/
    __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_num_curves); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_The_drilling_curve_requested_is, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1537, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 1537, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1536
 *                     &curve_list)
 * 
 *         if which_curve not in range(num_curves):             # <<<<<<<<<<<<<<
 *             raise IndexError('The drilling curve requested is not '
 *                              'in range(%d).' % num_curves)
*/
  }

  /* "cython/core/manifold.pyx":1541
 * 
 *         c_triangulation = drill_cusp(self.c_triangulation,
 *                                      curve_list[which_curve],             # <<<<<<<<<<<<<<
 *                                      c_new_name)
 *         free_dual_curves(num_curves, curve_list)
*/
  __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_which_curve); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 1541, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1540
 *                              'in range(%d).' % num_curves)
 * 
 *         c_triangulation = drill_cusp(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                      curve_list[which_curve],
 *                                      c_new_name)
*/
  __pyx_t_12 = drill_cusp(__pyx_v_self->__pyx_base.c_triangulation, (__pyx_v_curve_list[__pyx_t_11]), __pyx_v_c_new_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1540, __pyx_L1_error)
  __pyx_v_c_triangulation = __pyx_t_12;

  /* "cython/core/manifold.pyx":1543
 *                                      curve_list[which_curve],
 *                                      c_new_name)
 *         free_dual_curves(num_curves, curve_list)             # <<<<<<<<<<<<<<
 * 
 *         if c_triangulation == NULL:
*/
  free_dual_curves(__pyx_v_num_curves, __pyx_v_curve_list); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1543, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1545
 *         free_dual_curves(num_curves, curve_list)
 * 
 *         if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The curve is not isotopic to a geodesic.')
 *         else:
*/
  __pyx_t_2 = (__pyx_v_c_triangulation == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/manifold.pyx":1546
 * 
 *         if c_triangulation == NULL:
 *             raise RuntimeError('The curve is not isotopic to a geodesic.')             # <<<<<<<<<<<<<<
 *         else:
 *             result = self.__class__('empty')
*/
    __pyx_t_3 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_curve_is_not_isotopic_to_a_g};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1546, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(1, 1546, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1545
 *         free_dual_curves(num_curves, curve_list)
 * 
 *         if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The curve is not isotopic to a geodesic.')
 *         else:
*/
  }

  /* "cython/core/manifold.pyx":1548
 *             raise RuntimeError('The curve is not isotopic to a geodesic.')
 *         else:
 *             result = self.__class__('empty')             # <<<<<<<<<<<<<<
 *             result.set_c_triangulation(c_triangulation)
 *             return result
*/
  /*else*/ {
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1548, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(1, 1548, __pyx_L1_error)
    __pyx_v_result = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":1549
 *         else:
 *             result = self.__class__('empty')
 *             result.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *             return result
 * 
*/
    __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_result->__pyx_vtab)->set_c_triangulation(__pyx_v_result, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":1550
 *             result = self.__class__('empty')
 *             result.set_c_triangulation(c_triangulation)
 *             return result             # <<<<<<<<<<<<<<
 * 
 *     def _is_isometric_to(self,
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_result);
    __pyx_r = ((PyObject *)__pyx_v_result);
    goto __pyx_L0;
  }

  /* "cython/core/manifold.pyx":1505
 *             *args)
 * 
 *     def drill(self, which_curve, max_segments=6):             # <<<<<<<<<<<<<<
 *         """
 *         Drills out the specified dual curve from among all dual curves
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.Manifold.drill", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_new_name);
  __Pyx_XDECREF(__pyx_v_which_curve);
  __Pyx_XDECREF(__pyx_v_max_segments);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1552
 *             return result
 * 
 *     def _is_isometric_to(self,             # <<<<<<<<<<<<<<
 *                          Manifold other,
 *                          return_isometries : bool = False):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_73_is_isometric_to(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_72_is_isometric_to, "\n        Returns ``True`` if M and N are isometric, ``False`` if they not.\n        A ``RuntimeError`` is raised in cases where the SnapPea kernel fails\n        to determine either answer.  (This is fairly common for closed\n        manifolds.)\n\n        >>> M = Manifold('m004')\n        >>> N = Manifold('4_1')\n        >>> K = Manifold('5_2')\n        >>> M.is_isometric_to(N)\n        True\n        >>> N.is_isometric_to(K)\n        False\n\n        We can also get a complete list of isometries between the two\n        manifolds:\n\n        >>> M = Manifold('5^2_1')  # The Whitehead link\n        >>> N = Manifold('m129')\n        >>> isoms = M.is_isometric_to(N, return_isometries = True)\n        >>> isoms[6]  # Includes action on cusps\n        0 -> 1  1 -> 0\n        [1  2]  [-1 -2]\n        [0 -1]  [ 0  1]\n        Extends to link\n\n        Each transformation between cusps is given by a matrix which\n        acts on the left.  That is, the two *columns* of the matrix\n        give the image of the meridian and longitude respectively.  In\n        the above example, the meridian of cusp 0 is sent to the\n        meridian of cusp 1.\n\n        Note: The answer ``True`` is rigorous, but the answer ``False`` may\n        not be as there could be numerical errors resulting in finding\n        an incorrect canonical triangulation.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_73_is_isometric_to = {"_is_isometric_to", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_73_is_isometric_to, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_72_is_isometric_to};
static PyObject *__pyx_pw_6SnapPy_8Manifold_73_is_isometric_to(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_other = 0;
  int __pyx_v_return_isometries;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_is_isometric_to (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,&__pyx_mstate_global->__pyx_n_u_return_isometries,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1552, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1552, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1552, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_is_isometric_to", 0) < (0)) __PYX_ERR(1, 1552, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_is_isometric_to", 0, 1, 2, i); __PYX_ERR(1, 1552, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1552, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1552, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_other = ((struct __pyx_obj_6SnapPy_Manifold *)values[0]);
    if (values[1]) {
      __pyx_v_return_isometries = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_return_isometries == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1554, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":1554
 *     def _is_isometric_to(self,
 *                          Manifold other,
 *                          return_isometries : bool = False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns ``True`` if M and N are isometric, ``False`` if they not.
*/
      __pyx_v_return_isometries = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_is_isometric_to", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 1552, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._is_isometric_to", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, 1, "other", 0))) __PYX_ERR(1, 1553, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_72_is_isometric_to(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_other, __pyx_v_return_isometries);

  /* "cython/core/manifold.pyx":1552
 *             return result
 * 
 *     def _is_isometric_to(self,             # <<<<<<<<<<<<<<
 *                          Manifold other,
 *                          return_isometries : bool = False):
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_72_is_isometric_to(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_other, int __pyx_v_return_isometries) {
  Boolean __pyx_v_are_isometric;
  FuncResult __pyx_v_result;
  IsometryList *__pyx_v_isometries;
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  FuncResult __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_is_isometric_to", 0);

  /* "cython/core/manifold.pyx":1593
 *         cdef Boolean are_isometric
 *         cdef c_FuncResult result
 *         cdef IsometryList *isometries = NULL             # <<<<<<<<<<<<<<
 * 
 *         if self.c_triangulation is NULL or other.c_triangulation is NULL:
*/
  __pyx_v_isometries = NULL;

  /* "cython/core/manifold.pyx":1595
 *         cdef IsometryList *isometries = NULL
 * 
 *         if self.c_triangulation is NULL or other.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('Manifolds must be non-empty.')
 * 
*/
  __pyx_t_2 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_other->__pyx_base.c_triangulation == NULL);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1596
 * 
 *         if self.c_triangulation is NULL or other.c_triangulation is NULL:
 *             raise ValueError('Manifolds must be non-empty.')             # <<<<<<<<<<<<<<
 * 
 *         try:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Manifolds_must_be_non_empty};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1596, __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_ERR(1, 1596, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1595
 *         cdef IsometryList *isometries = NULL
 * 
 *         if self.c_triangulation is NULL or other.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('Manifolds must be non-empty.')
 * 
*/
  }

  /* "cython/core/manifold.pyx":1598
 *             raise ValueError('Manifolds must be non-empty.')
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             if self.homology() != other.homology():
 *                 if return_isometries:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cython/core/manifold.pyx":1599
 * 
 *         try:
 *             if self.homology() != other.homology():             # <<<<<<<<<<<<<<
 *                 if return_isometries:
 *                     return []
*/
      __pyx_t_4 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_homology, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1599, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_9 = ((PyObject *)__pyx_v_other);
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_homology, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1599, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __pyx_t_9 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1599, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1599, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (__pyx_t_1) {

        /* "cython/core/manifold.pyx":1600
 *         try:
 *             if self.homology() != other.homology():
 *                 if return_isometries:             # <<<<<<<<<<<<<<
 *                     return []
 *                 else:
*/
        if (__pyx_v_return_isometries) {

          /* "cython/core/manifold.pyx":1601
 *             if self.homology() != other.homology():
 *                 if return_isometries:
 *                     return []             # <<<<<<<<<<<<<<
 *                 else:
 *                     return False
*/
          __Pyx_XDECREF(__pyx_r);
          __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1601, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_r = __pyx_t_9;
          __pyx_t_9 = 0;
          goto __pyx_L10_try_return;

          /* "cython/core/manifold.pyx":1600
 *         try:
 *             if self.homology() != other.homology():
 *                 if return_isometries:             # <<<<<<<<<<<<<<
 *                     return []
 *                 else:
*/
        }

        /* "cython/core/manifold.pyx":1603
 *                     return []
 *                 else:
 *                     return False             # <<<<<<<<<<<<<<
 *         except ValueError:
 *             pass
*/
        /*else*/ {
          __Pyx_XDECREF(__pyx_r);
          __Pyx_INCREF(Py_False);
          __pyx_r = Py_False;
          goto __pyx_L10_try_return;
        }

        /* "cython/core/manifold.pyx":1599
 * 
 *         try:
 *             if self.homology() != other.homology():             # <<<<<<<<<<<<<<
 *                 if return_isometries:
 *                     return []
*/
      }

      /* "cython/core/manifold.pyx":1598
 *             raise ValueError('Manifolds must be non-empty.')
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             if self.homology() != other.homology():
 *                 if return_isometries:
*/
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L11_try_end;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/manifold.pyx":1604
 *                 else:
 *                     return False
 *         except ValueError:             # <<<<<<<<<<<<<<
 *             pass
 * 
*/
    __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
    if (__pyx_t_10) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L7_exception_handled;
    }
    goto __pyx_L8_except_error;

    /* "cython/core/manifold.pyx":1598
 *             raise ValueError('Manifolds must be non-empty.')
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             if self.homology() != other.homology():
 *                 if return_isometries:
*/
    __pyx_L8_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L10_try_return:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L0;
    __pyx_L7_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    __pyx_L11_try_end:;
  }

  /* "cython/core/manifold.pyx":1607
 *             pass
 * 
 *         if return_isometries:             # <<<<<<<<<<<<<<
 *             result = compute_isometries(self.c_triangulation,
 *                                         other.c_triangulation,
*/
  if (__pyx_v_return_isometries) {

    /* "cython/core/manifold.pyx":1608
 * 
 *         if return_isometries:
 *             result = compute_isometries(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                         other.c_triangulation,
 *                                         &are_isometric,
*/
    __pyx_t_11 = compute_isometries(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_other->__pyx_base.c_triangulation, (&__pyx_v_are_isometric), (&__pyx_v_isometries), NULL); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1608, __pyx_L1_error)
    __pyx_v_result = __pyx_t_11;

    /* "cython/core/manifold.pyx":1607
 *             pass
 * 
 *         if return_isometries:             # <<<<<<<<<<<<<<
 *             result = compute_isometries(self.c_triangulation,
 *                                         other.c_triangulation,
*/
    goto __pyx_L16;
  }

  /* "cython/core/manifold.pyx":1613
 *                                         &isometries, NULL)
 *         else:
 *             result = compute_isometries(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                         other.c_triangulation,
 *                                         &are_isometric, NULL, NULL)
*/
  /*else*/ {

    /* "cython/core/manifold.pyx":1615
 *             result = compute_isometries(self.c_triangulation,
 *                                         other.c_triangulation,
 *                                         &are_isometric, NULL, NULL)             # <<<<<<<<<<<<<<
 * 
 *         if FuncResult[result] == 'func_bad_input':
*/
    __pyx_t_11 = compute_isometries(__pyx_v_self->__pyx_base.c_triangulation, __pyx_v_other->__pyx_base.c_triangulation, (&__pyx_v_are_isometric), NULL, NULL); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1613, __pyx_L1_error)
    __pyx_v_result = __pyx_t_11;
  }
  __pyx_L16:;

  /* "cython/core/manifold.pyx":1617
 *                                         &are_isometric, NULL, NULL)
 * 
 *         if FuncResult[result] == 'func_bad_input':             # <<<<<<<<<<<<<<
 *             raise ValueError('The Dehn filling coefficients must be '
 *                              'relatively prime integers.')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_FuncResult); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_4 = __Pyx_PyLong_From_FuncResult(__pyx_v_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_9, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_func_bad_input, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1617, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1618
 * 
 *         if FuncResult[result] == 'func_bad_input':
 *             raise ValueError('The Dehn filling coefficients must be '             # <<<<<<<<<<<<<<
 *                              'relatively prime integers.')
 * 
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_Dehn_filling_coefficients_mu};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1618, __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_ERR(1, 1618, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1617
 *                                         &are_isometric, NULL, NULL)
 * 
 *         if FuncResult[result] == 'func_bad_input':             # <<<<<<<<<<<<<<
 *             raise ValueError('The Dehn filling coefficients must be '
 *                              'relatively prime integers.')
*/
  }

  /* "cython/core/manifold.pyx":1621
 *                              'relatively prime integers.')
 * 
 *         if FuncResult[result] == 'func_failed':             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The SnapPea kernel was not able to '
 *                                'determine if the manifolds are isometric.')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_FuncResult); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_FuncResult(__pyx_v_result); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_func_failed, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1621, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1622
 * 
 *         if FuncResult[result] == 'func_failed':
 *             raise RuntimeError('The SnapPea kernel was not able to '             # <<<<<<<<<<<<<<
 *                                'determine if the manifolds are isometric.')
 * 
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_SnapPea_kernel_was_not_able};
      __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1622, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
    }
    __Pyx_Raise(__pyx_t_9, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __PYX_ERR(1, 1622, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1621
 *                              'relatively prime integers.')
 * 
 *         if FuncResult[result] == 'func_failed':             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The SnapPea kernel was not able to '
 *                                'determine if the manifolds are isometric.')
*/
  }

  /* "cython/core/manifold.pyx":1625
 *                                'determine if the manifolds are isometric.')
 * 
 *         ans = bool(are_isometric)             # <<<<<<<<<<<<<<
 * 
 *         if return_isometries:
*/
  __pyx_t_9 = __Pyx_PyBool_FromLong((!(!(__pyx_v_are_isometric != 0)))); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_v_ans = __pyx_t_9;
  __pyx_t_9 = 0;

  /* "cython/core/manifold.pyx":1627
 *         ans = bool(are_isometric)
 * 
 *         if return_isometries:             # <<<<<<<<<<<<<<
 *             if not ans:
 *                 return []
*/
  if (__pyx_v_return_isometries) {

    /* "cython/core/manifold.pyx":1628
 * 
 *         if return_isometries:
 *             if not ans:             # <<<<<<<<<<<<<<
 *                 return []
 *             else:
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_ans); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1628, __pyx_L1_error)
    __pyx_t_2 = (!__pyx_t_1);
    if (__pyx_t_2) {

      /* "cython/core/manifold.pyx":1629
 *         if return_isometries:
 *             if not ans:
 *                 return []             # <<<<<<<<<<<<<<
 *             else:
 *                 if isometries is NULL:  # means manifold is closed
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1629, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_r = __pyx_t_9;
      __pyx_t_9 = 0;
      goto __pyx_L0;

      /* "cython/core/manifold.pyx":1628
 * 
 *         if return_isometries:
 *             if not ans:             # <<<<<<<<<<<<<<
 *                 return []
 *             else:
*/
    }

    /* "cython/core/manifold.pyx":1631
 *                 return []
 *             else:
 *                 if isometries is NULL:  # means manifold is closed             # <<<<<<<<<<<<<<
 *                     raise ValueError("Can't get the list of isometries for closed manifolds")
 *                 ans = IsometryListToIsometries(isometries)
*/
    /*else*/ {
      __pyx_t_2 = (__pyx_v_isometries == NULL);
      if (unlikely(__pyx_t_2)) {

        /* "cython/core/manifold.pyx":1632
 *             else:
 *                 if isometries is NULL:  # means manifold is closed
 *                     raise ValueError("Can't get the list of isometries for closed manifolds")             # <<<<<<<<<<<<<<
 *                 ans = IsometryListToIsometries(isometries)
 *                 free_isometry_list(isometries)
*/
        __pyx_t_4 = NULL;
        __pyx_t_5 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Can_t_get_the_list_of_isometries};
          __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1632, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
        }
        __Pyx_Raise(__pyx_t_9, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __PYX_ERR(1, 1632, __pyx_L1_error)

        /* "cython/core/manifold.pyx":1631
 *                 return []
 *             else:
 *                 if isometries is NULL:  # means manifold is closed             # <<<<<<<<<<<<<<
 *                     raise ValueError("Can't get the list of isometries for closed manifolds")
 *                 ans = IsometryListToIsometries(isometries)
*/
      }

      /* "cython/core/manifold.pyx":1633
 *                 if isometries is NULL:  # means manifold is closed
 *                     raise ValueError("Can't get the list of isometries for closed manifolds")
 *                 ans = IsometryListToIsometries(isometries)             # <<<<<<<<<<<<<<
 *                 free_isometry_list(isometries)
 * 
*/
      __pyx_t_9 = __pyx_f_6SnapPy_IsometryListToIsometries(__pyx_v_isometries); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1633, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF_SET(__pyx_v_ans, __pyx_t_9);
      __pyx_t_9 = 0;

      /* "cython/core/manifold.pyx":1634
 *                     raise ValueError("Can't get the list of isometries for closed manifolds")
 *                 ans = IsometryListToIsometries(isometries)
 *                 free_isometry_list(isometries)             # <<<<<<<<<<<<<<
 * 
 *         return ans
*/
      free_isometry_list(__pyx_v_isometries); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1634, __pyx_L1_error)
    }

    /* "cython/core/manifold.pyx":1627
 *         ans = bool(are_isometric)
 * 
 *         if return_isometries:             # <<<<<<<<<<<<<<
 *             if not ans:
 *                 return []
*/
  }

  /* "cython/core/manifold.pyx":1636
 *                 free_isometry_list(isometries)
 * 
 *         return ans             # <<<<<<<<<<<<<<
 * 
 *     def is_isometric_to(self,
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1552
 *             return result
 * 
 *     def _is_isometric_to(self,             # <<<<<<<<<<<<<<
 *                          Manifold other,
 *                          return_isometries : bool = False):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.Manifold._is_isometric_to", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1638
 *         return ans
 * 
 *     def is_isometric_to(self,             # <<<<<<<<<<<<<<
 *                         Manifold other,
 *                         return_isometries : bool = False):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_75is_isometric_to(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_74is_isometric_to, "\n        This is only here to make the tests that use SnapPy.Manifold work.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_75is_isometric_to = {"is_isometric_to", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_75is_isometric_to, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_74is_isometric_to};
static PyObject *__pyx_pw_6SnapPy_8Manifold_75is_isometric_to(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_other = 0;
  int __pyx_v_return_isometries;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_isometric_to (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_other,&__pyx_mstate_global->__pyx_n_u_return_isometries,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1638, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1638, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1638, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "is_isometric_to", 0) < (0)) __PYX_ERR(1, 1638, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("is_isometric_to", 0, 1, 2, i); __PYX_ERR(1, 1638, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1638, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1638, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_other = ((struct __pyx_obj_6SnapPy_Manifold *)values[0]);
    if (values[1]) {
      __pyx_v_return_isometries = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_return_isometries == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1640, __pyx_L3_error)
    } else {

      /* "cython/core/manifold.pyx":1640
 *     def is_isometric_to(self,
 *                         Manifold other,
 *                         return_isometries : bool = False):             # <<<<<<<<<<<<<<
 *         """
 *         This is only here to make the tests that use SnapPy.Manifold work.
*/
      __pyx_v_return_isometries = ((int)0);
    }
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("is_isometric_to", 0, 1, 2, __pyx_nargs); __PYX_ERR(1, 1638, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.is_isometric_to", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, 1, "other", 0))) __PYX_ERR(1, 1639, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_74is_isometric_to(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_other, __pyx_v_return_isometries);

  /* "cython/core/manifold.pyx":1638
 *         return ans
 * 
 *     def is_isometric_to(self,             # <<<<<<<<<<<<<<
 *                         Manifold other,
 *                         return_isometries : bool = False):
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_74is_isometric_to(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_other, int __pyx_v_return_isometries) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_isometric_to", 0);

  /* "cython/core/manifold.pyx":1644
 *         This is only here to make the tests that use SnapPy.Manifold work.
 *         """
 *         return self._is_isometric_to(             # <<<<<<<<<<<<<<
 *             other, return_isometries = return_isometries)
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);

  /* "cython/core/manifold.pyx":1645
 *         """
 *         return self._is_isometric_to(
 *             other, return_isometries = return_isometries)             # <<<<<<<<<<<<<<
 * 
 *     def is_two_bridge(self) -> bool:
*/
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_v_return_isometries); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, ((PyObject *)__pyx_v_other)};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_return_isometries, __pyx_t_3, __pyx_t_5, __pyx_callargs+2, 0) < (0)) __PYX_ERR(1, 1644, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_is_isometric_to, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1638
 *         return ans
 * 
 *     def is_isometric_to(self,             # <<<<<<<<<<<<<<
 *                         Manifold other,
 *                         return_isometries : bool = False):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.Manifold.is_isometric_to", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1647
 *             other, return_isometries = return_isometries)
 * 
 *     def is_two_bridge(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         If the manifold is the complement of a two-bridge knot or link
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_77is_two_bridge(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_76is_two_bridge, "\n        If the manifold is the complement of a two-bridge knot or link\n        in :math:`S^3`, then this method returns :math:`(p,q)` where\n        :math:`p/q` is the fraction describing the link.\n        Otherwise, returns ``False``.\n\n        >>> M = Manifold('m004')\n        >>> M.is_two_bridge()\n        (2, 5)\n        >>> M = Manifold('m016')\n        >>> M.is_two_bridge()\n        False\n\n        Note: An answer of ``True`` is rigorous, but not the answer\n        ``False``, as there could be numerical errors resulting in\n        finding an incorrect canonical triangulation.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_77is_two_bridge = {"is_two_bridge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_77is_two_bridge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_76is_two_bridge};
static PyObject *__pyx_pw_6SnapPy_8Manifold_77is_two_bridge(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_two_bridge (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_two_bridge", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_two_bridge", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_76is_two_bridge(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_76is_two_bridge(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  Boolean __pyx_v_is_two_bridge;
  long __pyx_v_p;
  long __pyx_v_q;
  Triangulation *__pyx_v_c_canonized_triangulation;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_two_bridge", 0);

  /* "cython/core/manifold.pyx":1669
 *         cdef c_Triangulation *c_canonized_triangulation
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return False
 * 
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1670
 * 
 *         if self.c_triangulation is NULL:
 *             return False             # <<<<<<<<<<<<<<
 * 
 *         copy_triangulation(self.c_triangulation, &c_canonized_triangulation)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":1669
 *         cdef c_Triangulation *c_canonized_triangulation
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             return False
 * 
*/
  }

  /* "cython/core/manifold.pyx":1672
 *             return False
 * 
 *         copy_triangulation(self.c_triangulation, &c_canonized_triangulation)             # <<<<<<<<<<<<<<
 *         proto_canonize(c_canonized_triangulation)
 *         two_bridge(c_canonized_triangulation, &is_two_bridge, &p, &q)
*/
  copy_triangulation(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_c_canonized_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1672, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1673
 * 
 *         copy_triangulation(self.c_triangulation, &c_canonized_triangulation)
 *         proto_canonize(c_canonized_triangulation)             # <<<<<<<<<<<<<<
 *         two_bridge(c_canonized_triangulation, &is_two_bridge, &p, &q)
 *         free_triangulation(c_canonized_triangulation)
*/
  proto_canonize(__pyx_v_c_canonized_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1673, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1674
 *         copy_triangulation(self.c_triangulation, &c_canonized_triangulation)
 *         proto_canonize(c_canonized_triangulation)
 *         two_bridge(c_canonized_triangulation, &is_two_bridge, &p, &q)             # <<<<<<<<<<<<<<
 *         free_triangulation(c_canonized_triangulation)
 *         if is_two_bridge:
*/
  two_bridge(__pyx_v_c_canonized_triangulation, (&__pyx_v_is_two_bridge), (&__pyx_v_p), (&__pyx_v_q)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1674, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1675
 *         proto_canonize(c_canonized_triangulation)
 *         two_bridge(c_canonized_triangulation, &is_two_bridge, &p, &q)
 *         free_triangulation(c_canonized_triangulation)             # <<<<<<<<<<<<<<
 *         if is_two_bridge:
 *             return (p,q)
*/
  free_triangulation(__pyx_v_c_canonized_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1675, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1676
 *         two_bridge(c_canonized_triangulation, &is_two_bridge, &p, &q)
 *         free_triangulation(c_canonized_triangulation)
 *         if is_two_bridge:             # <<<<<<<<<<<<<<
 *             return (p,q)
 *         else:
*/
  __pyx_t_1 = (__pyx_v_is_two_bridge != 0);
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1677
 *         free_triangulation(c_canonized_triangulation)
 *         if is_two_bridge:
 *             return (p,q)             # <<<<<<<<<<<<<<
 *         else:
 *             return False
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyLong_From_long(__pyx_v_p); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyLong_From_long(__pyx_v_q); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2) != (0)) __PYX_ERR(1, 1677, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3) != (0)) __PYX_ERR(1, 1677, __pyx_L1_error);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "cython/core/manifold.pyx":1676
 *         two_bridge(c_canonized_triangulation, &is_two_bridge, &p, &q)
 *         free_triangulation(c_canonized_triangulation)
 *         if is_two_bridge:             # <<<<<<<<<<<<<<
 *             return (p,q)
 *         else:
*/
  }

  /* "cython/core/manifold.pyx":1679
 *             return (p,q)
 *         else:
 *             return False             # <<<<<<<<<<<<<<
 * 
 *     def _choose_generators(self, compute_corners, centroid_at_origin):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;
  }

  /* "cython/core/manifold.pyx":1647
 *             other, return_isometries = return_isometries)
 * 
 *     def is_two_bridge(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         If the manifold is the complement of a two-bridge knot or link
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.Manifold.is_two_bridge", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1681
 *             return False
 * 
 *     def _choose_generators(self, compute_corners, centroid_at_origin):             # <<<<<<<<<<<<<<
 *         choose_generators(self.c_triangulation,
 *                           compute_corners,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_79_choose_generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_79_choose_generators = {"_choose_generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_79_choose_generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Manifold_79_choose_generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_compute_corners = 0;
  PyObject *__pyx_v_centroid_at_origin = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_choose_generators (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_compute_corners,&__pyx_mstate_global->__pyx_n_u_centroid_at_origin,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1681, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1681, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1681, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_choose_generators", 0) < (0)) __PYX_ERR(1, 1681, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_choose_generators", 1, 2, 2, i); __PYX_ERR(1, 1681, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1681, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(1, 1681, __pyx_L3_error)
    }
    __pyx_v_compute_corners = values[0];
    __pyx_v_centroid_at_origin = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_choose_generators", 1, 2, 2, __pyx_nargs); __PYX_ERR(1, 1681, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._choose_generators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_78_choose_generators(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_compute_corners, __pyx_v_centroid_at_origin);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_78_choose_generators(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_compute_corners, PyObject *__pyx_v_centroid_at_origin) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  Boolean __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_choose_generators", 0);

  /* "cython/core/manifold.pyx":1683
 *     def _choose_generators(self, compute_corners, centroid_at_origin):
 *         choose_generators(self.c_triangulation,
 *                           compute_corners,             # <<<<<<<<<<<<<<
 *                           centroid_at_origin)
 * 
*/
  __pyx_t_1 = __Pyx_PyLong_As_Boolean(__pyx_v_compute_corners); if (unlikely((__pyx_t_1 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(1, 1683, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1684
 *         choose_generators(self.c_triangulation,
 *                           compute_corners,
 *                           centroid_at_origin)             # <<<<<<<<<<<<<<
 * 
 *     def _choose_generators_info(self):
*/
  __pyx_t_2 = __Pyx_PyLong_As_Boolean(__pyx_v_centroid_at_origin); if (unlikely((__pyx_t_2 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(1, 1684, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1682
 * 
 *     def _choose_generators(self, compute_corners, centroid_at_origin):
 *         choose_generators(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                           compute_corners,
 *                           centroid_at_origin)
*/
  choose_generators(__pyx_v_self->__pyx_base.c_triangulation, __pyx_t_1, __pyx_t_2);

  /* "cython/core/manifold.pyx":1681
 *             return False
 * 
 *     def _choose_generators(self, compute_corners, centroid_at_origin):             # <<<<<<<<<<<<<<
 *         choose_generators(self.c_triangulation,
 *                           compute_corners,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.Manifold._choose_generators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1686
 *                           centroid_at_origin)
 * 
 *     def _choose_generators_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         Extracts, from the bowels of SnapPea, the information about the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_81_choose_generators_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_80_choose_generators_info, "\n        Extracts, from the bowels of SnapPea, the information about the\n        underlying generators of the fundamental group.  Returns a\n        list with one entry for each tetrahedra.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_81_choose_generators_info = {"_choose_generators_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_81_choose_generators_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_80_choose_generators_info};
static PyObject *__pyx_pw_6SnapPy_8Manifold_81_choose_generators_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_choose_generators_info (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_choose_generators_info", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_choose_generators_info", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_80_choose_generators_info(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_80_choose_generators_info(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  int __pyx_v_generator_path;
  int __pyx_v_face0_gen;
  int __pyx_v_face1_gen;
  int __pyx_v_face2_gen;
  int __pyx_v_face3_gen;
  Complex __pyx_v_c0;
  Complex __pyx_v_c1;
  Complex __pyx_v_c2;
  Complex __pyx_v_c3;
  int __pyx_v_neighbor0_idx;
  int __pyx_v_neighbor1_idx;
  int __pyx_v_neighbor2_idx;
  int __pyx_v_neighbor3_idx;
  int __pyx_v_perm0;
  int __pyx_v_perm1;
  int __pyx_v_perm2;
  int __pyx_v_perm3;
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_v_i = NULL;
  long __pyx_9genexpr54__pyx_v_i;
  long __pyx_9genexpr55__pyx_v_i;
  long __pyx_9genexpr56__pyx_v_i;
  long __pyx_9genexpr57__pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  long __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_choose_generators_info", 0);

  /* "cython/core/manifold.pyx":1697
 *         cdef int perm0, perm1, perm2, perm3
 * 
 *         ans = []             # <<<<<<<<<<<<<<
 *         for i in range(self.num_tetrahedra()):
 *             choose_gen_tetrahedron_info(self.c_triangulation,
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ans = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":1698
 * 
 *         ans = []
 *         for i in range(self.num_tetrahedra()):             # <<<<<<<<<<<<<<
 *             choose_gen_tetrahedron_info(self.c_triangulation,
 *                                         i, &generator_path,
*/
  __pyx_t_2 = NULL;
  __pyx_t_4 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1698, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1698, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1698, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    {
      __pyx_t_1 = __pyx_t_6(__pyx_t_3);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(1, 1698, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":1700
 *         for i in range(self.num_tetrahedra()):
 *             choose_gen_tetrahedron_info(self.c_triangulation,
 *                                         i, &generator_path,             # <<<<<<<<<<<<<<
 *                                         &face0_gen, &face1_gen,
 *                                         &face2_gen, &face3_gen,
*/
    __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_v_i); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1700, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1699
 *         ans = []
 *         for i in range(self.num_tetrahedra()):
 *             choose_gen_tetrahedron_info(self.c_triangulation,             # <<<<<<<<<<<<<<
 *                                         i, &generator_path,
 *                                         &face0_gen, &face1_gen,
*/
    choose_gen_tetrahedron_info(__pyx_v_self->__pyx_base.c_triangulation, __pyx_t_7, (&__pyx_v_generator_path), (&__pyx_v_face0_gen), (&__pyx_v_face1_gen), (&__pyx_v_face2_gen), (&__pyx_v_face3_gen), (&__pyx_v_c0), (&__pyx_v_c1), (&__pyx_v_c2), (&__pyx_v_c3), (&__pyx_v_neighbor0_idx), (&__pyx_v_neighbor1_idx), (&__pyx_v_neighbor2_idx), (&__pyx_v_neighbor3_idx), (&__pyx_v_perm0), (&__pyx_v_perm1), (&__pyx_v_perm2), (&__pyx_v_perm3));

    /* "cython/core/manifold.pyx":1708
 *                                         &perm0, &perm1, &perm2, &perm3)
 *             ans.append(
 *                 {'index':i,             # <<<<<<<<<<<<<<
 *                  'generators': (face0_gen, face1_gen, face2_gen, face3_gen),
 *                  'neighbors': (neighbor0_idx, neighbor1_idx,
*/
    __pyx_t_1 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1708, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_index, __pyx_v_i) < (0)) __PYX_ERR(1, 1708, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1709
 *             ans.append(
 *                 {'index':i,
 *                  'generators': (face0_gen, face1_gen, face2_gen, face3_gen),             # <<<<<<<<<<<<<<
 *                  'neighbors': (neighbor0_idx, neighbor1_idx,
 *                                neighbor2_idx, neighbor3_idx),
*/
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_face0_gen); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_face1_gen); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_v_face2_gen); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_v_face3_gen); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = PyTuple_New(4); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2) != (0)) __PYX_ERR(1, 1709, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_4) != (0)) __PYX_ERR(1, 1709, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_8) != (0)) __PYX_ERR(1, 1709, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_9) != (0)) __PYX_ERR(1, 1709, __pyx_L1_error);
    __pyx_t_2 = 0;
    __pyx_t_4 = 0;
    __pyx_t_8 = 0;
    __pyx_t_9 = 0;
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_generators, __pyx_t_10) < (0)) __PYX_ERR(1, 1708, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

    /* "cython/core/manifold.pyx":1710
 *                 {'index':i,
 *                  'generators': (face0_gen, face1_gen, face2_gen, face3_gen),
 *                  'neighbors': (neighbor0_idx, neighbor1_idx,             # <<<<<<<<<<<<<<
 *                                neighbor2_idx, neighbor3_idx),
 *                  'gluings': (tuple([ perm0>>(2 * i) & 3 for i in range(4)]),
*/
    __pyx_t_10 = __Pyx_PyLong_From_int(__pyx_v_neighbor0_idx); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_v_neighbor1_idx); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);

    /* "cython/core/manifold.pyx":1711
 *                  'generators': (face0_gen, face1_gen, face2_gen, face3_gen),
 *                  'neighbors': (neighbor0_idx, neighbor1_idx,
 *                                neighbor2_idx, neighbor3_idx),             # <<<<<<<<<<<<<<
 *                  'gluings': (tuple([ perm0>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm1>>(2 * i) & 3 for i in range(4)]),
*/
    __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_v_neighbor2_idx); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_neighbor3_idx); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);

    /* "cython/core/manifold.pyx":1710
 *                 {'index':i,
 *                  'generators': (face0_gen, face1_gen, face2_gen, face3_gen),
 *                  'neighbors': (neighbor0_idx, neighbor1_idx,             # <<<<<<<<<<<<<<
 *                                neighbor2_idx, neighbor3_idx),
 *                  'gluings': (tuple([ perm0>>(2 * i) & 3 for i in range(4)]),
*/
    __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_10);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_10) != (0)) __PYX_ERR(1, 1710, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_9) != (0)) __PYX_ERR(1, 1710, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_8) != (0)) __PYX_ERR(1, 1710, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_4) != (0)) __PYX_ERR(1, 1710, __pyx_L1_error);
    __pyx_t_10 = 0;
    __pyx_t_9 = 0;
    __pyx_t_8 = 0;
    __pyx_t_4 = 0;
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_neighbors, __pyx_t_2) < (0)) __PYX_ERR(1, 1708, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1712
 *                  'neighbors': (neighbor0_idx, neighbor1_idx,
 *                                neighbor2_idx, neighbor3_idx),
 *                  'gluings': (tuple([ perm0>>(2 * i) & 3 for i in range(4)]),             # <<<<<<<<<<<<<<
 *                              tuple([ perm1>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm2>>(2 * i) & 3 for i in range(4)]),
*/
    { /* enter inner scope */
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1712, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
        __pyx_9genexpr54__pyx_v_i = __pyx_t_11;
        __pyx_t_4 = __Pyx_PyLong_From_long(((__pyx_v_perm0 >> (2 * __pyx_9genexpr54__pyx_v_i)) & 3)); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1712, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_4))) __PYX_ERR(1, 1712, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    } /* exit inner scope */
    __pyx_t_4 = PyList_AsTuple(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1712, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1713
 *                                neighbor2_idx, neighbor3_idx),
 *                  'gluings': (tuple([ perm0>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm1>>(2 * i) & 3 for i in range(4)]),             # <<<<<<<<<<<<<<
 *                              tuple([ perm2>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm3>>(2 * i) & 3 for i in range(4)])),
*/
    { /* enter inner scope */
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1713, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
        __pyx_9genexpr55__pyx_v_i = __pyx_t_11;
        __pyx_t_8 = __Pyx_PyLong_From_long(((__pyx_v_perm1 >> (2 * __pyx_9genexpr55__pyx_v_i)) & 3)); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1713, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(1, 1713, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      }
    } /* exit inner scope */
    __pyx_t_8 = PyList_AsTuple(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1713, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1714
 *                  'gluings': (tuple([ perm0>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm1>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm2>>(2 * i) & 3 for i in range(4)]),             # <<<<<<<<<<<<<<
 *                              tuple([ perm3>>(2 * i) & 3 for i in range(4)])),
 *                  'corners': (self._number_(Complex2Number(c0)),
*/
    { /* enter inner scope */
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1714, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
        __pyx_9genexpr56__pyx_v_i = __pyx_t_11;
        __pyx_t_9 = __Pyx_PyLong_From_long(((__pyx_v_perm2 >> (2 * __pyx_9genexpr56__pyx_v_i)) & 3)); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1714, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_9))) __PYX_ERR(1, 1714, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      }
    } /* exit inner scope */
    __pyx_t_9 = PyList_AsTuple(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1714, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1715
 *                              tuple([ perm1>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm2>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm3>>(2 * i) & 3 for i in range(4)])),             # <<<<<<<<<<<<<<
 *                  'corners': (self._number_(Complex2Number(c0)),
 *                              self._number_(Complex2Number(c1)),
*/
    { /* enter inner scope */
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1715, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
        __pyx_9genexpr57__pyx_v_i = __pyx_t_11;
        __pyx_t_10 = __Pyx_PyLong_From_long(((__pyx_v_perm3 >> (2 * __pyx_9genexpr57__pyx_v_i)) & 3)); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1715, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_10))) __PYX_ERR(1, 1715, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      }
    } /* exit inner scope */
    __pyx_t_10 = PyList_AsTuple(((PyObject*)__pyx_t_2)); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 1715, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1712
 *                  'neighbors': (neighbor0_idx, neighbor1_idx,
 *                                neighbor2_idx, neighbor3_idx),
 *                  'gluings': (tuple([ perm0>>(2 * i) & 3 for i in range(4)]),             # <<<<<<<<<<<<<<
 *                              tuple([ perm1>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm2>>(2 * i) & 3 for i in range(4)]),
*/
    __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1712, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4) != (0)) __PYX_ERR(1, 1712, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_8) != (0)) __PYX_ERR(1, 1712, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_9) != (0)) __PYX_ERR(1, 1712, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_10);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_10) != (0)) __PYX_ERR(1, 1712, __pyx_L1_error);
    __pyx_t_4 = 0;
    __pyx_t_8 = 0;
    __pyx_t_9 = 0;
    __pyx_t_10 = 0;
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_gluings, __pyx_t_2) < (0)) __PYX_ERR(1, 1708, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1716
 *                              tuple([ perm2>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm3>>(2 * i) & 3 for i in range(4)])),
 *                  'corners': (self._number_(Complex2Number(c0)),             # <<<<<<<<<<<<<<
 *                              self._number_(Complex2Number(c1)),
 *                              self._number_(Complex2Number(c2)),
*/
    __pyx_t_10 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_9 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_c0); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1716, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_9};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1716, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }

    /* "cython/core/manifold.pyx":1717
 *                              tuple([ perm3>>(2 * i) & 3 for i in range(4)])),
 *                  'corners': (self._number_(Complex2Number(c0)),
 *                              self._number_(Complex2Number(c1)),             # <<<<<<<<<<<<<<
 *                              self._number_(Complex2Number(c2)),
 *                              self._number_(Complex2Number(c3)) ),
*/
    __pyx_t_10 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_8 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_c1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_8};
      __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1717, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
    }

    /* "cython/core/manifold.pyx":1718
 *                  'corners': (self._number_(Complex2Number(c0)),
 *                              self._number_(Complex2Number(c1)),
 *                              self._number_(Complex2Number(c2)),             # <<<<<<<<<<<<<<
 *                              self._number_(Complex2Number(c3)) ),
 *                  'generator_path': generator_path}
*/
    __pyx_t_10 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_4 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_c2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_4};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1718, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }

    /* "cython/core/manifold.pyx":1719
 *                              self._number_(Complex2Number(c1)),
 *                              self._number_(Complex2Number(c2)),
 *                              self._number_(Complex2Number(c3)) ),             # <<<<<<<<<<<<<<
 *                  'generator_path': generator_path}
 *                 )
*/
    __pyx_t_10 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_12 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_c3); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_12};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 1719, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }

    /* "cython/core/manifold.pyx":1716
 *                              tuple([ perm2>>(2 * i) & 3 for i in range(4)]),
 *                              tuple([ perm3>>(2 * i) & 3 for i in range(4)])),
 *                  'corners': (self._number_(Complex2Number(c0)),             # <<<<<<<<<<<<<<
 *                              self._number_(Complex2Number(c1)),
 *                              self._number_(Complex2Number(c2)),
*/
    __pyx_t_12 = PyTuple_New(4); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1716, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_2) != (0)) __PYX_ERR(1, 1716, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_t_9) != (0)) __PYX_ERR(1, 1716, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_t_8) != (0)) __PYX_ERR(1, 1716, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_12, 3, __pyx_t_4) != (0)) __PYX_ERR(1, 1716, __pyx_L1_error);
    __pyx_t_2 = 0;
    __pyx_t_9 = 0;
    __pyx_t_8 = 0;
    __pyx_t_4 = 0;
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_corners, __pyx_t_12) < (0)) __PYX_ERR(1, 1708, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

    /* "cython/core/manifold.pyx":1720
 *                              self._number_(Complex2Number(c2)),
 *                              self._number_(Complex2Number(c3)) ),
 *                  'generator_path': generator_path}             # <<<<<<<<<<<<<<
 *                 )
 *         return ans
*/
    __pyx_t_12 = __Pyx_PyLong_From_int(__pyx_v_generator_path); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1720, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_generator_path, __pyx_t_12) < (0)) __PYX_ERR(1, 1708, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

    /* "cython/core/manifold.pyx":1707
 *                                         &neighbor2_idx, &neighbor3_idx,
 *                                         &perm0, &perm1, &perm2, &perm3)
 *             ans.append(             # <<<<<<<<<<<<<<
 *                 {'index':i,
 *                  'generators': (face0_gen, face1_gen, face2_gen, face3_gen),
*/
    __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_ans, __pyx_t_1); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(1, 1707, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":1698
 * 
 *         ans = []
 *         for i in range(self.num_tetrahedra()):             # <<<<<<<<<<<<<<
 *             choose_gen_tetrahedron_info(self.c_triangulation,
 *                                         i, &generator_path,
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/manifold.pyx":1722
 *                  'generator_path': generator_path}
 *                 )
 *         return ans             # <<<<<<<<<<<<<<
 * 
 *     def splitting_surfaces(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1686
 *                           centroid_at_origin)
 * 
 *     def _choose_generators_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         Extracts, from the bowels of SnapPea, the information about the
*/

  /* function exit code */
  __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_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.Manifold._choose_generators_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1724
 *         return ans
 * 
 *     def splitting_surfaces(self):             # <<<<<<<<<<<<<<
 *         """
 *         Searches for connected closed normal surfaces of nonnegative Euler
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_83splitting_surfaces(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_82splitting_surfaces, "\n        Searches for connected closed normal surfaces of nonnegative Euler\n        characteristic.  If spheres or projective planes are found, then\n        tori and Klein bottles aren't reported.  There is no guarantee\n        that all such normal surfaces will be found nor that any given\n        surface is incompressible.  The search is confined to surfaces\n        whose quads are in the tetrahedra that have degenerate shapes.\n\n        You can split the manifold open along one of these surfaces\n        using the method \"split\".\n\n        A connect sum of two trefoils:\n\n        >>> M1 = Manifold('DT: fafBCAEFD')\n        >>> len(M1.splitting_surfaces())\n        2\n\n        First satellite knot in the table.\n\n        >>> M2 = Manifold('K13n4587')\n        >>> M2.splitting_surfaces()\n        [Orientable two-sided with euler = 0]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_83splitting_surfaces = {"splitting_surfaces", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_83splitting_surfaces, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_82splitting_surfaces};
static PyObject *__pyx_pw_6SnapPy_8Manifold_83splitting_surfaces(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("splitting_surfaces (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("splitting_surfaces", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("splitting_surfaces", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_82splitting_surfaces(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_82splitting_surfaces(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  NormalSurfaceList *__pyx_v_surfaces;
  FuncResult __pyx_v_result;
  PyObject *__pyx_v_ans = NULL;
  int __pyx_v_i;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  FuncResult __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  Boolean __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_t_17;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("splitting_surfaces", 0);

  /* "cython/core/manifold.pyx":1751
 *         cdef c_FuncResult result
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1752
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
 *         if result != func_OK:
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1752, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1752, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1751
 *         cdef c_FuncResult result
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
*/
  }

  /* "cython/core/manifold.pyx":1753
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)             # <<<<<<<<<<<<<<
 *         if result != func_OK:
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces')
*/
  __pyx_t_5 = find_normal_surfaces(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_surfaces)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1753, __pyx_L1_error)
  __pyx_v_result = __pyx_t_5;

  /* "cython/core/manifold.pyx":1754
 *             raise ValueError('The Triangulation is empty.')
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
 *         if result != func_OK:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces')
 * 
*/
  __pyx_t_1 = (__pyx_v_result != func_OK);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1755
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
 *         if result != func_OK:
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces')             # <<<<<<<<<<<<<<
 * 
 *         ans = []
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_SnapPea_kernel_failed_when_compu};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1755, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1755, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1754
 *             raise ValueError('The Triangulation is empty.')
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
 *         if result != func_OK:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces')
 * 
*/
  }

  /* "cython/core/manifold.pyx":1757
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces')
 * 
 *         ans = []             # <<<<<<<<<<<<<<
 *         for i in range(number_of_normal_surfaces_on_list(surfaces)):
 *             ans.append( NormalSurfaceInfo(
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_ans = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1758
 * 
 *         ans = []
 *         for i in range(number_of_normal_surfaces_on_list(surfaces)):             # <<<<<<<<<<<<<<
 *             ans.append( NormalSurfaceInfo(
 *                 orientable=B2B(normal_surface_is_orientable(surfaces, i)),
*/
  __pyx_t_6 = number_of_normal_surfaces_on_list(__pyx_v_surfaces); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1758, __pyx_L1_error)
  __pyx_t_7 = __pyx_t_6;
  for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
    __pyx_v_i = __pyx_t_8;

    /* "cython/core/manifold.pyx":1759
 *         ans = []
 *         for i in range(number_of_normal_surfaces_on_list(surfaces)):
 *             ans.append( NormalSurfaceInfo(             # <<<<<<<<<<<<<<
 *                 orientable=B2B(normal_surface_is_orientable(surfaces, i)),
 *                 two_sided=B2B(normal_surface_is_two_sided(surfaces, i)),
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_NormalSurfaceInfo); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);

    /* "cython/core/manifold.pyx":1760
 *         for i in range(number_of_normal_surfaces_on_list(surfaces)):
 *             ans.append( NormalSurfaceInfo(
 *                 orientable=B2B(normal_surface_is_orientable(surfaces, i)),             # <<<<<<<<<<<<<<
 *                 two_sided=B2B(normal_surface_is_two_sided(surfaces, i)),
 *                 euler=normal_surface_Euler_characteristic(surfaces, i),
*/
    __pyx_t_10 = normal_surface_is_orientable(__pyx_v_surfaces, __pyx_v_i); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1760, __pyx_L1_error)
    __pyx_t_11 = __pyx_f_6SnapPy_B2B(__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);

    /* "cython/core/manifold.pyx":1761
 *             ans.append( NormalSurfaceInfo(
 *                 orientable=B2B(normal_surface_is_orientable(surfaces, i)),
 *                 two_sided=B2B(normal_surface_is_two_sided(surfaces, i)),             # <<<<<<<<<<<<<<
 *                 euler=normal_surface_Euler_characteristic(surfaces, i),
 *                 index=i))
*/
    __pyx_t_10 = normal_surface_is_two_sided(__pyx_v_surfaces, __pyx_v_i); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1761, __pyx_L1_error)
    __pyx_t_12 = __pyx_f_6SnapPy_B2B(__pyx_t_10); if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 1761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);

    /* "cython/core/manifold.pyx":1762
 *                 orientable=B2B(normal_surface_is_orientable(surfaces, i)),
 *                 two_sided=B2B(normal_surface_is_two_sided(surfaces, i)),
 *                 euler=normal_surface_Euler_characteristic(surfaces, i),             # <<<<<<<<<<<<<<
 *                 index=i))
 * 
*/
    __pyx_t_13 = normal_surface_Euler_characteristic(__pyx_v_surfaces, __pyx_v_i); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1762, __pyx_L1_error)
    __pyx_t_14 = __Pyx_PyLong_From_int(__pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 1762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);

    /* "cython/core/manifold.pyx":1763
 *                 two_sided=B2B(normal_surface_is_two_sided(surfaces, i)),
 *                 euler=normal_surface_Euler_characteristic(surfaces, i),
 *                 index=i))             # <<<<<<<<<<<<<<
 * 
 *         free_normal_surfaces(surfaces)
*/
    __pyx_t_15 = __Pyx_PyLong_From_int(__pyx_v_i); if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 1763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_15);
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 4 : 0)] = {__pyx_t_3, NULL};
      __pyx_t_16 = __Pyx_MakeVectorcallBuilderKwds(4); if (unlikely(!__pyx_t_16)) __PYX_ERR(1, 1759, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_16);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_orientable, __pyx_t_11, __pyx_t_16, __pyx_callargs+1, 0) < (0)) __PYX_ERR(1, 1759, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_two_sided, __pyx_t_12, __pyx_t_16, __pyx_callargs+1, 1) < (0)) __PYX_ERR(1, 1759, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_euler, __pyx_t_14, __pyx_t_16, __pyx_callargs+1, 2) < (0)) __PYX_ERR(1, 1759, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_index, __pyx_t_15, __pyx_t_16, __pyx_callargs+1, 3) < (0)) __PYX_ERR(1, 1759, __pyx_L1_error)
      __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_16);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
      __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1759, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }

    /* "cython/core/manifold.pyx":1759
 *         ans = []
 *         for i in range(number_of_normal_surfaces_on_list(surfaces)):
 *             ans.append( NormalSurfaceInfo(             # <<<<<<<<<<<<<<
 *                 orientable=B2B(normal_surface_is_orientable(surfaces, i)),
 *                 two_sided=B2B(normal_surface_is_two_sided(surfaces, i)),
*/
    __pyx_t_17 = __Pyx_PyList_Append(__pyx_v_ans, __pyx_t_2); if (unlikely(__pyx_t_17 == ((int)-1))) __PYX_ERR(1, 1759, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }

  /* "cython/core/manifold.pyx":1765
 *                 index=i))
 * 
 *         free_normal_surfaces(surfaces)             # <<<<<<<<<<<<<<
 *         return ListOnePerLine(ans)
 * 
*/
  free_normal_surfaces(__pyx_v_surfaces); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1765, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1766
 * 
 *         free_normal_surfaces(surfaces)
 *         return ListOnePerLine(ans)             # <<<<<<<<<<<<<<
 * 
 *     def split(self, which_surface):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_ListOnePerLine); if (unlikely(!__pyx_t_16)) __PYX_ERR(1, 1766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_16))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_16);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_16);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_16, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_v_ans};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_16, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1724
 *         return ans
 * 
 *     def splitting_surfaces(self):             # <<<<<<<<<<<<<<
 *         """
 *         Searches for connected closed normal surfaces of nonnegative Euler
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("SnapPy.Manifold.splitting_surfaces", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1768
 *         return ListOnePerLine(ans)
 * 
 *     def split(self, which_surface):             # <<<<<<<<<<<<<<
 *         """
 *         Split the manifold open along a surface of positive characteristic found
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_85split(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_8Manifold_84split, "\n        Split the manifold open along a surface of positive characteristic found\n        by the method \"splitting_surfaces\".  Returns a list of the pieces, with any\n        sphere boundary components filled in.\n\n        Here's an example of a Whitehead double on the trefoil.\n\n        >>> M = Manifold('K14n26039')\n        >>> S = M.splitting_surfaces()[0]\n        >>> S\n        Orientable two-sided with euler = 0\n\n        >>> pieces = M.split(S); pieces\n        [K14n26039.a(0,0)(0,0), K14n26039.b(0,0)]\n        >>> pieces[0].volume() # doctest: +NUMERIC6\n        3.66386238\n        >>> pieces[1].fundamental_group().relators()\n        ['aabbb']\n\n        You can also specify a surface by its index.\n\n        >>> M = Manifold('L10n111')\n        >>> max( P.volume() for P in M.split(0) ) # doctest: +NUMERIC6\n        5.33348957\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_85split = {"split", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_85split, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_84split};
static PyObject *__pyx_pw_6SnapPy_8Manifold_85split(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_surface = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("split (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_surface,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1768, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1768, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "split", 0) < (0)) __PYX_ERR(1, 1768, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("split", 1, 1, 1, i); __PYX_ERR(1, 1768, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1768, __pyx_L3_error)
    }
    __pyx_v_which_surface = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("split", 1, 1, 1, __pyx_nargs); __PYX_ERR(1, 1768, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold.split", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_84split(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_which_surface);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_84split(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_which_surface) {
  NormalSurfaceList *__pyx_v_surfaces;
  FuncResult __pyx_v_result;
  int __pyx_v_num_surfaces;
  Triangulation *__pyx_v_pieces[2];
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_M0 = 0;
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_M1 = 0;
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  FuncResult __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10[5];
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("split", 0);
  __Pyx_INCREF(__pyx_v_which_surface);

  /* "cython/core/manifold.pyx":1800
 *         cdef Manifold M0, M1
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1801
 * 
 *         if self.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 * 
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1801, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1801, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1800
 *         cdef Manifold M0, M1
 * 
 *         if self.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 * 
*/
  }

  /* "cython/core/manifold.pyx":1803
 *             raise ValueError('The Triangulation is empty.')
 * 
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)             # <<<<<<<<<<<<<<
 *         if result != func_OK:
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces.')
*/
  __pyx_t_5 = find_normal_surfaces(__pyx_v_self->__pyx_base.c_triangulation, (&__pyx_v_surfaces)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1803, __pyx_L1_error)
  __pyx_v_result = __pyx_t_5;

  /* "cython/core/manifold.pyx":1804
 * 
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
 *         if result != func_OK:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces.')
 * 
*/
  __pyx_t_1 = (__pyx_v_result != func_OK);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/manifold.pyx":1805
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
 *         if result != func_OK:
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces.')             # <<<<<<<<<<<<<<
 * 
 *         if isinstance(which_surface, NormalSurfaceInfo):
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_SnapPea_kernel_failed_when_compu_2};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1805, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1805, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1804
 * 
 *         result = find_normal_surfaces(self.c_triangulation, &surfaces)
 *         if result != func_OK:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces.')
 * 
*/
  }

  /* "cython/core/manifold.pyx":1807
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces.')
 * 
 *         if isinstance(which_surface, NormalSurfaceInfo):             # <<<<<<<<<<<<<<
 *             which_surface = which_surface.index
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NormalSurfaceInfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyObject_IsInstance(__pyx_v_which_surface, __pyx_t_2); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(1, 1807, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "cython/core/manifold.pyx":1808
 * 
 *         if isinstance(which_surface, NormalSurfaceInfo):
 *             which_surface = which_surface.index             # <<<<<<<<<<<<<<
 * 
 *         num_surfaces = number_of_normal_surfaces_on_list(surfaces)
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_which_surface, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1808, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_which_surface, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1807
 *             raise RuntimeError('SnapPea kernel failed when computing normal surfaces.')
 * 
 *         if isinstance(which_surface, NormalSurfaceInfo):             # <<<<<<<<<<<<<<
 *             which_surface = which_surface.index
 * 
*/
  }

  /* "cython/core/manifold.pyx":1810
 *             which_surface = which_surface.index
 * 
 *         num_surfaces = number_of_normal_surfaces_on_list(surfaces)             # <<<<<<<<<<<<<<
 *         if not (0 <= which_surface < num_surfaces):
 *             raise ValueError('SnapPea only found %d surfaces, but you asked for surface number %s.' % (num_surfaces, which_surface))
*/
  __pyx_t_6 = number_of_normal_surfaces_on_list(__pyx_v_surfaces); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1810, __pyx_L1_error)
  __pyx_v_num_surfaces = __pyx_t_6;

  /* "cython/core/manifold.pyx":1811
 * 
 *         num_surfaces = number_of_normal_surfaces_on_list(surfaces)
 *         if not (0 <= which_surface < num_surfaces):             # <<<<<<<<<<<<<<
 *             raise ValueError('SnapPea only found %d surfaces, but you asked for surface number %s.' % (num_surfaces, which_surface))
 * 
*/
  __pyx_t_2 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_which_surface, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1811, __pyx_L1_error)
  if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
    __Pyx_DECREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_num_surfaces); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_which_surface, __pyx_t_3, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1811, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(1, 1811, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_7 = (!__pyx_t_1);
  if (unlikely(__pyx_t_7)) {

    /* "cython/core/manifold.pyx":1812
 *         num_surfaces = number_of_normal_surfaces_on_list(surfaces)
 *         if not (0 <= which_surface < num_surfaces):
 *             raise ValueError('SnapPea only found %d surfaces, but you asked for surface number %s.' % (num_surfaces, which_surface))             # <<<<<<<<<<<<<<
 * 
 *         result = split_along_normal_surface(surfaces, which_surface, pieces)
*/
    __pyx_t_3 = NULL;
    __pyx_t_8 = __Pyx_PyUnicode_From_int(__pyx_v_num_surfaces, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 1812, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_which_surface), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1812, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10[0] = __pyx_mstate_global->__pyx_kp_u_SnapPea_only_found;
    __pyx_t_10[1] = __pyx_t_8;
    __pyx_t_10[2] = __pyx_mstate_global->__pyx_kp_u_surfaces_but_you_asked_for_surf;
    __pyx_t_10[3] = __pyx_t_9;
    __pyx_t_10[4] = __pyx_mstate_global->__pyx_kp_u__30;
    __pyx_t_11 = __Pyx_PyUnicode_Join(__pyx_t_10, 5, 19 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 44 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 1, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9));
    if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1812, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_11};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1812, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1812, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1811
 * 
 *         num_surfaces = number_of_normal_surfaces_on_list(surfaces)
 *         if not (0 <= which_surface < num_surfaces):             # <<<<<<<<<<<<<<
 *             raise ValueError('SnapPea only found %d surfaces, but you asked for surface number %s.' % (num_surfaces, which_surface))
 * 
*/
  }

  /* "cython/core/manifold.pyx":1814
 *             raise ValueError('SnapPea only found %d surfaces, but you asked for surface number %s.' % (num_surfaces, which_surface))
 * 
 *         result = split_along_normal_surface(surfaces, which_surface, pieces)             # <<<<<<<<<<<<<<
 *         if result != func_OK:
 *             raise RuntimeError('SnapPea kernel failed when splitting open along the given surface.')
*/
  __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_v_which_surface); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 1814, __pyx_L1_error)
  __pyx_t_5 = split_along_normal_surface(__pyx_v_surfaces, __pyx_t_6, __pyx_v_pieces); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1814, __pyx_L1_error)
  __pyx_v_result = __pyx_t_5;

  /* "cython/core/manifold.pyx":1815
 * 
 *         result = split_along_normal_surface(surfaces, which_surface, pieces)
 *         if result != func_OK:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea kernel failed when splitting open along the given surface.')
 * 
*/
  __pyx_t_7 = (__pyx_v_result != func_OK);
  if (unlikely(__pyx_t_7)) {

    /* "cython/core/manifold.pyx":1816
 *         result = split_along_normal_surface(surfaces, which_surface, pieces)
 *         if result != func_OK:
 *             raise RuntimeError('SnapPea kernel failed when splitting open along the given surface.')             # <<<<<<<<<<<<<<
 * 
 *         ans = []
*/
    __pyx_t_11 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_mstate_global->__pyx_kp_u_SnapPea_kernel_failed_when_split};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1816, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(1, 1816, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1815
 * 
 *         result = split_along_normal_surface(surfaces, which_surface, pieces)
 *         if result != func_OK:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea kernel failed when splitting open along the given surface.')
 * 
*/
  }

  /* "cython/core/manifold.pyx":1818
 *             raise RuntimeError('SnapPea kernel failed when splitting open along the given surface.')
 * 
 *         ans = []             # <<<<<<<<<<<<<<
 *         if pieces[0] != NULL:
 *             M0 = self.__class__('empty')
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_ans = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1819
 * 
 *         ans = []
 *         if pieces[0] != NULL:             # <<<<<<<<<<<<<<
 *             M0 = self.__class__('empty')
 *             M0.set_c_triangulation(pieces[0])
*/
  __pyx_t_7 = ((__pyx_v_pieces[0]) != NULL);
  if (__pyx_t_7) {

    /* "cython/core/manifold.pyx":1820
 *         ans = []
 *         if pieces[0] != NULL:
 *             M0 = self.__class__('empty')             # <<<<<<<<<<<<<<
 *             M0.set_c_triangulation(pieces[0])
 *             M0.set_name(self.name() + '.a')
*/
    __pyx_t_11 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_11);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1820, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(1, 1820, __pyx_L1_error)
    __pyx_v_M0 = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1821
 *         if pieces[0] != NULL:
 *             M0 = self.__class__('empty')
 *             M0.set_c_triangulation(pieces[0])             # <<<<<<<<<<<<<<
 *             M0.set_name(self.name() + '.a')
 *             ans.append(M0)
*/
    __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_M0->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_M0), (__pyx_v_pieces[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1821, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1822
 *             M0 = self.__class__('empty')
 *             M0.set_c_triangulation(pieces[0])
 *             M0.set_name(self.name() + '.a')             # <<<<<<<<<<<<<<
 *             ans.append(M0)
 *         if pieces[1] != NULL:
*/
    __pyx_t_11 = ((PyObject *)__pyx_v_M0);
    __Pyx_INCREF(__pyx_t_11);
    __pyx_t_9 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_9);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1822, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_9 = PyNumber_Add(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_a); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 1822, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_9};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1822, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1823
 *             M0.set_c_triangulation(pieces[0])
 *             M0.set_name(self.name() + '.a')
 *             ans.append(M0)             # <<<<<<<<<<<<<<
 *         if pieces[1] != NULL:
 *             M1 = self.__class__('empty')
*/
    __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ans, ((PyObject *)__pyx_v_M0)); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(1, 1823, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1819
 * 
 *         ans = []
 *         if pieces[0] != NULL:             # <<<<<<<<<<<<<<
 *             M0 = self.__class__('empty')
 *             M0.set_c_triangulation(pieces[0])
*/
  }

  /* "cython/core/manifold.pyx":1824
 *             M0.set_name(self.name() + '.a')
 *             ans.append(M0)
 *         if pieces[1] != NULL:             # <<<<<<<<<<<<<<
 *             M1 = self.__class__('empty')
 *             M1.set_c_triangulation(pieces[1])
*/
  __pyx_t_7 = ((__pyx_v_pieces[1]) != NULL);
  if (__pyx_t_7) {

    /* "cython/core/manifold.pyx":1825
 *             ans.append(M0)
 *         if pieces[1] != NULL:
 *             M1 = self.__class__('empty')             # <<<<<<<<<<<<<<
 *             M1.set_c_triangulation(pieces[1])
 *             M1.set_name(self.name() + '.b')
*/
    __pyx_t_9 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_9);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_n_u_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1825, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(1, 1825, __pyx_L1_error)
    __pyx_v_M1 = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1826
 *         if pieces[1] != NULL:
 *             M1 = self.__class__('empty')
 *             M1.set_c_triangulation(pieces[1])             # <<<<<<<<<<<<<<
 *             M1.set_name(self.name() + '.b')
 *             ans.append(M1)
*/
    __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_M1->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_M1), (__pyx_v_pieces[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1827
 *             M1 = self.__class__('empty')
 *             M1.set_c_triangulation(pieces[1])
 *             M1.set_name(self.name() + '.b')             # <<<<<<<<<<<<<<
 *             ans.append(M1)
 * 
*/
    __pyx_t_9 = ((PyObject *)__pyx_v_M1);
    __Pyx_INCREF(__pyx_t_9);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_11 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 1827, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
    }
    __pyx_t_3 = PyNumber_Add(__pyx_t_11, __pyx_mstate_global->__pyx_kp_u_b); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_3};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1827, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/manifold.pyx":1828
 *             M1.set_c_triangulation(pieces[1])
 *             M1.set_name(self.name() + '.b')
 *             ans.append(M1)             # <<<<<<<<<<<<<<
 * 
 *         free_normal_surfaces(surfaces)
*/
    __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_ans, ((PyObject *)__pyx_v_M1)); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(1, 1828, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1824
 *             M0.set_name(self.name() + '.a')
 *             ans.append(M0)
 *         if pieces[1] != NULL:             # <<<<<<<<<<<<<<
 *             M1 = self.__class__('empty')
 *             M1.set_c_triangulation(pieces[1])
*/
  }

  /* "cython/core/manifold.pyx":1830
 *             ans.append(M1)
 * 
 *         free_normal_surfaces(surfaces)             # <<<<<<<<<<<<<<
 *         return ans
 * 
*/
  free_normal_surfaces(__pyx_v_surfaces); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 1830, __pyx_L1_error)

  /* "cython/core/manifold.pyx":1831
 * 
 *         free_normal_surfaces(surfaces)
 *         return ans             # <<<<<<<<<<<<<<
 * 
 *     def _identify(self, extends_to_link=False):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1768
 *         return ListOnePerLine(ans)
 * 
 *     def split(self, which_surface):             # <<<<<<<<<<<<<<
 *         """
 *         Split the manifold open along a surface of positive characteristic found
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.Manifold.split", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_M0);
  __Pyx_XDECREF((PyObject *)__pyx_v_M1);
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XDECREF(__pyx_v_which_surface);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1833
 *         return ans
 * 
 *     def _identify(self, extends_to_link=False):             # <<<<<<<<<<<<<<
 *         ans = []
 *         for table in database.__all_tables__.values():
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_87_identify(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_87_identify = {"_identify", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_87_identify, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Manifold_87_identify(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_extends_to_link = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_identify (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_extends_to_link,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(1, 1833, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_identify", 0) < (0)) __PYX_ERR(1, 1833, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(1, 1833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_extends_to_link = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_identify", 0, 0, 1, __pyx_nargs); __PYX_ERR(1, 1833, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Manifold._identify", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_86_identify(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self), __pyx_v_extends_to_link);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_86_identify(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self, PyObject *__pyx_v_extends_to_link) {
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_v_table = NULL;
  PyObject *__pyx_v_match = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  size_t __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_identify", 0);

  /* "cython/core/manifold.pyx":1834
 * 
 *     def _identify(self, extends_to_link=False):
 *         ans = []             # <<<<<<<<<<<<<<
 *         for table in database.__all_tables__.values():
 *             match = table.identify(self, extends_to_link)
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ans = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":1835
 *     def _identify(self, extends_to_link=False):
 *         ans = []
 *         for table in database.__all_tables__.values():             # <<<<<<<<<<<<<<
 *             match = table.identify(self, extends_to_link)
 *             if match:
*/
  __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_database); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_all_tables); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(__pyx_t_6 == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(1, 1835, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_t_6, 0, __pyx_mstate_global->__pyx_n_u_values, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, NULL, &__pyx_t_5, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(1, 1835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_table, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/manifold.pyx":1836
 *         ans = []
 *         for table in database.__all_tables__.values():
 *             match = table.identify(self, extends_to_link)             # <<<<<<<<<<<<<<
 *             if match:
 *                 ans.append(match)
*/
    __pyx_t_6 = __pyx_v_table;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_8 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_v_extends_to_link};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_identify, __pyx_callargs+__pyx_t_8, (3-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 1836, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_XDECREF_SET(__pyx_v_match, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/manifold.pyx":1837
 *         for table in database.__all_tables__.values():
 *             match = table.identify(self, extends_to_link)
 *             if match:             # <<<<<<<<<<<<<<
 *                 ans.append(match)
 *         return ans
*/
    __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_match); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(1, 1837, __pyx_L1_error)
    if (__pyx_t_9) {

      /* "cython/core/manifold.pyx":1838
 *             match = table.identify(self, extends_to_link)
 *             if match:
 *                 ans.append(match)             # <<<<<<<<<<<<<<
 *         return ans
 * 
*/
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_ans, __pyx_v_match); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(1, 1838, __pyx_L1_error)

      /* "cython/core/manifold.pyx":1837
 *         for table in database.__all_tables__.values():
 *             match = table.identify(self, extends_to_link)
 *             if match:             # <<<<<<<<<<<<<<
 *                 ans.append(match)
 *         return ans
*/
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/manifold.pyx":1839
 *             if match:
 *                 ans.append(match)
 *         return ans             # <<<<<<<<<<<<<<
 * 
 *     def _cusp_cross_section_info(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1833
 *         return ans
 * 
 *     def _identify(self, extends_to_link=False):             # <<<<<<<<<<<<<<
 *         ans = []
 *         for table in database.__all_tables__.values():
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Manifold._identify", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XDECREF(__pyx_v_table);
  __Pyx_XDECREF(__pyx_v_match);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1841
 *         return ans
 * 
 *     def _cusp_cross_section_info(self):             # <<<<<<<<<<<<<<
 *         cdef c_Tetrahedron *tet
 *         allocate_cross_sections(self.c_triangulation)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_89_cusp_cross_section_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_89_cusp_cross_section_info = {"_cusp_cross_section_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_89_cusp_cross_section_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Manifold_89_cusp_cross_section_info(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_cusp_cross_section_info (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_cusp_cross_section_info", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_cusp_cross_section_info", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_88_cusp_cross_section_info(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_88_cusp_cross_section_info(struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  Tetrahedron *__pyx_v_tet;
  PyObject *__pyx_v_tilts = NULL;
  PyObject *__pyx_v_side_lengths = NULL;
  PyObject *__pyx_v_one_tet_tilts = NULL;
  PyObject *__pyx_v_one_tet_lengths = NULL;
  long __pyx_v_v;
  PyObject *__pyx_v_one_vertex_lengths = NULL;
  long __pyx_v_f;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Tetrahedron *__pyx_t_3;
  int __pyx_t_4;
  long __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_t_8;
  long __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_cusp_cross_section_info", 0);

  /* "cython/core/manifold.pyx":1843
 *     def _cusp_cross_section_info(self):
 *         cdef c_Tetrahedron *tet
 *         allocate_cross_sections(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         compute_cross_sections(self.c_triangulation)
 *         compute_tilts(self.c_triangulation)
*/
  allocate_cross_sections(__pyx_v_self->__pyx_base.c_triangulation);

  /* "cython/core/manifold.pyx":1844
 *         cdef c_Tetrahedron *tet
 *         allocate_cross_sections(self.c_triangulation)
 *         compute_cross_sections(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         compute_tilts(self.c_triangulation)
 *         tilts, side_lengths = [], []
*/
  compute_cross_sections(__pyx_v_self->__pyx_base.c_triangulation);

  /* "cython/core/manifold.pyx":1845
 *         allocate_cross_sections(self.c_triangulation)
 *         compute_cross_sections(self.c_triangulation)
 *         compute_tilts(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         tilts, side_lengths = [], []
 *         tet = self.c_triangulation.tet_list_begin.next
*/
  compute_tilts(__pyx_v_self->__pyx_base.c_triangulation);

  /* "cython/core/manifold.pyx":1846
 *         compute_cross_sections(self.c_triangulation)
 *         compute_tilts(self.c_triangulation)
 *         tilts, side_lengths = [], []             # <<<<<<<<<<<<<<
 *         tet = self.c_triangulation.tet_list_begin.next
 *         while tet != &self.c_triangulation.tet_list_end:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_tilts = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_v_side_lengths = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1847
 *         compute_tilts(self.c_triangulation)
 *         tilts, side_lengths = [], []
 *         tet = self.c_triangulation.tet_list_begin.next             # <<<<<<<<<<<<<<
 *         while tet != &self.c_triangulation.tet_list_end:
 *             one_tet_tilts, one_tet_lengths = [], []
*/
  __pyx_t_3 = __pyx_v_self->__pyx_base.c_triangulation->tet_list_begin.next;
  __pyx_v_tet = __pyx_t_3;

  /* "cython/core/manifold.pyx":1848
 *         tilts, side_lengths = [], []
 *         tet = self.c_triangulation.tet_list_begin.next
 *         while tet != &self.c_triangulation.tet_list_end:             # <<<<<<<<<<<<<<
 *             one_tet_tilts, one_tet_lengths = [], []
 *             for v in range(4):
*/
  while (1) {
    __pyx_t_4 = (__pyx_v_tet != (&__pyx_v_self->__pyx_base.c_triangulation->tet_list_end));
    if (!__pyx_t_4) break;

    /* "cython/core/manifold.pyx":1849
 *         tet = self.c_triangulation.tet_list_begin.next
 *         while tet != &self.c_triangulation.tet_list_end:
 *             one_tet_tilts, one_tet_lengths = [], []             # <<<<<<<<<<<<<<
 *             for v in range(4):
 *                 one_tet_tilts.append(self._number_(Real2Number(<Real>tet.tilt[v])))
*/
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_one_tet_tilts, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;
    __Pyx_XDECREF_SET(__pyx_v_one_tet_lengths, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/manifold.pyx":1850
 *         while tet != &self.c_triangulation.tet_list_end:
 *             one_tet_tilts, one_tet_lengths = [], []
 *             for v in range(4):             # <<<<<<<<<<<<<<
 *                 one_tet_tilts.append(self._number_(Real2Number(<Real>tet.tilt[v])))
 *                 one_vertex_lengths = []
*/
    for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
      __pyx_v_v = __pyx_t_5;

      /* "cython/core/manifold.pyx":1851
 *             one_tet_tilts, one_tet_lengths = [], []
 *             for v in range(4):
 *                 one_tet_tilts.append(self._number_(Real2Number(<Real>tet.tilt[v])))             # <<<<<<<<<<<<<<
 *                 one_vertex_lengths = []
 *                 for f in range(4):
*/
      __pyx_t_2 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_6 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_v_tet->tilt[__pyx_v_v]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1851, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_6};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1851, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_one_tet_tilts, __pyx_t_1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(1, 1851, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cython/core/manifold.pyx":1852
 *             for v in range(4):
 *                 one_tet_tilts.append(self._number_(Real2Number(<Real>tet.tilt[v])))
 *                 one_vertex_lengths = []             # <<<<<<<<<<<<<<
 *                 for f in range(4):
 *                     if v != f:
*/
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1852, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_one_vertex_lengths, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "cython/core/manifold.pyx":1853
 *                 one_tet_tilts.append(self._number_(Real2Number(<Real>tet.tilt[v])))
 *                 one_vertex_lengths = []
 *                 for f in range(4):             # <<<<<<<<<<<<<<
 *                     if v != f:
 *                         one_vertex_lengths.append(self._number_(
*/
      for (__pyx_t_9 = 0; __pyx_t_9 < 4; __pyx_t_9+=1) {
        __pyx_v_f = __pyx_t_9;

        /* "cython/core/manifold.pyx":1854
 *                 one_vertex_lengths = []
 *                 for f in range(4):
 *                     if v != f:             # <<<<<<<<<<<<<<
 *                         one_vertex_lengths.append(self._number_(
 *                             Real2Number(<Real>tet.cross_section.edge_length[v][f])))
*/
        __pyx_t_4 = (__pyx_v_v != __pyx_v_f);
        if (__pyx_t_4) {

          /* "cython/core/manifold.pyx":1855
 *                 for f in range(4):
 *                     if v != f:
 *                         one_vertex_lengths.append(self._number_(             # <<<<<<<<<<<<<<
 *                             Real2Number(<Real>tet.cross_section.edge_length[v][f])))
 *                     else:
*/
          __pyx_t_6 = ((PyObject *)__pyx_v_self);
          __Pyx_INCREF(__pyx_t_6);

          /* "cython/core/manifold.pyx":1856
 *                     if v != f:
 *                         one_vertex_lengths.append(self._number_(
 *                             Real2Number(<Real>tet.cross_section.edge_length[v][f])))             # <<<<<<<<<<<<<<
 *                     else:
 *                         one_vertex_lengths.append(None)
*/
          __pyx_t_2 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)((__pyx_v_tet->cross_section->edge_length[__pyx_v_v])[__pyx_v_f]))); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1856, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_7 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_2};
            __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1855, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
          }

          /* "cython/core/manifold.pyx":1855
 *                 for f in range(4):
 *                     if v != f:
 *                         one_vertex_lengths.append(self._number_(             # <<<<<<<<<<<<<<
 *                             Real2Number(<Real>tet.cross_section.edge_length[v][f])))
 *                     else:
*/
          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_one_vertex_lengths, __pyx_t_1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(1, 1855, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

          /* "cython/core/manifold.pyx":1854
 *                 one_vertex_lengths = []
 *                 for f in range(4):
 *                     if v != f:             # <<<<<<<<<<<<<<
 *                         one_vertex_lengths.append(self._number_(
 *                             Real2Number(<Real>tet.cross_section.edge_length[v][f])))
*/
          goto __pyx_L9;
        }

        /* "cython/core/manifold.pyx":1858
 *                             Real2Number(<Real>tet.cross_section.edge_length[v][f])))
 *                     else:
 *                         one_vertex_lengths.append(None)             # <<<<<<<<<<<<<<
 *                 one_tet_lengths.append(one_vertex_lengths)
 *             tilts.append(one_tet_tilts)
*/
        /*else*/ {
          __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_one_vertex_lengths, Py_None); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(1, 1858, __pyx_L1_error)
        }
        __pyx_L9:;
      }

      /* "cython/core/manifold.pyx":1859
 *                     else:
 *                         one_vertex_lengths.append(None)
 *                 one_tet_lengths.append(one_vertex_lengths)             # <<<<<<<<<<<<<<
 *             tilts.append(one_tet_tilts)
 *             side_lengths.append(one_tet_lengths)
*/
      __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_one_tet_lengths, __pyx_v_one_vertex_lengths); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(1, 1859, __pyx_L1_error)
    }

    /* "cython/core/manifold.pyx":1860
 *                         one_vertex_lengths.append(None)
 *                 one_tet_lengths.append(one_vertex_lengths)
 *             tilts.append(one_tet_tilts)             # <<<<<<<<<<<<<<
 *             side_lengths.append(one_tet_lengths)
 *             tet = tet.next
*/
    __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_tilts, __pyx_v_one_tet_tilts); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(1, 1860, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1861
 *                 one_tet_lengths.append(one_vertex_lengths)
 *             tilts.append(one_tet_tilts)
 *             side_lengths.append(one_tet_lengths)             # <<<<<<<<<<<<<<
 *             tet = tet.next
 * 
*/
    __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_side_lengths, __pyx_v_one_tet_lengths); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(1, 1861, __pyx_L1_error)

    /* "cython/core/manifold.pyx":1862
 *             tilts.append(one_tet_tilts)
 *             side_lengths.append(one_tet_lengths)
 *             tet = tet.next             # <<<<<<<<<<<<<<
 * 
 *         free_cross_sections(self.c_triangulation)
*/
    __pyx_t_3 = __pyx_v_tet->next;
    __pyx_v_tet = __pyx_t_3;
  }

  /* "cython/core/manifold.pyx":1864
 *             tet = tet.next
 * 
 *         free_cross_sections(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         return tilts, side_lengths
 * 
*/
  free_cross_sections(__pyx_v_self->__pyx_base.c_triangulation);

  /* "cython/core/manifold.pyx":1865
 * 
 *         free_cross_sections(self.c_triangulation)
 *         return tilts, side_lengths             # <<<<<<<<<<<<<<
 * 
 *     def _precision(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_tilts);
  __Pyx_GIVEREF(__pyx_v_tilts);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_tilts) != (0)) __PYX_ERR(1, 1865, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_side_lengths);
  __Pyx_GIVEREF(__pyx_v_side_lengths);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_side_lengths) != (0)) __PYX_ERR(1, 1865, __pyx_L1_error);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1841
 *         return ans
 * 
 *     def _cusp_cross_section_info(self):             # <<<<<<<<<<<<<<
 *         cdef c_Tetrahedron *tet
 *         allocate_cross_sections(self.c_triangulation)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Manifold._cusp_cross_section_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tilts);
  __Pyx_XDECREF(__pyx_v_side_lengths);
  __Pyx_XDECREF(__pyx_v_one_tet_tilts);
  __Pyx_XDECREF(__pyx_v_one_tet_lengths);
  __Pyx_XDECREF(__pyx_v_one_vertex_lengths);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/manifold.pyx":1867
 *         return tilts, side_lengths
 * 
 *     def _precision(self):             # <<<<<<<<<<<<<<
 *         return Number._default_precision
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_8Manifold_91_precision(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_8Manifold_91_precision = {"_precision", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_91_precision, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_8Manifold_91_precision(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_precision (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_precision", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_precision", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_8Manifold_90_precision(((struct __pyx_obj_6SnapPy_Manifold *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_8Manifold_90_precision(CYTHON_UNUSED struct __pyx_obj_6SnapPy_Manifold *__pyx_v_self) {
  PyObject *__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("_precision", 0);

  /* "cython/core/manifold.pyx":1868
 * 
 *     def _precision(self):
 *         return Number._default_precision             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_default_precision); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/manifold.pyx":1867
 *         return tilts, side_lengths
 * 
 *     def _precision(self):             # <<<<<<<<<<<<<<
 *         return Number._default_precision
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Manifold._precision", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":41
 *     cdef public coefficients
 * 
 *     def __init__(self, presentation=None, elementary_divisors=[]):             # <<<<<<<<<<<<<<
 *         if presentation is not None:
 *             self.divisors = smith_form(presentation)
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_12AbelianGroup_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6SnapPy_12AbelianGroup_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_presentation = 0;
  PyObject *__pyx_v_elementary_divisors = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_presentation,&__pyx_mstate_global->__pyx_n_u_elementary_divisors,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(6, 41, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(6, 41, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 41, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(6, 41, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__31);
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(6, 41, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 41, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__31);
    }
    __pyx_v_presentation = values[0];
    __pyx_v_elementary_divisors = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, __pyx_nargs); __PYX_ERR(6, 41, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.AbelianGroup.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup___init__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self), __pyx_v_presentation, __pyx_v_elementary_divisors);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_12AbelianGroup___init__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self, PyObject *__pyx_v_presentation, PyObject *__pyx_v_elementary_divisors) {
  PyObject *__pyx_v_int_types = NULL;
  PyObject *__pyx_v_Integer = NULL;
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_9genexpr58__pyx_v_n = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  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;
  Py_ssize_t __pyx_t_11;
  PyObject *(*__pyx_t_12)(PyObject *);
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/abelian_group.pyx":42
 * 
 *     def __init__(self, presentation=None, elementary_divisors=[]):
 *         if presentation is not None:             # <<<<<<<<<<<<<<
 *             self.divisors = smith_form(presentation)
 *         else:
*/
  __pyx_t_1 = (__pyx_v_presentation != Py_None);
  if (__pyx_t_1) {

    /* "cython/core/abelian_group.pyx":43
 *     def __init__(self, presentation=None, elementary_divisors=[]):
 *         if presentation is not None:
 *             self.divisors = smith_form(presentation)             # <<<<<<<<<<<<<<
 *         else:
 *             try:
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_smith_form); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 43, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_presentation};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 43, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_self->divisors);
    __Pyx_DECREF(__pyx_v_self->divisors);
    __pyx_v_self->divisors = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/abelian_group.pyx":42
 * 
 *     def __init__(self, presentation=None, elementary_divisors=[]):
 *         if presentation is not None:             # <<<<<<<<<<<<<<
 *             self.divisors = smith_form(presentation)
 *         else:
*/
    goto __pyx_L3;
  }

  /* "cython/core/abelian_group.pyx":45
 *             self.divisors = smith_form(presentation)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 self.divisors = list(elementary_divisors)
 *             except:
*/
  /*else*/ {
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_XGOTREF(__pyx_t_8);
      /*try:*/ {

        /* "cython/core/abelian_group.pyx":46
 *         else:
 *             try:
 *                 self.divisors = list(elementary_divisors)             # <<<<<<<<<<<<<<
 *             except:
 *                 raise ValueError('Elementary divisors must be given '
*/
        __pyx_t_2 = PySequence_List(__pyx_v_elementary_divisors); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 46, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GIVEREF(__pyx_t_2);
        __Pyx_GOTREF(__pyx_v_self->divisors);
        __Pyx_DECREF(__pyx_v_self->divisors);
        __pyx_v_self->divisors = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "cython/core/abelian_group.pyx":45
 *             self.divisors = smith_form(presentation)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 self.divisors = list(elementary_divisors)
 *             except:
*/
      }
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "cython/core/abelian_group.pyx":47
 *             try:
 *                 self.divisors = list(elementary_divisors)
 *             except:             # <<<<<<<<<<<<<<
 *                 raise ValueError('Elementary divisors must be given '
 *                                  'as a sequence.')
*/
      /*except:*/ {
        __Pyx_AddTraceback("SnapPy.AbelianGroup.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_3) < 0) __PYX_ERR(6, 47, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_3);

        /* "cython/core/abelian_group.pyx":48
 *                 self.divisors = list(elementary_divisors)
 *             except:
 *                 raise ValueError('Elementary divisors must be given '             # <<<<<<<<<<<<<<
 *                                  'as a sequence.')
 *         int_types = [int]
*/
        __pyx_t_10 = NULL;
        __pyx_t_5 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_mstate_global->__pyx_kp_u_Elementary_divisors_must_be_give};
          __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 48, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_9);
        }
        __Pyx_Raise(__pyx_t_9, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __PYX_ERR(6, 48, __pyx_L6_except_error)
      }

      /* "cython/core/abelian_group.pyx":45
 *             self.divisors = smith_form(presentation)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 self.divisors = list(elementary_divisors)
 *             except:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_6);
      __Pyx_XGIVEREF(__pyx_t_7);
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
      goto __pyx_L1_error;
      __pyx_L9_try_end:;
    }
  }
  __pyx_L3:;

  /* "cython/core/abelian_group.pyx":50
 *                 raise ValueError('Elementary divisors must be given '
 *                                  'as a sequence.')
 *         int_types = [int]             # <<<<<<<<<<<<<<
 *         if _within_sage:
 *             from sage.rings.integer import Integer
*/
  __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF((PyObject *)(&PyLong_Type));
  __Pyx_GIVEREF((PyObject *)(&PyLong_Type));
  if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, ((PyObject *)(&PyLong_Type))) != (0)) __PYX_ERR(6, 50, __pyx_L1_error);
  __pyx_v_int_types = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cython/core/abelian_group.pyx":51
 *                                  'as a sequence.')
 *         int_types = [int]
 *         if _within_sage:             # <<<<<<<<<<<<<<
 *             from sage.rings.integer import Integer
 *             int_types += [Integer]
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 51, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_1) {

    /* "cython/core/abelian_group.pyx":52
 *         int_types = [int]
 *         if _within_sage:
 *             from sage.rings.integer import Integer             # <<<<<<<<<<<<<<
 *             int_types += [Integer]
 *         for c in self.divisors:
*/
    {
      PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Integer};
      __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_rings_integer, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(6, 52, __pyx_L1_error)
    }
    __pyx_t_3 = __pyx_t_8;
    __Pyx_GOTREF(__pyx_t_3);
    {
      PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Integer};
      __pyx_t_11 = 0; {
        __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_3, __pyx_imported_names[__pyx_t_11]); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 52, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        switch (__pyx_t_11) {
          case 0:
          __Pyx_INCREF(__pyx_t_4);
          __pyx_v_Integer = __pyx_t_4;
          break;
          default:;
        }
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/abelian_group.pyx":53
 *         if _within_sage:
 *             from sage.rings.integer import Integer
 *             int_types += [Integer]             # <<<<<<<<<<<<<<
 *         for c in self.divisors:
 *             assert type(c) in int_types and c >= 0,\
*/
    __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 53, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_Integer);
    __Pyx_GIVEREF(__pyx_v_Integer);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_v_Integer) != (0)) __PYX_ERR(6, 53, __pyx_L1_error);
    __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_int_types, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 53, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_int_types, ((PyObject*)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "cython/core/abelian_group.pyx":51
 *                                  'as a sequence.')
 *         int_types = [int]
 *         if _within_sage:             # <<<<<<<<<<<<<<
 *             from sage.rings.integer import Integer
 *             int_types += [Integer]
*/
  }

  /* "cython/core/abelian_group.pyx":54
 *             from sage.rings.integer import Integer
 *             int_types += [Integer]
 *         for c in self.divisors:             # <<<<<<<<<<<<<<
 *             assert type(c) in int_types and c >= 0,\
 *                    'Elementary divisors must be non-negative integers.\n'
*/
  if (likely(PyList_CheckExact(__pyx_v_self->divisors)) || PyTuple_CheckExact(__pyx_v_self->divisors)) {
    __pyx_t_4 = __pyx_v_self->divisors; __Pyx_INCREF(__pyx_t_4);
    __pyx_t_11 = 0;
    __pyx_t_12 = NULL;
  } else {
    __pyx_t_11 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_self->divisors); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 54, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_12)) __PYX_ERR(6, 54, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_12)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 54, __pyx_L1_error)
          #endif
          if (__pyx_t_11 >= __pyx_temp) break;
        }
        __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_11;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 54, __pyx_L1_error)
          #endif
          if (__pyx_t_11 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_11));
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_11);
        #endif
        ++__pyx_t_11;
      }
      if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 54, __pyx_L1_error)
    } else {
      __pyx_t_3 = __pyx_t_12(__pyx_t_4);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 54, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/abelian_group.pyx":55
 *             int_types += [Integer]
 *         for c in self.divisors:
 *             assert type(c) in int_types and c >= 0,\             # <<<<<<<<<<<<<<
 *                    'Elementary divisors must be non-negative integers.\n'
 *         for i in range(len(elementary_divisors) - 1):
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_13 = (__Pyx_PySequence_ContainsTF(((PyObject *)Py_TYPE(__pyx_v_c)), __pyx_v_int_types, Py_EQ)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(6, 55, __pyx_L1_error)
      if (__pyx_t_13) {
      } else {
        __pyx_t_1 = __pyx_t_13;
        goto __pyx_L15_bool_binop_done;
      }
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_c, __pyx_mstate_global->__pyx_int_0, Py_GE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 55, __pyx_L1_error)
      __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(6, 55, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_1 = __pyx_t_13;
      __pyx_L15_bool_binop_done:;
      if (unlikely(!__pyx_t_1)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_Elementary_divisors_must_be_non, 0, 0);
        __PYX_ERR(6, 55, __pyx_L1_error)
      }
    }
    #else
    if ((1)); else __PYX_ERR(6, 55, __pyx_L1_error)
    #endif

    /* "cython/core/abelian_group.pyx":54
 *             from sage.rings.integer import Integer
 *             int_types += [Integer]
 *         for c in self.divisors:             # <<<<<<<<<<<<<<
 *             assert type(c) in int_types and c >= 0,\
 *                    'Elementary divisors must be non-negative integers.\n'
*/
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/abelian_group.pyx":57
 *             assert type(c) in int_types and c >= 0,\
 *                    'Elementary divisors must be non-negative integers.\n'
 *         for i in range(len(elementary_divisors) - 1):             # <<<<<<<<<<<<<<
 *             n = elementary_divisors[i]
 *             m = elementary_divisors[i + 1]
*/
  __pyx_t_3 = NULL;
  __pyx_t_11 = PyObject_Length(__pyx_v_elementary_divisors); if (unlikely(__pyx_t_11 == ((Py_ssize_t)-1))) __PYX_ERR(6, 57, __pyx_L1_error)
  __pyx_t_2 = PyLong_FromSsize_t((__pyx_t_11 - 1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_2};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 57, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_2 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_12)) __PYX_ERR(6, 57, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  for (;;) {
    {
      __pyx_t_4 = __pyx_t_12(__pyx_t_2);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 57, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/abelian_group.pyx":58
 *                    'Elementary divisors must be non-negative integers.\n'
 *         for i in range(len(elementary_divisors) - 1):
 *             n = elementary_divisors[i]             # <<<<<<<<<<<<<<
 *             m = elementary_divisors[i + 1]
 *             assert (n == m == 0) or (m % n == 0),\
*/
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_elementary_divisors, __pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 58, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/abelian_group.pyx":59
 *         for i in range(len(elementary_divisors) - 1):
 *             n = elementary_divisors[i]
 *             m = elementary_divisors[i + 1]             # <<<<<<<<<<<<<<
 *             assert (n == m == 0) or (m % n == 0),\
 *                    'The elementary divisors must form a divisibility chain\n'
*/
    __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 59, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_elementary_divisors, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 59, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/abelian_group.pyx":60
 *             n = elementary_divisors[i]
 *             m = elementary_divisors[i + 1]
 *             assert (n == m == 0) or (m % n == 0),\             # <<<<<<<<<<<<<<
 *                    'The elementary divisors must form a divisibility chain\n'
 * 
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_n, __pyx_v_m, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 60, __pyx_L1_error)
      if (__Pyx_PyObject_IsTrue(__pyx_t_3)) {
        __Pyx_DECREF(__pyx_t_3);
        __pyx_t_3 = PyObject_RichCompare(__pyx_v_m, __pyx_mstate_global->__pyx_int_0, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 60, __pyx_L1_error)
      }
      __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(6, 60, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (!__pyx_t_13) {
      } else {
        __pyx_t_1 = __pyx_t_13;
        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_3 = PyNumber_Remainder(__pyx_v_m, __pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 60, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_13 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(6, 60, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_1 = __pyx_t_13;
      __pyx_L20_bool_binop_done:;
      if (unlikely(!__pyx_t_1)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_The_elementary_divisors_must_for, 0, 0);
        __PYX_ERR(6, 60, __pyx_L1_error)
      }
    }
    #else
    if ((1)); else __PYX_ERR(6, 60, __pyx_L1_error)
    #endif

    /* "cython/core/abelian_group.pyx":57
 *             assert type(c) in int_types and c >= 0,\
 *                    'Elementary divisors must be non-negative integers.\n'
 *         for i in range(len(elementary_divisors) - 1):             # <<<<<<<<<<<<<<
 *             n = elementary_divisors[i]
 *             m = elementary_divisors[i + 1]
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":65
 *         # So that the group is determined entirely by self.divisors
 *         # we don't allow '1' as a divisor.
 *         self.divisors = [n for n in self.divisors if n != 1]             # <<<<<<<<<<<<<<
 *         # Backwards compatibility hack, part 2.
 *         self.coefficients = self.divisors
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 65, __pyx_L25_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (likely(PyList_CheckExact(__pyx_v_self->divisors)) || PyTuple_CheckExact(__pyx_v_self->divisors)) {
      __pyx_t_3 = __pyx_v_self->divisors; __Pyx_INCREF(__pyx_t_3);
      __pyx_t_11 = 0;
      __pyx_t_12 = NULL;
    } else {
      __pyx_t_11 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_self->divisors); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 65, __pyx_L25_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_12)) __PYX_ERR(6, 65, __pyx_L25_error)
    }
    for (;;) {
      if (likely(!__pyx_t_12)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 65, __pyx_L25_error)
            #endif
            if (__pyx_t_11 >= __pyx_temp) break;
          }
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_11;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 65, __pyx_L25_error)
            #endif
            if (__pyx_t_11 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_11));
          #else
          __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_11);
          #endif
          ++__pyx_t_11;
        }
        if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 65, __pyx_L25_error)
      } else {
        __pyx_t_4 = __pyx_t_12(__pyx_t_3);
        if (unlikely(!__pyx_t_4)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 65, __pyx_L25_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_9genexpr58__pyx_v_n, __pyx_t_4);
      __pyx_t_4 = 0;
      __pyx_t_1 = (__Pyx_PyLong_BoolNeObjC(__pyx_9genexpr58__pyx_v_n, __pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 65, __pyx_L25_error)
      if (__pyx_t_1) {
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_9genexpr58__pyx_v_n))) __PYX_ERR(6, 65, __pyx_L25_error)
      }
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_9genexpr58__pyx_v_n); __pyx_9genexpr58__pyx_v_n = 0;
    goto __pyx_L30_exit_scope;
    __pyx_L25_error:;
    __Pyx_XDECREF(__pyx_9genexpr58__pyx_v_n); __pyx_9genexpr58__pyx_v_n = 0;
    goto __pyx_L1_error;
    __pyx_L30_exit_scope:;
  } /* exit inner scope */
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->divisors);
  __Pyx_DECREF(__pyx_v_self->divisors);
  __pyx_v_self->divisors = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":67
 *         self.divisors = [n for n in self.divisors if n != 1]
 *         # Backwards compatibility hack, part 2.
 *         self.coefficients = self.divisors             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_2 = __pyx_v_self->divisors;
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->coefficients);
  __Pyx_DECREF(__pyx_v_self->coefficients);
  __pyx_v_self->coefficients = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":41
 *     cdef public coefficients
 * 
 *     def __init__(self, presentation=None, elementary_divisors=[]):             # <<<<<<<<<<<<<<
 *         if presentation is not None:
 *             self.divisors = smith_form(presentation)
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_int_types);
  __Pyx_XDECREF(__pyx_v_Integer);
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_9genexpr58__pyx_v_n);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":69
 *         self.coefficients = self.divisors
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if len(self.divisors) == 0:
 *             return '0'
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_3__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_2__repr__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_2__repr__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  PyObject *__pyx_v_factors = NULL;
  PyObject *__pyx_9genexpr59__pyx_v_n = NULL;
  PyObject *__pyx_9genexpr60__pyx_v_n = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *(*__pyx_t_5)(PyObject *);
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/abelian_group.pyx":70
 * 
 *     def __repr__(self):
 *         if len(self.divisors) == 0:             # <<<<<<<<<<<<<<
 *             return '0'
 *         factors = (['Z/%d' % n for n in self.divisors if n] +
*/
  __pyx_t_1 = __pyx_v_self->divisors;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(6, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 == 0);
  if (__pyx_t_3) {

    /* "cython/core/abelian_group.pyx":71
 *     def __repr__(self):
 *         if len(self.divisors) == 0:
 *             return '0'             # <<<<<<<<<<<<<<
 *         factors = (['Z/%d' % n for n in self.divisors if n] +
 *                    ['Z' for n in self.divisors if not n])
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_0);
    __pyx_r = __pyx_mstate_global->__pyx_kp_u_0;
    goto __pyx_L0;

    /* "cython/core/abelian_group.pyx":70
 * 
 *     def __repr__(self):
 *         if len(self.divisors) == 0:             # <<<<<<<<<<<<<<
 *             return '0'
 *         factors = (['Z/%d' % n for n in self.divisors if n] +
*/
  }

  /* "cython/core/abelian_group.pyx":72
 *         if len(self.divisors) == 0:
 *             return '0'
 *         factors = (['Z/%d' % n for n in self.divisors if n] +             # <<<<<<<<<<<<<<
 *                    ['Z' for n in self.divisors if not n])
 *         return ' + '.join(factors)
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 72, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_self->divisors)) || PyTuple_CheckExact(__pyx_v_self->divisors)) {
      __pyx_t_4 = __pyx_v_self->divisors; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_2 = 0;
      __pyx_t_5 = NULL;
    } else {
      __pyx_t_2 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_self->divisors); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 72, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 72, __pyx_L6_error)
    }
    for (;;) {
      if (likely(!__pyx_t_5)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 72, __pyx_L6_error)
            #endif
            if (__pyx_t_2 >= __pyx_temp) break;
          }
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_2;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 72, __pyx_L6_error)
            #endif
            if (__pyx_t_2 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_2));
          #else
          __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_2);
          #endif
          ++__pyx_t_2;
        }
        if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 72, __pyx_L6_error)
      } else {
        __pyx_t_6 = __pyx_t_5(__pyx_t_4);
        if (unlikely(!__pyx_t_6)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 72, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_9genexpr59__pyx_v_n, __pyx_t_6);
      __pyx_t_6 = 0;
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_9genexpr59__pyx_v_n); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(6, 72, __pyx_L6_error)
      if (__pyx_t_3) {
        __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Z_d, __pyx_9genexpr59__pyx_v_n); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 72, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_6);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(6, 72, __pyx_L6_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_9genexpr59__pyx_v_n); __pyx_9genexpr59__pyx_v_n = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_9genexpr59__pyx_v_n); __pyx_9genexpr59__pyx_v_n = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  { /* enter inner scope */

    /* "cython/core/abelian_group.pyx":73
 *             return '0'
 *         factors = (['Z/%d' % n for n in self.divisors if n] +
 *                    ['Z' for n in self.divisors if not n])             # <<<<<<<<<<<<<<
 *         return ' + '.join(factors)
 * 
*/
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 73, __pyx_L14_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (likely(PyList_CheckExact(__pyx_v_self->divisors)) || PyTuple_CheckExact(__pyx_v_self->divisors)) {
      __pyx_t_6 = __pyx_v_self->divisors; __Pyx_INCREF(__pyx_t_6);
      __pyx_t_2 = 0;
      __pyx_t_5 = NULL;
    } else {
      __pyx_t_2 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_self->divisors); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 73, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 73, __pyx_L14_error)
    }
    for (;;) {
      if (likely(!__pyx_t_5)) {
        if (likely(PyList_CheckExact(__pyx_t_6))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 73, __pyx_L14_error)
            #endif
            if (__pyx_t_2 >= __pyx_temp) break;
          }
          __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_2;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 73, __pyx_L14_error)
            #endif
            if (__pyx_t_2 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_7 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_2));
          #else
          __pyx_t_7 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_2);
          #endif
          ++__pyx_t_2;
        }
        if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 73, __pyx_L14_error)
      } else {
        __pyx_t_7 = __pyx_t_5(__pyx_t_6);
        if (unlikely(!__pyx_t_7)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 73, __pyx_L14_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_XDECREF_SET(__pyx_9genexpr60__pyx_v_n, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_9genexpr60__pyx_v_n); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(6, 73, __pyx_L14_error)
      __pyx_t_8 = (!__pyx_t_3);
      if (__pyx_t_8) {
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_mstate_global->__pyx_n_u_Z))) __PYX_ERR(6, 73, __pyx_L14_error)
      }
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_9genexpr60__pyx_v_n); __pyx_9genexpr60__pyx_v_n = 0;
    goto __pyx_L19_exit_scope;
    __pyx_L14_error:;
    __Pyx_XDECREF(__pyx_9genexpr60__pyx_v_n); __pyx_9genexpr60__pyx_v_n = 0;
    goto __pyx_L1_error;
    __pyx_L19_exit_scope:;
  } /* exit inner scope */

  /* "cython/core/abelian_group.pyx":72
 *         if len(self.divisors) == 0:
 *             return '0'
 *         factors = (['Z/%d' % n for n in self.divisors if n] +             # <<<<<<<<<<<<<<
 *                    ['Z' for n in self.divisors if not n])
 *         return ' + '.join(factors)
*/
  __pyx_t_6 = PyNumber_Add(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_factors = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":74
 *         factors = (['Z/%d' % n for n in self.divisors if n] +
 *                    ['Z' for n in self.divisors if not n])
 *         return ' + '.join(factors)             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_6 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__12, __pyx_v_factors); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":69
 *         self.coefficients = self.divisors
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if len(self.divisors) == 0:
 *             return '0'
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_factors);
  __Pyx_XDECREF(__pyx_9genexpr59__pyx_v_n);
  __Pyx_XDECREF(__pyx_9genexpr60__pyx_v_n);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":76
 *         return ' + '.join(factors)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return len(self.divisors)
 * 
*/

/* Python wrapper */
static Py_ssize_t __pyx_pw_6SnapPy_12AbelianGroup_5__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_6SnapPy_12AbelianGroup_5__len__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_4__len__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_6SnapPy_12AbelianGroup_4__len__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "cython/core/abelian_group.pyx":77
 * 
 *     def __len__(self):
 *         return len(self.divisors)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, i):
*/
  __pyx_t_1 = __pyx_v_self->divisors;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(6, 77, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":76
 *         return ' + '.join(factors)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return len(self.divisors)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":79
 *         return len(self.divisors)
 * 
 *     def __getitem__(self, i):             # <<<<<<<<<<<<<<
 *         return self.divisors[i]
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_i); /*proto*/
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_i) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_6__getitem__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self), ((PyObject *)__pyx_v_i));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_6__getitem__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self, PyObject *__pyx_v_i) {
  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("__getitem__", 0);

  /* "cython/core/abelian_group.pyx":80
 * 
 *     def __getitem__(self, i):
 *         return self.divisors[i]             # <<<<<<<<<<<<<<
 * 
 *     def __reduce__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_self->divisors, __pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":79
 *         return len(self.divisors)
 * 
 *     def __getitem__(self, i):             # <<<<<<<<<<<<<<
 *         return self.divisors[i]
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":82
 *         return self.divisors[i]
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Used by the pickle module to pickle an Abelian Group.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_9__reduce__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_12AbelianGroup_8__reduce__, "\n        Used by the pickle module to pickle an Abelian Group.\n        >>> from pickle import loads, dumps\n        >>> A = AbelianGroup([[n**2 + 3 for n in range(n+3,n+10)] for n in range(7)])\n        >>> A\n        Z/8 + Z + Z + Z + Z\n        >>> A == loads(dumps(A))\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_12AbelianGroup_9__reduce__ = {"__reduce__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_9__reduce__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_8__reduce__};
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_9__reduce__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_8__reduce__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_8__reduce__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce__", 0);

  /* "cython/core/abelian_group.pyx":92
 *         True
 *         """
 *         return (AbelianGroup, (None, self.elementary_divisors()))             # <<<<<<<<<<<<<<
 * 
 *     def __richcmp__(AbelianGroup self, AbelianGroup other, op):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 92, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, Py_None) != (0)) __PYX_ERR(6, 92, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1) != (0)) __PYX_ERR(6, 92, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup);
  __Pyx_GIVEREF((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup)) != (0)) __PYX_ERR(6, 92, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2) != (0)) __PYX_ERR(6, 92, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":82
 *         return self.divisors[i]
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Used by the pickle module to pickle an Abelian Group.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.__reduce__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":94
 *         return (AbelianGroup, (None, self.elementary_divisors()))
 * 
 *     def __richcmp__(AbelianGroup self, AbelianGroup other, op):             # <<<<<<<<<<<<<<
 *         if op == 0:
 *             return self.divisors < other.elementary_divisors()
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_11__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_arg_op); /*proto*/
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_11__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_arg_op) {
  PyObject *__pyx_v_op = 0;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__richcmp__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_v_op = __Pyx_PyLong_From_int(__pyx_arg_op); if (unlikely(!__pyx_v_op)) __PYX_ERR(6, 94, __pyx_L3_error)
  __Pyx_GOTREF(__pyx_v_op);
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("SnapPy.AbelianGroup.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, 1, "other", 0))) __PYX_ERR(6, 94, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_10__richcmp__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self), ((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_other), ((PyObject *)__pyx_v_op));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  goto __pyx_L5_cleaned_up;
  __pyx_L0:;
  __pyx_L5_cleaned_up:;
  __Pyx_DECREF(__pyx_v_op);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_10__richcmp__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self, struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_other, PyObject *__pyx_v_op) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__richcmp__", 0);

  /* "cython/core/abelian_group.pyx":95
 * 
 *     def __richcmp__(AbelianGroup self, AbelianGroup other, op):
 *         if op == 0:             # <<<<<<<<<<<<<<
 *             return self.divisors < other.elementary_divisors()
 *         elif op == 2:
*/
  __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_op, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 95, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/abelian_group.pyx":96
 *     def __richcmp__(AbelianGroup self, AbelianGroup other, op):
 *         if op == 0:
 *             return self.divisors < other.elementary_divisors()             # <<<<<<<<<<<<<<
 *         elif op == 2:
 *             return self.divisors == other.elementary_divisors()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_other);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 96, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_self->divisors, __pyx_t_2, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 96, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/abelian_group.pyx":95
 * 
 *     def __richcmp__(AbelianGroup self, AbelianGroup other, op):
 *         if op == 0:             # <<<<<<<<<<<<<<
 *             return self.divisors < other.elementary_divisors()
 *         elif op == 2:
*/
  }

  /* "cython/core/abelian_group.pyx":97
 *         if op == 0:
 *             return self.divisors < other.elementary_divisors()
 *         elif op == 2:             # <<<<<<<<<<<<<<
 *             return self.divisors == other.elementary_divisors()
 *         elif op == 4:
*/
  __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_op, __pyx_mstate_global->__pyx_int_2, 2, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 97, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/abelian_group.pyx":98
 *             return self.divisors < other.elementary_divisors()
 *         elif op == 2:
 *             return self.divisors == other.elementary_divisors()             # <<<<<<<<<<<<<<
 *         elif op == 4:
 *             return self.divisors > other.elementary_divisors()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = ((PyObject *)__pyx_v_other);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 98, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_self->divisors, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 98, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/abelian_group.pyx":97
 *         if op == 0:
 *             return self.divisors < other.elementary_divisors()
 *         elif op == 2:             # <<<<<<<<<<<<<<
 *             return self.divisors == other.elementary_divisors()
 *         elif op == 4:
*/
  }

  /* "cython/core/abelian_group.pyx":99
 *         elif op == 2:
 *             return self.divisors == other.elementary_divisors()
 *         elif op == 4:             # <<<<<<<<<<<<<<
 *             return self.divisors > other.elementary_divisors()
 *         elif op == 1:
*/
  __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_op, __pyx_mstate_global->__pyx_int_4, 4, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 99, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/abelian_group.pyx":100
 *             return self.divisors == other.elementary_divisors()
 *         elif op == 4:
 *             return self.divisors > other.elementary_divisors()             # <<<<<<<<<<<<<<
 *         elif op == 1:
 *             return self.divisors <= other.elementary_divisors()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_other);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 100, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_self->divisors, __pyx_t_2, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 100, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/abelian_group.pyx":99
 *         elif op == 2:
 *             return self.divisors == other.elementary_divisors()
 *         elif op == 4:             # <<<<<<<<<<<<<<
 *             return self.divisors > other.elementary_divisors()
 *         elif op == 1:
*/
  }

  /* "cython/core/abelian_group.pyx":101
 *         elif op == 4:
 *             return self.divisors > other.elementary_divisors()
 *         elif op == 1:             # <<<<<<<<<<<<<<
 *             return self.divisors <= other.elementary_divisors()
 *         elif op == 3:
*/
  __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_op, __pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 101, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/abelian_group.pyx":102
 *             return self.divisors > other.elementary_divisors()
 *         elif op == 1:
 *             return self.divisors <= other.elementary_divisors()             # <<<<<<<<<<<<<<
 *         elif op == 3:
 *             return self.divisors != other.elementary_divisors()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = ((PyObject *)__pyx_v_other);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 102, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_self->divisors, __pyx_t_3, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 102, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/abelian_group.pyx":101
 *         elif op == 4:
 *             return self.divisors > other.elementary_divisors()
 *         elif op == 1:             # <<<<<<<<<<<<<<
 *             return self.divisors <= other.elementary_divisors()
 *         elif op == 3:
*/
  }

  /* "cython/core/abelian_group.pyx":103
 *         elif op == 1:
 *             return self.divisors <= other.elementary_divisors()
 *         elif op == 3:             # <<<<<<<<<<<<<<
 *             return self.divisors != other.elementary_divisors()
 *         elif op == 5:
*/
  __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_op, __pyx_mstate_global->__pyx_int_3, 3, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 103, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/abelian_group.pyx":104
 *             return self.divisors <= other.elementary_divisors()
 *         elif op == 3:
 *             return self.divisors != other.elementary_divisors()             # <<<<<<<<<<<<<<
 *         elif op == 5:
 *             return self.divisors >= other.elementary_divisors()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_other);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 104, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_self->divisors, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 104, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cython/core/abelian_group.pyx":103
 *         elif op == 1:
 *             return self.divisors <= other.elementary_divisors()
 *         elif op == 3:             # <<<<<<<<<<<<<<
 *             return self.divisors != other.elementary_divisors()
 *         elif op == 5:
*/
  }

  /* "cython/core/abelian_group.pyx":105
 *         elif op == 3:
 *             return self.divisors != other.elementary_divisors()
 *         elif op == 5:             # <<<<<<<<<<<<<<
 *             return self.divisors >= other.elementary_divisors()
 *         else:
*/
  __pyx_t_1 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_op, __pyx_mstate_global->__pyx_int_5, 5, 0)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(6, 105, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/abelian_group.pyx":106
 *             return self.divisors != other.elementary_divisors()
 *         elif op == 5:
 *             return self.divisors >= other.elementary_divisors()             # <<<<<<<<<<<<<<
 *         else:
 *             return NotImplemented
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = ((PyObject *)__pyx_v_other);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 106, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_self->divisors, __pyx_t_3, Py_GE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 106, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/abelian_group.pyx":105
 *         elif op == 3:
 *             return self.divisors != other.elementary_divisors()
 *         elif op == 5:             # <<<<<<<<<<<<<<
 *             return self.divisors >= other.elementary_divisors()
 *         else:
*/
  }

  /* "cython/core/abelian_group.pyx":108
 *             return self.divisors >= other.elementary_divisors()
 *         else:
 *             return NotImplemented             # <<<<<<<<<<<<<<
 * 
 *     def __call__(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_builtin_NotImplemented);
    __pyx_r = __pyx_builtin_NotImplemented;
    goto __pyx_L0;
  }

  /* "cython/core/abelian_group.pyx":94
 *         return (AbelianGroup, (None, self.elementary_divisors()))
 * 
 *     def __richcmp__(AbelianGroup self, AbelianGroup other, op):             # <<<<<<<<<<<<<<
 *         if op == 0:
 *             return self.divisors < other.elementary_divisors()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":110
 *             return NotImplemented
 * 
 *     def __call__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_13__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_13__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__call__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__call__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__call__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_12__call__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_12__call__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__call__", 0);

  /* "cython/core/abelian_group.pyx":111
 * 
 *     def __call__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def elementary_divisors(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":110
 *             return NotImplemented
 * 
 *     def __call__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":113
 *         return self
 * 
 *     def elementary_divisors(self):             # <<<<<<<<<<<<<<
 *         """
 *         The elementary divisors of this finitely generated abelian group.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_15elementary_divisors(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_12AbelianGroup_14elementary_divisors, "\n        The elementary divisors of this finitely generated abelian group.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_12AbelianGroup_15elementary_divisors = {"elementary_divisors", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_15elementary_divisors, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_14elementary_divisors};
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_15elementary_divisors(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("elementary_divisors (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("elementary_divisors", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("elementary_divisors", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_14elementary_divisors(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_14elementary_divisors(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("elementary_divisors", 0);

  /* "cython/core/abelian_group.pyx":117
 *         The elementary divisors of this finitely generated abelian group.
 *         """
 *         return self.divisors             # <<<<<<<<<<<<<<
 * 
 *     def rank(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->divisors);
  __pyx_r = __pyx_v_self->divisors;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":113
 *         return self
 * 
 *     def elementary_divisors(self):             # <<<<<<<<<<<<<<
 *         """
 *         The elementary divisors of this finitely generated abelian group.
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":119
 *         return self.divisors
 * 
 *     def rank(self):             # <<<<<<<<<<<<<<
 *         """
 *         The rank of the group.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_17rank(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_12AbelianGroup_16rank, "\n        The rank of the group.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_12AbelianGroup_17rank = {"rank", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_17rank, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_16rank};
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_17rank(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("rank (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("rank", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("rank", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_16rank(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_16rank(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("rank", 0);

  /* "cython/core/abelian_group.pyx":123
 *         The rank of the group.
 *         """
 *         return len(self.divisors)             # <<<<<<<<<<<<<<
 * 
 *     def betti_number(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_self->divisors;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(6, 123, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":119
 *         return self.divisors
 * 
 *     def rank(self):             # <<<<<<<<<<<<<<
 *         """
 *         The rank of the group.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.rank", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":125
 *         return len(self.divisors)
 * 
 *     def betti_number(self):             # <<<<<<<<<<<<<<
 *         """
 *         The rank of the maximal free abelian subgroup.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_19betti_number(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_12AbelianGroup_18betti_number, "\n        The rank of the maximal free abelian subgroup.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_12AbelianGroup_19betti_number = {"betti_number", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_19betti_number, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_18betti_number};
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_19betti_number(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("betti_number (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("betti_number", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("betti_number", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_18betti_number(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_18betti_number(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  PyObject *__pyx_9genexpr61__pyx_v_n = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("betti_number", 0);

  /* "cython/core/abelian_group.pyx":129
 *         The rank of the maximal free abelian subgroup.
 *         """
 *         return len([1 for n in self.divisors if n == 0])             # <<<<<<<<<<<<<<
 * 
 *     def order(self):
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 129, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_v_self->divisors)) || PyTuple_CheckExact(__pyx_v_self->divisors)) {
      __pyx_t_2 = __pyx_v_self->divisors; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = 0;
      __pyx_t_4 = NULL;
    } else {
      __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_self->divisors); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 129, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 129, __pyx_L5_error)
    }
    for (;;) {
      if (likely(!__pyx_t_4)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 129, __pyx_L5_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_3;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 129, __pyx_L5_error)
            #endif
            if (__pyx_t_3 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3));
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_3);
          #endif
          ++__pyx_t_3;
        }
        if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 129, __pyx_L5_error)
      } else {
        __pyx_t_5 = __pyx_t_4(__pyx_t_2);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 129, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_9genexpr61__pyx_v_n, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_6 = (__Pyx_PyLong_BoolEqObjC(__pyx_9genexpr61__pyx_v_n, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(6, 129, __pyx_L5_error)
      if (__pyx_t_6) {
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_mstate_global->__pyx_int_1))) __PYX_ERR(6, 129, __pyx_L5_error)
      }
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_9genexpr61__pyx_v_n); __pyx_9genexpr61__pyx_v_n = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr61__pyx_v_n); __pyx_9genexpr61__pyx_v_n = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_t_3 = __Pyx_PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(6, 129, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":125
 *         return len(self.divisors)
 * 
 *     def betti_number(self):             # <<<<<<<<<<<<<<
 *         """
 *         The rank of the maximal free abelian subgroup.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.betti_number", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_9genexpr61__pyx_v_n);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":131
 *         return len([1 for n in self.divisors if n == 0])
 * 
 *     def order(self):             # <<<<<<<<<<<<<<
 *         """
 *         The order of the group.  Returns the string 'infinite' if the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_21order(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_12AbelianGroup_20order, "\n        The order of the group.  Returns the string 'infinite' if the\n        group is infinite.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_12AbelianGroup_21order = {"order", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_21order, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_20order};
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_21order(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("order (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("order", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("order", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_20order(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_20order(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  PyObject *__pyx_v_det = NULL;
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("order", 0);

  /* "cython/core/abelian_group.pyx":136
 *         group is infinite.
 *         """
 *         det = 1             # <<<<<<<<<<<<<<
 *         for c in self.divisors:
 *             det = det * c
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
  __pyx_v_det = __pyx_mstate_global->__pyx_int_1;

  /* "cython/core/abelian_group.pyx":137
 *         """
 *         det = 1
 *         for c in self.divisors:             # <<<<<<<<<<<<<<
 *             det = det * c
 *         return 'infinite' if det == 0 else det
*/
  if (likely(PyList_CheckExact(__pyx_v_self->divisors)) || PyTuple_CheckExact(__pyx_v_self->divisors)) {
    __pyx_t_1 = __pyx_v_self->divisors; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_self->divisors); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 137, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 137, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 137, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 137, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 137, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/abelian_group.pyx":138
 *         det = 1
 *         for c in self.divisors:
 *             det = det * c             # <<<<<<<<<<<<<<
 *         return 'infinite' if det == 0 else det
 * 
*/
    __pyx_t_4 = PyNumber_Multiply(__pyx_v_det, __pyx_v_c); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_det, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/abelian_group.pyx":137
 *         """
 *         det = 1
 *         for c in self.divisors:             # <<<<<<<<<<<<<<
 *             det = det * c
 *         return 'infinite' if det == 0 else det
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/abelian_group.pyx":139
 *         for c in self.divisors:
 *             det = det * c
 *         return 'infinite' if det == 0 else det             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_5 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_det, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(6, 139, __pyx_L1_error)
  if (__pyx_t_5) {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_infinite);
    __pyx_t_1 = __pyx_mstate_global->__pyx_n_u_infinite;
  } else {
    __Pyx_INCREF(__pyx_v_det);
    __pyx_t_1 = __pyx_v_det;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":131
 *         return len([1 for n in self.divisors if n == 0])
 * 
 *     def order(self):             # <<<<<<<<<<<<<<
 *         """
 *         The order of the group.  Returns the string 'infinite' if the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.AbelianGroup.order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_det);
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":39
 *     cdef divisors
 *     # Backwards compatibility hack, part 1.
 *     cdef public coefficients             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, presentation=None, elementary_divisors=[]):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_12coefficients_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_12AbelianGroup_12coefficients_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_12coefficients___get__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12AbelianGroup_12coefficients___get__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->coefficients);
  __pyx_r = __pyx_v_self->coefficients;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_6SnapPy_12AbelianGroup_12coefficients_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_6SnapPy_12AbelianGroup_12coefficients_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_12coefficients_2__set__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_12AbelianGroup_12coefficients_2__set__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->coefficients);
  __Pyx_DECREF(__pyx_v_self->coefficients);
  __pyx_v_self->coefficients = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_6SnapPy_12AbelianGroup_12coefficients_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_6SnapPy_12AbelianGroup_12coefficients_5__del__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_12AbelianGroup_12coefficients_4__del__(((struct __pyx_obj_6SnapPy_AbelianGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_12AbelianGroup_12coefficients_4__del__(struct __pyx_obj_6SnapPy_AbelianGroup *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->coefficients);
  __Pyx_DECREF(__pyx_v_self->coefficients);
  __pyx_v_self->coefficients = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":150
 *     cdef set _units, dead_columns
 * 
 *     def __init__(self, rows, cols):             # <<<<<<<<<<<<<<
 *         self.rows = rows
 *         self.cols = cols
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_18PresentationMatrix_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6SnapPy_18PresentationMatrix_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_rows = 0;
  PyObject *__pyx_v_cols = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_rows,&__pyx_mstate_global->__pyx_n_u_cols,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(6, 150, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(6, 150, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 150, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(6, 150, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, i); __PYX_ERR(6, 150, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 150, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(6, 150, __pyx_L3_error)
    }
    __pyx_v_rows = values[0];
    __pyx_v_cols = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(6, 150, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix___init__(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self), __pyx_v_rows, __pyx_v_cols);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_18PresentationMatrix___init__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_rows, PyObject *__pyx_v_cols) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/abelian_group.pyx":151
 * 
 *     def __init__(self, rows, cols):
 *         self.rows = rows             # <<<<<<<<<<<<<<
 *         self.cols = cols
 *         self._row_support = {}
*/
  __pyx_t_1 = __Pyx_PyLong_As_int(__pyx_v_rows); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 151, __pyx_L1_error)
  __pyx_v_self->rows = __pyx_t_1;

  /* "cython/core/abelian_group.pyx":152
 *     def __init__(self, rows, cols):
 *         self.rows = rows
 *         self.cols = cols             # <<<<<<<<<<<<<<
 *         self._row_support = {}
 *         self._col_support = {}
*/
  __pyx_t_1 = __Pyx_PyLong_As_int(__pyx_v_cols); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 152, __pyx_L1_error)
  __pyx_v_self->cols = __pyx_t_1;

  /* "cython/core/abelian_group.pyx":153
 *         self.rows = rows
 *         self.cols = cols
 *         self._row_support = {}             # <<<<<<<<<<<<<<
 *         self._col_support = {}
 *         self._entries = {}
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->_row_support);
  __Pyx_DECREF(__pyx_v_self->_row_support);
  __pyx_v_self->_row_support = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":154
 *         self.cols = cols
 *         self._row_support = {}
 *         self._col_support = {}             # <<<<<<<<<<<<<<
 *         self._entries = {}
 *         self._units = set()
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->_col_support);
  __Pyx_DECREF(__pyx_v_self->_col_support);
  __pyx_v_self->_col_support = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":155
 *         self._row_support = {}
 *         self._col_support = {}
 *         self._entries = {}             # <<<<<<<<<<<<<<
 *         self._units = set()
 *         self.dead_columns = set()
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->_entries);
  __Pyx_DECREF(__pyx_v_self->_entries);
  __pyx_v_self->_entries = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":156
 *         self._col_support = {}
 *         self._entries = {}
 *         self._units = set()             # <<<<<<<<<<<<<<
 *         self.dead_columns = set()
 * 
*/
  __pyx_t_2 = PySet_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->_units);
  __Pyx_DECREF(__pyx_v_self->_units);
  __pyx_v_self->_units = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":157
 *         self._entries = {}
 *         self._units = set()
 *         self.dead_columns = set()             # <<<<<<<<<<<<<<
 * 
 *     def get_data(self):
*/
  __pyx_t_2 = PySet_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->dead_columns);
  __Pyx_DECREF(__pyx_v_self->dead_columns);
  __pyx_v_self->dead_columns = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":150
 *     cdef set _units, dead_columns
 * 
 *     def __init__(self, rows, cols):             # <<<<<<<<<<<<<<
 *         self.rows = rows
 *         self.cols = cols
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":159
 *         self.dead_columns = set()
 * 
 *     def get_data(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a triple (number of rows, number of columns, entries)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_3get_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_18PresentationMatrix_2get_data, "\n        Returns a triple (number of rows, number of columns, entries)\n        where entries is a dictionary for the non-zero entries of the\n        presentation matrix: the key is a pair (i,j) indicating the row and\n        column, the value is the value of the corresponding matrix entry.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_18PresentationMatrix_3get_data = {"get_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_3get_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_2get_data};
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_3get_data(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_data (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("get_data", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("get_data", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_2get_data(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_2get_data(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_data", 0);

  /* "cython/core/abelian_group.pyx":166
 *         column, the value is the value of the corresponding matrix entry.
 *         """
 *         return self.rows, self.cols, self._entries             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, ij, value):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->rows); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->cols); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(6, 166, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2) != (0)) __PYX_ERR(6, 166, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_entries);
  __Pyx_GIVEREF(__pyx_v_self->_entries);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_self->_entries) != (0)) __PYX_ERR(6, 166, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":159
 *         self.dead_columns = set()
 * 
 *     def get_data(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a triple (number of rows, number of columns, entries)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.get_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":168
 *         return self.rows, self.cols, self._entries
 * 
 *     def __setitem__(self, ij, value):             # <<<<<<<<<<<<<<
 *         i, j = ij
 *         # check bounds
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_18PresentationMatrix_5__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_ij, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_6SnapPy_18PresentationMatrix_5__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_ij, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_4__setitem__(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self), ((PyObject *)__pyx_v_ij), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_18PresentationMatrix_4__setitem__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_ij, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_j = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "cython/core/abelian_group.pyx":169
 * 
 *     def __setitem__(self, ij, value):
 *         i, j = ij             # <<<<<<<<<<<<<<
 *         # check bounds
 *         if not 0 <= i < self.rows or not 0 <= j < self.cols:
*/
  if ((likely(PyTuple_CheckExact(__pyx_v_ij))) || (PyList_CheckExact(__pyx_v_ij))) {
    PyObject* sequence = __pyx_v_ij;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 2)) {
      if (size > 2) __Pyx_RaiseTooManyValuesError(2);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(6, 169, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_2);
    } else {
      __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 169, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 169, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
    }
    #else
    __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 169, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 169, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
  } else {
    Py_ssize_t index = -1;
    __pyx_t_3 = PyObject_GetIter(__pyx_v_ij); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 169, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3);
    index = 0; __pyx_t_1 = __pyx_t_4(__pyx_t_3); if (unlikely(!__pyx_t_1)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_1);
    index = 1; __pyx_t_2 = __pyx_t_4(__pyx_t_3); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_4(__pyx_t_3), 2) < (0)) __PYX_ERR(6, 169, __pyx_L1_error)
    __pyx_t_4 = NULL;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(6, 169, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }
  __pyx_v_i = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_v_j = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":171
 *         i, j = ij
 *         # check bounds
 *         if not 0 <= i < self.rows or not 0 <= j < self.cols:             # <<<<<<<<<<<<<<
 *             raise IndexError
 *         self._set(ij, value)
*/
  __pyx_t_2 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_i, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 171, __pyx_L1_error)
  if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
    __Pyx_DECREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->rows); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_i, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 171, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(6, 171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_7 = (!__pyx_t_6);
  if (!__pyx_t_7) {
  } else {
    __pyx_t_5 = __pyx_t_7;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_2 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_j, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 171, __pyx_L1_error)
  if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
    __Pyx_DECREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_j, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 171, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(6, 171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_6 = (!__pyx_t_7);
  __pyx_t_5 = __pyx_t_6;
  __pyx_L6_bool_binop_done:;
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/abelian_group.pyx":172
 *         # check bounds
 *         if not 0 <= i < self.rows or not 0 <= j < self.cols:
 *             raise IndexError             # <<<<<<<<<<<<<<
 *         self._set(ij, value)
 * 
*/
    __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_IndexError))), 0, 0, 0);
    __PYX_ERR(6, 172, __pyx_L1_error)

    /* "cython/core/abelian_group.pyx":171
 *         i, j = ij
 *         # check bounds
 *         if not 0 <= i < self.rows or not 0 <= j < self.cols:             # <<<<<<<<<<<<<<
 *             raise IndexError
 *         self._set(ij, value)
*/
  }

  /* "cython/core/abelian_group.pyx":173
 *         if not 0 <= i < self.rows or not 0 <= j < self.cols:
 *             raise IndexError
 *         self._set(ij, value)             # <<<<<<<<<<<<<<
 * 
 *     cdef _set(self, ij, value):
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_PresentationMatrix *)__pyx_v_self->__pyx_vtab)->_set(__pyx_v_self, __pyx_v_ij, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":168
 *         return self.rows, self.cols, self._entries
 * 
 *     def __setitem__(self, ij, value):             # <<<<<<<<<<<<<<
 *         i, j = ij
 *         # check bounds
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":175
 *         self._set(ij, value)
 * 
 *     cdef _set(self, ij, value):             # <<<<<<<<<<<<<<
 *         # cdef'ed to allow for faster calling
 *         i, j = ij
*/

static PyObject *__pyx_f_6SnapPy_18PresentationMatrix__set(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_ij, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_j = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  size_t __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_set", 0);

  /* "cython/core/abelian_group.pyx":177
 *     cdef _set(self, ij, value):
 *         # cdef'ed to allow for faster calling
 *         i, j = ij             # <<<<<<<<<<<<<<
 *         # keep track of units
 *         if value == 1 or value == -1:
*/
  if ((likely(PyTuple_CheckExact(__pyx_v_ij))) || (PyList_CheckExact(__pyx_v_ij))) {
    PyObject* sequence = __pyx_v_ij;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 2)) {
      if (size > 2) __Pyx_RaiseTooManyValuesError(2);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(6, 177, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_2);
    } else {
      __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 177, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 177, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
    }
    #else
    __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
  } else {
    Py_ssize_t index = -1;
    __pyx_t_3 = PyObject_GetIter(__pyx_v_ij); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3);
    index = 0; __pyx_t_1 = __pyx_t_4(__pyx_t_3); if (unlikely(!__pyx_t_1)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_1);
    index = 1; __pyx_t_2 = __pyx_t_4(__pyx_t_3); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_2);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_4(__pyx_t_3), 2) < (0)) __PYX_ERR(6, 177, __pyx_L1_error)
    __pyx_t_4 = NULL;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(6, 177, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }
  __pyx_v_i = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_v_j = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/abelian_group.pyx":179
 *         i, j = ij
 *         # keep track of units
 *         if value == 1 or value == -1:             # <<<<<<<<<<<<<<
 *             self._units.add(ij)
 *         else:
*/
  __pyx_t_6 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_value, __pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(6, 179, __pyx_L1_error)
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }
  __pyx_t_6 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_value, __pyx_mstate_global->__pyx_int_neg_1, -1L, 0)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(6, 179, __pyx_L1_error)
  __pyx_t_5 = __pyx_t_6;
  __pyx_L6_bool_binop_done:;
  if (__pyx_t_5) {

    /* "cython/core/abelian_group.pyx":180
 *         # keep track of units
 *         if value == 1 or value == -1:
 *             self._units.add(ij)             # <<<<<<<<<<<<<<
 *         else:
 *             try:
*/
    if (unlikely(__pyx_v_self->_units == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
      __PYX_ERR(6, 180, __pyx_L1_error)
    }
    __pyx_t_7 = PySet_Add(__pyx_v_self->_units, __pyx_v_ij); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(6, 180, __pyx_L1_error)

    /* "cython/core/abelian_group.pyx":179
 *         i, j = ij
 *         # keep track of units
 *         if value == 1 or value == -1:             # <<<<<<<<<<<<<<
 *             self._units.add(ij)
 *         else:
*/
    goto __pyx_L5;
  }

  /* "cython/core/abelian_group.pyx":182
 *             self._units.add(ij)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 self._units.remove(ij)
 *             except KeyError:
*/
  /*else*/ {
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "cython/core/abelian_group.pyx":183
 *         else:
 *             try:
 *                 self._units.remove(ij)             # <<<<<<<<<<<<<<
 *             except KeyError:
 *                 pass
*/
        if (unlikely(__pyx_v_self->_units == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "remove");
          __PYX_ERR(6, 183, __pyx_L8_error)
        }
        __pyx_t_7 = __Pyx_PySet_Remove(__pyx_v_self->_units, __pyx_v_ij); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(6, 183, __pyx_L8_error)

        /* "cython/core/abelian_group.pyx":182
 *             self._units.add(ij)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 self._units.remove(ij)
 *             except KeyError:
*/
      }
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L13_try_end;
      __pyx_L8_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/abelian_group.pyx":184
 *             try:
 *                 self._units.remove(ij)
 *             except KeyError:             # <<<<<<<<<<<<<<
 *                 pass
 *         # don't store any zeros
*/
      __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
      if (__pyx_t_11) {
        __Pyx_ErrRestore(0,0,0);
        goto __pyx_L9_exception_handled;
      }
      goto __pyx_L10_except_error;

      /* "cython/core/abelian_group.pyx":182
 *             self._units.add(ij)
 *         else:
 *             try:             # <<<<<<<<<<<<<<
 *                 self._units.remove(ij)
 *             except KeyError:
*/
      __pyx_L10_except_error:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L9_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      __pyx_L13_try_end:;
    }
  }
  __pyx_L5:;

  /* "cython/core/abelian_group.pyx":187
 *                 pass
 *         # don't store any zeros
 *         if value == 0:             # <<<<<<<<<<<<<<
 *             try:
 *                 self._entries.pop(ij)
*/
  __pyx_t_5 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_value, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(6, 187, __pyx_L1_error)
  if (__pyx_t_5) {

    /* "cython/core/abelian_group.pyx":188
 *         # don't store any zeros
 *         if value == 0:
 *             try:             # <<<<<<<<<<<<<<
 *                 self._entries.pop(ij)
 *                 self._row_support[i].remove(j)
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_9, &__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_8);
      /*try:*/ {

        /* "cython/core/abelian_group.pyx":189
 *         if value == 0:
 *             try:
 *                 self._entries.pop(ij)             # <<<<<<<<<<<<<<
 *                 self._row_support[i].remove(j)
 *                 self._col_support[j].remove(i)
*/
        if (unlikely(__pyx_v_self->_entries == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "pop");
          __PYX_ERR(6, 189, __pyx_L17_error)
        }
        __pyx_t_2 = __Pyx_PyDict_Pop(__pyx_v_self->_entries, __pyx_v_ij, ((PyObject *)NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 189, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cython/core/abelian_group.pyx":190
 *             try:
 *                 self._entries.pop(ij)
 *                 self._row_support[i].remove(j)             # <<<<<<<<<<<<<<
 *                 self._col_support[j].remove(i)
 *             except KeyError:
*/
        if (unlikely(__pyx_v_self->_row_support == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(6, 190, __pyx_L17_error)
        }
        __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_self->_row_support, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 190, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_1 = __pyx_t_3;
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_12 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_j};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_remove, __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 190, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cython/core/abelian_group.pyx":191
 *                 self._entries.pop(ij)
 *                 self._row_support[i].remove(j)
 *                 self._col_support[j].remove(i)             # <<<<<<<<<<<<<<
 *             except KeyError:
 *                 pass
*/
        if (unlikely(__pyx_v_self->_col_support == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
          __PYX_ERR(6, 191, __pyx_L17_error)
        }
        __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_self->_col_support, __pyx_v_j); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 191, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1;
        __Pyx_INCREF(__pyx_t_3);
        __pyx_t_12 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_i};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_remove, __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 191, __pyx_L17_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cython/core/abelian_group.pyx":188
 *         # don't store any zeros
 *         if value == 0:
 *             try:             # <<<<<<<<<<<<<<
 *                 self._entries.pop(ij)
 *                 self._row_support[i].remove(j)
*/
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L22_try_end;
      __pyx_L17_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/abelian_group.pyx":192
 *                 self._row_support[i].remove(j)
 *                 self._col_support[j].remove(i)
 *             except KeyError:             # <<<<<<<<<<<<<<
 *                 pass
 *             return
*/
      __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
      if (__pyx_t_11) {
        __Pyx_ErrRestore(0,0,0);
        goto __pyx_L18_exception_handled;
      }
      goto __pyx_L19_except_error;

      /* "cython/core/abelian_group.pyx":188
 *         # don't store any zeros
 *         if value == 0:
 *             try:             # <<<<<<<<<<<<<<
 *                 self._entries.pop(ij)
 *                 self._row_support[i].remove(j)
*/
      __pyx_L19_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_8);
      goto __pyx_L1_error;
      __pyx_L18_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_8);
      __pyx_L22_try_end:;
    }

    /* "cython/core/abelian_group.pyx":194
 *             except KeyError:
 *                 pass
 *             return             # <<<<<<<<<<<<<<
 *         # keep track of row and column supports
 *         try:
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/abelian_group.pyx":187
 *                 pass
 *         # don't store any zeros
 *         if value == 0:             # <<<<<<<<<<<<<<
 *             try:
 *                 self._entries.pop(ij)
*/
  }

  /* "cython/core/abelian_group.pyx":196
 *             return
 *         # keep track of row and column supports
 *         try:             # <<<<<<<<<<<<<<
 *             self._row_support[i].add(j)
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_10);
    /*try:*/ {

      /* "cython/core/abelian_group.pyx":197
 *         # keep track of row and column supports
 *         try:
 *             self._row_support[i].add(j)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             self._row_support[i] = set([j])
*/
      if (unlikely(__pyx_v_self->_row_support == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(6, 197, __pyx_L25_error)
      }
      __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_self->_row_support, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 197, __pyx_L25_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_1 = __pyx_t_3;
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_12 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_j};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_add, __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 197, __pyx_L25_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/abelian_group.pyx":196
 *             return
 *         # keep track of row and column supports
 *         try:             # <<<<<<<<<<<<<<
 *             self._row_support[i].add(j)
 *         except KeyError:
*/
    }
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    goto __pyx_L30_try_end;
    __pyx_L25_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/abelian_group.pyx":198
 *         try:
 *             self._row_support[i].add(j)
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             self._row_support[i] = set([j])
 *         try:
*/
    __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_11) {
      __Pyx_AddTraceback("SnapPy.PresentationMatrix._set", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_1) < 0) __PYX_ERR(6, 198, __pyx_L27_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_1);

      /* "cython/core/abelian_group.pyx":199
 *             self._row_support[i].add(j)
 *         except KeyError:
 *             self._row_support[i] = set([j])             # <<<<<<<<<<<<<<
 *         try:
 *             self._col_support[j].add(i)
*/
      __pyx_t_13 = PySet_New(0); if (unlikely(!__pyx_t_13)) __PYX_ERR(6, 199, __pyx_L27_except_error)
      __Pyx_GOTREF(__pyx_t_13);
      if (PySet_Add(__pyx_t_13, __pyx_v_j) < (0)) __PYX_ERR(6, 199, __pyx_L27_except_error)
      if (unlikely(__pyx_v_self->_row_support == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(6, 199, __pyx_L27_except_error)
      }
      if (unlikely((PyDict_SetItem(__pyx_v_self->_row_support, __pyx_v_i, __pyx_t_13) < 0))) __PYX_ERR(6, 199, __pyx_L27_except_error)
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L26_exception_handled;
    }
    goto __pyx_L27_except_error;

    /* "cython/core/abelian_group.pyx":196
 *             return
 *         # keep track of row and column supports
 *         try:             # <<<<<<<<<<<<<<
 *             self._row_support[i].add(j)
 *         except KeyError:
*/
    __pyx_L27_except_error:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    goto __pyx_L1_error;
    __pyx_L26_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
    __pyx_L30_try_end:;
  }

  /* "cython/core/abelian_group.pyx":200
 *         except KeyError:
 *             self._row_support[i] = set([j])
 *         try:             # <<<<<<<<<<<<<<
 *             self._col_support[j].add(i)
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_9, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_10);
    __Pyx_XGOTREF(__pyx_t_9);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cython/core/abelian_group.pyx":201
 *             self._row_support[i] = set([j])
 *         try:
 *             self._col_support[j].add(i)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             self._col_support[j] = set([i])
*/
      if (unlikely(__pyx_v_self->_col_support == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(6, 201, __pyx_L33_error)
      }
      __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_self->_col_support, __pyx_v_j); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 201, __pyx_L33_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __pyx_t_2;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_12 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_i};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_add, __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 201, __pyx_L33_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cython/core/abelian_group.pyx":200
 *         except KeyError:
 *             self._row_support[i] = set([j])
 *         try:             # <<<<<<<<<<<<<<
 *             self._col_support[j].add(i)
 *         except KeyError:
*/
    }
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L38_try_end;
    __pyx_L33_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/abelian_group.pyx":202
 *         try:
 *             self._col_support[j].add(i)
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             self._col_support[j] = set([i])
 *         # set the value
*/
    __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_11) {
      __Pyx_AddTraceback("SnapPy.PresentationMatrix._set", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3) < 0) __PYX_ERR(6, 202, __pyx_L35_except_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_3);

      /* "cython/core/abelian_group.pyx":203
 *             self._col_support[j].add(i)
 *         except KeyError:
 *             self._col_support[j] = set([i])             # <<<<<<<<<<<<<<
 *         # set the value
 *         self._entries[ij] = value
*/
      __pyx_t_13 = PySet_New(0); if (unlikely(!__pyx_t_13)) __PYX_ERR(6, 203, __pyx_L35_except_error)
      __Pyx_GOTREF(__pyx_t_13);
      if (PySet_Add(__pyx_t_13, __pyx_v_i) < (0)) __PYX_ERR(6, 203, __pyx_L35_except_error)
      if (unlikely(__pyx_v_self->_col_support == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(6, 203, __pyx_L35_except_error)
      }
      if (unlikely((PyDict_SetItem(__pyx_v_self->_col_support, __pyx_v_j, __pyx_t_13) < 0))) __PYX_ERR(6, 203, __pyx_L35_except_error)
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L34_exception_handled;
    }
    goto __pyx_L35_except_error;

    /* "cython/core/abelian_group.pyx":200
 *         except KeyError:
 *             self._row_support[i] = set([j])
 *         try:             # <<<<<<<<<<<<<<
 *             self._col_support[j].add(i)
 *         except KeyError:
*/
    __pyx_L35_except_error:;
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L34_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_9);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_9, __pyx_t_8);
    __pyx_L38_try_end:;
  }

  /* "cython/core/abelian_group.pyx":205
 *             self._col_support[j] = set([i])
 *         # set the value
 *         self._entries[ij] = value             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, ij):
*/
  if (unlikely(__pyx_v_self->_entries == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(6, 205, __pyx_L1_error)
  }
  if (unlikely((PyDict_SetItem(__pyx_v_self->_entries, __pyx_v_ij, __pyx_v_value) < 0))) __PYX_ERR(6, 205, __pyx_L1_error)

  /* "cython/core/abelian_group.pyx":175
 *         self._set(ij, value)
 * 
 *     cdef _set(self, ij, value):             # <<<<<<<<<<<<<<
 *         # cdef'ed to allow for faster calling
 *         i, j = ij
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_13);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix._set", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":207
 *         self._entries[ij] = value
 * 
 *     def __getitem__(self, ij):             # <<<<<<<<<<<<<<
 *         return self._entries.get(ij, 0)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_ij); /*proto*/
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_ij) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_6__getitem__(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self), ((PyObject *)__pyx_v_ij));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_6__getitem__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_ij) {
  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("__getitem__", 0);

  /* "cython/core/abelian_group.pyx":208
 * 
 *     def __getitem__(self, ij):
 *         return self._entries.get(ij, 0)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_self->_entries == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
    __PYX_ERR(6, 208, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_self->_entries, __pyx_v_ij, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":207
 *         self._entries[ij] = value
 * 
 *     def __getitem__(self, ij):             # <<<<<<<<<<<<<<
 *         return self._entries.get(ij, 0)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":210
 *         return self._entries.get(ij, 0)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(self.explode())
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_9__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_9__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_8__repr__(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_8__repr__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/abelian_group.pyx":211
 * 
 *     def __repr__(self):
 *         return repr(self.explode())             # <<<<<<<<<<<<<<
 * 
 *     def add_rows(self, n):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_explode, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":210
 *         return self._entries.get(ij, 0)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(self.explode())
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":213
 *         return repr(self.explode())
 * 
 *     def add_rows(self, n):             # <<<<<<<<<<<<<<
 *         self.rows += n
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_11add_rows(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_18PresentationMatrix_11add_rows = {"add_rows", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_11add_rows, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_11add_rows(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("add_rows (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(6, 213, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 213, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "add_rows", 0) < (0)) __PYX_ERR(6, 213, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("add_rows", 1, 1, 1, i); __PYX_ERR(6, 213, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 213, __pyx_L3_error)
    }
    __pyx_v_n = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("add_rows", 1, 1, 1, __pyx_nargs); __PYX_ERR(6, 213, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.add_rows", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_10add_rows(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self), __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_10add_rows(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_n) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("add_rows", 0);

  /* "cython/core/abelian_group.pyx":214
 * 
 *     def add_rows(self, n):
 *         self.rows += n             # <<<<<<<<<<<<<<
 * 
 *     def row_op(self, i, j, m):
*/
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->rows); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_t_1, __pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 214, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->rows = __pyx_t_3;

  /* "cython/core/abelian_group.pyx":213
 *         return repr(self.explode())
 * 
 *     def add_rows(self, n):             # <<<<<<<<<<<<<<
 *         self.rows += n
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.add_rows", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":216
 *         self.rows += n
 * 
 *     def row_op(self, i, j, m):             # <<<<<<<<<<<<<<
 *         """
 *         Subtract m * row_i from row_j
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_13row_op(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_18PresentationMatrix_12row_op, "\n        Subtract m * row_i from row_j\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_18PresentationMatrix_13row_op = {"row_op", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_13row_op, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_12row_op};
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_13row_op(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_i = 0;
  PyObject *__pyx_v_j = 0;
  PyObject *__pyx_v_m = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("row_op (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,&__pyx_mstate_global->__pyx_n_u_m,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(6, 216, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(6, 216, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(6, 216, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 216, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "row_op", 0) < (0)) __PYX_ERR(6, 216, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("row_op", 1, 3, 3, i); __PYX_ERR(6, 216, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(6, 216, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(6, 216, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(6, 216, __pyx_L3_error)
    }
    __pyx_v_i = values[0];
    __pyx_v_j = values[1];
    __pyx_v_m = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("row_op", 1, 3, 3, __pyx_nargs); __PYX_ERR(6, 216, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.row_op", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_12row_op(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self), __pyx_v_i, __pyx_v_j, __pyx_v_m);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_12row_op(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v_i, PyObject *__pyx_v_j, PyObject *__pyx_v_m) {
  PyObject *__pyx_v_k = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("row_op", 0);

  /* "cython/core/abelian_group.pyx":220
 *         Subtract m * row_i from row_j
 *         """
 *         for k in list(self._row_support[i]):             # <<<<<<<<<<<<<<
 *             self[j,k] -= m*self[i,k]
 * 
*/
  if (unlikely(__pyx_v_self->_row_support == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(6, 220, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_self->_row_support, __pyx_v_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PySequence_ListKeepNew(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 220, __pyx_L1_error)
      #endif
      if (__pyx_t_3 >= __pyx_temp) break;
    }
    __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_3;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/abelian_group.pyx":221
 *         """
 *         for k in list(self._row_support[i]):
 *             self[j,k] -= m*self[i,k]             # <<<<<<<<<<<<<<
 * 
 *     def explode(self):
*/
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_j);
    __Pyx_GIVEREF(__pyx_v_j);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_j) != (0)) __PYX_ERR(6, 221, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_k);
    __Pyx_GIVEREF(__pyx_v_k);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_k) != (0)) __PYX_ERR(6, 221, __pyx_L1_error);
    __pyx_t_4 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_INCREF(__pyx_v_i);
    __Pyx_GIVEREF(__pyx_v_i);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_i) != (0)) __PYX_ERR(6, 221, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_k);
    __Pyx_GIVEREF(__pyx_v_k);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_k) != (0)) __PYX_ERR(6, 221, __pyx_L1_error);
    __pyx_t_6 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Multiply(__pyx_v_m, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(6, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyNumber_InPlaceSubtract(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely((PyObject_SetItem(((PyObject *)__pyx_v_self), __pyx_t_2, __pyx_t_6) < 0))) __PYX_ERR(6, 221, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/abelian_group.pyx":220
 *         Subtract m * row_i from row_j
 *         """
 *         for k in list(self._row_support[i]):             # <<<<<<<<<<<<<<
 *             self[j,k] -= m*self[i,k]
 * 
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/abelian_group.pyx":216
 *         self.rows += n
 * 
 *     def row_op(self, i, j, m):             # <<<<<<<<<<<<<<
 *         """
 *         Subtract m * row_i from row_j
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.row_op", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":223
 *             self[j,k] -= m*self[i,k]
 * 
 *     def explode(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the full matrix, including dead columns, as a list of lists.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_15explode(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_18PresentationMatrix_14explode, "\n        Return the full matrix, including dead columns, as a list of lists.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_18PresentationMatrix_15explode = {"explode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_15explode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_14explode};
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_15explode(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("explode (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("explode", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("explode", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_14explode(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_14explode(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self) {
  PyObject *__pyx_9genexpr62__pyx_v_i = NULL;
  int __pyx_9genexpr63__pyx_v_j;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("explode", 0);

  /* "cython/core/abelian_group.pyx":227
 *         Return the full matrix, including dead columns, as a list of lists.
 *         """
 *         return [[self._entries.get((i, j), 0) for j in range(self.cols)]             # <<<<<<<<<<<<<<
 *                 for i in range(self.rows)]
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 227, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/abelian_group.pyx":228
 *         """
 *         return [[self._entries.get((i, j), 0) for j in range(self.cols)]
 *                 for i in range(self.rows)]             # <<<<<<<<<<<<<<
 * 
 *     def simplify(self):
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_self->rows); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 228, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 228, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(6, 228, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 228, __pyx_L5_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_6(__pyx_t_4);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 228, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_9genexpr62__pyx_v_i, __pyx_t_2);
      __pyx_t_2 = 0;
      { /* enter inner scope */

        /* "cython/core/abelian_group.pyx":227
 *         Return the full matrix, including dead columns, as a list of lists.
 *         """
 *         return [[self._entries.get((i, j), 0) for j in range(self.cols)]             # <<<<<<<<<<<<<<
 *                 for i in range(self.rows)]
 * 
*/
        __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 227, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = __pyx_v_self->cols;
        __pyx_t_8 = __pyx_t_7;
        for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
          __pyx_9genexpr63__pyx_v_j = __pyx_t_9;
          if (unlikely(__pyx_v_self->_entries == Py_None)) {
            PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
            __PYX_ERR(6, 227, __pyx_L5_error)
          }
          __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_9genexpr63__pyx_v_j); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 227, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 227, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_INCREF(__pyx_9genexpr62__pyx_v_i);
          __Pyx_GIVEREF(__pyx_9genexpr62__pyx_v_i);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_9genexpr62__pyx_v_i) != (0)) __PYX_ERR(6, 227, __pyx_L5_error);
          __Pyx_GIVEREF(__pyx_t_3);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_3) != (0)) __PYX_ERR(6, 227, __pyx_L5_error);
          __pyx_t_3 = 0;
          __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_self->_entries, __pyx_t_10, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 227, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_3))) __PYX_ERR(6, 227, __pyx_L5_error)
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
      } /* exit inner scope */
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) __PYX_ERR(6, 227, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/abelian_group.pyx":228
 *         """
 *         return [[self._entries.get((i, j), 0) for j in range(self.cols)]
 *                 for i in range(self.rows)]             # <<<<<<<<<<<<<<
 * 
 *     def simplify(self):
*/
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_i); __pyx_9genexpr62__pyx_v_i = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_i); __pyx_9genexpr62__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":223
 *             self[j,k] -= m*self[i,k]
 * 
 *     def explode(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the full matrix, including dead columns, as a list of lists.
*/

  /* function exit code */
  __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_10);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.explode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_9genexpr62__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":230
 *                 for i in range(self.rows)]
 * 
 *     def simplify(self):             # <<<<<<<<<<<<<<
 *         """
 *         If any entry is a unit, eliminate the corresponding generator.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_17simplify(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_18PresentationMatrix_16simplify, "\n        If any entry is a unit, eliminate the corresponding generator.\n        Continue until no units remain.  When a generator is removed,\n        remember its column index.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_18PresentationMatrix_17simplify = {"simplify", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_17simplify, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_16simplify};
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_17simplify(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("simplify (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("simplify", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("simplify", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_16simplify(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_16simplify(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self) {
  int __pyx_v_i;
  int __pyx_v_j;
  int __pyx_v_k;
  int __pyx_v_l;
  PyObject *__pyx_v_col_support = NULL;
  PyObject *__pyx_v_row_entries = NULL;
  PyObject *__pyx_v_unit = NULL;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_a_il = NULL;
  PyObject *__pyx_v_kl = NULL;
  PyObject *__pyx_v_temp = NULL;
  int __pyx_9genexpr64__pyx_v_k;
  int __pyx_9genexpr65__pyx_v_l;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  int __pyx_t_12;
  PyObject *(*__pyx_t_13)(PyObject *);
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("simplify", 0);

  /* "cython/core/abelian_group.pyx":236
 *         remember its column index.
 *         """
 *         cdef int i = 0, j = 0, k, l             # <<<<<<<<<<<<<<
 *         while len(self._units) > 0:
 *             for i, j in self._units:
*/
  __pyx_v_i = 0;
  __pyx_v_j = 0;

  /* "cython/core/abelian_group.pyx":237
 *         """
 *         cdef int i = 0, j = 0, k, l
 *         while len(self._units) > 0:             # <<<<<<<<<<<<<<
 *             for i, j in self._units:
 *                 break
*/
  while (1) {
    __pyx_t_1 = __pyx_v_self->_units;
    __Pyx_INCREF(__pyx_t_1);
    if (unlikely(__pyx_t_1 == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
      __PYX_ERR(6, 237, __pyx_L1_error)
    }
    __pyx_t_2 = __Pyx_PySet_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(6, 237, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_3 = (__pyx_t_2 > 0);
    if (!__pyx_t_3) break;

    /* "cython/core/abelian_group.pyx":238
 *         cdef int i = 0, j = 0, k, l
 *         while len(self._units) > 0:
 *             for i, j in self._units:             # <<<<<<<<<<<<<<
 *                 break
 *             col_support = [k for k in self._col_support[j] if k != i] + [i]
*/
    __pyx_t_2 = 0;
    __pyx_t_6 = __Pyx_set_iterator(__pyx_v_self->_units, 1, (&__pyx_t_4), (&__pyx_t_5)); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 238, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_6;
    __pyx_t_6 = 0;
    while (1) {
      __pyx_t_7 = __Pyx_set_iter_next(__pyx_t_1, __pyx_t_4, &__pyx_t_2, &__pyx_t_6, __pyx_t_5);
      if (unlikely(__pyx_t_7 == 0)) break;
      if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(6, 238, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) {
        PyObject* sequence = __pyx_t_6;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(6, 238, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_8);
          __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_9);
        } else {
          __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_8)) __PYX_ERR(6, 238, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_8);
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 238, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_9);
        }
        #else
        __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(6, 238, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 238, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        #endif
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_10 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 238, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
        index = 0; __pyx_t_8 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_8)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_8);
        index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < (0)) __PYX_ERR(6, 238, __pyx_L1_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L8_unpacking_done;
        __pyx_L7_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(6, 238, __pyx_L1_error)
        __pyx_L8_unpacking_done:;
      }
      __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_t_8); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 238, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_9); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 238, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_v_i = __pyx_t_7;
      __pyx_v_j = __pyx_t_12;

      /* "cython/core/abelian_group.pyx":239
 *         while len(self._units) > 0:
 *             for i, j in self._units:
 *                 break             # <<<<<<<<<<<<<<
 *             col_support = [k for k in self._col_support[j] if k != i] + [i]
 *             row_entries = [(l, self._entries.get((i,l), 0))
*/
      goto __pyx_L6_break;
    }
    __pyx_L6_break:;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/abelian_group.pyx":240
 *             for i, j in self._units:
 *                 break
 *             col_support = [k for k in self._col_support[j] if k != i] + [i]             # <<<<<<<<<<<<<<
 *             row_entries = [(l, self._entries.get((i,l), 0))
 *                            for l in self._row_support[i]]
*/
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 240, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__pyx_v_self->_col_support == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(6, 240, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_j); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 240, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_9 = __Pyx_PyDict_GetItem(__pyx_v_self->_col_support, __pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 240, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (likely(PyList_CheckExact(__pyx_t_9)) || PyTuple_CheckExact(__pyx_t_9)) {
        __pyx_t_6 = __pyx_t_9; __Pyx_INCREF(__pyx_t_6);
        __pyx_t_4 = 0;
        __pyx_t_13 = NULL;
      } else {
        __pyx_t_4 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 240, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_13)) __PYX_ERR(6, 240, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      for (;;) {
        if (likely(!__pyx_t_13)) {
          if (likely(PyList_CheckExact(__pyx_t_6))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 240, __pyx_L1_error)
              #endif
              if (__pyx_t_4 >= __pyx_temp) break;
            }
            __pyx_t_9 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_4;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_6);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 240, __pyx_L1_error)
              #endif
              if (__pyx_t_4 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_9 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_4));
            #else
            __pyx_t_9 = __Pyx_PySequence_ITEM(__pyx_t_6, __pyx_t_4);
            #endif
            ++__pyx_t_4;
          }
          if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 240, __pyx_L1_error)
        } else {
          __pyx_t_9 = __pyx_t_13(__pyx_t_6);
          if (unlikely(!__pyx_t_9)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 240, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_t_9); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 240, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __pyx_9genexpr64__pyx_v_k = __pyx_t_5;
        __pyx_t_3 = (__pyx_9genexpr64__pyx_v_k != __pyx_v_i);
        if (__pyx_t_3) {
          __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_9genexpr64__pyx_v_k); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 240, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_9))) __PYX_ERR(6, 240, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    } /* exit inner scope */
    __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_t_6) != (0)) __PYX_ERR(6, 240, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_t_6 = PyNumber_Add(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF_SET(__pyx_v_col_support, ((PyObject*)__pyx_t_6));
    __pyx_t_6 = 0;

    /* "cython/core/abelian_group.pyx":241
 *                 break
 *             col_support = [k for k in self._col_support[j] if k != i] + [i]
 *             row_entries = [(l, self._entries.get((i,l), 0))             # <<<<<<<<<<<<<<
 *                            for l in self._row_support[i]]
 *             unit = self[i,j]
*/
    { /* enter inner scope */
      __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 241, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);

      /* "cython/core/abelian_group.pyx":242
 *             col_support = [k for k in self._col_support[j] if k != i] + [i]
 *             row_entries = [(l, self._entries.get((i,l), 0))
 *                            for l in self._row_support[i]]             # <<<<<<<<<<<<<<
 *             unit = self[i,j]
 *             for k in col_support:
*/
      if (unlikely(__pyx_v_self->_row_support == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(6, 242, __pyx_L1_error)
      }
      __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_v_i); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 242, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_v_self->_row_support, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 242, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
        __pyx_t_9 = __pyx_t_1; __Pyx_INCREF(__pyx_t_9);
        __pyx_t_4 = 0;
        __pyx_t_13 = NULL;
      } else {
        __pyx_t_4 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 242, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_13)) __PYX_ERR(6, 242, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      for (;;) {
        if (likely(!__pyx_t_13)) {
          if (likely(PyList_CheckExact(__pyx_t_9))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 242, __pyx_L1_error)
              #endif
              if (__pyx_t_4 >= __pyx_temp) break;
            }
            __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_4;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_9);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 242, __pyx_L1_error)
              #endif
              if (__pyx_t_4 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_4));
            #else
            __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_9, __pyx_t_4);
            #endif
            ++__pyx_t_4;
          }
          if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 242, __pyx_L1_error)
        } else {
          __pyx_t_1 = __pyx_t_13(__pyx_t_9);
          if (unlikely(!__pyx_t_1)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 242, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 242, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_9genexpr65__pyx_v_l = __pyx_t_5;

        /* "cython/core/abelian_group.pyx":241
 *                 break
 *             col_support = [k for k in self._col_support[j] if k != i] + [i]
 *             row_entries = [(l, self._entries.get((i,l), 0))             # <<<<<<<<<<<<<<
 *                            for l in self._row_support[i]]
 *             unit = self[i,j]
*/
        __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_9genexpr65__pyx_v_l); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 241, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (unlikely(__pyx_v_self->_entries == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
          __PYX_ERR(6, 241, __pyx_L1_error)
        }
        __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_v_i); if (unlikely(!__pyx_t_8)) __PYX_ERR(6, 241, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_10 = __Pyx_PyLong_From_int(__pyx_9genexpr65__pyx_v_l); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 241, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 241, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_8) != (0)) __PYX_ERR(6, 241, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_10);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_10) != (0)) __PYX_ERR(6, 241, __pyx_L1_error);
        __pyx_t_8 = 0;
        __pyx_t_10 = 0;
        __pyx_t_10 = __Pyx_PyDict_GetItemDefault(__pyx_v_self->_entries, __pyx_t_14, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 241, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 241, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_GIVEREF(__pyx_t_1);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_1) != (0)) __PYX_ERR(6, 241, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_10);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_10) != (0)) __PYX_ERR(6, 241, __pyx_L1_error);
        __pyx_t_1 = 0;
        __pyx_t_10 = 0;
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_14))) __PYX_ERR(6, 241, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

        /* "cython/core/abelian_group.pyx":242
 *             col_support = [k for k in self._col_support[j] if k != i] + [i]
 *             row_entries = [(l, self._entries.get((i,l), 0))
 *                            for l in self._row_support[i]]             # <<<<<<<<<<<<<<
 *             unit = self[i,j]
 *             for k in col_support:
*/
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    } /* exit inner scope */
    __Pyx_XDECREF_SET(__pyx_v_row_entries, ((PyObject*)__pyx_t_6));
    __pyx_t_6 = 0;

    /* "cython/core/abelian_group.pyx":243
 *             row_entries = [(l, self._entries.get((i,l), 0))
 *                            for l in self._row_support[i]]
 *             unit = self[i,j]             # <<<<<<<<<<<<<<
 *             for k in col_support:
 *                 m = unit*self[k,j]
*/
    __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_v_j); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_6) != (0)) __PYX_ERR(6, 243, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_9);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_9) != (0)) __PYX_ERR(6, 243, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_t_14); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    __Pyx_XDECREF_SET(__pyx_v_unit, __pyx_t_9);
    __pyx_t_9 = 0;

    /* "cython/core/abelian_group.pyx":244
 *                            for l in self._row_support[i]]
 *             unit = self[i,j]
 *             for k in col_support:             # <<<<<<<<<<<<<<
 *                 m = unit*self[k,j]
 *                 # this is an "inlined" call to self.row_op(k,i,m)
*/
    __pyx_t_9 = __pyx_v_col_support; __Pyx_INCREF(__pyx_t_9);
    __pyx_t_4 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 244, __pyx_L1_error)
        #endif
        if (__pyx_t_4 >= __pyx_temp) break;
      }
      __pyx_t_14 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_4;
      if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 244, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_t_14); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 244, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_v_k = __pyx_t_5;

      /* "cython/core/abelian_group.pyx":245
 *             unit = self[i,j]
 *             for k in col_support:
 *                 m = unit*self[k,j]             # <<<<<<<<<<<<<<
 *                 # this is an "inlined" call to self.row_op(k,i,m)
 *                 # (avoids calling python functions in the loop)
*/
      __pyx_t_14 = __Pyx_PyLong_From_int(__pyx_v_k); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 245, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_j); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 245, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 245, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_GIVEREF(__pyx_t_14);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_14) != (0)) __PYX_ERR(6, 245, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_6) != (0)) __PYX_ERR(6, 245, __pyx_L1_error);
      __pyx_t_14 = 0;
      __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 245, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_10 = PyNumber_Multiply(__pyx_v_unit, __pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 245, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_10);
      __pyx_t_10 = 0;

      /* "cython/core/abelian_group.pyx":248
 *                 # this is an "inlined" call to self.row_op(k,i,m)
 *                 # (avoids calling python functions in the loop)
 *                 for l, a_il in row_entries:             # <<<<<<<<<<<<<<
 *                     kl = (k,l)
 *                     temp = self._entries.get(kl, 0)
*/
      __pyx_t_10 = __pyx_v_row_entries; __Pyx_INCREF(__pyx_t_10);
      __pyx_t_2 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_10);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 248, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_10, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 248, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) {
          PyObject* sequence = __pyx_t_6;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(6, 248, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_14 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_14);
            __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_1);
          } else {
            __pyx_t_14 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 248, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_14);
            __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 248, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_1);
          }
          #else
          __pyx_t_14 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 248, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 248, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_8 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(6, 248, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
          index = 0; __pyx_t_14 = __pyx_t_11(__pyx_t_8); if (unlikely(!__pyx_t_14)) goto __pyx_L20_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_14);
          index = 1; __pyx_t_1 = __pyx_t_11(__pyx_t_8); if (unlikely(!__pyx_t_1)) goto __pyx_L20_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_1);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_8), 2) < (0)) __PYX_ERR(6, 248, __pyx_L1_error)
          __pyx_t_11 = NULL;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          goto __pyx_L21_unpacking_done;
          __pyx_L20_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __pyx_t_11 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(6, 248, __pyx_L1_error)
          __pyx_L21_unpacking_done:;
        }
        __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_t_14); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(6, 248, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_v_l = __pyx_t_5;
        __Pyx_XDECREF_SET(__pyx_v_a_il, __pyx_t_1);
        __pyx_t_1 = 0;

        /* "cython/core/abelian_group.pyx":249
 *                 # (avoids calling python functions in the loop)
 *                 for l, a_il in row_entries:
 *                     kl = (k,l)             # <<<<<<<<<<<<<<
 *                     temp = self._entries.get(kl, 0)
 *                     self._set(kl, temp - m*a_il )
*/
        __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 249, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_l); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 249, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 249, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_GIVEREF(__pyx_t_6);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_6) != (0)) __PYX_ERR(6, 249, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_1);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_1) != (0)) __PYX_ERR(6, 249, __pyx_L1_error);
        __pyx_t_6 = 0;
        __pyx_t_1 = 0;
        __Pyx_XDECREF_SET(__pyx_v_kl, __pyx_t_14);
        __pyx_t_14 = 0;

        /* "cython/core/abelian_group.pyx":250
 *                 for l, a_il in row_entries:
 *                     kl = (k,l)
 *                     temp = self._entries.get(kl, 0)             # <<<<<<<<<<<<<<
 *                     self._set(kl, temp - m*a_il )
 *             self.dead_columns.add(j)
*/
        if (unlikely(__pyx_v_self->_entries == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
          __PYX_ERR(6, 250, __pyx_L1_error)
        }
        __pyx_t_14 = __Pyx_PyDict_GetItemDefault(__pyx_v_self->_entries, __pyx_v_kl, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 250, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_XDECREF_SET(__pyx_v_temp, __pyx_t_14);
        __pyx_t_14 = 0;

        /* "cython/core/abelian_group.pyx":251
 *                     kl = (k,l)
 *                     temp = self._entries.get(kl, 0)
 *                     self._set(kl, temp - m*a_il )             # <<<<<<<<<<<<<<
 *             self.dead_columns.add(j)
 * 
*/
        __pyx_t_14 = PyNumber_Multiply(__pyx_v_m, __pyx_v_a_il); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 251, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_1 = PyNumber_Subtract(__pyx_v_temp, __pyx_t_14); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 251, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
        __pyx_t_14 = ((struct __pyx_vtabstruct_6SnapPy_PresentationMatrix *)__pyx_v_self->__pyx_vtab)->_set(__pyx_v_self, __pyx_v_kl, __pyx_t_1); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 251, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

        /* "cython/core/abelian_group.pyx":248
 *                 # this is an "inlined" call to self.row_op(k,i,m)
 *                 # (avoids calling python functions in the loop)
 *                 for l, a_il in row_entries:             # <<<<<<<<<<<<<<
 *                     kl = (k,l)
 *                     temp = self._entries.get(kl, 0)
*/
      }
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

      /* "cython/core/abelian_group.pyx":244
 *                            for l in self._row_support[i]]
 *             unit = self[i,j]
 *             for k in col_support:             # <<<<<<<<<<<<<<
 *                 m = unit*self[k,j]
 *                 # this is an "inlined" call to self.row_op(k,i,m)
*/
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/abelian_group.pyx":252
 *                     temp = self._entries.get(kl, 0)
 *                     self._set(kl, temp - m*a_il )
 *             self.dead_columns.add(j)             # <<<<<<<<<<<<<<
 * 
 *     def simplified_matrix(self):
*/
    if (unlikely(__pyx_v_self->dead_columns == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
      __PYX_ERR(6, 252, __pyx_L1_error)
    }
    __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_v_j); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_15 = PySet_Add(__pyx_v_self->dead_columns, __pyx_t_9); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(6, 252, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  }

  /* "cython/core/abelian_group.pyx":230
 *                 for i in range(self.rows)]
 * 
 *     def simplify(self):             # <<<<<<<<<<<<<<
 *         """
 *         If any entry is a unit, eliminate the corresponding generator.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.simplify", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_col_support);
  __Pyx_XDECREF(__pyx_v_row_entries);
  __Pyx_XDECREF(__pyx_v_unit);
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_a_il);
  __Pyx_XDECREF(__pyx_v_kl);
  __Pyx_XDECREF(__pyx_v_temp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/abelian_group.pyx":254
 *             self.dead_columns.add(j)
 * 
 *     def simplified_matrix(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the simplified presentation as a matrix.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_19simplified_matrix(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_18PresentationMatrix_18simplified_matrix, "\n        Return the simplified presentation as a matrix.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_18PresentationMatrix_19simplified_matrix = {"simplified_matrix", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_19simplified_matrix, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_18simplified_matrix};
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_19simplified_matrix(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("simplified_matrix (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("simplified_matrix", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("simplified_matrix", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_18simplified_matrix(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_18simplified_matrix(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self) {
  PyObject *__pyx_v_columns = NULL;
  PyObject *__pyx_v_rows = NULL;
  PyObject *__pyx_v_presentation = NULL;
  int __pyx_9genexpr66__pyx_v_j;
  PyObject *__pyx_9genexpr67__pyx_v_i = NULL;
  CYTHON_UNUSED PyObject *__pyx_9genexpr68__pyx_v_j = NULL;
  PyObject *__pyx_9genexpr69__pyx_v_i = NULL;
  PyObject *__pyx_9genexpr70__pyx_v_j = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  int __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("simplified_matrix", 0);

  /* "cython/core/abelian_group.pyx":258
 *         Return the simplified presentation as a matrix.
 *         """
 *         self.simplify()             # <<<<<<<<<<<<<<
 *         columns = [j for j in range(self.cols) if j not in self.dead_columns]
 *         rows = [i for i in range(self.rows) if self._row_support.get(i, None)]
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_simplify, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 258, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/abelian_group.pyx":259
 *         """
 *         self.simplify()
 *         columns = [j for j in range(self.cols) if j not in self.dead_columns]             # <<<<<<<<<<<<<<
 *         rows = [i for i in range(self.rows) if self._row_support.get(i, None)]
 *         if not rows:
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 259, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __pyx_v_self->cols;
    __pyx_t_5 = __pyx_t_4;
    for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
      __pyx_9genexpr66__pyx_v_j = __pyx_t_6;
      __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_9genexpr66__pyx_v_j); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 259, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (unlikely(__pyx_v_self->dead_columns == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
        __PYX_ERR(6, 259, __pyx_L1_error)
      }
      __pyx_t_7 = (__Pyx_PySet_ContainsTF(__pyx_t_2, __pyx_v_self->dead_columns, Py_NE)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(6, 259, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_7) {
        __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_9genexpr66__pyx_v_j); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 259, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) __PYX_ERR(6, 259, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
    }
  } /* exit inner scope */
  __pyx_v_columns = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/abelian_group.pyx":260
 *         self.simplify()
 *         columns = [j for j in range(self.cols) if j not in self.dead_columns]
 *         rows = [i for i in range(self.rows) if self._row_support.get(i, None)]             # <<<<<<<<<<<<<<
 *         if not rows:
 *             presentation = [[0 for j in columns]]
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 260, __pyx_L8_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_8 = NULL;
    __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_v_self->rows); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 260, __pyx_L8_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_9};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 260, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 260, __pyx_L8_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(6, 260, __pyx_L8_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_10(__pyx_t_9);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(6, 260, __pyx_L8_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_9genexpr67__pyx_v_i, __pyx_t_2);
      __pyx_t_2 = 0;
      if (unlikely(__pyx_v_self->_row_support == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(6, 260, __pyx_L8_error)
      }
      __pyx_t_2 = __Pyx_PyDict_GetItemDefault(__pyx_v_self->_row_support, __pyx_9genexpr67__pyx_v_i, Py_None); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 260, __pyx_L8_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(6, 260, __pyx_L8_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_7) {
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_9genexpr67__pyx_v_i))) __PYX_ERR(6, 260, __pyx_L8_error)
      }
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_9genexpr67__pyx_v_i); __pyx_9genexpr67__pyx_v_i = 0;
    goto __pyx_L13_exit_scope;
    __pyx_L8_error:;
    __Pyx_XDECREF(__pyx_9genexpr67__pyx_v_i); __pyx_9genexpr67__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L13_exit_scope:;
  } /* exit inner scope */
  __pyx_v_rows = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/abelian_group.pyx":261
 *         columns = [j for j in range(self.cols) if j not in self.dead_columns]
 *         rows = [i for i in range(self.rows) if self._row_support.get(i, None)]
 *         if not rows:             # <<<<<<<<<<<<<<
 *             presentation = [[0 for j in columns]]
 *         else:
*/
  {
    Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_rows);
    if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(6, 261, __pyx_L1_error)
    __pyx_t_7 = (__pyx_temp != 0);
  }

  __pyx_t_11 = (!__pyx_t_7);
  if (__pyx_t_11) {

    /* "cython/core/abelian_group.pyx":262
 *         rows = [i for i in range(self.rows) if self._row_support.get(i, None)]
 *         if not rows:
 *             presentation = [[0 for j in columns]]             # <<<<<<<<<<<<<<
 *         else:
 *             presentation = [[self._entries.get((i, j), 0) for j in columns]
*/
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 262, __pyx_L17_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_9 = __pyx_v_columns; __Pyx_INCREF(__pyx_t_9);
      __pyx_t_12 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 262, __pyx_L17_error)
          #endif
          if (__pyx_t_12 >= __pyx_temp) break;
        }
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_12, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_12;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 262, __pyx_L17_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_XDECREF_SET(__pyx_9genexpr68__pyx_v_j, __pyx_t_2);
        __pyx_t_2 = 0;
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_mstate_global->__pyx_int_0))) __PYX_ERR(6, 262, __pyx_L17_error)
      }
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_9genexpr68__pyx_v_j); __pyx_9genexpr68__pyx_v_j = 0;
      goto __pyx_L21_exit_scope;
      __pyx_L17_error:;
      __Pyx_XDECREF(__pyx_9genexpr68__pyx_v_j); __pyx_9genexpr68__pyx_v_j = 0;
      goto __pyx_L1_error;
      __pyx_L21_exit_scope:;
    } /* exit inner scope */
    __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_t_1) != (0)) __PYX_ERR(6, 262, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_v_presentation = ((PyObject*)__pyx_t_9);
    __pyx_t_9 = 0;

    /* "cython/core/abelian_group.pyx":261
 *         columns = [j for j in range(self.cols) if j not in self.dead_columns]
 *         rows = [i for i in range(self.rows) if self._row_support.get(i, None)]
 *         if not rows:             # <<<<<<<<<<<<<<
 *             presentation = [[0 for j in columns]]
 *         else:
*/
    goto __pyx_L14;
  }

  /* "cython/core/abelian_group.pyx":264
 *             presentation = [[0 for j in columns]]
 *         else:
 *             presentation = [[self._entries.get((i, j), 0) for j in columns]             # <<<<<<<<<<<<<<
 *                             for i in rows ]
 *         return matrix(presentation)
*/
  /*else*/ {
    { /* enter inner scope */
      __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 264, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_9);

      /* "cython/core/abelian_group.pyx":265
 *         else:
 *             presentation = [[self._entries.get((i, j), 0) for j in columns]
 *                             for i in rows ]             # <<<<<<<<<<<<<<
 *         return matrix(presentation)
*/
      __pyx_t_1 = __pyx_v_rows; __Pyx_INCREF(__pyx_t_1);
      __pyx_t_12 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 265, __pyx_L24_error)
          #endif
          if (__pyx_t_12 >= __pyx_temp) break;
        }
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_12, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_12;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 265, __pyx_L24_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_XDECREF_SET(__pyx_9genexpr69__pyx_v_i, __pyx_t_2);
        __pyx_t_2 = 0;
        { /* enter inner scope */

          /* "cython/core/abelian_group.pyx":264
 *             presentation = [[0 for j in columns]]
 *         else:
 *             presentation = [[self._entries.get((i, j), 0) for j in columns]             # <<<<<<<<<<<<<<
 *                             for i in rows ]
 *         return matrix(presentation)
*/
          __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 264, __pyx_L29_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_8 = __pyx_v_columns; __Pyx_INCREF(__pyx_t_8);
          __pyx_t_13 = 0;
          for (;;) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_8);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(6, 264, __pyx_L29_error)
              #endif
              if (__pyx_t_13 >= __pyx_temp) break;
            }
            __pyx_t_14 = __Pyx_PyList_GetItemRefFast(__pyx_t_8, __pyx_t_13, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_13;
            if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 264, __pyx_L29_error)
            __Pyx_GOTREF(__pyx_t_14);
            __Pyx_XDECREF_SET(__pyx_9genexpr70__pyx_v_j, __pyx_t_14);
            __pyx_t_14 = 0;
            if (unlikely(__pyx_v_self->_entries == Py_None)) {
              PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
              __PYX_ERR(6, 264, __pyx_L29_error)
            }
            __pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) __PYX_ERR(6, 264, __pyx_L29_error)
            __Pyx_GOTREF(__pyx_t_14);
            __Pyx_INCREF(__pyx_9genexpr69__pyx_v_i);
            __Pyx_GIVEREF(__pyx_9genexpr69__pyx_v_i);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_9genexpr69__pyx_v_i) != (0)) __PYX_ERR(6, 264, __pyx_L29_error);
            __Pyx_INCREF(__pyx_9genexpr70__pyx_v_j);
            __Pyx_GIVEREF(__pyx_9genexpr70__pyx_v_j);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_9genexpr70__pyx_v_j) != (0)) __PYX_ERR(6, 264, __pyx_L29_error);
            __pyx_t_15 = __Pyx_PyDict_GetItemDefault(__pyx_v_self->_entries, __pyx_t_14, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_t_15)) __PYX_ERR(6, 264, __pyx_L29_error)
            __Pyx_GOTREF(__pyx_t_15);
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_15))) __PYX_ERR(6, 264, __pyx_L29_error)
            __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
          }
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_9genexpr70__pyx_v_j); __pyx_9genexpr70__pyx_v_j = 0;
          goto __pyx_L33_exit_scope;
          __pyx_L29_error:;
          __Pyx_XDECREF(__pyx_9genexpr70__pyx_v_j); __pyx_9genexpr70__pyx_v_j = 0;
          goto __pyx_L24_error;
          __pyx_L33_exit_scope:;
        } /* exit inner scope */
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_9, (PyObject*)__pyx_t_2))) __PYX_ERR(6, 264, __pyx_L24_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cython/core/abelian_group.pyx":265
 *         else:
 *             presentation = [[self._entries.get((i, j), 0) for j in columns]
 *                             for i in rows ]             # <<<<<<<<<<<<<<
 *         return matrix(presentation)
*/
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_9genexpr69__pyx_v_i); __pyx_9genexpr69__pyx_v_i = 0;
      goto __pyx_L35_exit_scope;
      __pyx_L24_error:;
      __Pyx_XDECREF(__pyx_9genexpr69__pyx_v_i); __pyx_9genexpr69__pyx_v_i = 0;
      goto __pyx_L1_error;
      __pyx_L35_exit_scope:;
    } /* exit inner scope */
    __pyx_v_presentation = ((PyObject*)__pyx_t_9);
    __pyx_t_9 = 0;
  }
  __pyx_L14:;

  /* "cython/core/abelian_group.pyx":266
 *             presentation = [[self._entries.get((i, j), 0) for j in columns]
 *                             for i in rows ]
 *         return matrix(presentation)             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_presentation};
    __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_9)) __PYX_ERR(6, 266, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
  }
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cython/core/abelian_group.pyx":254
 *             self.dead_columns.add(j)
 * 
 *     def simplified_matrix(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the simplified presentation as a matrix.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.simplified_matrix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_columns);
  __Pyx_XDECREF(__pyx_v_rows);
  __Pyx_XDECREF(__pyx_v_presentation);
  __Pyx_XDECREF(__pyx_9genexpr67__pyx_v_i);
  __Pyx_XDECREF(__pyx_9genexpr68__pyx_v_j);
  __Pyx_XDECREF(__pyx_9genexpr69__pyx_v_i);
  __Pyx_XDECREF(__pyx_9genexpr70__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_21__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_18PresentationMatrix_21__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_21__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_21__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_20__reduce_cython__(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_20__reduce_cython__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self) {
  PyObject *__pyx_v_state = 0;
  PyObject *__pyx_v__dict = 0;
  int __pyx_v_use_setstate;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":5
 *     cdef object _dict
 *     cdef bint use_setstate
 *     state = (self._col_support, self._entries, self._row_support, self._units, self.cols, self.dead_columns, self.rows)             # <<<<<<<<<<<<<<
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None and _dict:
*/
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->cols); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->rows); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->_col_support);
  __Pyx_GIVEREF(__pyx_v_self->_col_support);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->_col_support) != (0)) __PYX_ERR(7, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_entries);
  __Pyx_GIVEREF(__pyx_v_self->_entries);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self->_entries) != (0)) __PYX_ERR(7, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_row_support);
  __Pyx_GIVEREF(__pyx_v_self->_row_support);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_self->_row_support) != (0)) __PYX_ERR(7, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->_units);
  __Pyx_GIVEREF(__pyx_v_self->_units);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_self->_units) != (0)) __PYX_ERR(7, 5, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_t_1) != (0)) __PYX_ERR(7, 5, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_self->dead_columns);
  __Pyx_GIVEREF(__pyx_v_self->dead_columns);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_v_self->dead_columns) != (0)) __PYX_ERR(7, 5, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 6, __pyx_t_2) != (0)) __PYX_ERR(7, 5, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_v_state = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "(tree fragment)":6
 *     cdef bint use_setstate
 *     state = (self._col_support, self._entries, self._row_support, self._units, self.cols, self.dead_columns, self.rows)
 *     _dict = getattr(self, '__dict__', None)             # <<<<<<<<<<<<<<
 *     if _dict is not None and _dict:
 *         state += (_dict,)
*/
  __pyx_t_3 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_dict, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v__dict = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "(tree fragment)":7
 *     state = (self._col_support, self._entries, self._row_support, self._units, self.cols, self.dead_columns, self.rows)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None and _dict:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
*/
  __pyx_t_5 = (__pyx_v__dict != Py_None);
  if (__pyx_t_5) {
  } else {
    __pyx_t_4 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v__dict); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(7, 7, __pyx_L1_error)
  __pyx_t_4 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "(tree fragment)":8
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None and _dict:
 *         state += (_dict,)             # <<<<<<<<<<<<<<
 *         use_setstate = True
 *     else:
*/
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v__dict);
    __Pyx_GIVEREF(__pyx_v__dict);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__dict) != (0)) __PYX_ERR(7, 8, __pyx_L1_error);
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "(tree fragment)":9
 *     if _dict is not None and _dict:
 *         state += (_dict,)
 *         use_setstate = True             # <<<<<<<<<<<<<<
 *     else:
 *         use_setstate = self._col_support is not None or self._entries is not None or self._row_support is not None or self._units is not None or self.dead_columns is not None
*/
    __pyx_v_use_setstate = 1;

    /* "(tree fragment)":7
 *     state = (self._col_support, self._entries, self._row_support, self._units, self.cols, self.dead_columns, self.rows)
 *     _dict = getattr(self, '__dict__', None)
 *     if _dict is not None and _dict:             # <<<<<<<<<<<<<<
 *         state += (_dict,)
 *         use_setstate = True
*/
    goto __pyx_L3;
  }

  /* "(tree fragment)":11
 *         use_setstate = True
 *     else:
 *         use_setstate = self._col_support is not None or self._entries is not None or self._row_support is not None or self._units is not None or self.dead_columns is not None             # <<<<<<<<<<<<<<
 *     if use_setstate:
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, None), state
*/
  /*else*/ {
    __pyx_t_5 = (__pyx_v_self->_col_support != ((PyObject*)Py_None));
    if (!__pyx_t_5) {
    } else {
      __pyx_t_4 = __pyx_t_5;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->_entries != ((PyObject*)Py_None));
    if (!__pyx_t_5) {
    } else {
      __pyx_t_4 = __pyx_t_5;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->_row_support != ((PyObject*)Py_None));
    if (!__pyx_t_5) {
    } else {
      __pyx_t_4 = __pyx_t_5;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->_units != ((PyObject*)Py_None));
    if (!__pyx_t_5) {
    } else {
      __pyx_t_4 = __pyx_t_5;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_5 = (__pyx_v_self->dead_columns != ((PyObject*)Py_None));
    __pyx_t_4 = __pyx_t_5;
    __pyx_L6_bool_binop_done:;
    __pyx_v_use_setstate = __pyx_t_4;
  }
  __pyx_L3:;

  /* "(tree fragment)":12
 *     else:
 *         use_setstate = self._col_support is not None or self._entries is not None or self._row_support is not None or self._units is not None or self.dead_columns is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, None), state
 *     else:
*/
  if (__pyx_v_use_setstate) {

    /* "(tree fragment)":13
 *         use_setstate = self._col_support is not None or self._entries is not None or self._row_support is not None or self._units is not None or self.dead_columns is not None
 *     if use_setstate:
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, None), state             # <<<<<<<<<<<<<<
 *     else:
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, state)
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_PresentationMatri); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))) != (0)) __PYX_ERR(7, 13, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_94173347);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_94173347);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_mstate_global->__pyx_int_94173347) != (0)) __PYX_ERR(7, 13, __pyx_L1_error);
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, Py_None) != (0)) __PYX_ERR(7, 13, __pyx_L1_error);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_2);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2) != (0)) __PYX_ERR(7, 13, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3) != (0)) __PYX_ERR(7, 13, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state) != (0)) __PYX_ERR(7, 13, __pyx_L1_error);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "(tree fragment)":12
 *     else:
 *         use_setstate = self._col_support is not None or self._entries is not None or self._row_support is not None or self._units is not None or self.dead_columns is not None
 *     if use_setstate:             # <<<<<<<<<<<<<<
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, None), state
 *     else:
*/
  }

  /* "(tree fragment)":15
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, None), state
 *     else:
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, state)             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_PresentationMatrix__set_state(self, __pyx_state)
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_PresentationMatri); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(7, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))) != (0)) __PYX_ERR(7, 15, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_94173347);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_94173347);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_mstate_global->__pyx_int_94173347) != (0)) __PYX_ERR(7, 15, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_state);
    __Pyx_GIVEREF(__pyx_v_state);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_state) != (0)) __PYX_ERR(7, 15, __pyx_L1_error);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(7, 15, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3) != (0)) __PYX_ERR(7, 15, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_state);
  __Pyx_XDECREF(__pyx_v__dict);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_PresentationMatrix__set_state(self, __pyx_state)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_23__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_18PresentationMatrix_23__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_23__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_18PresentationMatrix_23__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 16, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 16, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(7, 16, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(7, 16, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 16, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(7, 16, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_18PresentationMatrix_22__setstate_cython__(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_18PresentationMatrix_22__setstate_cython__(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__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("__setstate_cython__", 0);

  /* "(tree fragment)":17
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, state)
 * def __setstate_cython__(self, __pyx_state):
 *     __pyx_unpickle_PresentationMatrix__set_state(self, __pyx_state)             # <<<<<<<<<<<<<<
*/
  __pyx_t_1 = __pyx_v___pyx_state;
  __Pyx_INCREF(__pyx_t_1);
  if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(7, 17, __pyx_L1_error)
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "cannot pass None into a C function argument that is declared 'not None'");
    __PYX_ERR(7, 17, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_f_6SnapPy___pyx_unpickle_PresentationMatrix__set_state(__pyx_v_self, ((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_PresentationMatrix__set_state(self, __pyx_state)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.PresentationMatrix.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":9
 * 
 * 
 * def inverse_list_word(word):             # <<<<<<<<<<<<<<
 *     return [ -x for x in word[::-1] ]
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_35inverse_list_word(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_35inverse_list_word = {"inverse_list_word", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_35inverse_list_word, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_35inverse_list_word(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_word = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("inverse_list_word (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_word,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 9, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 9, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "inverse_list_word", 0) < (0)) __PYX_ERR(8, 9, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("inverse_list_word", 1, 1, 1, i); __PYX_ERR(8, 9, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 9, __pyx_L3_error)
    }
    __pyx_v_word = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("inverse_list_word", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 9, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.inverse_list_word", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_34inverse_list_word(__pyx_self, __pyx_v_word);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_34inverse_list_word(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_word) {
  PyObject *__pyx_9genexpr71__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("inverse_list_word", 0);

  /* "cython/core/fundamental_group.pyx":10
 * 
 * def inverse_list_word(word):
 *     return [ -x for x in word[::-1] ]             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 10, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_word, __pyx_mstate_global->__pyx_slice[4]); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 10, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
      __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = 0;
      __pyx_t_5 = NULL;
    } else {
      __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 10, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 10, __pyx_L5_error)
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      if (likely(!__pyx_t_5)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 10, __pyx_L5_error)
            #endif
            if (__pyx_t_4 >= __pyx_temp) break;
          }
          __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_4;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 10, __pyx_L5_error)
            #endif
            if (__pyx_t_4 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_2 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4));
          #else
          __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_4);
          #endif
          ++__pyx_t_4;
        }
        if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 10, __pyx_L5_error)
      } else {
        __pyx_t_2 = __pyx_t_5(__pyx_t_3);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 10, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_9genexpr71__pyx_v_x, __pyx_t_2);
      __pyx_t_2 = 0;
      __pyx_t_2 = PyNumber_Negative(__pyx_9genexpr71__pyx_v_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 10, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) __PYX_ERR(8, 10, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_9genexpr71__pyx_v_x); __pyx_9genexpr71__pyx_v_x = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr71__pyx_v_x); __pyx_9genexpr71__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":9
 * 
 * 
 * def inverse_list_word(word):             # <<<<<<<<<<<<<<
 *     return [ -x for x in word[::-1] ]
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.inverse_list_word", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_9genexpr71__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":13
 * 
 * 
 * def reduce_list_word(word):             # <<<<<<<<<<<<<<
 *     """
 *     Cancels inverse generators.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_37reduce_list_word(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_36reduce_list_word, "\n    Cancels inverse generators.\n    ");
static PyMethodDef __pyx_mdef_6SnapPy_37reduce_list_word = {"reduce_list_word", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_37reduce_list_word, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_36reduce_list_word};
static PyObject *__pyx_pw_6SnapPy_37reduce_list_word(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_word = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reduce_list_word (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_word,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 13, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 13, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "reduce_list_word", 0) < (0)) __PYX_ERR(8, 13, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("reduce_list_word", 1, 1, 1, i); __PYX_ERR(8, 13, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 13, __pyx_L3_error)
    }
    __pyx_v_word = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("reduce_list_word", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 13, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.reduce_list_word", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_36reduce_list_word(__pyx_self, __pyx_v_word);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_36reduce_list_word(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_word) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_letter = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("reduce_list_word", 0);

  /* "cython/core/fundamental_group.pyx":17
 *     Cancels inverse generators.
 *     """
 *     result = []             # <<<<<<<<<<<<<<
 *     for letter in word:
 *         if result and result[-1] == -letter:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":18
 *     """
 *     result = []
 *     for letter in word:             # <<<<<<<<<<<<<<
 *         if result and result[-1] == -letter:
 *             result.pop()
*/
  if (likely(PyList_CheckExact(__pyx_v_word)) || PyTuple_CheckExact(__pyx_v_word)) {
    __pyx_t_1 = __pyx_v_word; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_word); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 18, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 18, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 18, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 18, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 18, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 18, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_letter, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/fundamental_group.pyx":19
 *     result = []
 *     for letter in word:
 *         if result and result[-1] == -letter:             # <<<<<<<<<<<<<<
 *             result.pop()
 *         else:
*/
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_result);
      if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(8, 19, __pyx_L1_error)
      __pyx_t_6 = (__pyx_temp != 0);
    }

    if (__pyx_t_6) {
    } else {
      __pyx_t_5 = __pyx_t_6;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_result, -1L, long, 1, __Pyx_PyLong_From_long, 1, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 19, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = PyNumber_Negative(__pyx_v_letter); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 19, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = PyObject_RichCompare(__pyx_t_4, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 19, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(8, 19, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_5 = __pyx_t_6;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_5) {

      /* "cython/core/fundamental_group.pyx":20
 *     for letter in word:
 *         if result and result[-1] == -letter:
 *             result.pop()             # <<<<<<<<<<<<<<
 *         else:
 *             result.append(letter)
*/
      __pyx_t_8 = __Pyx_PyList_Pop(__pyx_v_result); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 20, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cython/core/fundamental_group.pyx":19
 *     result = []
 *     for letter in word:
 *         if result and result[-1] == -letter:             # <<<<<<<<<<<<<<
 *             result.pop()
 *         else:
*/
      goto __pyx_L5;
    }

    /* "cython/core/fundamental_group.pyx":22
 *             result.pop()
 *         else:
 *             result.append(letter)             # <<<<<<<<<<<<<<
 *     return result
 * 
*/
    /*else*/ {
      __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_v_letter); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(8, 22, __pyx_L1_error)
    }
    __pyx_L5:;

    /* "cython/core/fundamental_group.pyx":18
 *     """
 *     result = []
 *     for letter in word:             # <<<<<<<<<<<<<<
 *         if result and result[-1] == -letter:
 *             result.pop()
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":23
 *         else:
 *             result.append(letter)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":13
 * 
 * 
 * def reduce_list_word(word):             # <<<<<<<<<<<<<<
 *     """
 *     Cancels inverse generators.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.reduce_list_word", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_letter);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":26
 * 
 * 
 * cdef c_word_as_int_list(int *word):             # <<<<<<<<<<<<<<
 *     cdef int n = 0
 *     word_list = []
*/

static PyObject *__pyx_f_6SnapPy_c_word_as_int_list(int *__pyx_v_word) {
  int __pyx_v_n;
  PyObject *__pyx_v_word_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("c_word_as_int_list", 0);

  /* "cython/core/fundamental_group.pyx":27
 * 
 * cdef c_word_as_int_list(int *word):
 *     cdef int n = 0             # <<<<<<<<<<<<<<
 *     word_list = []
 *     while word[n] != 0:
*/
  __pyx_v_n = 0;

  /* "cython/core/fundamental_group.pyx":28
 * cdef c_word_as_int_list(int *word):
 *     cdef int n = 0
 *     word_list = []             # <<<<<<<<<<<<<<
 *     while word[n] != 0:
 *         word_list.append(word[n])
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_word_list = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":29
 *     cdef int n = 0
 *     word_list = []
 *     while word[n] != 0:             # <<<<<<<<<<<<<<
 *         word_list.append(word[n])
 *         n += 1
*/
  while (1) {
    __pyx_t_2 = ((__pyx_v_word[__pyx_v_n]) != 0);
    if (!__pyx_t_2) break;

    /* "cython/core/fundamental_group.pyx":30
 *     word_list = []
 *     while word[n] != 0:
 *         word_list.append(word[n])             # <<<<<<<<<<<<<<
 *         n += 1
 *     return word_list
*/
    __pyx_t_1 = __Pyx_PyLong_From_int((__pyx_v_word[__pyx_v_n])); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 30, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_word_list, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(8, 30, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/fundamental_group.pyx":31
 *     while word[n] != 0:
 *         word_list.append(word[n])
 *         n += 1             # <<<<<<<<<<<<<<
 *     return word_list
 * 
*/
    __pyx_v_n = (__pyx_v_n + 1);
  }

  /* "cython/core/fundamental_group.pyx":32
 *         word_list.append(word[n])
 *         n += 1
 *     return word_list             # <<<<<<<<<<<<<<
 * 
 * cdef int *c_word_from_list(word_list):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_word_list);
  __pyx_r = __pyx_v_word_list;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":26
 * 
 * 
 * cdef c_word_as_int_list(int *word):             # <<<<<<<<<<<<<<
 *     cdef int n = 0
 *     word_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.c_word_as_int_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_word_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":34
 *     return word_list
 * 
 * cdef int *c_word_from_list(word_list):             # <<<<<<<<<<<<<<
 *     cdef int *c_word
 *     cdef int length, size, n
*/

static int *__pyx_f_6SnapPy_c_word_from_list(PyObject *__pyx_v_word_list) {
  int *__pyx_v_c_word;
  int __pyx_v_length;
  int __pyx_v_size;
  int __pyx_v_n;
  int *__pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("c_word_from_list", 0);

  /* "cython/core/fundamental_group.pyx":37
 *     cdef int *c_word
 *     cdef int length, size, n
 *     length = <int>len(word_list)             # <<<<<<<<<<<<<<
 *     size = sizeof(int)*(1+length)
 *     c_word = <int *>malloc(size)
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_word_list); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(8, 37, __pyx_L1_error)
  __pyx_v_length = ((int)__pyx_t_1);

  /* "cython/core/fundamental_group.pyx":38
 *     cdef int length, size, n
 *     length = <int>len(word_list)
 *     size = sizeof(int)*(1+length)             # <<<<<<<<<<<<<<
 *     c_word = <int *>malloc(size)
 *     for n from 0 <= n < length:
*/
  __pyx_v_size = ((sizeof(int)) * (1 + __pyx_v_length));

  /* "cython/core/fundamental_group.pyx":39
 *     length = <int>len(word_list)
 *     size = sizeof(int)*(1+length)
 *     c_word = <int *>malloc(size)             # <<<<<<<<<<<<<<
 *     for n from 0 <= n < length:
 *         c_word[n] = word_list[n]
*/
  __pyx_v_c_word = ((int *)malloc(__pyx_v_size));

  /* "cython/core/fundamental_group.pyx":40
 *     size = sizeof(int)*(1+length)
 *     c_word = <int *>malloc(size)
 *     for n from 0 <= n < length:             # <<<<<<<<<<<<<<
 *         c_word[n] = word_list[n]
 *     c_word[length] = 0
*/
  __pyx_t_2 = __pyx_v_length;
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_2; __pyx_v_n++) {

    /* "cython/core/fundamental_group.pyx":41
 *     c_word = <int *>malloc(size)
 *     for n from 0 <= n < length:
 *         c_word[n] = word_list[n]             # <<<<<<<<<<<<<<
 *     c_word[length] = 0
 *     return c_word
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_word_list, __pyx_v_n, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 41, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 41, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    (__pyx_v_c_word[__pyx_v_n]) = __pyx_t_4;
  }

  /* "cython/core/fundamental_group.pyx":42
 *     for n from 0 <= n < length:
 *         c_word[n] = word_list[n]
 *     c_word[length] = 0             # <<<<<<<<<<<<<<
 *     return c_word
 * 
*/
  (__pyx_v_c_word[__pyx_v_length]) = 0;

  /* "cython/core/fundamental_group.pyx":43
 *         c_word[n] = word_list[n]
 *     c_word[length] = 0
 *     return c_word             # <<<<<<<<<<<<<<
 * 
 * cdef int_to_gen_string(int g, int num_generators, verbose_form):
*/
  __pyx_r = __pyx_v_c_word;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":34
 *     return word_list
 * 
 * cdef int *c_word_from_list(word_list):             # <<<<<<<<<<<<<<
 *     cdef int *c_word
 *     cdef int length, size, n
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.c_word_from_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":45
 *     return c_word
 * 
 * cdef int_to_gen_string(int g, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     if num_generators <=26:
 *         if verbose_form and g < 0:
*/

static PyObject *__pyx_f_6SnapPy_int_to_gen_string(int __pyx_v_g, int __pyx_v_num_generators, PyObject *__pyx_v_verbose_form) {
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("int_to_gen_string", 0);

  /* "cython/core/fundamental_group.pyx":46
 * 
 * cdef int_to_gen_string(int g, int num_generators, verbose_form):
 *     if num_generators <=26:             # <<<<<<<<<<<<<<
 *         if verbose_form and g < 0:
 *             return Alphabet[-g] + '^-1'
*/
  __pyx_t_1 = (__pyx_v_num_generators <= 26);
  if (__pyx_t_1) {

    /* "cython/core/fundamental_group.pyx":47
 * cdef int_to_gen_string(int g, int num_generators, verbose_form):
 *     if num_generators <=26:
 *         if verbose_form and g < 0:             # <<<<<<<<<<<<<<
 *             return Alphabet[-g] + '^-1'
 *         else:
*/
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_verbose_form); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 47, __pyx_L1_error)
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_2 = (__pyx_v_g < 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L5_bool_binop_done:;
    if (__pyx_t_1) {

      /* "cython/core/fundamental_group.pyx":48
 *     if num_generators <=26:
 *         if verbose_form and g < 0:
 *             return Alphabet[-g] + '^-1'             # <<<<<<<<<<<<<<
 *         else:
 *             return Alphabet[g]
*/
      __Pyx_XDECREF(__pyx_r);
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Alphabet); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 48, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = (-__pyx_v_g);
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_3, __pyx_t_4, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 48, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyNumber_Add(__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 48, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "cython/core/fundamental_group.pyx":47
 * cdef int_to_gen_string(int g, int num_generators, verbose_form):
 *     if num_generators <=26:
 *         if verbose_form and g < 0:             # <<<<<<<<<<<<<<
 *             return Alphabet[-g] + '^-1'
 *         else:
*/
    }

    /* "cython/core/fundamental_group.pyx":50
 *             return Alphabet[-g] + '^-1'
 *         else:
 *             return Alphabet[g]             # <<<<<<<<<<<<<<
 *     else:
 *         if verbose_form and g < 0:
*/
    /*else*/ {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Alphabet); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 50, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_g, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 50, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      goto __pyx_L0;
    }

    /* "cython/core/fundamental_group.pyx":46
 * 
 * cdef int_to_gen_string(int g, int num_generators, verbose_form):
 *     if num_generators <=26:             # <<<<<<<<<<<<<<
 *         if verbose_form and g < 0:
 *             return Alphabet[-g] + '^-1'
*/
  }

  /* "cython/core/fundamental_group.pyx":52
 *             return Alphabet[g]
 *     else:
 *         if verbose_form and g < 0:             # <<<<<<<<<<<<<<
 *             return 'x%d^-1' % -g
 *         else:
*/
  /*else*/ {
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_verbose_form); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 52, __pyx_L1_error)
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L8_bool_binop_done;
    }
    __pyx_t_2 = (__pyx_v_g < 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L8_bool_binop_done:;
    if (__pyx_t_1) {

      /* "cython/core/fundamental_group.pyx":53
 *     else:
 *         if verbose_form and g < 0:
 *             return 'x%d^-1' % -g             # <<<<<<<<<<<<<<
 *         else:
 *             ans = 'x' if g > 0 else 'X'
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyLong_From_int((-__pyx_v_g)); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_x_d_1, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "cython/core/fundamental_group.pyx":52
 *             return Alphabet[g]
 *     else:
 *         if verbose_form and g < 0:             # <<<<<<<<<<<<<<
 *             return 'x%d^-1' % -g
 *         else:
*/
    }

    /* "cython/core/fundamental_group.pyx":55
 *             return 'x%d^-1' % -g
 *         else:
 *             ans = 'x' if g > 0 else 'X'             # <<<<<<<<<<<<<<
 *             return ans + '%d' % abs(g)
 * 
*/
    /*else*/ {
      __pyx_t_1 = (__pyx_v_g > 0);
      if (__pyx_t_1) {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_x);
        __pyx_t_3 = __pyx_mstate_global->__pyx_n_u_x;
      } else {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_X);
        __pyx_t_3 = __pyx_mstate_global->__pyx_n_u_X;
      }
      __pyx_v_ans = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/fundamental_group.pyx":56
 *         else:
 *             ans = 'x' if g > 0 else 'X'
 *             return ans + '%d' % abs(g)             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = abs(__pyx_v_g); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(8, 56, __pyx_L1_error)
      __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 56, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_d, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 56, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_ConcatSafe(__pyx_v_ans, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 56, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;
    }
  }

  /* "cython/core/fundamental_group.pyx":45
 *     return c_word
 * 
 * cdef int_to_gen_string(int g, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     if num_generators <=26:
 *         if verbose_form and g < 0:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.int_to_gen_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":59
 * 
 * 
 * def _letter_seperator(verbose_form):             # <<<<<<<<<<<<<<
 *     return '*' if verbose_form else ''
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_39_letter_seperator(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_39_letter_seperator = {"_letter_seperator", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_39_letter_seperator, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_39_letter_seperator(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_verbose_form = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_letter_seperator (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_verbose_form,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 59, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 59, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_letter_seperator", 0) < (0)) __PYX_ERR(8, 59, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_letter_seperator", 1, 1, 1, i); __PYX_ERR(8, 59, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 59, __pyx_L3_error)
    }
    __pyx_v_verbose_form = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_letter_seperator", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 59, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy._letter_seperator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_38_letter_seperator(__pyx_self, __pyx_v_verbose_form);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_38_letter_seperator(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_verbose_form) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_letter_seperator", 0);

  /* "cython/core/fundamental_group.pyx":60
 * 
 * def _letter_seperator(verbose_form):
 *     return '*' if verbose_form else ''             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_verbose_form); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 60, __pyx_L1_error)
  if (__pyx_t_2) {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__32);
    __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u__32;
  } else {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__10);
    __pyx_t_1 = __pyx_mstate_global->__pyx_kp_u__10;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":59
 * 
 * 
 * def _letter_seperator(verbose_form):             # <<<<<<<<<<<<<<
 *     return '*' if verbose_form else ''
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy._letter_seperator", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":63
 * 
 * 
 * cdef c_word_as_string(int *word, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     cdef int n = 0
 *     word_list = []
*/

static PyObject *__pyx_f_6SnapPy_c_word_as_string(int *__pyx_v_word, int __pyx_v_num_generators, PyObject *__pyx_v_verbose_form) {
  int __pyx_v_n;
  PyObject *__pyx_v_word_list = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("c_word_as_string", 0);

  /* "cython/core/fundamental_group.pyx":64
 * 
 * cdef c_word_as_string(int *word, int num_generators, verbose_form):
 *     cdef int n = 0             # <<<<<<<<<<<<<<
 *     word_list = []
 *     while word[n] != 0:
*/
  __pyx_v_n = 0;

  /* "cython/core/fundamental_group.pyx":65
 * cdef c_word_as_string(int *word, int num_generators, verbose_form):
 *     cdef int n = 0
 *     word_list = []             # <<<<<<<<<<<<<<
 *     while word[n] != 0:
 *         word_list.append(
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_word_list = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":66
 *     cdef int n = 0
 *     word_list = []
 *     while word[n] != 0:             # <<<<<<<<<<<<<<
 *         word_list.append(
 *             int_to_gen_string(word[n], num_generators, verbose_form))
*/
  while (1) {
    __pyx_t_2 = ((__pyx_v_word[__pyx_v_n]) != 0);
    if (!__pyx_t_2) break;

    /* "cython/core/fundamental_group.pyx":68
 *     while word[n] != 0:
 *         word_list.append(
 *             int_to_gen_string(word[n], num_generators, verbose_form))             # <<<<<<<<<<<<<<
 *         n += 1
 *     return _letter_seperator(verbose_form).join(word_list)
*/
    __pyx_t_1 = __pyx_f_6SnapPy_int_to_gen_string((__pyx_v_word[__pyx_v_n]), __pyx_v_num_generators, __pyx_v_verbose_form); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/fundamental_group.pyx":67
 *     word_list = []
 *     while word[n] != 0:
 *         word_list.append(             # <<<<<<<<<<<<<<
 *             int_to_gen_string(word[n], num_generators, verbose_form))
 *         n += 1
*/
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_word_list, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(8, 67, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/fundamental_group.pyx":69
 *         word_list.append(
 *             int_to_gen_string(word[n], num_generators, verbose_form))
 *         n += 1             # <<<<<<<<<<<<<<
 *     return _letter_seperator(verbose_form).join(word_list)
 * 
*/
    __pyx_v_n = (__pyx_v_n + 1);
  }

  /* "cython/core/fundamental_group.pyx":70
 *             int_to_gen_string(word[n], num_generators, verbose_form))
 *         n += 1
 *     return _letter_seperator(verbose_form).join(word_list)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_letter_seperator); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_6);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_6);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_verbose_form};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_4 = __pyx_t_5;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_word_list};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":63
 * 
 * 
 * cdef c_word_as_string(int *word, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     cdef int n = 0
 *     word_list = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.c_word_as_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_word_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":73
 * 
 * 
 * def word_as_list(word, int num_generators):             # <<<<<<<<<<<<<<
 *     if not isinstance(word, str):
 *         raise TypeError('Words must be represented as Python strings.')
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_41word_as_list(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_41word_as_list = {"word_as_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_41word_as_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_41word_as_list(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_word = 0;
  int __pyx_v_num_generators;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("word_as_list (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_word,&__pyx_mstate_global->__pyx_n_u_num_generators,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 73, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 73, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 73, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "word_as_list", 0) < (0)) __PYX_ERR(8, 73, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("word_as_list", 1, 2, 2, i); __PYX_ERR(8, 73, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 73, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 73, __pyx_L3_error)
    }
    __pyx_v_word = values[0];
    __pyx_v_num_generators = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_num_generators == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 73, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("word_as_list", 1, 2, 2, __pyx_nargs); __PYX_ERR(8, 73, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.word_as_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_40word_as_list(__pyx_self, __pyx_v_word, __pyx_v_num_generators);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_40word_as_list(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_word, int __pyx_v_num_generators) {
  PyObject *__pyx_v_word_list = NULL;
  PyObject *__pyx_v_prefix = NULL;
  PyObject *__pyx_v_number = NULL;
  PyObject *__pyx_v_g = NULL;
  PyObject *__pyx_v_letter = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  int __pyx_t_12;
  long __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("word_as_list", 0);

  /* "cython/core/fundamental_group.pyx":74
 * 
 * def word_as_list(word, int num_generators):
 *     if not isinstance(word, str):             # <<<<<<<<<<<<<<
 *         raise TypeError('Words must be represented as Python strings.')
 *     word_list = []
*/
  __pyx_t_1 = PyUnicode_Check(__pyx_v_word); 
  __pyx_t_2 = (!__pyx_t_1);
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/fundamental_group.pyx":75
 * def word_as_list(word, int num_generators):
 *     if not isinstance(word, str):
 *         raise TypeError('Words must be represented as Python strings.')             # <<<<<<<<<<<<<<
 *     word_list = []
 *     if num_generators > 26:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Words_must_be_represented_as_Pyt};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 75, __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_ERR(8, 75, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":74
 * 
 * def word_as_list(word, int num_generators):
 *     if not isinstance(word, str):             # <<<<<<<<<<<<<<
 *         raise TypeError('Words must be represented as Python strings.')
 *     word_list = []
*/
  }

  /* "cython/core/fundamental_group.pyx":76
 *     if not isinstance(word, str):
 *         raise TypeError('Words must be represented as Python strings.')
 *     word_list = []             # <<<<<<<<<<<<<<
 *     if num_generators > 26:
 *         for prefix, number in re.findall(r'([xX])(\d+)', word):
*/
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_word_list = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cython/core/fundamental_group.pyx":77
 *         raise TypeError('Words must be represented as Python strings.')
 *     word_list = []
 *     if num_generators > 26:             # <<<<<<<<<<<<<<
 *         for prefix, number in re.findall(r'([xX])(\d+)', word):
 *             g = int(number)
*/
  __pyx_t_2 = (__pyx_v_num_generators > 26);
  if (__pyx_t_2) {

    /* "cython/core/fundamental_group.pyx":78
 *     word_list = []
 *     if num_generators > 26:
 *         for prefix, number in re.findall(r'([xX])(\d+)', word):             # <<<<<<<<<<<<<<
 *             g = int(number)
 *             if not (0 < g and g <= num_generators):
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 78, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_findall); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 78, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_xX_d, __pyx_v_word};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 78, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
      __pyx_t_7 = __pyx_t_3; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 78, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 78, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 78, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 78, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 78, __pyx_L1_error)
      } else {
        __pyx_t_3 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 78, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
        PyObject* sequence = __pyx_t_3;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(8, 78, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_6);
        } else {
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 78, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_4);
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 78, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_6);
        }
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 78, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 78, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        #endif
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_10 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 78, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
        index = 0; __pyx_t_4 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_4)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_4);
        index = 1; __pyx_t_6 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_6)) goto __pyx_L7_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_6);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < (0)) __PYX_ERR(8, 78, __pyx_L1_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L8_unpacking_done;
        __pyx_L7_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(8, 78, __pyx_L1_error)
        __pyx_L8_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_v_prefix, __pyx_t_4);
      __pyx_t_4 = 0;
      __Pyx_XDECREF_SET(__pyx_v_number, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/fundamental_group.pyx":79
 *     if num_generators > 26:
 *         for prefix, number in re.findall(r'([xX])(\d+)', word):
 *             g = int(number)             # <<<<<<<<<<<<<<
 *             if not (0 < g and g <= num_generators):
 *                 raise ValueError('The word contains a non-generator.')
*/
      __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 79, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_g, ((PyObject*)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "cython/core/fundamental_group.pyx":80
 *         for prefix, number in re.findall(r'([xX])(\d+)', word):
 *             g = int(number)
 *             if not (0 < g and g <= num_generators):             # <<<<<<<<<<<<<<
 *                 raise ValueError('The word contains a non-generator.')
 *             if prefix.islower():
*/
      __pyx_t_3 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_g, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 80, __pyx_L1_error)
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(8, 80, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_1) {
      } else {
        __pyx_t_2 = __pyx_t_1;
        goto __pyx_L10_bool_binop_done;
      }
      __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_num_generators); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 80, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = PyObject_RichCompare(__pyx_v_g, __pyx_t_3, Py_LE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 80, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(8, 80, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_2 = __pyx_t_1;
      __pyx_L10_bool_binop_done:;
      __pyx_t_1 = (!__pyx_t_2);
      if (unlikely(__pyx_t_1)) {

        /* "cython/core/fundamental_group.pyx":81
 *             g = int(number)
 *             if not (0 < g and g <= num_generators):
 *                 raise ValueError('The word contains a non-generator.')             # <<<<<<<<<<<<<<
 *             if prefix.islower():
 *                 word_list.append( g)
*/
        __pyx_t_3 = NULL;
        __pyx_t_5 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_word_contains_a_non_generato};
          __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 81, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        __Pyx_Raise(__pyx_t_6, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __PYX_ERR(8, 81, __pyx_L1_error)

        /* "cython/core/fundamental_group.pyx":80
 *         for prefix, number in re.findall(r'([xX])(\d+)', word):
 *             g = int(number)
 *             if not (0 < g and g <= num_generators):             # <<<<<<<<<<<<<<
 *                 raise ValueError('The word contains a non-generator.')
 *             if prefix.islower():
*/
      }

      /* "cython/core/fundamental_group.pyx":82
 *             if not (0 < g and g <= num_generators):
 *                 raise ValueError('The word contains a non-generator.')
 *             if prefix.islower():             # <<<<<<<<<<<<<<
 *                 word_list.append( g)
 *             else:
*/
      __pyx_t_3 = __pyx_v_prefix;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_islower, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 82, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(8, 82, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (__pyx_t_1) {

        /* "cython/core/fundamental_group.pyx":83
 *                 raise ValueError('The word contains a non-generator.')
 *             if prefix.islower():
 *                 word_list.append( g)             # <<<<<<<<<<<<<<
 *             else:
 *                 word_list.append(-g)
*/
        __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_word_list, __pyx_v_g); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(8, 83, __pyx_L1_error)

        /* "cython/core/fundamental_group.pyx":82
 *             if not (0 < g and g <= num_generators):
 *                 raise ValueError('The word contains a non-generator.')
 *             if prefix.islower():             # <<<<<<<<<<<<<<
 *                 word_list.append( g)
 *             else:
*/
        goto __pyx_L12;
      }

      /* "cython/core/fundamental_group.pyx":85
 *                 word_list.append( g)
 *             else:
 *                 word_list.append(-g)             # <<<<<<<<<<<<<<
 *     else:
 *         for letter in word:
*/
      /*else*/ {
        __pyx_t_6 = PyNumber_Negative(__pyx_v_g); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 85, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_word_list, __pyx_t_6); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(8, 85, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
      __pyx_L12:;

      /* "cython/core/fundamental_group.pyx":78
 *     word_list = []
 *     if num_generators > 26:
 *         for prefix, number in re.findall(r'([xX])(\d+)', word):             # <<<<<<<<<<<<<<
 *             g = int(number)
 *             if not (0 < g and g <= num_generators):
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/fundamental_group.pyx":77
 *         raise TypeError('Words must be represented as Python strings.')
 *     word_list = []
 *     if num_generators > 26:             # <<<<<<<<<<<<<<
 *         for prefix, number in re.findall(r'([xX])(\d+)', word):
 *             g = int(number)
*/
    goto __pyx_L4;
  }

  /* "cython/core/fundamental_group.pyx":87
 *                 word_list.append(-g)
 *     else:
 *         for letter in word:             # <<<<<<<<<<<<<<
 *             g = ord(letter.lower()) - ord("a") + 1
 *             if not (0 < g and g <= num_generators):
*/
  /*else*/ {
    if (likely(PyList_CheckExact(__pyx_v_word)) || PyTuple_CheckExact(__pyx_v_word)) {
      __pyx_t_7 = __pyx_v_word; __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
    } else {
      __pyx_t_8 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_word); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 87, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 87, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_9)) {
        if (likely(PyList_CheckExact(__pyx_t_7))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 87, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_8;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 87, __pyx_L1_error)
            #endif
            if (__pyx_t_8 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_8));
          #else
          __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_8);
          #endif
          ++__pyx_t_8;
        }
        if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 87, __pyx_L1_error)
      } else {
        __pyx_t_6 = __pyx_t_9(__pyx_t_7);
        if (unlikely(!__pyx_t_6)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 87, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_v_letter, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "cython/core/fundamental_group.pyx":88
 *     else:
 *         for letter in word:
 *             g = ord(letter.lower()) - ord("a") + 1             # <<<<<<<<<<<<<<
 *             if not (0 < g and g <= num_generators):
 *                 raise ValueError('The word contains a non-generator.')
*/
      __pyx_t_3 = __pyx_v_letter;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lower, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 88, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      __pyx_t_13 = __Pyx_PyObject_Ord(__pyx_t_6); if (unlikely(__pyx_t_13 == ((long)(long)(Py_UCS4)-1))) __PYX_ERR(8, 88, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyLong_From_long(((__pyx_t_13 - 97) + 1)); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 88, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (__Pyx_PyInt_FromNumber(&__pyx_t_6, NULL, 0) < (0)) __PYX_ERR(8, 88, __pyx_L1_error)
      __Pyx_XDECREF_SET(__pyx_v_g, ((PyObject*)__pyx_t_6));
      __pyx_t_6 = 0;

      /* "cython/core/fundamental_group.pyx":89
 *         for letter in word:
 *             g = ord(letter.lower()) - ord("a") + 1
 *             if not (0 < g and g <= num_generators):             # <<<<<<<<<<<<<<
 *                 raise ValueError('The word contains a non-generator.')
 *             if letter.islower():
*/
      __pyx_t_6 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_g, Py_LT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 89, __pyx_L1_error)
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 89, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (__pyx_t_2) {
      } else {
        __pyx_t_1 = __pyx_t_2;
        goto __pyx_L17_bool_binop_done;
      }
      __pyx_t_6 = __Pyx_PyLong_From_int(__pyx_v_num_generators); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 89, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_g, __pyx_t_6, Py_LE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 89, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 89, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_1 = __pyx_t_2;
      __pyx_L17_bool_binop_done:;
      __pyx_t_2 = (!__pyx_t_1);
      if (unlikely(__pyx_t_2)) {

        /* "cython/core/fundamental_group.pyx":90
 *             g = ord(letter.lower()) - ord("a") + 1
 *             if not (0 < g and g <= num_generators):
 *                 raise ValueError('The word contains a non-generator.')             # <<<<<<<<<<<<<<
 *             if letter.islower():
 *                 word_list.append( g)
*/
        __pyx_t_6 = NULL;
        __pyx_t_5 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_The_word_contains_a_non_generato};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 90, __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_ERR(8, 90, __pyx_L1_error)

        /* "cython/core/fundamental_group.pyx":89
 *         for letter in word:
 *             g = ord(letter.lower()) - ord("a") + 1
 *             if not (0 < g and g <= num_generators):             # <<<<<<<<<<<<<<
 *                 raise ValueError('The word contains a non-generator.')
 *             if letter.islower():
*/
      }

      /* "cython/core/fundamental_group.pyx":91
 *             if not (0 < g and g <= num_generators):
 *                 raise ValueError('The word contains a non-generator.')
 *             if letter.islower():             # <<<<<<<<<<<<<<
 *                 word_list.append( g)
 *             else:
*/
      __pyx_t_6 = __pyx_v_letter;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
        __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_islower, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 91, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 91, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_2) {

        /* "cython/core/fundamental_group.pyx":92
 *                 raise ValueError('The word contains a non-generator.')
 *             if letter.islower():
 *                 word_list.append( g)             # <<<<<<<<<<<<<<
 *             else:
 *                 word_list.append(-g)
*/
        __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_word_list, __pyx_v_g); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(8, 92, __pyx_L1_error)

        /* "cython/core/fundamental_group.pyx":91
 *             if not (0 < g and g <= num_generators):
 *                 raise ValueError('The word contains a non-generator.')
 *             if letter.islower():             # <<<<<<<<<<<<<<
 *                 word_list.append( g)
 *             else:
*/
        goto __pyx_L19;
      }

      /* "cython/core/fundamental_group.pyx":94
 *                 word_list.append( g)
 *             else:
 *                 word_list.append(-g)             # <<<<<<<<<<<<<<
 * 
 *     return word_list
*/
      /*else*/ {
        __pyx_t_3 = PyNumber_Negative(__pyx_v_g); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 94, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_word_list, __pyx_t_3); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(8, 94, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __pyx_L19:;

      /* "cython/core/fundamental_group.pyx":87
 *                 word_list.append(-g)
 *     else:
 *         for letter in word:             # <<<<<<<<<<<<<<
 *             g = ord(letter.lower()) - ord("a") + 1
 *             if not (0 < g and g <= num_generators):
*/
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __pyx_L4:;

  /* "cython/core/fundamental_group.pyx":96
 *                 word_list.append(-g)
 * 
 *     return word_list             # <<<<<<<<<<<<<<
 * 
 * def list_as_word(int_list, int num_generators, verbose_form):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_word_list);
  __pyx_r = __pyx_v_word_list;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":73
 * 
 * 
 * def word_as_list(word, int num_generators):             # <<<<<<<<<<<<<<
 *     if not isinstance(word, str):
 *         raise TypeError('Words must be represented as Python strings.')
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("SnapPy.word_as_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_word_list);
  __Pyx_XDECREF(__pyx_v_prefix);
  __Pyx_XDECREF(__pyx_v_number);
  __Pyx_XDECREF(__pyx_v_g);
  __Pyx_XDECREF(__pyx_v_letter);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":98
 *     return word_list
 * 
 * def list_as_word(int_list, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_43list_as_word(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_43list_as_word = {"list_as_word", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_43list_as_word, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_43list_as_word(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_int_list = 0;
  int __pyx_v_num_generators;
  PyObject *__pyx_v_verbose_form = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("list_as_word (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_int_list,&__pyx_mstate_global->__pyx_n_u_num_generators,&__pyx_mstate_global->__pyx_n_u_verbose_form,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 98, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(8, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 98, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "list_as_word", 0) < (0)) __PYX_ERR(8, 98, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("list_as_word", 1, 3, 3, i); __PYX_ERR(8, 98, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 98, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 98, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(8, 98, __pyx_L3_error)
    }
    __pyx_v_int_list = values[0];
    __pyx_v_num_generators = __Pyx_PyLong_As_int(values[1]); if (unlikely((__pyx_v_num_generators == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 98, __pyx_L3_error)
    __pyx_v_verbose_form = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("list_as_word", 1, 3, 3, __pyx_nargs); __PYX_ERR(8, 98, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.list_as_word", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_42list_as_word(__pyx_self, __pyx_v_int_list, __pyx_v_num_generators, __pyx_v_verbose_form);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_6SnapPy_12list_as_word_2generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cython/core/fundamental_group.pyx":100
 * def list_as_word(int_list, int num_generators, verbose_form):
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)             # <<<<<<<<<<<<<<
 *         for g in int_list)
 * 
*/

static PyObject *__pyx_pf_6SnapPy_12list_as_word_genexpr(PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *)__pyx_tp_new_6SnapPy___pyx_scope_struct_5_genexpr(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(8, 100, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *) __pyx_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_6SnapPy_12list_as_word_2generator3, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_list_as_word_locals_genexpr, __pyx_mstate_global->__pyx_n_u_SnapPy); if (unlikely(!gen)) __PYX_ERR(8, 100, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.list_as_word.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_6SnapPy_12list_as_word_2generator3(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *__pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(8, 100, __pyx_L1_error)
  }

  /* "cython/core/fundamental_group.pyx":101
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)
 *         for g in int_list)             # <<<<<<<<<<<<<<
 * 
 * cdef class CFundamentalGroup():
*/
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(8, 101, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 101, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 101, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 101, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 101, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 101, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_g);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_g, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/fundamental_group.pyx":100
 * def list_as_word(int_list, int num_generators, verbose_form):
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)             # <<<<<<<<<<<<<<
 *         for g in int_list)
 * 
*/
    __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_cur_scope->__pyx_v_g); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 100, __pyx_L1_error)
    if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_verbose_form)) { __Pyx_RaiseClosureNameError("verbose_form"); __PYX_ERR(8, 100, __pyx_L1_error) }
    __pyx_t_4 = __pyx_cur_scope->__pyx_outer_scope->__pyx_v_verbose_form;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_6 = __pyx_f_6SnapPy_int_to_gen_string(__pyx_t_5, __pyx_cur_scope->__pyx_outer_scope->__pyx_v_num_generators, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_6;
    __pyx_t_6 = 0;
    __Pyx_XGIVEREF(__pyx_t_1);
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __pyx_cur_scope->__pyx_t_1 = __pyx_t_2;
    __pyx_cur_scope->__pyx_t_2 = __pyx_t_3;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    __pyx_cur_scope->__pyx_t_0 = 0;
    __Pyx_XGOTREF(__pyx_t_1);
    __pyx_t_2 = __pyx_cur_scope->__pyx_t_1;
    __pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(8, 100, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":101
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)
 *         for g in int_list)             # <<<<<<<<<<<<<<
 * 
 * cdef class CFundamentalGroup():
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* "cython/core/fundamental_group.pyx":100
 * def list_as_word(int_list, int num_generators, verbose_form):
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)             # <<<<<<<<<<<<<<
 *         for g in int_list)
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":98
 *     return word_list
 * 
 * def list_as_word(int_list, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)
*/

static PyObject *__pyx_pf_6SnapPy_42list_as_word(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_int_list, int __pyx_v_num_generators, PyObject *__pyx_v_verbose_form) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *__pyx_cur_scope;
  PyObject *__pyx_gb_6SnapPy_12list_as_word_2generator3 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("list_as_word", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *)__pyx_tp_new_6SnapPy___pyx_scope_struct_4_list_as_word(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(8, 98, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_num_generators = __pyx_v_num_generators;
  __pyx_cur_scope->__pyx_v_verbose_form = __pyx_v_verbose_form;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_v_verbose_form);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_verbose_form);

  /* "cython/core/fundamental_group.pyx":99
 * 
 * def list_as_word(int_list, int num_generators, verbose_form):
 *     return _letter_seperator(verbose_form).join(             # <<<<<<<<<<<<<<
 *         int_to_gen_string(g, num_generators, verbose_form)
 *         for g in int_list)
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_letter_seperator); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 99, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_cur_scope->__pyx_v_verbose_form};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 99, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_2 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_2);

  /* "cython/core/fundamental_group.pyx":100
 * def list_as_word(int_list, int num_generators, verbose_form):
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)             # <<<<<<<<<<<<<<
 *         for g in int_list)
 * 
*/
  __pyx_t_5 = __pyx_pf_6SnapPy_12list_as_word_genexpr(((PyObject*)__pyx_cur_scope), __pyx_v_int_list); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 99, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":98
 *     return word_list
 * 
 * def list_as_word(int_list, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.list_as_word", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_gb_6SnapPy_12list_as_word_2generator3);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":108
 *     cdef readonly num_cusps
 * 
 *     def __cinit__(self, Triangulation triangulation,             # <<<<<<<<<<<<<<
 *                   simplify_presentation=True,
 *                   fillings_may_affect_generators=True,
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_17CFundamentalGroup_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6SnapPy_17CFundamentalGroup_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_triangulation = 0;
  PyObject *__pyx_v_simplify_presentation = 0;
  PyObject *__pyx_v_fillings_may_affect_generators = 0;
  PyObject *__pyx_v_minimize_number_of_generators = 0;
  PyObject *__pyx_v_try_hard_to_shorten_relators = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_triangulation,&__pyx_mstate_global->__pyx_n_u_simplify_presentation,&__pyx_mstate_global->__pyx_n_u_fillings_may_affect_generators,&__pyx_mstate_global->__pyx_n_u_minimize_number_of_generators,&__pyx_mstate_global->__pyx_n_u_try_hard_to_shorten_relators,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 108, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_VARARGS(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_VARARGS(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(8, 108, __pyx_L3_error)

      /* "cython/core/fundamental_group.pyx":109
 * 
 *     def __cinit__(self, Triangulation triangulation,
 *                   simplify_presentation=True,             # <<<<<<<<<<<<<<
 *                   fillings_may_affect_generators=True,
 *                   minimize_number_of_generators=True,
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/fundamental_group.pyx":110
 *     def __cinit__(self, Triangulation triangulation,
 *                   simplify_presentation=True,
 *                   fillings_may_affect_generators=True,             # <<<<<<<<<<<<<<
 *                   minimize_number_of_generators=True,
 *                   try_hard_to_shorten_relators=True):
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/fundamental_group.pyx":111
 *                   simplify_presentation=True,
 *                   fillings_may_affect_generators=True,
 *                   minimize_number_of_generators=True,             # <<<<<<<<<<<<<<
 *                   try_hard_to_shorten_relators=True):
 *         if triangulation.c_triangulation is NULL:
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/fundamental_group.pyx":112
 *                   fillings_may_affect_generators=True,
 *                   minimize_number_of_generators=True,
 *                   try_hard_to_shorten_relators=True):             # <<<<<<<<<<<<<<
 *         if triangulation.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_True));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 5, i); __PYX_ERR(8, 108, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_VARARGS(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_VARARGS(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 108, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 108, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "cython/core/fundamental_group.pyx":109
 * 
 *     def __cinit__(self, Triangulation triangulation,
 *                   simplify_presentation=True,             # <<<<<<<<<<<<<<
 *                   fillings_may_affect_generators=True,
 *                   minimize_number_of_generators=True,
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/fundamental_group.pyx":110
 *     def __cinit__(self, Triangulation triangulation,
 *                   simplify_presentation=True,
 *                   fillings_may_affect_generators=True,             # <<<<<<<<<<<<<<
 *                   minimize_number_of_generators=True,
 *                   try_hard_to_shorten_relators=True):
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/fundamental_group.pyx":111
 *                   simplify_presentation=True,
 *                   fillings_may_affect_generators=True,
 *                   minimize_number_of_generators=True,             # <<<<<<<<<<<<<<
 *                   try_hard_to_shorten_relators=True):
 *         if triangulation.c_triangulation is NULL:
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/fundamental_group.pyx":112
 *                   fillings_may_affect_generators=True,
 *                   minimize_number_of_generators=True,
 *                   try_hard_to_shorten_relators=True):             # <<<<<<<<<<<<<<
 *         if triangulation.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_triangulation = ((struct __pyx_obj_6SnapPy_Triangulation *)values[0]);
    __pyx_v_simplify_presentation = values[1];
    __pyx_v_fillings_may_affect_generators = values[2];
    __pyx_v_minimize_number_of_generators = values[3];
    __pyx_v_try_hard_to_shorten_relators = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 5, __pyx_nargs); __PYX_ERR(8, 108, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_triangulation), __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, 1, "triangulation", 0))) __PYX_ERR(8, 108, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup___cinit__(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_triangulation, __pyx_v_simplify_presentation, __pyx_v_fillings_may_affect_generators, __pyx_v_minimize_number_of_generators, __pyx_v_try_hard_to_shorten_relators);

  /* "cython/core/fundamental_group.pyx":108
 *     cdef readonly num_cusps
 * 
 *     def __cinit__(self, Triangulation triangulation,             # <<<<<<<<<<<<<<
 *                   simplify_presentation=True,
 *                   fillings_may_affect_generators=True,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_17CFundamentalGroup___cinit__(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_triangulation, PyObject *__pyx_v_simplify_presentation, PyObject *__pyx_v_fillings_may_affect_generators, PyObject *__pyx_v_minimize_number_of_generators, PyObject *__pyx_v_try_hard_to_shorten_relators) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Boolean __pyx_t_5;
  Boolean __pyx_t_6;
  Boolean __pyx_t_7;
  Boolean __pyx_t_8;
  GroupPresentation *__pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cython/core/fundamental_group.pyx":113
 *                   minimize_number_of_generators=True,
 *                   try_hard_to_shorten_relators=True):
 *         if triangulation.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         copy_triangulation(triangulation.c_triangulation,
*/
  __pyx_t_1 = (__pyx_v_triangulation->c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/fundamental_group.pyx":114
 *                   try_hard_to_shorten_relators=True):
 *         if triangulation.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         copy_triangulation(triangulation.c_triangulation,
 *                            &self.c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 114, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(8, 114, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":113
 *                   minimize_number_of_generators=True,
 *                   try_hard_to_shorten_relators=True):
 *         if triangulation.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         copy_triangulation(triangulation.c_triangulation,
*/
  }

  /* "cython/core/fundamental_group.pyx":115
 *         if triangulation.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         copy_triangulation(triangulation.c_triangulation,             # <<<<<<<<<<<<<<
 *                            &self.c_triangulation)
 *         self.c_group_presentation = fundamental_group(
*/
  copy_triangulation(__pyx_v_triangulation->c_triangulation, (&__pyx_v_self->c_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 115, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":119
 *         self.c_group_presentation = fundamental_group(
 *             self.c_triangulation,
 *             simplify_presentation,             # <<<<<<<<<<<<<<
 *             fillings_may_affect_generators,
 *             minimize_number_of_generators,
*/
  __pyx_t_5 = __Pyx_PyLong_As_Boolean(__pyx_v_simplify_presentation); if (unlikely((__pyx_t_5 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(8, 119, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":120
 *             self.c_triangulation,
 *             simplify_presentation,
 *             fillings_may_affect_generators,             # <<<<<<<<<<<<<<
 *             minimize_number_of_generators,
 *             try_hard_to_shorten_relators)
*/
  __pyx_t_6 = __Pyx_PyLong_As_Boolean(__pyx_v_fillings_may_affect_generators); if (unlikely((__pyx_t_6 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(8, 120, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":121
 *             simplify_presentation,
 *             fillings_may_affect_generators,
 *             minimize_number_of_generators,             # <<<<<<<<<<<<<<
 *             try_hard_to_shorten_relators)
 *         self.num_cusps = triangulation.num_cusps()
*/
  __pyx_t_7 = __Pyx_PyLong_As_Boolean(__pyx_v_minimize_number_of_generators); if (unlikely((__pyx_t_7 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(8, 121, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":122
 *             fillings_may_affect_generators,
 *             minimize_number_of_generators,
 *             try_hard_to_shorten_relators)             # <<<<<<<<<<<<<<
 *         self.num_cusps = triangulation.num_cusps()
 * 
*/
  __pyx_t_8 = __Pyx_PyLong_As_Boolean(__pyx_v_try_hard_to_shorten_relators); if (unlikely((__pyx_t_8 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(8, 122, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":117
 *         copy_triangulation(triangulation.c_triangulation,
 *                            &self.c_triangulation)
 *         self.c_group_presentation = fundamental_group(             # <<<<<<<<<<<<<<
 *             self.c_triangulation,
 *             simplify_presentation,
*/
  __pyx_t_9 = fundamental_group(__pyx_v_self->c_triangulation, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 117, __pyx_L1_error)
  __pyx_v_self->c_group_presentation = __pyx_t_9;

  /* "cython/core/fundamental_group.pyx":123
 *             minimize_number_of_generators,
 *             try_hard_to_shorten_relators)
 *         self.num_cusps = triangulation.num_cusps()             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_triangulation);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->num_cusps);
  __Pyx_DECREF(__pyx_v_self->num_cusps);
  __pyx_v_self->num_cusps = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":108
 *     cdef readonly num_cusps
 * 
 *     def __cinit__(self, Triangulation triangulation,             # <<<<<<<<<<<<<<
 *                   simplify_presentation=True,
 *                   fillings_may_affect_generators=True,
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":125
 *         self.num_cusps = triangulation.num_cusps()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         free_triangulation(self.c_triangulation)
 *         free_group_presentation(self.c_group_presentation)
*/

/* Python wrapper */
static void __pyx_pw_6SnapPy_17CFundamentalGroup_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_6SnapPy_17CFundamentalGroup_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_6SnapPy_17CFundamentalGroup_2__dealloc__(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_6SnapPy_17CFundamentalGroup_2__dealloc__(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cython/core/fundamental_group.pyx":126
 * 
 *     def __dealloc__(self):
 *         free_triangulation(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         free_group_presentation(self.c_group_presentation)
 * 
*/
  free_triangulation(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 126, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":127
 *     def __dealloc__(self):
 *         free_triangulation(self.c_triangulation)
 *         free_group_presentation(self.c_group_presentation)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  free_group_presentation(__pyx_v_self->c_group_presentation); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 127, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":125
 *         self.num_cusps = triangulation.num_cusps()
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         free_triangulation(self.c_triangulation)
 *         free_group_presentation(self.c_group_presentation)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("SnapPy.CFundamentalGroup.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
}

/* "cython/core/fundamental_group.pyx":129
 *         free_group_presentation(self.c_group_presentation)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return 'Generators:\n   %s\nRelators:\n   %s' % (
 *             ','.join(self.generators()),
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_5__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_4__repr__(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_4__repr__(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4[4];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/fundamental_group.pyx":130
 * 
 *     def __repr__(self):
 *         return 'Generators:\n   %s\nRelators:\n   %s' % (             # <<<<<<<<<<<<<<
 *             ','.join(self.generators()),
 *             '\n   '.join(self.relators()))
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/fundamental_group.pyx":131
 *     def __repr__(self):
 *         return 'Generators:\n   %s\nRelators:\n   %s' % (
 *             ','.join(self.generators()),             # <<<<<<<<<<<<<<
 *             '\n   '.join(self.relators()))
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_generators); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__28, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":132
 *         return 'Generators:\n   %s\nRelators:\n   %s' % (
 *             ','.join(self.generators()),
 *             '\n   '.join(self.relators()))             # <<<<<<<<<<<<<<
 * 
 *     def num_generators(self):
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_relators); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__33, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4[0] = __pyx_mstate_global->__pyx_kp_u_Generators;
  __pyx_t_4[1] = __pyx_t_1;
  __pyx_t_4[2] = __pyx_mstate_global->__pyx_kp_u_Relators;
  __pyx_t_4[3] = __pyx_t_2;

  /* "cython/core/fundamental_group.pyx":130
 * 
 *     def __repr__(self):
 *         return 'Generators:\n   %s\nRelators:\n   %s' % (             # <<<<<<<<<<<<<<
 *             ','.join(self.generators()),
 *             '\n   '.join(self.relators()))
*/
  __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_4, 4, 15 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 14 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2));
  if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":129
 *         free_group_presentation(self.c_group_presentation)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return 'Generators:\n   %s\nRelators:\n   %s' % (
 *             ','.join(self.generators()),
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":134
 *             '\n   '.join(self.relators()))
 * 
 *     def num_generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of generators for the presentation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_7num_generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_6num_generators, "\n        Return the number of generators for the presentation.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_7num_generators = {"num_generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_7num_generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_6num_generators};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_7num_generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_generators (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_generators", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_generators", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_6num_generators(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_6num_generators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("num_generators", 0);

  /* "cython/core/fundamental_group.pyx":138
 *         Return the number of generators for the presentation.
 *         """
 *         return fg_get_num_generators(self.c_group_presentation)             # <<<<<<<<<<<<<<
 * 
 *     def num_relators(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = fg_get_num_generators(__pyx_v_self->c_group_presentation); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 138, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":134
 *             '\n   '.join(self.relators()))
 * 
 *     def num_generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of generators for the presentation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.num_generators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":140
 *         return fg_get_num_generators(self.c_group_presentation)
 * 
 *     def num_relators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of generators for the presentation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_9num_relators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_8num_relators, "\n        Return the number of generators for the presentation.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_9num_relators = {"num_relators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_9num_relators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_8num_relators};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_9num_relators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_relators (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_relators", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_relators", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_8num_relators(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_8num_relators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("num_relators", 0);

  /* "cython/core/fundamental_group.pyx":144
 *         Return the number of generators for the presentation.
 *         """
 *         return fg_get_num_relations(self.c_group_presentation)             # <<<<<<<<<<<<<<
 * 
 *     def num_original_generators(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = fg_get_num_relations(__pyx_v_self->c_group_presentation); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 144, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":140
 *         return fg_get_num_generators(self.c_group_presentation)
 * 
 *     def num_relators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of generators for the presentation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.num_relators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":146
 *         return fg_get_num_relations(self.c_group_presentation)
 * 
 *     def num_original_generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of geometric generators (before simplification).
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_11num_original_generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_10num_original_generators, "\n        Return the number of geometric generators (before simplification).\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_11num_original_generators = {"num_original_generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_11num_original_generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_10num_original_generators};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_11num_original_generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_original_generators (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_original_generators", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_original_generators", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_10num_original_generators(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_10num_original_generators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("num_original_generators", 0);

  /* "cython/core/fundamental_group.pyx":150
 *         Return the number of geometric generators (before simplification).
 *         """
 *         return fg_get_num_orig_gens(self.c_group_presentation)             # <<<<<<<<<<<<<<
 * 
 *     def original_generators(self, verbose_form=False, as_int_list=False):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = fg_get_num_orig_gens(__pyx_v_self->c_group_presentation); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 150, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":146
 *         return fg_get_num_relations(self.c_group_presentation)
 * 
 *     def num_original_generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of geometric generators (before simplification).
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.num_original_generators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":152
 *         return fg_get_num_orig_gens(self.c_group_presentation)
 * 
 *     def original_generators(self, verbose_form=False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the original geometric generators (before
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_13original_generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_12original_generators, "\n        Return the original geometric generators (before\n        simplification) in terms of the current generators.\n\n        >>> M = Manifold('v0000')\n        >>> G = M.fundamental_group()\n        >>> G.original_generators(as_int_list=True)\n        [[1], [-1, -2, 1, 2], [-1, 2], [-2, -1, 2], [2]]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_13original_generators = {"original_generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_13original_generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_12original_generators};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_13original_generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_verbose_form = 0;
  PyObject *__pyx_v_as_int_list = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("original_generators (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_verbose_form,&__pyx_mstate_global->__pyx_n_u_as_int_list,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 152, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 152, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 152, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "original_generators", 0) < (0)) __PYX_ERR(8, 152, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 152, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 152, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_verbose_form = values[0];
    __pyx_v_as_int_list = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("original_generators", 0, 0, 2, __pyx_nargs); __PYX_ERR(8, 152, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.original_generators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_12original_generators(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_verbose_form, __pyx_v_as_int_list);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_12original_generators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_verbose_form, PyObject *__pyx_v_as_int_list) {
  int __pyx_v_n;
  int *__pyx_v_gen;
  int __pyx_v_num_gen;
  int __pyx_v_num_orig_gens;
  PyObject *__pyx_v_orig_gens = NULL;
  PyObject *__pyx_v_word = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int *__pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("original_generators", 0);

  /* "cython/core/fundamental_group.pyx":164
 *         cdef int n
 *         cdef int *gen
 *         cdef int num_gen = self.num_generators()             # <<<<<<<<<<<<<<
 *         cdef int num_orig_gens = self.num_original_generators()
 *         orig_gens = []
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 164, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_num_gen = __pyx_t_4;

  /* "cython/core/fundamental_group.pyx":165
 *         cdef int *gen
 *         cdef int num_gen = self.num_generators()
 *         cdef int num_orig_gens = self.num_original_generators()             # <<<<<<<<<<<<<<
 *         orig_gens = []
 *         for n from 0 <= n < num_orig_gens:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_original_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 165, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_num_orig_gens = __pyx_t_4;

  /* "cython/core/fundamental_group.pyx":166
 *         cdef int num_gen = self.num_generators()
 *         cdef int num_orig_gens = self.num_original_generators()
 *         orig_gens = []             # <<<<<<<<<<<<<<
 *         for n from 0 <= n < num_orig_gens:
 *             gen = fg_get_original_generator(self.c_group_presentation, n)
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_orig_gens = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":167
 *         cdef int num_orig_gens = self.num_original_generators()
 *         orig_gens = []
 *         for n from 0 <= n < num_orig_gens:             # <<<<<<<<<<<<<<
 *             gen = fg_get_original_generator(self.c_group_presentation, n)
 *             if as_int_list:
*/
  __pyx_t_4 = __pyx_v_num_orig_gens;
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) {

    /* "cython/core/fundamental_group.pyx":168
 *         orig_gens = []
 *         for n from 0 <= n < num_orig_gens:
 *             gen = fg_get_original_generator(self.c_group_presentation, n)             # <<<<<<<<<<<<<<
 *             if as_int_list:
 *                 word = c_word_as_int_list(gen)
*/
    __pyx_t_5 = fg_get_original_generator(__pyx_v_self->c_group_presentation, __pyx_v_n); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 168, __pyx_L1_error)
    __pyx_v_gen = __pyx_t_5;

    /* "cython/core/fundamental_group.pyx":169
 *         for n from 0 <= n < num_orig_gens:
 *             gen = fg_get_original_generator(self.c_group_presentation, n)
 *             if as_int_list:             # <<<<<<<<<<<<<<
 *                 word = c_word_as_int_list(gen)
 *             else:
*/
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_as_int_list); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(8, 169, __pyx_L1_error)
    if (__pyx_t_6) {

      /* "cython/core/fundamental_group.pyx":170
 *             gen = fg_get_original_generator(self.c_group_presentation, n)
 *             if as_int_list:
 *                 word = c_word_as_int_list(gen)             # <<<<<<<<<<<<<<
 *             else:
 *                 word = c_word_as_string(gen, num_gen, verbose_form)
*/
      __pyx_t_1 = __pyx_f_6SnapPy_c_word_as_int_list(__pyx_v_gen); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 170, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_word, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "cython/core/fundamental_group.pyx":169
 *         for n from 0 <= n < num_orig_gens:
 *             gen = fg_get_original_generator(self.c_group_presentation, n)
 *             if as_int_list:             # <<<<<<<<<<<<<<
 *                 word = c_word_as_int_list(gen)
 *             else:
*/
      goto __pyx_L5;
    }

    /* "cython/core/fundamental_group.pyx":172
 *                 word = c_word_as_int_list(gen)
 *             else:
 *                 word = c_word_as_string(gen, num_gen, verbose_form)             # <<<<<<<<<<<<<<
 *             orig_gens.append(word)
 *             fg_free_relation(gen)
*/
    /*else*/ {
      __pyx_t_1 = __pyx_f_6SnapPy_c_word_as_string(__pyx_v_gen, __pyx_v_num_gen, __pyx_v_verbose_form); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 172, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_word, __pyx_t_1);
      __pyx_t_1 = 0;
    }
    __pyx_L5:;

    /* "cython/core/fundamental_group.pyx":173
 *             else:
 *                 word = c_word_as_string(gen, num_gen, verbose_form)
 *             orig_gens.append(word)             # <<<<<<<<<<<<<<
 *             fg_free_relation(gen)
 *         return orig_gens
*/
    __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_orig_gens, __pyx_v_word); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(8, 173, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":174
 *                 word = c_word_as_string(gen, num_gen, verbose_form)
 *             orig_gens.append(word)
 *             fg_free_relation(gen)             # <<<<<<<<<<<<<<
 *         return orig_gens
 * 
*/
    fg_free_relation(__pyx_v_gen); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 174, __pyx_L1_error)
  }

  /* "cython/core/fundamental_group.pyx":175
 *             orig_gens.append(word)
 *             fg_free_relation(gen)
 *         return orig_gens             # <<<<<<<<<<<<<<
 * 
 *     def generators_in_originals(self, verbose_form=False, raw_form=False, as_int_list=False):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_orig_gens);
  __pyx_r = __pyx_v_orig_gens;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":152
 *         return fg_get_num_orig_gens(self.c_group_presentation)
 * 
 *     def original_generators(self, verbose_form=False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the original geometric generators (before
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.original_generators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_orig_gens);
  __Pyx_XDECREF(__pyx_v_word);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":177
 *         return orig_gens
 * 
 *     def generators_in_originals(self, verbose_form=False, raw_form=False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the current generators in terms of the original
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_15generators_in_originals(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_14generators_in_originals, "\n        Return the current generators in terms of the original\n        geometric generators. Note that by default fundamental_group()\n        returns a simplified presentation of the group.\n\n        If the flag \"raw_form\" is set to True, it returns a sequence of\n        instructions for expressing the current generators in terms of\n        the original ones.  This is sometimes much more concise, though\n        the format is somewhat obscure.  See the source code of this\n        function in fundamental_group.pyx for details.\n\n        >>> M = Manifold('K7_1')\n        >>> G = M.fundamental_group()\n        >>> G.generators_in_originals()   #doctest: +NORMALIZE_WHITESPACE\n        ['DBcACbABcaCbDBcACbABcaCbACbaBcaCbd',\n         'DBcACbABcaCbDBcACbABcaCbCbDBcACbABcaBcACbaBcaCbdACbaBcaCbdBcBcACbaBcaCbd']\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_15generators_in_originals = {"generators_in_originals", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_15generators_in_originals, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_14generators_in_originals};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_15generators_in_originals(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_verbose_form = 0;
  PyObject *__pyx_v_raw_form = 0;
  PyObject *__pyx_v_as_int_list = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("generators_in_originals (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_verbose_form,&__pyx_mstate_global->__pyx_n_u_raw_form,&__pyx_mstate_global->__pyx_n_u_as_int_list,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 177, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(8, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "generators_in_originals", 0) < (0)) __PYX_ERR(8, 177, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(8, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 177, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_verbose_form = values[0];
    __pyx_v_raw_form = values[1];
    __pyx_v_as_int_list = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("generators_in_originals", 0, 0, 3, __pyx_nargs); __PYX_ERR(8, 177, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.generators_in_originals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_14generators_in_originals(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_verbose_form, __pyx_v_raw_form, __pyx_v_as_int_list);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_14generators_in_originals(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_verbose_form, PyObject *__pyx_v_raw_form, PyObject *__pyx_v_as_int_list) {
  PyObject *__pyx_v_moves = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_words = NULL;
  PyObject *__pyx_v_a = NULL;
  PyObject *__pyx_v_word = NULL;
  PyObject *__pyx_v_parts = NULL;
  PyObject *__pyx_v_b = NULL;
  PyObject *__pyx_v_A = NULL;
  PyObject *__pyx_v_B = NULL;
  PyObject *__pyx_9genexpr73__pyx_v_i = NULL;
  PyObject *__pyx_9genexpr74__pyx_v_g = NULL;
  PyObject *__pyx_9genexpr75__pyx_v_word = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("generators_in_originals", 0);

  /* "cython/core/fundamental_group.pyx":195
 *          'DBcACbABcaCbDBcACbABcaCbCbDBcACbABcaBcACbaBcaCbdACbaBcaCbdBcBcACbaBcaCbd']
 *         """
 *         moves = self._word_moves()             # <<<<<<<<<<<<<<
 *         if raw_form:
 *             return moves
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_word_moves, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_moves = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":196
 *         """
 *         moves = self._word_moves()
 *         if raw_form:             # <<<<<<<<<<<<<<
 *             return moves
 * 
*/
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_raw_form); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(8, 196, __pyx_L1_error)
  if (__pyx_t_4) {

    /* "cython/core/fundamental_group.pyx":197
 *         moves = self._word_moves()
 *         if raw_form:
 *             return moves             # <<<<<<<<<<<<<<
 * 
 *         n = self.num_original_generators()
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_moves);
    __pyx_r = __pyx_v_moves;
    goto __pyx_L0;

    /* "cython/core/fundamental_group.pyx":196
 *         """
 *         moves = self._word_moves()
 *         if raw_form:             # <<<<<<<<<<<<<<
 *             return moves
 * 
*/
  }

  /* "cython/core/fundamental_group.pyx":199
 *             return moves
 * 
 *         n = self.num_original_generators()             # <<<<<<<<<<<<<<
 * 
 *         words = [None] + [ [ i + 1 ] for i in range(n) ]
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_original_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":201
 *         n = self.num_original_generators()
 * 
 *         words = [None] + [ [ i + 1 ] for i in range(n) ]             # <<<<<<<<<<<<<<
 * 
 *         while len(moves) > 0:
*/
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_1, 0, Py_None) != (0)) __PYX_ERR(8, 201, __pyx_L1_error);
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 201, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_n};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 201, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_t_6 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 201, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 201, __pyx_L6_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    for (;;) {
      {
        __pyx_t_5 = __pyx_t_7(__pyx_t_6);
        if (unlikely(!__pyx_t_5)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 201, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_9genexpr73__pyx_v_i, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_9genexpr73__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 201, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 201, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GIVEREF(__pyx_t_5);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_5) != (0)) __PYX_ERR(8, 201, __pyx_L6_error);
      __pyx_t_5 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_8))) __PYX_ERR(8, 201, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_9genexpr73__pyx_v_i); __pyx_9genexpr73__pyx_v_i = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_9genexpr73__pyx_v_i); __pyx_9genexpr73__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_t_6 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_words = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":203
 *         words = [None] + [ [ i + 1 ] for i in range(n) ]
 * 
 *         while len(moves) > 0:             # <<<<<<<<<<<<<<
 *             a = moves.pop(0)
 *             if a >= len(words):  # new generator added
*/
  while (1) {
    __pyx_t_9 = PyObject_Length(__pyx_v_moves); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(8, 203, __pyx_L1_error)
    __pyx_t_4 = (__pyx_t_9 > 0);
    if (!__pyx_t_4) break;

    /* "cython/core/fundamental_group.pyx":204
 * 
 *         while len(moves) > 0:
 *             a = moves.pop(0)             # <<<<<<<<<<<<<<
 *             if a >= len(words):  # new generator added
 *                 n = moves.index(a)  # end symbol location
*/
    __pyx_t_6 = __Pyx_PyObject_PopIndex(__pyx_v_moves, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 204, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF_SET(__pyx_v_a, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "cython/core/fundamental_group.pyx":205
 *         while len(moves) > 0:
 *             a = moves.pop(0)
 *             if a >= len(words):  # new generator added             # <<<<<<<<<<<<<<
 *                 n = moves.index(a)  # end symbol location
 *                 # word is the expression of the new generator in terms
*/
    __pyx_t_9 = __Pyx_PyList_GET_SIZE(__pyx_v_words); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(8, 205, __pyx_L1_error)
    __pyx_t_6 = PyLong_FromSsize_t(__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_a, __pyx_t_6, Py_GE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 205, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(8, 205, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_4) {

      /* "cython/core/fundamental_group.pyx":206
 *             a = moves.pop(0)
 *             if a >= len(words):  # new generator added
 *                 n = moves.index(a)  # end symbol location             # <<<<<<<<<<<<<<
 *                 # word is the expression of the new generator in terms
 *                 # of the old ones
*/
      __pyx_t_6 = __pyx_v_moves;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_3 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_a};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 206, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_DECREF_SET(__pyx_v_n, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/fundamental_group.pyx":209
 *                 # word is the expression of the new generator in terms
 *                 # of the old ones
 *                 word, moves = moves[:n], moves[n+1:]             # <<<<<<<<<<<<<<
 *                 parts = [words[g] if g > 0 else inverse_list_word(words[-g])
 *                          for g in word]
*/
      __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_moves, 0, 0, NULL, &__pyx_v_n, NULL, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 209, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_6 = __Pyx_PyLong_AddObjC(__pyx_v_n, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 209, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_moves, 0, 0, &__pyx_t_6, NULL, NULL, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 209, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF_SET(__pyx_v_word, __pyx_t_2);
      __pyx_t_2 = 0;
      __Pyx_DECREF_SET(__pyx_v_moves, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "cython/core/fundamental_group.pyx":210
 *                 # of the old ones
 *                 word, moves = moves[:n], moves[n+1:]
 *                 parts = [words[g] if g > 0 else inverse_list_word(words[-g])             # <<<<<<<<<<<<<<
 *                          for g in word]
 *                 words.append(reduce_list_word(sum(parts, [])))
*/
      { /* enter inner scope */
        __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 210, __pyx_L16_error)
        __Pyx_GOTREF(__pyx_t_1);

        /* "cython/core/fundamental_group.pyx":211
 *                 word, moves = moves[:n], moves[n+1:]
 *                 parts = [words[g] if g > 0 else inverse_list_word(words[-g])
 *                          for g in word]             # <<<<<<<<<<<<<<
 *                 words.append(reduce_list_word(sum(parts, [])))
 *             else:
*/
        if (likely(PyList_CheckExact(__pyx_v_word)) || PyTuple_CheckExact(__pyx_v_word)) {
          __pyx_t_2 = __pyx_v_word; __Pyx_INCREF(__pyx_t_2);
          __pyx_t_9 = 0;
          __pyx_t_7 = NULL;
        } else {
          __pyx_t_9 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_word); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 211, __pyx_L16_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 211, __pyx_L16_error)
        }
        for (;;) {
          if (likely(!__pyx_t_7)) {
            if (likely(PyList_CheckExact(__pyx_t_2))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 211, __pyx_L16_error)
                #endif
                if (__pyx_t_9 >= __pyx_temp) break;
              }
              __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_9;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 211, __pyx_L16_error)
                #endif
                if (__pyx_t_9 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_9));
              #else
              __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_9);
              #endif
              ++__pyx_t_9;
            }
            if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 211, __pyx_L16_error)
          } else {
            __pyx_t_6 = __pyx_t_7(__pyx_t_2);
            if (unlikely(!__pyx_t_6)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 211, __pyx_L16_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_XDECREF_SET(__pyx_9genexpr74__pyx_v_g, __pyx_t_6);
          __pyx_t_6 = 0;

          /* "cython/core/fundamental_group.pyx":210
 *                 # of the old ones
 *                 word, moves = moves[:n], moves[n+1:]
 *                 parts = [words[g] if g > 0 else inverse_list_word(words[-g])             # <<<<<<<<<<<<<<
 *                          for g in word]
 *                 words.append(reduce_list_word(sum(parts, [])))
*/
          __pyx_t_8 = PyObject_RichCompare(__pyx_9genexpr74__pyx_v_g, __pyx_mstate_global->__pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 210, __pyx_L16_error)
          __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(8, 210, __pyx_L16_error)
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (__pyx_t_4) {
            __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_v_words, __pyx_9genexpr74__pyx_v_g); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 210, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_8);
            __pyx_t_6 = __pyx_t_8;
            __pyx_t_8 = 0;
          } else {
            __pyx_t_5 = NULL;
            __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_inverse_list_word); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 210, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_10);
            __pyx_t_11 = PyNumber_Negative(__pyx_9genexpr74__pyx_v_g); if (unlikely(!__pyx_t_11)) __PYX_ERR(8, 210, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_11);
            __pyx_t_12 = __Pyx_PyObject_GetItem(__pyx_v_words, __pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(8, 210, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_12);
            __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            __pyx_t_3 = 1;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_10))) {
              __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_10);
              assert(__pyx_t_5);
              PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
              __Pyx_INCREF(__pyx_t_5);
              __Pyx_INCREF(__pyx__function);
              __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
              __pyx_t_3 = 0;
            }
            #endif
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_12};
              __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
              __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
              if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 210, __pyx_L16_error)
              __Pyx_GOTREF(__pyx_t_8);
            }
            __pyx_t_6 = __pyx_t_8;
            __pyx_t_8 = 0;
          }
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(8, 210, __pyx_L16_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

          /* "cython/core/fundamental_group.pyx":211
 *                 word, moves = moves[:n], moves[n+1:]
 *                 parts = [words[g] if g > 0 else inverse_list_word(words[-g])
 *                          for g in word]             # <<<<<<<<<<<<<<
 *                 words.append(reduce_list_word(sum(parts, [])))
 *             else:
*/
        }
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_9genexpr74__pyx_v_g); __pyx_9genexpr74__pyx_v_g = 0;
        goto __pyx_L20_exit_scope;
        __pyx_L16_error:;
        __Pyx_XDECREF(__pyx_9genexpr74__pyx_v_g); __pyx_9genexpr74__pyx_v_g = 0;
        goto __pyx_L1_error;
        __pyx_L20_exit_scope:;
      } /* exit inner scope */
      __Pyx_XDECREF_SET(__pyx_v_parts, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "cython/core/fundamental_group.pyx":212
 *                 parts = [words[g] if g > 0 else inverse_list_word(words[-g])
 *                          for g in word]
 *                 words.append(reduce_list_word(sum(parts, [])))             # <<<<<<<<<<<<<<
 *             else:
 *                 b = moves.pop(0)
*/
      __pyx_t_2 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_reduce_list_word); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_10 = NULL;
      __pyx_t_12 = PyList_New(0); if (unlikely(!__pyx_t_12)) __PYX_ERR(8, 212, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
      __pyx_t_3 = 1;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_10, __pyx_v_parts, __pyx_t_12};
        __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 212, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __pyx_t_3 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
        __pyx_t_3 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 212, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_words, __pyx_t_1); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(8, 212, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "cython/core/fundamental_group.pyx":205
 *         while len(moves) > 0:
 *             a = moves.pop(0)
 *             if a >= len(words):  # new generator added             # <<<<<<<<<<<<<<
 *                 n = moves.index(a)  # end symbol location
 *                 # word is the expression of the new generator in terms
*/
      goto __pyx_L13;
    }

    /* "cython/core/fundamental_group.pyx":214
 *                 words.append(reduce_list_word(sum(parts, [])))
 *             else:
 *                 b = moves.pop(0)             # <<<<<<<<<<<<<<
 *                 if a == b:  # generator removed
 *                     words[a] = words[-1]
*/
    /*else*/ {
      __pyx_t_1 = __Pyx_PyObject_PopIndex(__pyx_v_moves, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 214, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_b, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "cython/core/fundamental_group.pyx":215
 *             else:
 *                 b = moves.pop(0)
 *                 if a == b:  # generator removed             # <<<<<<<<<<<<<<
 *                     words[a] = words[-1]
 *                     words = words[:-1]
*/
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_a, __pyx_v_b, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 215, __pyx_L1_error)
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(8, 215, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_4) {

        /* "cython/core/fundamental_group.pyx":216
 *                 b = moves.pop(0)
 *                 if a == b:  # generator removed
 *                     words[a] = words[-1]             # <<<<<<<<<<<<<<
 *                     words = words[:-1]
 *                 elif a == -b:  # invert generator
*/
        __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_words, -1L, long, 1, __Pyx_PyLong_From_long, 1, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 216, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (unlikely((PyObject_SetItem(__pyx_v_words, __pyx_v_a, __pyx_t_1) < 0))) __PYX_ERR(8, 216, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "cython/core/fundamental_group.pyx":217
 *                 if a == b:  # generator removed
 *                     words[a] = words[-1]
 *                     words = words[:-1]             # <<<<<<<<<<<<<<
 *                 elif a == -b:  # invert generator
 *                     words[a] = inverse_list_word(words[a])
*/
        __pyx_t_1 = __Pyx_PyList_GetSlice(__pyx_v_words, 0, -1L); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 217, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF_SET(__pyx_v_words, ((PyObject*)__pyx_t_1));
        __pyx_t_1 = 0;

        /* "cython/core/fundamental_group.pyx":215
 *             else:
 *                 b = moves.pop(0)
 *                 if a == b:  # generator removed             # <<<<<<<<<<<<<<
 *                     words[a] = words[-1]
 *                     words = words[:-1]
*/
        goto __pyx_L21;
      }

      /* "cython/core/fundamental_group.pyx":218
 *                     words[a] = words[-1]
 *                     words = words[:-1]
 *                 elif a == -b:  # invert generator             # <<<<<<<<<<<<<<
 *                     words[a] = inverse_list_word(words[a])
 *                 else:  # handle slide
*/
      __pyx_t_1 = PyNumber_Negative(__pyx_v_b); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 218, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = PyObject_RichCompare(__pyx_v_a, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 218, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(8, 218, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (__pyx_t_4) {

        /* "cython/core/fundamental_group.pyx":219
 *                     words = words[:-1]
 *                 elif a == -b:  # invert generator
 *                     words[a] = inverse_list_word(words[a])             # <<<<<<<<<<<<<<
 *                 else:  # handle slide
 *                     A, B = words[abs(a)], words[abs(b)]
*/
        __pyx_t_1 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_inverse_list_word); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 219, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_words, __pyx_v_a); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 219, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_8))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8);
          assert(__pyx_t_1);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_1);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
          __pyx_t_3 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_2};
          __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 219, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        if (unlikely((PyObject_SetItem(__pyx_v_words, __pyx_v_a, __pyx_t_6) < 0))) __PYX_ERR(8, 219, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cython/core/fundamental_group.pyx":218
 *                     words[a] = words[-1]
 *                     words = words[:-1]
 *                 elif a == -b:  # invert generator             # <<<<<<<<<<<<<<
 *                     words[a] = inverse_list_word(words[a])
 *                 else:  # handle slide
*/
        goto __pyx_L21;
      }

      /* "cython/core/fundamental_group.pyx":221
 *                     words[a] = inverse_list_word(words[a])
 *                 else:  # handle slide
 *                     A, B = words[abs(a)], words[abs(b)]             # <<<<<<<<<<<<<<
 *                     if a*b < 0:
 *                         B = inverse_list_word(B)
*/
      /*else*/ {
        __pyx_t_6 = __Pyx_PyNumber_Absolute(__pyx_v_a); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 221, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_v_words, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 221, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_6 = __Pyx_PyNumber_Absolute(__pyx_v_b); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 221, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_words, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 221, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF_SET(__pyx_v_A, __pyx_t_8);
        __pyx_t_8 = 0;
        __Pyx_XDECREF_SET(__pyx_v_B, __pyx_t_2);
        __pyx_t_2 = 0;

        /* "cython/core/fundamental_group.pyx":222
 *                 else:  # handle slide
 *                     A, B = words[abs(a)], words[abs(b)]
 *                     if a*b < 0:             # <<<<<<<<<<<<<<
 *                         B = inverse_list_word(B)
 *                     words[abs(a)] = reduce_list_word(A+B if a > 0 else B+A)
*/
        __pyx_t_2 = PyNumber_Multiply(__pyx_v_a, __pyx_v_b); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 222, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = PyObject_RichCompare(__pyx_t_2, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 222, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(8, 222, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (__pyx_t_4) {

          /* "cython/core/fundamental_group.pyx":223
 *                     A, B = words[abs(a)], words[abs(b)]
 *                     if a*b < 0:
 *                         B = inverse_list_word(B)             # <<<<<<<<<<<<<<
 *                     words[abs(a)] = reduce_list_word(A+B if a > 0 else B+A)
 * 
*/
          __pyx_t_2 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_inverse_list_word); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 223, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_3 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_6))) {
            __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6);
            assert(__pyx_t_2);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
            __Pyx_INCREF(__pyx_t_2);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
            __pyx_t_3 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_B};
            __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 223, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_8);
          }
          __Pyx_DECREF_SET(__pyx_v_B, __pyx_t_8);
          __pyx_t_8 = 0;

          /* "cython/core/fundamental_group.pyx":222
 *                 else:  # handle slide
 *                     A, B = words[abs(a)], words[abs(b)]
 *                     if a*b < 0:             # <<<<<<<<<<<<<<
 *                         B = inverse_list_word(B)
 *                     words[abs(a)] = reduce_list_word(A+B if a > 0 else B+A)
*/
        }

        /* "cython/core/fundamental_group.pyx":224
 *                     if a*b < 0:
 *                         B = inverse_list_word(B)
 *                     words[abs(a)] = reduce_list_word(A+B if a > 0 else B+A)             # <<<<<<<<<<<<<<
 * 
 *         if as_int_list:
*/
        __pyx_t_6 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_reduce_list_word); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 224, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_12 = PyObject_RichCompare(__pyx_v_a, __pyx_mstate_global->__pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(8, 224, __pyx_L1_error)
        __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(8, 224, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (__pyx_t_4) {
          __pyx_t_12 = PyNumber_Add(__pyx_v_A, __pyx_v_B); if (unlikely(!__pyx_t_12)) __PYX_ERR(8, 224, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __pyx_t_1 = __pyx_t_12;
          __pyx_t_12 = 0;
        } else {
          __pyx_t_12 = PyNumber_Add(__pyx_v_B, __pyx_v_A); if (unlikely(!__pyx_t_12)) __PYX_ERR(8, 224, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __pyx_t_1 = __pyx_t_12;
          __pyx_t_12 = 0;
        }
        __pyx_t_3 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
          assert(__pyx_t_6);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
          __pyx_t_3 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_1};
          __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 224, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        __pyx_t_2 = __Pyx_PyNumber_Absolute(__pyx_v_a); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 224, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (unlikely((PyObject_SetItem(__pyx_v_words, __pyx_t_2, __pyx_t_8) < 0))) __PYX_ERR(8, 224, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      }
      __pyx_L21:;
    }
    __pyx_L13:;
  }

  /* "cython/core/fundamental_group.pyx":226
 *                     words[abs(a)] = reduce_list_word(A+B if a > 0 else B+A)
 * 
 *         if as_int_list:             # <<<<<<<<<<<<<<
 *             return words[1:]
 *         else:
*/
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_as_int_list); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(8, 226, __pyx_L1_error)
  if (__pyx_t_4) {

    /* "cython/core/fundamental_group.pyx":227
 * 
 *         if as_int_list:
 *             return words[1:]             # <<<<<<<<<<<<<<
 *         else:
 *             n = self.num_original_generators()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_8 = __Pyx_PyList_GetSlice(__pyx_v_words, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 227, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "cython/core/fundamental_group.pyx":226
 *                     words[abs(a)] = reduce_list_word(A+B if a > 0 else B+A)
 * 
 *         if as_int_list:             # <<<<<<<<<<<<<<
 *             return words[1:]
 *         else:
*/
  }

  /* "cython/core/fundamental_group.pyx":229
 *             return words[1:]
 *         else:
 *             n = self.num_original_generators()             # <<<<<<<<<<<<<<
 *             return [ list_as_word(word, n, verbose_form) for word in words[1:]]
 * 
*/
  /*else*/ {
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_original_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 229, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __Pyx_DECREF_SET(__pyx_v_n, __pyx_t_8);
    __pyx_t_8 = 0;

    /* "cython/core/fundamental_group.pyx":230
 *         else:
 *             n = self.num_original_generators()
 *             return [ list_as_word(word, n, verbose_form) for word in words[1:]]             # <<<<<<<<<<<<<<
 * 
 *     def _word_moves(self):
*/
    __Pyx_XDECREF(__pyx_r);
    { /* enter inner scope */
      __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 230, __pyx_L26_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_2 = __Pyx_PyList_GetSlice(__pyx_v_words, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 230, __pyx_L26_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1);
      __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 230, __pyx_L26_error)
          #endif
          if (__pyx_t_9 >= __pyx_temp) break;
        }
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_9;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 230, __pyx_L26_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_XDECREF_SET(__pyx_9genexpr75__pyx_v_word, __pyx_t_2);
        __pyx_t_2 = 0;
        __pyx_t_6 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_list_as_word); if (unlikely(!__pyx_t_12)) __PYX_ERR(8, 230, __pyx_L26_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_3 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_12))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_12);
          assert(__pyx_t_6);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
          __pyx_t_3 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_6, __pyx_9genexpr75__pyx_v_word, __pyx_v_n, __pyx_v_verbose_form};
          __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_3, (4-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 230, __pyx_L26_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_2))) __PYX_ERR(8, 230, __pyx_L26_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_9genexpr75__pyx_v_word); __pyx_9genexpr75__pyx_v_word = 0;
      goto __pyx_L30_exit_scope;
      __pyx_L26_error:;
      __Pyx_XDECREF(__pyx_9genexpr75__pyx_v_word); __pyx_9genexpr75__pyx_v_word = 0;
      goto __pyx_L1_error;
      __pyx_L30_exit_scope:;
    } /* exit inner scope */
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/fundamental_group.pyx":177
 *         return orig_gens
 * 
 *     def generators_in_originals(self, verbose_form=False, raw_form=False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the current generators in terms of the original
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.generators_in_originals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_moves);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_words);
  __Pyx_XDECREF(__pyx_v_a);
  __Pyx_XDECREF(__pyx_v_word);
  __Pyx_XDECREF(__pyx_v_parts);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_XDECREF(__pyx_v_A);
  __Pyx_XDECREF(__pyx_v_B);
  __Pyx_XDECREF(__pyx_9genexpr73__pyx_v_i);
  __Pyx_XDECREF(__pyx_9genexpr74__pyx_v_g);
  __Pyx_XDECREF(__pyx_9genexpr75__pyx_v_word);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":232
 *             return [ list_as_word(word, n, verbose_form) for word in words[1:]]
 * 
 *     def _word_moves(self):             # <<<<<<<<<<<<<<
 *         cdef int *c_moves
 *         c_moves = fg_get_word_moves(self.c_group_presentation)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_17_word_moves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_17_word_moves = {"_word_moves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_17_word_moves, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_17_word_moves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_word_moves (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_word_moves", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_word_moves", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_16_word_moves(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_16_word_moves(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  int *__pyx_v_c_moves;
  PyObject *__pyx_v_moves = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_word_moves", 0);

  /* "cython/core/fundamental_group.pyx":234
 *     def _word_moves(self):
 *         cdef int *c_moves
 *         c_moves = fg_get_word_moves(self.c_group_presentation)             # <<<<<<<<<<<<<<
 *         moves = c_word_as_int_list(c_moves)
 *         fg_free_relation(c_moves)
*/
  __pyx_t_1 = fg_get_word_moves(__pyx_v_self->c_group_presentation); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 234, __pyx_L1_error)
  __pyx_v_c_moves = __pyx_t_1;

  /* "cython/core/fundamental_group.pyx":235
 *         cdef int *c_moves
 *         c_moves = fg_get_word_moves(self.c_group_presentation)
 *         moves = c_word_as_int_list(c_moves)             # <<<<<<<<<<<<<<
 *         fg_free_relation(c_moves)
 *         return moves
*/
  __pyx_t_2 = __pyx_f_6SnapPy_c_word_as_int_list(__pyx_v_c_moves); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_moves = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":236
 *         c_moves = fg_get_word_moves(self.c_group_presentation)
 *         moves = c_word_as_int_list(c_moves)
 *         fg_free_relation(c_moves)             # <<<<<<<<<<<<<<
 *         return moves
 * 
*/
  fg_free_relation(__pyx_v_c_moves); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 236, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":237
 *         moves = c_word_as_int_list(c_moves)
 *         fg_free_relation(c_moves)
 *         return moves             # <<<<<<<<<<<<<<
 * 
 *     def generators(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_moves);
  __pyx_r = __pyx_v_moves;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":232
 *             return [ list_as_word(word, n, verbose_form) for word in words[1:]]
 * 
 *     def _word_moves(self):             # <<<<<<<<<<<<<<
 *         cdef int *c_moves
 *         c_moves = fg_get_word_moves(self.c_group_presentation)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup._word_moves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_moves);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":239
 *         return moves
 * 
 *     def generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the letters representing the generators in the presentation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_19generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_18generators, "\n        Return the letters representing the generators in the presentation.\n\n        >>> M = Manifold('9_42')\n        >>> G = M.fundamental_group() #Presentation simplified by default\n        >>> G\n        Generators:\n           a,b\n        Relators:\n           aaaabbABBBAbb\n        >>> H = M.fundamental_group(False) #Unsimplified presentation\n        >>> H\n        Generators:\n           a,b,c,d,e\n        Relators:\n           ECbC\n           dEb\n           dAcaB\n           dbaE\n\n        SnapPy stores a FundamentalGroup as a presentation of the group.\n        The following commands demonstrate how generators in the unsimplified\n        and simplified presentations above correspond:\n\n        >>> G.generators()\n        ['a', 'b']\n        >>> H.generators()\n        ['a', 'b', 'c', 'd', 'e']\n        >>> G.generators_in_originals()\n        ['BABcBcbCABcBcbCCbCba', 'BcBCbCbab']\n        >>> G.original_generators()\n        ['BBAbba', 'A', 'AB', 'abba', 'bba']\n        >>> G.num_generators()\n        2\n        >>> G.num_original_generators()\n        5\n        >>> H.num_generators()\n        5\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_19generators = {"generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_19generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_18generators};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_19generators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("generators (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("generators", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("generators", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_18generators(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_18generators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_9genexpr76__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *(*__pyx_t_6)(PyObject *);
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("generators", 0);

  /* "cython/core/fundamental_group.pyx":279
 *         5
 *         """
 *         n = self.num_generators()             # <<<<<<<<<<<<<<
 *         return [ int_to_gen_string(i, n, verbose_form=False)
 *                  for i in range(1, 1+n) ]
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_n = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":280
 *         """
 *         n = self.num_generators()
 *         return [ int_to_gen_string(i, n, verbose_form=False)             # <<<<<<<<<<<<<<
 *                  for i in range(1, 1+n) ]
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 280, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/fundamental_group.pyx":281
 *         n = self.num_generators()
 *         return [ int_to_gen_string(i, n, verbose_form=False)
 *                  for i in range(1, 1+n) ]             # <<<<<<<<<<<<<<
 * 
 *     def relators(self, verbose_form = False, as_int_list=False):
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = __Pyx_PyLong_AddCObj(__pyx_mstate_global->__pyx_int_1, __pyx_v_n, 1, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 281, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_mstate_global->__pyx_int_1, __pyx_t_5};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 281, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 281, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 281, __pyx_L5_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_6(__pyx_t_5);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 281, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_9genexpr76__pyx_v_i, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/fundamental_group.pyx":280
 *         """
 *         n = self.num_generators()
 *         return [ int_to_gen_string(i, n, verbose_form=False)             # <<<<<<<<<<<<<<
 *                  for i in range(1, 1+n) ]
 * 
*/
      __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_9genexpr76__pyx_v_i); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 280, __pyx_L5_error)
      __pyx_t_8 = __Pyx_PyLong_As_int(__pyx_v_n); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 280, __pyx_L5_error)
      __pyx_t_2 = __pyx_f_6SnapPy_int_to_gen_string(__pyx_t_7, __pyx_t_8, Py_False); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 280, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))) __PYX_ERR(8, 280, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/fundamental_group.pyx":281
 *         n = self.num_generators()
 *         return [ int_to_gen_string(i, n, verbose_form=False)
 *                  for i in range(1, 1+n) ]             # <<<<<<<<<<<<<<
 * 
 *     def relators(self, verbose_form = False, as_int_list=False):
*/
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_9genexpr76__pyx_v_i); __pyx_9genexpr76__pyx_v_i = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr76__pyx_v_i); __pyx_9genexpr76__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":239
 *         return moves
 * 
 *     def generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the letters representing the generators in the presentation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.generators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_9genexpr76__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":283
 *                  for i in range(1, 1+n) ]
 * 
 *     def relators(self, verbose_form = False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of words representing the relators in the presentation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_21relators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_20relators, "\n        Return a list of words representing the relators in the presentation.\n\n        If the optional argument verbose_form is True, then the\n        relator is returned in the form \"a*b*a^-1*b^-1\" instead of \"abAB\".\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_21relators = {"relators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_21relators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_20relators};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_21relators(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_verbose_form = 0;
  PyObject *__pyx_v_as_int_list = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("relators (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_verbose_form,&__pyx_mstate_global->__pyx_n_u_as_int_list,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 283, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "relators", 0) < (0)) __PYX_ERR(8, 283, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_verbose_form = values[0];
    __pyx_v_as_int_list = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("relators", 0, 0, 2, __pyx_nargs); __PYX_ERR(8, 283, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.relators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_20relators(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_verbose_form, __pyx_v_as_int_list);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_20relators(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_verbose_form, PyObject *__pyx_v_as_int_list) {
  int __pyx_v_n;
  int *__pyx_v_relation;
  int __pyx_v_num_gens;
  PyObject *__pyx_v_relation_list = NULL;
  int __pyx_v_num_relations;
  PyObject *__pyx_v_word = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int *__pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("relators", 0);

  /* "cython/core/fundamental_group.pyx":292
 *         cdef int n
 *         cdef int *relation
 *         cdef int num_gens = self.num_generators()             # <<<<<<<<<<<<<<
 * 
 *         relation_list = []
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 292, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_num_gens = __pyx_t_4;

  /* "cython/core/fundamental_group.pyx":294
 *         cdef int num_gens = self.num_generators()
 * 
 *         relation_list = []             # <<<<<<<<<<<<<<
 *         num_relations = fg_get_num_relations(self.c_group_presentation)
 *         for n from 0 <= n < num_relations:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_relation_list = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":295
 * 
 *         relation_list = []
 *         num_relations = fg_get_num_relations(self.c_group_presentation)             # <<<<<<<<<<<<<<
 *         for n from 0 <= n < num_relations:
 *             relation = fg_get_relation(self.c_group_presentation, n)
*/
  __pyx_t_4 = fg_get_num_relations(__pyx_v_self->c_group_presentation); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 295, __pyx_L1_error)
  __pyx_v_num_relations = __pyx_t_4;

  /* "cython/core/fundamental_group.pyx":296
 *         relation_list = []
 *         num_relations = fg_get_num_relations(self.c_group_presentation)
 *         for n from 0 <= n < num_relations:             # <<<<<<<<<<<<<<
 *             relation = fg_get_relation(self.c_group_presentation, n)
 *             if as_int_list:
*/
  __pyx_t_4 = __pyx_v_num_relations;
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) {

    /* "cython/core/fundamental_group.pyx":297
 *         num_relations = fg_get_num_relations(self.c_group_presentation)
 *         for n from 0 <= n < num_relations:
 *             relation = fg_get_relation(self.c_group_presentation, n)             # <<<<<<<<<<<<<<
 *             if as_int_list:
 *                 word = c_word_as_int_list(relation)
*/
    __pyx_t_5 = fg_get_relation(__pyx_v_self->c_group_presentation, __pyx_v_n); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 297, __pyx_L1_error)
    __pyx_v_relation = __pyx_t_5;

    /* "cython/core/fundamental_group.pyx":298
 *         for n from 0 <= n < num_relations:
 *             relation = fg_get_relation(self.c_group_presentation, n)
 *             if as_int_list:             # <<<<<<<<<<<<<<
 *                 word = c_word_as_int_list(relation)
 *             else:
*/
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_as_int_list); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(8, 298, __pyx_L1_error)
    if (__pyx_t_6) {

      /* "cython/core/fundamental_group.pyx":299
 *             relation = fg_get_relation(self.c_group_presentation, n)
 *             if as_int_list:
 *                 word = c_word_as_int_list(relation)             # <<<<<<<<<<<<<<
 *             else:
 *                 word = c_word_as_string(relation, num_gens, verbose_form)
*/
      __pyx_t_1 = __pyx_f_6SnapPy_c_word_as_int_list(__pyx_v_relation); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 299, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_word, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "cython/core/fundamental_group.pyx":298
 *         for n from 0 <= n < num_relations:
 *             relation = fg_get_relation(self.c_group_presentation, n)
 *             if as_int_list:             # <<<<<<<<<<<<<<
 *                 word = c_word_as_int_list(relation)
 *             else:
*/
      goto __pyx_L5;
    }

    /* "cython/core/fundamental_group.pyx":301
 *                 word = c_word_as_int_list(relation)
 *             else:
 *                 word = c_word_as_string(relation, num_gens, verbose_form)             # <<<<<<<<<<<<<<
 *             relation_list.append(word)
 *             fg_free_relation(relation)
*/
    /*else*/ {
      __pyx_t_1 = __pyx_f_6SnapPy_c_word_as_string(__pyx_v_relation, __pyx_v_num_gens, __pyx_v_verbose_form); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 301, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_word, __pyx_t_1);
      __pyx_t_1 = 0;
    }
    __pyx_L5:;

    /* "cython/core/fundamental_group.pyx":302
 *             else:
 *                 word = c_word_as_string(relation, num_gens, verbose_form)
 *             relation_list.append(word)             # <<<<<<<<<<<<<<
 *             fg_free_relation(relation)
 *         return relation_list
*/
    __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_relation_list, __pyx_v_word); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(8, 302, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":303
 *                 word = c_word_as_string(relation, num_gens, verbose_form)
 *             relation_list.append(word)
 *             fg_free_relation(relation)             # <<<<<<<<<<<<<<
 *         return relation_list
 * 
*/
    fg_free_relation(__pyx_v_relation); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 303, __pyx_L1_error)
  }

  /* "cython/core/fundamental_group.pyx":304
 *             relation_list.append(word)
 *             fg_free_relation(relation)
 *         return relation_list             # <<<<<<<<<<<<<<
 * 
 *     def meridian(self, int which_cusp=0, as_int_list=False):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_relation_list);
  __pyx_r = __pyx_v_relation_list;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":283
 *                  for i in range(1, 1+n) ]
 * 
 *     def relators(self, verbose_form = False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of words representing the relators in the presentation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.relators", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_relation_list);
  __Pyx_XDECREF(__pyx_v_word);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":306
 *         return relation_list
 * 
 *     def meridian(self, int which_cusp=0, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a word representing a conjugate of the current
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_23meridian(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_22meridian, "\n        Returns a word representing a conjugate of the current\n        meridian for the given cusp.  Guaranteed to commute with the\n        longitude for the same cusp.\n\n        >>> G = Manifold('m125').fundamental_group()\n        >>> G.meridian(0)\n        'aaba'\n        >>> G.meridian(-1)  # The last cusp\n        'baaba'\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_23meridian = {"meridian", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_23meridian, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_22meridian};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_23meridian(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_which_cusp;
  PyObject *__pyx_v_as_int_list = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("meridian (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_as_int_list,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 306, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "meridian", 0) < (0)) __PYX_ERR(8, 306, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    if (values[0]) {
      __pyx_v_which_cusp = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_which_cusp == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 306, __pyx_L3_error)
    } else {
      __pyx_v_which_cusp = ((int)0);
    }
    __pyx_v_as_int_list = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("meridian", 0, 0, 2, __pyx_nargs); __PYX_ERR(8, 306, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.meridian", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_22meridian(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_which_cusp, __pyx_v_as_int_list);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_22meridian(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, int __pyx_v_which_cusp, PyObject *__pyx_v_as_int_list) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("meridian", 0);

  /* "cython/core/fundamental_group.pyx":318
 *         'baaba'
 *         """
 *         which_cusp = valid_index(             # <<<<<<<<<<<<<<
 *             which_cusp, self.num_cusps,
 *             'The specified cusp (%s) does not exist.')
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/fundamental_group.pyx":319
 *         """
 *         which_cusp = valid_index(
 *             which_cusp, self.num_cusps,             # <<<<<<<<<<<<<<
 *             'The specified cusp (%s) does not exist.')
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_which_cusp); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_4, __pyx_v_self->num_cusps, __pyx_mstate_global->__pyx_kp_u_The_specified_cusp_s_does_not_ex};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 318, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "cython/core/fundamental_group.pyx":318
 *         'baaba'
 *         """
 *         which_cusp = valid_index(             # <<<<<<<<<<<<<<
 *             which_cusp, self.num_cusps,
 *             'The specified cusp (%s) does not exist.')
*/
  __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 318, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_which_cusp = __pyx_t_6;

  /* "cython/core/fundamental_group.pyx":322
 *             'The specified cusp (%s) does not exist.')
 * 
 *         if as_int_list:             # <<<<<<<<<<<<<<
 *             return c_word_as_int_list(
 *                fg_get_meridian(self.c_group_presentation, which_cusp))
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_as_int_list); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(8, 322, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "cython/core/fundamental_group.pyx":323
 * 
 *         if as_int_list:
 *             return c_word_as_int_list(             # <<<<<<<<<<<<<<
 *                fg_get_meridian(self.c_group_presentation, which_cusp))
 *         else:
*/
    __Pyx_XDECREF(__pyx_r);

    /* "cython/core/fundamental_group.pyx":324
 *         if as_int_list:
 *             return c_word_as_int_list(
 *                fg_get_meridian(self.c_group_presentation, which_cusp))             # <<<<<<<<<<<<<<
 *         else:
 *             return c_word_as_string(
*/
    __pyx_t_8 = fg_get_meridian(__pyx_v_self->c_group_presentation, __pyx_v_which_cusp); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 324, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":323
 * 
 *         if as_int_list:
 *             return c_word_as_int_list(             # <<<<<<<<<<<<<<
 *                fg_get_meridian(self.c_group_presentation, which_cusp))
 *         else:
*/
    __pyx_t_1 = __pyx_f_6SnapPy_c_word_as_int_list(__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 323, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/fundamental_group.pyx":322
 *             'The specified cusp (%s) does not exist.')
 * 
 *         if as_int_list:             # <<<<<<<<<<<<<<
 *             return c_word_as_int_list(
 *                fg_get_meridian(self.c_group_presentation, which_cusp))
*/
  }

  /* "cython/core/fundamental_group.pyx":326
 *                fg_get_meridian(self.c_group_presentation, which_cusp))
 *         else:
 *             return c_word_as_string(             # <<<<<<<<<<<<<<
 *                fg_get_meridian(self.c_group_presentation, which_cusp),
 *                self.num_generators(),
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);

    /* "cython/core/fundamental_group.pyx":327
 *         else:
 *             return c_word_as_string(
 *                fg_get_meridian(self.c_group_presentation, which_cusp),             # <<<<<<<<<<<<<<
 *                self.num_generators(),
 *                verbose_form = False)
*/
    __pyx_t_8 = fg_get_meridian(__pyx_v_self->c_group_presentation, __pyx_v_which_cusp); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 327, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":328
 *             return c_word_as_string(
 *                fg_get_meridian(self.c_group_presentation, which_cusp),
 *                self.num_generators(),             # <<<<<<<<<<<<<<
 *                verbose_form = False)
 * 
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 328, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 328, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/fundamental_group.pyx":326
 *                fg_get_meridian(self.c_group_presentation, which_cusp))
 *         else:
 *             return c_word_as_string(             # <<<<<<<<<<<<<<
 *                fg_get_meridian(self.c_group_presentation, which_cusp),
 *                self.num_generators(),
*/
    __pyx_t_1 = __pyx_f_6SnapPy_c_word_as_string(__pyx_t_8, __pyx_t_6, Py_False); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 326, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/fundamental_group.pyx":306
 *         return relation_list
 * 
 *     def meridian(self, int which_cusp=0, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a word representing a conjugate of the current
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.meridian", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":331
 *                verbose_form = False)
 * 
 *     def longitude(self, int which_cusp=0, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a word representing a conjugate of the current
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_25longitude(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_24longitude, "\n        Returns a word representing a conjugate of the current\n        longitude for the given cusp.  Guaranteed to commute with the\n        meridian for the same cusp.  Note: for Klein bottle cusps,\n        the longitude must be defined carefully.\n\n        >>> G = Manifold('m004').fundamental_group()\n        >>> G.longitude(0)\n        'aBAbABab'\n        >>> G.longitude()   # shortcut for the above.\n        'aBAbABab'\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_25longitude = {"longitude", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_25longitude, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_24longitude};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_25longitude(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  int __pyx_v_which_cusp;
  PyObject *__pyx_v_as_int_list = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("longitude (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_as_int_list,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 331, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "longitude", 0) < (0)) __PYX_ERR(8, 331, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    if (values[0]) {
      __pyx_v_which_cusp = __Pyx_PyLong_As_int(values[0]); if (unlikely((__pyx_v_which_cusp == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 331, __pyx_L3_error)
    } else {
      __pyx_v_which_cusp = ((int)0);
    }
    __pyx_v_as_int_list = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("longitude", 0, 0, 2, __pyx_nargs); __PYX_ERR(8, 331, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.longitude", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_24longitude(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_which_cusp, __pyx_v_as_int_list);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_24longitude(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, int __pyx_v_which_cusp, PyObject *__pyx_v_as_int_list) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("longitude", 0);

  /* "cython/core/fundamental_group.pyx":344
 *         'aBAbABab'
 *         """
 *         which_cusp = valid_index(             # <<<<<<<<<<<<<<
 *             which_cusp, self.num_cusps,
 *             'The specified cusp (%s) does not exist.')
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_valid_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/fundamental_group.pyx":345
 *         """
 *         which_cusp = valid_index(
 *             which_cusp, self.num_cusps,             # <<<<<<<<<<<<<<
 *             'The specified cusp (%s) does not exist.')
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_From_int(__pyx_v_which_cusp); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_4, __pyx_v_self->num_cusps, __pyx_mstate_global->__pyx_kp_u_The_specified_cusp_s_does_not_ex};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 344, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "cython/core/fundamental_group.pyx":344
 *         'aBAbABab'
 *         """
 *         which_cusp = valid_index(             # <<<<<<<<<<<<<<
 *             which_cusp, self.num_cusps,
 *             'The specified cusp (%s) does not exist.')
*/
  __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 344, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_which_cusp = __pyx_t_6;

  /* "cython/core/fundamental_group.pyx":348
 *             'The specified cusp (%s) does not exist.')
 * 
 *         if as_int_list:             # <<<<<<<<<<<<<<
 *             return c_word_as_int_list(
 *                fg_get_longitude(self.c_group_presentation, which_cusp))
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_as_int_list); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(8, 348, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "cython/core/fundamental_group.pyx":349
 * 
 *         if as_int_list:
 *             return c_word_as_int_list(             # <<<<<<<<<<<<<<
 *                fg_get_longitude(self.c_group_presentation, which_cusp))
 *         else:
*/
    __Pyx_XDECREF(__pyx_r);

    /* "cython/core/fundamental_group.pyx":350
 *         if as_int_list:
 *             return c_word_as_int_list(
 *                fg_get_longitude(self.c_group_presentation, which_cusp))             # <<<<<<<<<<<<<<
 *         else:
 *             return c_word_as_string(
*/
    __pyx_t_8 = fg_get_longitude(__pyx_v_self->c_group_presentation, __pyx_v_which_cusp); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 350, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":349
 * 
 *         if as_int_list:
 *             return c_word_as_int_list(             # <<<<<<<<<<<<<<
 *                fg_get_longitude(self.c_group_presentation, which_cusp))
 *         else:
*/
    __pyx_t_1 = __pyx_f_6SnapPy_c_word_as_int_list(__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/fundamental_group.pyx":348
 *             'The specified cusp (%s) does not exist.')
 * 
 *         if as_int_list:             # <<<<<<<<<<<<<<
 *             return c_word_as_int_list(
 *                fg_get_longitude(self.c_group_presentation, which_cusp))
*/
  }

  /* "cython/core/fundamental_group.pyx":352
 *                fg_get_longitude(self.c_group_presentation, which_cusp))
 *         else:
 *             return c_word_as_string(             # <<<<<<<<<<<<<<
 *                fg_get_longitude(self.c_group_presentation, which_cusp),
 *                self.num_generators(),
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);

    /* "cython/core/fundamental_group.pyx":353
 *         else:
 *             return c_word_as_string(
 *                fg_get_longitude(self.c_group_presentation, which_cusp),             # <<<<<<<<<<<<<<
 *                self.num_generators(),
 *                verbose_form = False)
*/
    __pyx_t_8 = fg_get_longitude(__pyx_v_self->c_group_presentation, __pyx_v_which_cusp); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 353, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":354
 *             return c_word_as_string(
 *                fg_get_longitude(self.c_group_presentation, which_cusp),
 *                self.num_generators(),             # <<<<<<<<<<<<<<
 *                verbose_form = False)
 * 
*/
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 354, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_6 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(8, 354, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/fundamental_group.pyx":352
 *                fg_get_longitude(self.c_group_presentation, which_cusp))
 *         else:
 *             return c_word_as_string(             # <<<<<<<<<<<<<<
 *                fg_get_longitude(self.c_group_presentation, which_cusp),
 *                self.num_generators(),
*/
    __pyx_t_1 = __pyx_f_6SnapPy_c_word_as_string(__pyx_t_8, __pyx_t_6, Py_False); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 352, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/fundamental_group.pyx":331
 *                verbose_form = False)
 * 
 *     def longitude(self, int which_cusp=0, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a word representing a conjugate of the current
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.longitude", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":357
 *                verbose_form = False)
 * 
 *     def peripheral_curves(self, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of meridian-longitude pairs for all cusps.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_27peripheral_curves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_26peripheral_curves, "\n        Returns a list of meridian-longitude pairs for all cusps.\n\n        >>> G = Manifold('m125').fundamental_group()\n        >>> G.peripheral_curves()\n        [('aaba', 'abb'), ('baaba', 'Ba')]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_27peripheral_curves = {"peripheral_curves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_27peripheral_curves, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_26peripheral_curves};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_27peripheral_curves(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_as_int_list = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("peripheral_curves (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_as_int_list,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 357, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 357, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "peripheral_curves", 0) < (0)) __PYX_ERR(8, 357, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 357, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_as_int_list = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("peripheral_curves", 0, 0, 1, __pyx_nargs); __PYX_ERR(8, 357, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.peripheral_curves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_26peripheral_curves(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_as_int_list);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_26peripheral_curves(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_as_int_list) {
  PyObject *__pyx_9genexpr77__pyx_v_n = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("peripheral_curves", 0);

  /* "cython/core/fundamental_group.pyx":365
 *         [('aaba', 'abb'), ('baaba', 'Ba')]
 *         """
 *         return [ (self.meridian(n, as_int_list),             # <<<<<<<<<<<<<<
 *                   self.longitude(n, as_int_list))
 *                  for n in range(self.num_cusps) ]
*/
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 365, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/fundamental_group.pyx":367
 *         return [ (self.meridian(n, as_int_list),
 *                   self.longitude(n, as_int_list))
 *                  for n in range(self.num_cusps) ]             # <<<<<<<<<<<<<<
 * 
 *     def magma_string(self):
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_self->num_cusps};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 367, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 367, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 367, __pyx_L5_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_5(__pyx_t_3);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 367, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_9genexpr77__pyx_v_n, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/fundamental_group.pyx":365
 *         [('aaba', 'abb'), ('baaba', 'Ba')]
 *         """
 *         return [ (self.meridian(n, as_int_list),             # <<<<<<<<<<<<<<
 *                   self.longitude(n, as_int_list))
 *                  for n in range(self.num_cusps) ]
*/
      __pyx_t_6 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_9genexpr77__pyx_v_n, __pyx_v_as_int_list};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_meridian, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 365, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_2);
      }

      /* "cython/core/fundamental_group.pyx":366
 *         """
 *         return [ (self.meridian(n, as_int_list),
 *                   self.longitude(n, as_int_list))             # <<<<<<<<<<<<<<
 *                  for n in range(self.num_cusps) ]
 * 
*/
      __pyx_t_7 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_9genexpr77__pyx_v_n, __pyx_v_as_int_list};
        __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_longitude, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 366, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_6);
      }

      /* "cython/core/fundamental_group.pyx":365
 *         [('aaba', 'abb'), ('baaba', 'Ba')]
 *         """
 *         return [ (self.meridian(n, as_int_list),             # <<<<<<<<<<<<<<
 *                   self.longitude(n, as_int_list))
 *                  for n in range(self.num_cusps) ]
*/
      __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 365, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_2);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2) != (0)) __PYX_ERR(8, 365, __pyx_L5_error);
      __Pyx_GIVEREF(__pyx_t_6);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6) != (0)) __PYX_ERR(8, 365, __pyx_L5_error);
      __pyx_t_2 = 0;
      __pyx_t_6 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(8, 365, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "cython/core/fundamental_group.pyx":367
 *         return [ (self.meridian(n, as_int_list),
 *                   self.longitude(n, as_int_list))
 *                  for n in range(self.num_cusps) ]             # <<<<<<<<<<<<<<
 * 
 *     def magma_string(self):
*/
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_9genexpr77__pyx_v_n); __pyx_9genexpr77__pyx_v_n = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr77__pyx_v_n); __pyx_9genexpr77__pyx_v_n = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":357
 *                verbose_form = False)
 * 
 *     def peripheral_curves(self, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of meridian-longitude pairs for all cusps.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.peripheral_curves", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_9genexpr77__pyx_v_n);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":369
 *                  for n in range(self.num_cusps) ]
 * 
 *     def magma_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a string which will define this group within MAGMA.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_29magma_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_28magma_string, "\n        Returns a string which will define this group within MAGMA.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_29magma_string = {"magma_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_29magma_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_28magma_string};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_29magma_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("magma_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("magma_string", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("magma_string", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_28magma_string(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_28magma_string(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("magma_string", 0);

  /* "cython/core/fundamental_group.pyx":373
 *         Returns a string which will define this group within MAGMA.
 *         """
 *         return ('Group<' + ','.join(self.generators()) + '|' +             # <<<<<<<<<<<<<<
 *                 ', '.join(self.relators(verbose_form=True)) + '>')
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__28, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Group, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__34); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":374
 *         """
 *         return ('Group<' + ','.join(self.generators()) + '|' +
 *                 ', '.join(self.relators(verbose_form=True)) + '>')             # <<<<<<<<<<<<<<
 * 
 *     def gap_string(self):
*/
  __pyx_t_4 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_verbose_form, Py_True, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(8, 374, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_relators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_5 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__3, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":373
 *         Returns a string which will define this group within MAGMA.
 *         """
 *         return ('Group<' + ','.join(self.generators()) + '|' +             # <<<<<<<<<<<<<<
 *                 ', '.join(self.relators(verbose_form=True)) + '>')
 * 
*/
  __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/fundamental_group.pyx":374
 *         """
 *         return ('Group<' + ','.join(self.generators()) + '|' +
 *                 ', '.join(self.relators(verbose_form=True)) + '>')             # <<<<<<<<<<<<<<
 * 
 *     def gap_string(self):
*/
  __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__26); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":369
 *                  for n in range(self.num_cusps) ]
 * 
 *     def magma_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a string which will define this group within MAGMA.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.magma_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":376
 *                 ', '.join(self.relators(verbose_form=True)) + '>')
 * 
 *     def gap_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a string which will define this group within GAP:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_31gap_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_30gap_string, "\n        Returns a string which will define this group within GAP:\n\n        >>> M = Manifold('b++LLR')\n        >>> G = M.fundamental_group()\n        >>> G\n        Generators:\n           a,b\n        Relators:\n           aaaaBAbbAB\n        >>> G.gap_string()\n        'CallFuncList(function() local F, a, b; F := FreeGroup(\"a\", \"b\"); a := F.1; b := F.2;   return F/[a*a*a*a*b^-1*a^-1*b*b*a^-1*b^-1]; end,[])'\n        >>> G.magma_string()\n        'Group<a,b|a*a*a*a*b^-1*a^-1*b*b*a^-1*b^-1>'\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_31gap_string = {"gap_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_31gap_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_30gap_string};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_31gap_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("gap_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("gap_string", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gap_string", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_30gap_string(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_30gap_string(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_v_gens = NULL;
  PyObject *__pyx_v_gen_names = NULL;
  PyObject *__pyx_v_relators = NULL;
  PyObject *__pyx_v_assignments = NULL;
  PyObject *__pyx_9genexpr78__pyx_v_x = NULL;
  PyObject *__pyx_9genexpr79__pyx_v_i = NULL;
  PyObject *__pyx_9genexpr79__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10[4];
  PyObject *__pyx_t_11[9];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("gap_string", 0);

  /* "cython/core/fundamental_group.pyx":392
 *         'Group<a,b|a*a*a*a*b^-1*a^-1*b*b*a^-1*b^-1>'
 *         """
 *         gens = ', '.join(self.generators())             # <<<<<<<<<<<<<<
 *         gen_names = ', '.join(['"' + x + '"' for x in self.generators()])
 *         relators = ', '.join(self.relators(verbose_form=True))
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 392, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__3, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_gens = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":393
 *         """
 *         gens = ', '.join(self.generators())
 *         gen_names = ', '.join(['"' + x + '"' for x in self.generators()])             # <<<<<<<<<<<<<<
 *         relators = ', '.join(self.relators(verbose_form=True))
 *         assignments = ''.join(
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 393, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 393, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
      __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_5 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 393, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 393, __pyx_L5_error)
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 393, __pyx_L5_error)
            #endif
            if (__pyx_t_5 >= __pyx_temp) break;
          }
          __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_5, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_5;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 393, __pyx_L5_error)
            #endif
            if (__pyx_t_5 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5));
          #else
          __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_5);
          #endif
          ++__pyx_t_5;
        }
        if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 393, __pyx_L5_error)
      } else {
        __pyx_t_1 = __pyx_t_6(__pyx_t_4);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 393, __pyx_L5_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_9genexpr78__pyx_v_x, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_1 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u__35, __pyx_9genexpr78__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 393, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = PyNumber_Add(__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__35); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 393, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_7))) __PYX_ERR(8, 393, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_9genexpr78__pyx_v_x); __pyx_9genexpr78__pyx_v_x = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_9genexpr78__pyx_v_x); __pyx_9genexpr78__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_t_4 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_gen_names = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/fundamental_group.pyx":394
 *         gens = ', '.join(self.generators())
 *         gen_names = ', '.join(['"' + x + '"' for x in self.generators()])
 *         relators = ', '.join(self.relators(verbose_form=True))             # <<<<<<<<<<<<<<
 *         assignments = ''.join(
 *             ['%s := F.%d; ' % (x, i+1)
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_verbose_form, Py_True, __pyx_t_7, __pyx_callargs+1, 0) < (0)) __PYX_ERR(8, 394, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_relators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_7 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__3, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_relators = ((PyObject*)__pyx_t_7);
  __pyx_t_7 = 0;

  /* "cython/core/fundamental_group.pyx":395
 *         gen_names = ', '.join(['"' + x + '"' for x in self.generators()])
 *         relators = ', '.join(self.relators(verbose_form=True))
 *         assignments = ''.join(             # <<<<<<<<<<<<<<
 *             ['%s := F.%d; ' % (x, i+1)
 *              for (i, x) in enumerate(self.generators())]
*/
  { /* enter inner scope */

    /* "cython/core/fundamental_group.pyx":396
 *         relators = ', '.join(self.relators(verbose_form=True))
 *         assignments = ''.join(
 *             ['%s := F.%d; ' % (x, i+1)             # <<<<<<<<<<<<<<
 *              for (i, x) in enumerate(self.generators())]
 *             )
*/
    __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 396, __pyx_L12_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_4 = __pyx_mstate_global->__pyx_int_0;

    /* "cython/core/fundamental_group.pyx":397
 *         assignments = ''.join(
 *             ['%s := F.%d; ' % (x, i+1)
 *              for (i, x) in enumerate(self.generators())]             # <<<<<<<<<<<<<<
 *             )
 *         return ('CallFuncList(function() local F, %s; '
*/
    __pyx_t_1 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_generators, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 397, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
      __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1);
      __pyx_t_5 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_5 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 397, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 397, __pyx_L12_error)
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 397, __pyx_L12_error)
            #endif
            if (__pyx_t_5 >= __pyx_temp) break;
          }
          __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_5, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_5;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 397, __pyx_L12_error)
            #endif
            if (__pyx_t_5 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_2 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_5));
          #else
          __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_5);
          #endif
          ++__pyx_t_5;
        }
        if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 397, __pyx_L12_error)
      } else {
        __pyx_t_2 = __pyx_t_6(__pyx_t_1);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 397, __pyx_L12_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_9genexpr79__pyx_v_x, __pyx_t_2);
      __pyx_t_2 = 0;
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_9genexpr79__pyx_v_i, __pyx_t_4);
      __pyx_t_2 = __Pyx_PyLong_AddObjC(__pyx_t_4, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 397, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4);
      __pyx_t_4 = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "cython/core/fundamental_group.pyx":396
 *         relators = ', '.join(self.relators(verbose_form=True))
 *         assignments = ''.join(
 *             ['%s := F.%d; ' % (x, i+1)             # <<<<<<<<<<<<<<
 *              for (i, x) in enumerate(self.generators())]
 *             )
*/
      __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_9genexpr79__pyx_v_x), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 396, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_8 = __Pyx_PyLong_AddObjC(__pyx_9genexpr79__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 396, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_8), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 396, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_10[0] = __pyx_t_2;
      __pyx_t_10[1] = __pyx_mstate_global->__pyx_kp_u_F;
      __pyx_t_10[2] = __pyx_t_9;
      __pyx_t_10[3] = __pyx_mstate_global->__pyx_kp_u__36;
      __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_10, 4, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 6 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9) + 2, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9));
      if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 396, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_7, (PyObject*)__pyx_t_8))) __PYX_ERR(8, 396, __pyx_L12_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "cython/core/fundamental_group.pyx":397
 *         assignments = ''.join(
 *             ['%s := F.%d; ' % (x, i+1)
 *              for (i, x) in enumerate(self.generators())]             # <<<<<<<<<<<<<<
 *             )
 *         return ('CallFuncList(function() local F, %s; '
*/
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_i); __pyx_9genexpr79__pyx_v_i = 0;
    __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_x); __pyx_9genexpr79__pyx_v_x = 0;
    goto __pyx_L16_exit_scope;
    __pyx_L12_error:;
    __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_i); __pyx_9genexpr79__pyx_v_i = 0;
    __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_x); __pyx_9genexpr79__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L16_exit_scope:;
  } /* exit inner scope */

  /* "cython/core/fundamental_group.pyx":395
 *         gen_names = ', '.join(['"' + x + '"' for x in self.generators()])
 *         relators = ', '.join(self.relators(verbose_form=True))
 *         assignments = ''.join(             # <<<<<<<<<<<<<<
 *             ['%s := F.%d; ' % (x, i+1)
 *              for (i, x) in enumerate(self.generators())]
*/
  __pyx_t_4 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__10, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_v_assignments = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/fundamental_group.pyx":399
 *              for (i, x) in enumerate(self.generators())]
 *             )
 *         return ('CallFuncList(function() local F, %s; '             # <<<<<<<<<<<<<<
 *                 'F := FreeGroup(%s); %s  return F/[%s]; end,[])'
 *                 % (gens, gen_names, assignments, relators)
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/fundamental_group.pyx":401
 *         return ('CallFuncList(function() local F, %s; '
 *                 'F := FreeGroup(%s); %s  return F/[%s]; end,[])'
 *                 % (gens, gen_names, assignments, relators)             # <<<<<<<<<<<<<<
 *                 )
 * 
*/
  __pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_v_gens); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = __Pyx_PyUnicode_Unicode(__pyx_v_gen_names); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_assignments); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __Pyx_PyUnicode_Unicode(__pyx_v_relators); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_11[0] = __pyx_mstate_global->__pyx_kp_u_CallFuncList_function_local_F;
  __pyx_t_11[1] = __pyx_t_4;
  __pyx_t_11[2] = __pyx_mstate_global->__pyx_kp_u_F_FreeGroup;
  __pyx_t_11[3] = __pyx_t_7;
  __pyx_t_11[4] = __pyx_mstate_global->__pyx_kp_u__37;
  __pyx_t_11[5] = __pyx_t_1;
  __pyx_t_11[6] = __pyx_mstate_global->__pyx_kp_u_return_F;
  __pyx_t_11[7] = __pyx_t_8;
  __pyx_t_11[8] = __pyx_mstate_global->__pyx_kp_u_end;

  /* "cython/core/fundamental_group.pyx":399
 *              for (i, x) in enumerate(self.generators())]
 *             )
 *         return ('CallFuncList(function() local F, %s; '             # <<<<<<<<<<<<<<
 *                 'F := FreeGroup(%s); %s  return F/[%s]; end,[])'
 *                 % (gens, gen_names, assignments, relators)
*/
  __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_11, 9, 33 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 17 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7) + 3 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 12 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 10, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8));
  if (unlikely(!__pyx_t_9)) __PYX_ERR(8, 399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_r = __pyx_t_9;
  __pyx_t_9 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":376
 *                 ', '.join(self.relators(verbose_form=True)) + '>')
 * 
 *     def gap_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a string which will define this group within GAP:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.gap_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_gens);
  __Pyx_XDECREF(__pyx_v_gen_names);
  __Pyx_XDECREF(__pyx_v_relators);
  __Pyx_XDECREF(__pyx_v_assignments);
  __Pyx_XDECREF(__pyx_9genexpr78__pyx_v_x);
  __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_i);
  __Pyx_XDECREF(__pyx_9genexpr79__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":404
 *                 )
 * 
 *     def _gap_init_(self):             # <<<<<<<<<<<<<<
 *         return self.gap_string()
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_33_gap_init_(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_33_gap_init_ = {"_gap_init_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_33_gap_init_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_33_gap_init_(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_gap_init_ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_gap_init_", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_gap_init_", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_32_gap_init_(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_32_gap_init_(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_gap_init_", 0);

  /* "cython/core/fundamental_group.pyx":405
 * 
 *     def _gap_init_(self):
 *         return self.gap_string()             # <<<<<<<<<<<<<<
 * 
 *     def _magma_init_(self, magma):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_gap_string, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":404
 *                 )
 * 
 *     def _gap_init_(self):             # <<<<<<<<<<<<<<
 *         return self.gap_string()
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup._gap_init_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":407
 *         return self.gap_string()
 * 
 *     def _magma_init_(self, magma):             # <<<<<<<<<<<<<<
 *         return self.magma_string()
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_35_magma_init_(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_35_magma_init_ = {"_magma_init_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_35_magma_init_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_35_magma_init_(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_magma = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_magma_init_ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_magma,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 407, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 407, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_magma_init_", 0) < (0)) __PYX_ERR(8, 407, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_magma_init_", 1, 1, 1, i); __PYX_ERR(8, 407, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 407, __pyx_L3_error)
    }
    __pyx_v_magma = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_magma_init_", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 407, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup._magma_init_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_34_magma_init_(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_magma);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_34_magma_init_(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_magma) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_magma_init_", 0);

  /* "cython/core/fundamental_group.pyx":408
 * 
 *     def _magma_init_(self, magma):
 *         return self.magma_string()             # <<<<<<<<<<<<<<
 * 
 *     def sage(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_magma_string, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 408, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":407
 *         return self.gap_string()
 * 
 *     def _magma_init_(self, magma):             # <<<<<<<<<<<<<<
 *         return self.magma_string()
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup._magma_init_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":410
 *         return self.magma_string()
 * 
 *     def sage(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the corresponding Sage FinitelyPresentedGroup
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_37sage(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_36sage, "\n        Returns the corresponding Sage FinitelyPresentedGroup\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_37sage = {"sage", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_37sage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_36sage};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_37sage(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("sage (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("sage", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("sage", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_36sage(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_36sage(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_v_F = NULL;
  PyObject *__pyx_v_rels = NULL;
  PyObject *__pyx_9genexpr80__pyx_v_R = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  PyObject *(*__pyx_t_10)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("sage", 0);

  /* "cython/core/fundamental_group.pyx":414
 *         Returns the corresponding Sage FinitelyPresentedGroup
 *         """
 *         if not _within_sage:             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Not within Sage")
 *         F = FreeGroup(self.generators())
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 414, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (!__pyx_t_2);
  if (unlikely(__pyx_t_3)) {

    /* "cython/core/fundamental_group.pyx":415
 *         """
 *         if not _within_sage:
 *             raise RuntimeError("Not within Sage")             # <<<<<<<<<<<<<<
 *         F = FreeGroup(self.generators())
 *         rels = [F(R) for R in self.relators(as_int_list=True)]
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_Not_within_Sage};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 415, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(8, 415, __pyx_L1_error)

    /* "cython/core/fundamental_group.pyx":414
 *         Returns the corresponding Sage FinitelyPresentedGroup
 *         """
 *         if not _within_sage:             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Not within Sage")
 *         F = FreeGroup(self.generators())
*/
  }

  /* "cython/core/fundamental_group.pyx":416
 *         if not _within_sage:
 *             raise RuntimeError("Not within Sage")
 *         F = FreeGroup(self.generators())             # <<<<<<<<<<<<<<
 *         rels = [F(R) for R in self.relators(as_int_list=True)]
 *         return F/rels
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_FreeGroup); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_generators, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_F = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":417
 *             raise RuntimeError("Not within Sage")
 *         F = FreeGroup(self.generators())
 *         rels = [F(R) for R in self.relators(as_int_list=True)]             # <<<<<<<<<<<<<<
 *         return F/rels
 * 
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 417, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_7, NULL};
      __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 417, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_as_int_list, Py_True, __pyx_t_4, __pyx_callargs+1, 0) < (0)) __PYX_ERR(8, 417, __pyx_L6_error)
      __pyx_t_6 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_relators, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 417, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    if (likely(PyList_CheckExact(__pyx_t_6)) || PyTuple_CheckExact(__pyx_t_6)) {
      __pyx_t_4 = __pyx_t_6; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
    } else {
      __pyx_t_9 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 417, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(8, 417, __pyx_L6_error)
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    for (;;) {
      if (likely(!__pyx_t_10)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 417, __pyx_L6_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          __pyx_t_6 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_9;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(8, 417, __pyx_L6_error)
            #endif
            if (__pyx_t_9 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_9));
          #else
          __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_9);
          #endif
          ++__pyx_t_9;
        }
        if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 417, __pyx_L6_error)
      } else {
        __pyx_t_6 = __pyx_t_10(__pyx_t_4);
        if (unlikely(!__pyx_t_6)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(8, 417, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_9genexpr80__pyx_v_R, __pyx_t_6);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
      __Pyx_INCREF(__pyx_v_F);
      __pyx_t_8 = __pyx_v_F; 
      __pyx_t_5 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_7);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_5 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_9genexpr80__pyx_v_R};
        __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 417, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_6);
      }
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))) __PYX_ERR(8, 417, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_9genexpr80__pyx_v_R); __pyx_9genexpr80__pyx_v_R = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_9genexpr80__pyx_v_R); __pyx_9genexpr80__pyx_v_R = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_v_rels = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":418
 *         F = FreeGroup(self.generators())
 *         rels = [F(R) for R in self.relators(as_int_list=True)]
 *         return F/rels             # <<<<<<<<<<<<<<
 * 
 *     def character_variety_vars_and_polys(self, as_ideal=False):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_v_F, __pyx_v_rels); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":410
 *         return self.magma_string()
 * 
 *     def sage(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the corresponding Sage FinitelyPresentedGroup
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.sage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_F);
  __Pyx_XDECREF(__pyx_v_rels);
  __Pyx_XDECREF(__pyx_9genexpr80__pyx_v_R);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":420
 *         return F/rels
 * 
 *     def character_variety_vars_and_polys(self, as_ideal=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of variables and a list polynomials where the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_39character_variety_vars_and_polys(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CFundamentalGroup_38character_variety_vars_and_polys, "\n        Returns a list of variables and a list polynomials where the\n        polynomials generate the ideal defining the SL(2, C) character\n        variety of this group.  Each variable is of the form \"Tw\" where\n        \"w\" is a word in the generators and \"Tw\" represents the trace\n        function of that word.\n\n        >>> H = Manifold('dLQacccbjkg')  # Hopf link exterior.\n        >>> G = H.fundamental_group()\n        >>> vars, polys = G.character_variety_vars_and_polys()\n        >>> vars\n        [Ta, Tb, Tab]\n        >>> polys    # doctest: +NORMALIZE_WHITESPACE\n        [Ta^3 - Tab*Tb*Ta^2 + (Tb^2 + (Tab^2 - 4))*Ta,\n         Ta^2 - Tab*Tb*Ta + (Tb^2 + (Tab^2 - 4))]\n\n        When used inside Sage, you can ask for the answer as a proper\n        ideal::\n\n          sage: M = Manifold('m000')  # Gieseking manifold\n          sage: G = M.fundamental_group()\n          sage: I = G.character_variety_vars_and_polys(as_ideal=True)\n          sage: I\n          Ideal (-Ta^3*Tb^2*Tab + Ta^4*Tb + Ta^2*Tb^3 + Ta^2*Tb*Tab^2 + Ta*Tb^2*Tab - 5*Ta^2*Tb - Tb^3 - Tb*Tab^2 + Ta*Tab - Ta + 3*Tb, Tb*Tab - Ta - Tb, -Ta^2*Tb^2*Tab + Ta^3*Tb + Ta*Tb^3 + Ta*Tb*Tab^2 - 4*Ta*Tb + Tab - 2) of Multivariate Polynomial Ring in Ta, Tb, Tab over Rational Field\n          sage: I.dimension()\n          1\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_39character_variety_vars_and_polys = {"character_variety_vars_and_polys", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_39character_variety_vars_and_polys, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_38character_variety_vars_and_polys};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_39character_variety_vars_and_polys(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_as_ideal = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("character_variety_vars_and_polys (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_as_ideal,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 420, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 420, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "character_variety_vars_and_polys", 0) < (0)) __PYX_ERR(8, 420, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 420, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_as_ideal = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("character_variety_vars_and_polys", 0, 0, 1, __pyx_nargs); __PYX_ERR(8, 420, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.character_variety_vars_and_polys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_38character_variety_vars_and_polys(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v_as_ideal);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_38character_variety_vars_and_polys(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, PyObject *__pyx_v_as_ideal) {
  PyObject *__pyx_v_presentation = NULL;
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("character_variety_vars_and_polys", 0);

  /* "cython/core/fundamental_group.pyx":449
 * 
 *         """
 *         if not as_ideal:             # <<<<<<<<<<<<<<
 *             presentation = snap.character_variety(self)
 *             ans = presentation.gens, presentation.rels
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_as_ideal); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(8, 449, __pyx_L1_error)
  __pyx_t_2 = (!__pyx_t_1);
  if (__pyx_t_2) {

    /* "cython/core/fundamental_group.pyx":450
 *         """
 *         if not as_ideal:
 *             presentation = snap.character_variety(self)             # <<<<<<<<<<<<<<
 *             ans = presentation.gens, presentation.rels
 *         else:
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_snap); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_character_variety); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, ((PyObject *)__pyx_v_self)};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 450, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_v_presentation = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cython/core/fundamental_group.pyx":451
 *         if not as_ideal:
 *             presentation = snap.character_variety(self)
 *             ans = presentation.gens, presentation.rels             # <<<<<<<<<<<<<<
 *         else:
 *             if not _within_sage:
*/
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_presentation, __pyx_mstate_global->__pyx_n_u_gens); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 451, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_presentation, __pyx_mstate_global->__pyx_n_u_rels); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 451, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 451, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_3);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(8, 451, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6) != (0)) __PYX_ERR(8, 451, __pyx_L1_error);
    __pyx_t_3 = 0;
    __pyx_t_6 = 0;
    __pyx_v_ans = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cython/core/fundamental_group.pyx":449
 * 
 *         """
 *         if not as_ideal:             # <<<<<<<<<<<<<<
 *             presentation = snap.character_variety(self)
 *             ans = presentation.gens, presentation.rels
*/
    goto __pyx_L3;
  }

  /* "cython/core/fundamental_group.pyx":453
 *             ans = presentation.gens, presentation.rels
 *         else:
 *             if not _within_sage:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("Not within Sage")
 *             ans = snap.character_variety_ideal(self)
*/
  /*else*/ {
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(8, 453, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_1 = (!__pyx_t_2);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/fundamental_group.pyx":454
 *         else:
 *             if not _within_sage:
 *                 raise RuntimeError("Not within Sage")             # <<<<<<<<<<<<<<
 *             ans = snap.character_variety_ideal(self)
 *         return ans
*/
      __pyx_t_6 = NULL;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_Not_within_Sage};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 454, __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_ERR(8, 454, __pyx_L1_error)

      /* "cython/core/fundamental_group.pyx":453
 *             ans = presentation.gens, presentation.rels
 *         else:
 *             if not _within_sage:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError("Not within Sage")
 *             ans = snap.character_variety_ideal(self)
*/
    }

    /* "cython/core/fundamental_group.pyx":455
 *             if not _within_sage:
 *                 raise RuntimeError("Not within Sage")
 *             ans = snap.character_variety_ideal(self)             # <<<<<<<<<<<<<<
 *         return ans
 * 
*/
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_snap); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 455, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_character_variety_ideal); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 455, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, ((PyObject *)__pyx_v_self)};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 455, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_v_ans = __pyx_t_4;
    __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cython/core/fundamental_group.pyx":456
 *                 raise RuntimeError("Not within Sage")
 *             ans = snap.character_variety_ideal(self)
 *         return ans             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":420
 *         return F/rels
 * 
 *     def character_variety_vars_and_polys(self, as_ideal=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of variables and a list polynomials where the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.character_variety_vars_and_polys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_presentation);
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":106
 *     cdef c_GroupPresentation *c_group_presentation
 *     cdef c_Triangulation *c_triangulation
 *     cdef readonly num_cusps             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self, Triangulation triangulation,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_9num_cusps_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_9num_cusps_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_9num_cusps___get__(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_9num_cusps___get__(struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->num_cusps);
  __pyx_r = __pyx_v_self->num_cusps;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_41__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_41__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_41__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_41__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_40__reduce_cython__(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_40__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(7, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_43__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17CFundamentalGroup_43__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_43__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17CFundamentalGroup_43__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(7, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(7, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(7, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CFundamentalGroup_42__setstate_cython__(((struct __pyx_obj_6SnapPy_CFundamentalGroup *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CFundamentalGroup_42__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CFundamentalGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(7, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.CFundamentalGroup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":486
 * # Holonomy Groups
 * cdef class CHolonomyGroup(CFundamentalGroup):
 *     def _matrix(self, word, group):             # <<<<<<<<<<<<<<
 *         """
 *         Returns  SL2C(word) if group == 'M' or O31(word) if group == 'O'
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_1_matrix(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_14CHolonomyGroup__matrix, "\n        Returns  SL2C(word) if group == 'M' or O31(word) if group == 'O'\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_14CHolonomyGroup_1_matrix = {"_matrix", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_1_matrix, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_14CHolonomyGroup__matrix};
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_1_matrix(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_word = 0;
  PyObject *__pyx_v_group = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_matrix (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_word,&__pyx_mstate_global->__pyx_n_u_group,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 486, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 486, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 486, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_matrix", 0) < (0)) __PYX_ERR(8, 486, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_matrix", 1, 2, 2, i); __PYX_ERR(8, 486, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 486, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(8, 486, __pyx_L3_error)
    }
    __pyx_v_word = values[0];
    __pyx_v_group = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_matrix", 1, 2, 2, __pyx_nargs); __PYX_ERR(8, 486, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup._matrix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14CHolonomyGroup__matrix(((struct __pyx_obj_6SnapPy_CHolonomyGroup *)__pyx_v_self), __pyx_v_word, __pyx_v_group);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup__matrix(struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, PyObject *__pyx_v_word, PyObject *__pyx_v_group) {
  int *__pyx_v_c_word;
  FuncResult __pyx_v_result;
  PyObject *__pyx_v_word_list = NULL;
  O31Matrix __pyx_v_O;
  MoebiusTransformation __pyx_v_M;
  int __pyx_9genexpr81__pyx_v_i;
  int __pyx_9genexpr82__pyx_v_j;
  int __pyx_9genexpr83__pyx_v_i;
  int __pyx_9genexpr84__pyx_v_j;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  int *__pyx_t_7;
  int __pyx_t_8;
  FuncResult __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_matrix", 0);

  /* "cython/core/fundamental_group.pyx":493
 *         cdef c_FuncResult result
 *         cdef int i, j
 *         word_list = word_as_list(word, self.num_generators())             # <<<<<<<<<<<<<<
 *         c_word = c_word_from_list(word_list)
 *         cdef O31Matrix O
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_word_as_list); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_word, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_word_list = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":494
 *         cdef int i, j
 *         word_list = word_as_list(word, self.num_generators())
 *         c_word = c_word_from_list(word_list)             # <<<<<<<<<<<<<<
 *         cdef O31Matrix O
 *         cdef MoebiusTransformation M
*/
  __pyx_t_7 = __pyx_f_6SnapPy_c_word_from_list(__pyx_v_word_list); if (unlikely(__pyx_t_7 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 494, __pyx_L1_error)
  __pyx_v_c_word = __pyx_t_7;

  /* "cython/core/fundamental_group.pyx":497
 *         cdef O31Matrix O
 *         cdef MoebiusTransformation M
 *         if group == 'M':             # <<<<<<<<<<<<<<
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
 *             if result == 0:
*/
  __pyx_t_8 = (__Pyx_PyUnicode_Equals(__pyx_v_group, __pyx_mstate_global->__pyx_n_u_M, Py_EQ)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(8, 497, __pyx_L1_error)
  if (__pyx_t_8) {

    /* "cython/core/fundamental_group.pyx":498
 *         cdef MoebiusTransformation M
 *         if group == 'M':
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)             # <<<<<<<<<<<<<<
 *             if result == 0:
 *                 return matrix(
*/
    __pyx_t_9 = fg_word_to_matrix(__pyx_v_self->__pyx_base.c_group_presentation, __pyx_v_c_word, NULL, (&__pyx_v_M)); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 498, __pyx_L1_error)
    __pyx_v_result = __pyx_t_9;

    /* "cython/core/fundamental_group.pyx":499
 *         if group == 'M':
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
 *             if result == 0:             # <<<<<<<<<<<<<<
 *                 return matrix(
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))
*/
    __pyx_t_8 = (__pyx_v_result == 0);
    if (__pyx_t_8) {

      /* "cython/core/fundamental_group.pyx":500
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
 *             if result == 0:
 *                 return matrix(             # <<<<<<<<<<<<<<
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))
 *                       for j in range(2)] for i in range(2)] )
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 500, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      { /* enter inner scope */

        /* "cython/core/fundamental_group.pyx":501
 *             if result == 0:
 *                 return matrix(
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))             # <<<<<<<<<<<<<<
 *                       for j in range(2)] for i in range(2)] )
 *         elif group == 'O':
*/
        __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 501, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);

        /* "cython/core/fundamental_group.pyx":502
 *                 return matrix(
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))
 *                       for j in range(2)] for i in range(2)] )             # <<<<<<<<<<<<<<
 *         elif group == 'O':
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, O, NULL)
*/
        for (__pyx_t_10 = 0; __pyx_t_10 < 2; __pyx_t_10+=1) {
          __pyx_9genexpr81__pyx_v_i = __pyx_t_10;
          { /* enter inner scope */

            /* "cython/core/fundamental_group.pyx":501
 *             if result == 0:
 *                 return matrix(
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))             # <<<<<<<<<<<<<<
 *                       for j in range(2)] for i in range(2)] )
 *         elif group == 'O':
*/
            __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 501, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);

            /* "cython/core/fundamental_group.pyx":502
 *                 return matrix(
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))
 *                       for j in range(2)] for i in range(2)] )             # <<<<<<<<<<<<<<
 *         elif group == 'O':
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, O, NULL)
*/
            for (__pyx_t_11 = 0; __pyx_t_11 < 2; __pyx_t_11+=1) {
              __pyx_9genexpr82__pyx_v_j = __pyx_t_11;

              /* "cython/core/fundamental_group.pyx":501
 *             if result == 0:
 *                 return matrix(
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))             # <<<<<<<<<<<<<<
 *                       for j in range(2)] for i in range(2)] )
 *         elif group == 'O':
*/
              __pyx_t_13 = ((PyObject *)__pyx_v_self);
              __Pyx_INCREF(__pyx_t_13);
              __pyx_t_14 = __pyx_f_6SnapPy_Complex2Number(((__pyx_v_M.matrix[__pyx_9genexpr81__pyx_v_i])[__pyx_9genexpr82__pyx_v_j])); if (unlikely(!__pyx_t_14)) __PYX_ERR(8, 501, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_14);
              __pyx_t_6 = 0;
              {
                PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_14};
                __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
                __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
                if (unlikely(!__pyx_t_12)) __PYX_ERR(8, 501, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_12);
              }
              if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_12))) __PYX_ERR(8, 501, __pyx_L1_error)
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            }
          } /* exit inner scope */
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_5))) __PYX_ERR(8, 501, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      } /* exit inner scope */
      __pyx_t_6 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
        assert(__pyx_t_3);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
        __pyx_t_6 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_2};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 500, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* "cython/core/fundamental_group.pyx":499
 *         if group == 'M':
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
 *             if result == 0:             # <<<<<<<<<<<<<<
 *                 return matrix(
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))
*/
    }

    /* "cython/core/fundamental_group.pyx":497
 *         cdef O31Matrix O
 *         cdef MoebiusTransformation M
 *         if group == 'M':             # <<<<<<<<<<<<<<
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
 *             if result == 0:
*/
    goto __pyx_L3;
  }

  /* "cython/core/fundamental_group.pyx":503
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))
 *                       for j in range(2)] for i in range(2)] )
 *         elif group == 'O':             # <<<<<<<<<<<<<<
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, O, NULL)
 *             if result == 0:
*/
  __pyx_t_8 = (__Pyx_PyUnicode_Equals(__pyx_v_group, __pyx_mstate_global->__pyx_n_u_O, Py_EQ)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(8, 503, __pyx_L1_error)
  if (__pyx_t_8) {

    /* "cython/core/fundamental_group.pyx":504
 *                       for j in range(2)] for i in range(2)] )
 *         elif group == 'O':
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, O, NULL)             # <<<<<<<<<<<<<<
 *             if result == 0:
 *                 return matrix(
*/
    __pyx_t_9 = fg_word_to_matrix(__pyx_v_self->__pyx_base.c_group_presentation, __pyx_v_c_word, __pyx_v_O, NULL); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 504, __pyx_L1_error)
    __pyx_v_result = __pyx_t_9;

    /* "cython/core/fundamental_group.pyx":505
 *         elif group == 'O':
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, O, NULL)
 *             if result == 0:             # <<<<<<<<<<<<<<
 *                 return matrix(
 *                     [[self._number_(Real2Number(<Real>O[i][j]))
*/
    __pyx_t_8 = (__pyx_v_result == 0);
    if (__pyx_t_8) {

      /* "cython/core/fundamental_group.pyx":506
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, O, NULL)
 *             if result == 0:
 *                 return matrix(             # <<<<<<<<<<<<<<
 *                     [[self._number_(Real2Number(<Real>O[i][j]))
 *                       for j in range(4)] for i in range(4)] )
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 506, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      { /* enter inner scope */

        /* "cython/core/fundamental_group.pyx":507
 *             if result == 0:
 *                 return matrix(
 *                     [[self._number_(Real2Number(<Real>O[i][j]))             # <<<<<<<<<<<<<<
 *                       for j in range(4)] for i in range(4)] )
 *         else:
*/
        __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 507, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);

        /* "cython/core/fundamental_group.pyx":508
 *                 return matrix(
 *                     [[self._number_(Real2Number(<Real>O[i][j]))
 *                       for j in range(4)] for i in range(4)] )             # <<<<<<<<<<<<<<
 *         else:
 *             return None
*/
        for (__pyx_t_10 = 0; __pyx_t_10 < 4; __pyx_t_10+=1) {
          __pyx_9genexpr83__pyx_v_i = __pyx_t_10;
          { /* enter inner scope */

            /* "cython/core/fundamental_group.pyx":507
 *             if result == 0:
 *                 return matrix(
 *                     [[self._number_(Real2Number(<Real>O[i][j]))             # <<<<<<<<<<<<<<
 *                       for j in range(4)] for i in range(4)] )
 *         else:
*/
            __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 507, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);

            /* "cython/core/fundamental_group.pyx":508
 *                 return matrix(
 *                     [[self._number_(Real2Number(<Real>O[i][j]))
 *                       for j in range(4)] for i in range(4)] )             # <<<<<<<<<<<<<<
 *         else:
 *             return None
*/
            for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
              __pyx_9genexpr84__pyx_v_j = __pyx_t_11;

              /* "cython/core/fundamental_group.pyx":507
 *             if result == 0:
 *                 return matrix(
 *                     [[self._number_(Real2Number(<Real>O[i][j]))             # <<<<<<<<<<<<<<
 *                       for j in range(4)] for i in range(4)] )
 *         else:
*/
              __pyx_t_14 = ((PyObject *)__pyx_v_self);
              __Pyx_INCREF(__pyx_t_14);
              __pyx_t_13 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)((__pyx_v_O[__pyx_9genexpr83__pyx_v_i])[__pyx_9genexpr84__pyx_v_j]))); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 507, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_13);
              __pyx_t_6 = 0;
              {
                PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_t_13};
                __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
                __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
                if (unlikely(!__pyx_t_12)) __PYX_ERR(8, 507, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_12);
              }
              if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_t_12))) __PYX_ERR(8, 507, __pyx_L1_error)
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            }
          } /* exit inner scope */
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_5))) __PYX_ERR(8, 507, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      } /* exit inner scope */
      __pyx_t_6 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_2))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
        assert(__pyx_t_4);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
        __pyx_t_6 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 506, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* "cython/core/fundamental_group.pyx":505
 *         elif group == 'O':
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, O, NULL)
 *             if result == 0:             # <<<<<<<<<<<<<<
 *                 return matrix(
 *                     [[self._number_(Real2Number(<Real>O[i][j]))
*/
    }

    /* "cython/core/fundamental_group.pyx":503
 *                     [[self._number_(Complex2Number(M.matrix[i][j]))
 *                       for j in range(2)] for i in range(2)] )
 *         elif group == 'O':             # <<<<<<<<<<<<<<
 *             result = fg_word_to_matrix(self.c_group_presentation, c_word, O, NULL)
 *             if result == 0:
*/
    goto __pyx_L3;
  }

  /* "cython/core/fundamental_group.pyx":510
 *                       for j in range(4)] for i in range(4)] )
 *         else:
 *             return None             # <<<<<<<<<<<<<<
 * 
 *     def SL2C(self, word : str):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;
  }
  __pyx_L3:;

  /* "cython/core/fundamental_group.pyx":486
 * # Holonomy Groups
 * cdef class CHolonomyGroup(CFundamentalGroup):
 *     def _matrix(self, word, group):             # <<<<<<<<<<<<<<
 *         """
 *         Returns  SL2C(word) if group == 'M' or O31(word) if group == 'O'
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup._matrix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_word_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":512
 *             return None
 * 
 *     def SL2C(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the image of the element represented by the input word
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_3SL2C(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_14CHolonomyGroup_2SL2C, "\n        Return the image of the element represented by the input word\n        under some :math:`\\text{SL}(2,\\mathbb{C})`-representation that\n        lifts the holonomy representation.\n        Note: the choice of lift is not guaranteed to\n        vary continuously when filling coefficients are changed.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_14CHolonomyGroup_3SL2C = {"SL2C", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_3SL2C, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_14CHolonomyGroup_2SL2C};
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_3SL2C(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_word = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SL2C (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_word,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 512, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 512, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "SL2C", 0) < (0)) __PYX_ERR(8, 512, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("SL2C", 1, 1, 1, i); __PYX_ERR(8, 512, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 512, __pyx_L3_error)
    }
    __pyx_v_word = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("SL2C", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 512, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup.SL2C", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_word), (&PyUnicode_Type), 0, "word", 2))) __PYX_ERR(8, 512, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_14CHolonomyGroup_2SL2C(((struct __pyx_obj_6SnapPy_CHolonomyGroup *)__pyx_v_self), __pyx_v_word);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_2SL2C(struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, PyObject *__pyx_v_word) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("SL2C", 0);

  /* "cython/core/fundamental_group.pyx":520
 *         vary continuously when filling coefficients are changed.
 *         """
 *         return self._matrix(word, 'M')             # <<<<<<<<<<<<<<
 * 
 *     def O31(self, word : str):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_word, __pyx_mstate_global->__pyx_n_u_M};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_matrix_2, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":512
 *             return None
 * 
 *     def SL2C(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the image of the element represented by the input word
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup.SL2C", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":522
 *         return self._matrix(word, 'M')
 * 
 *     def O31(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the image of the element represented by the input word
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_5O31(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_14CHolonomyGroup_4O31, "\n        Return the image of the element represented by the input word\n        under the holonomy representation, where\n        :math:`\\text{Isom}(\\mathbb{H}^3)` is\n        identified with :math:`\\text{SO}(3,1)`.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_14CHolonomyGroup_5O31 = {"O31", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_5O31, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_14CHolonomyGroup_4O31};
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_5O31(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_word = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("O31 (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_word,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 522, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 522, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "O31", 0) < (0)) __PYX_ERR(8, 522, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("O31", 1, 1, 1, i); __PYX_ERR(8, 522, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 522, __pyx_L3_error)
    }
    __pyx_v_word = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("O31", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 522, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup.O31", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_word), (&PyUnicode_Type), 0, "word", 2))) __PYX_ERR(8, 522, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_14CHolonomyGroup_4O31(((struct __pyx_obj_6SnapPy_CHolonomyGroup *)__pyx_v_self), __pyx_v_word);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_4O31(struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, PyObject *__pyx_v_word) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("O31", 0);

  /* "cython/core/fundamental_group.pyx":529
 *         identified with :math:`\\text{SO}(3,1)`.
 *         """
 *         return self._matrix(word, 'O')             # <<<<<<<<<<<<<<
 * 
 *     def complex_length(self, word : str):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_word, __pyx_mstate_global->__pyx_n_u_O};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_matrix_2, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":522
 *         return self._matrix(word, 'M')
 * 
 *     def O31(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the image of the element represented by the input word
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup.O31", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":531
 *         return self._matrix(word, 'O')
 * 
 *     def complex_length(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the complex length of the isometry represented by the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_7complex_length(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_14CHolonomyGroup_6complex_length, "\n        Return the complex length of the isometry represented by the\n        input word.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_14CHolonomyGroup_7complex_length = {"complex_length", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_7complex_length, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_14CHolonomyGroup_6complex_length};
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_7complex_length(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_word = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("complex_length (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_word,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 531, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 531, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "complex_length", 0) < (0)) __PYX_ERR(8, 531, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("complex_length", 1, 1, 1, i); __PYX_ERR(8, 531, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 531, __pyx_L3_error)
    }
    __pyx_v_word = ((PyObject*)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("complex_length", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 531, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup.complex_length", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_word), (&PyUnicode_Type), 0, "word", 2))) __PYX_ERR(8, 531, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_14CHolonomyGroup_6complex_length(((struct __pyx_obj_6SnapPy_CHolonomyGroup *)__pyx_v_self), __pyx_v_word);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_6complex_length(struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, PyObject *__pyx_v_word) {
  int *__pyx_v_c_word;
  FuncResult __pyx_v_result;
  PyObject *__pyx_v_word_list = NULL;
  MoebiusTransformation __pyx_v_M;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  int *__pyx_t_7;
  FuncResult __pyx_t_8;
  int __pyx_t_9;
  Complex __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("complex_length", 0);

  /* "cython/core/fundamental_group.pyx":538
 *         cdef int *c_word
 *         cdef c_FuncResult result
 *         word_list = word_as_list(word, self.num_generators())             # <<<<<<<<<<<<<<
 *         c_word = c_word_from_list(word_list)
 *         cdef MoebiusTransformation M
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_word_as_list); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_num_generators, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_word, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_word_list = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/fundamental_group.pyx":539
 *         cdef c_FuncResult result
 *         word_list = word_as_list(word, self.num_generators())
 *         c_word = c_word_from_list(word_list)             # <<<<<<<<<<<<<<
 *         cdef MoebiusTransformation M
 *         result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
*/
  __pyx_t_7 = __pyx_f_6SnapPy_c_word_from_list(__pyx_v_word_list); if (unlikely(__pyx_t_7 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(8, 539, __pyx_L1_error)
  __pyx_v_c_word = __pyx_t_7;

  /* "cython/core/fundamental_group.pyx":541
 *         c_word = c_word_from_list(word_list)
 *         cdef MoebiusTransformation M
 *         result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)             # <<<<<<<<<<<<<<
 *         if result == 0:
 *             return self._number_(Complex2Number(complex_length_mt(&M)))
*/
  __pyx_t_8 = fg_word_to_matrix(__pyx_v_self->__pyx_base.c_group_presentation, __pyx_v_c_word, NULL, (&__pyx_v_M)); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 541, __pyx_L1_error)
  __pyx_v_result = __pyx_t_8;

  /* "cython/core/fundamental_group.pyx":542
 *         cdef MoebiusTransformation M
 *         result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
 *         if result == 0:             # <<<<<<<<<<<<<<
 *             return self._number_(Complex2Number(complex_length_mt(&M)))
 *         return None
*/
  __pyx_t_9 = (__pyx_v_result == 0);
  if (__pyx_t_9) {

    /* "cython/core/fundamental_group.pyx":543
 *         result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
 *         if result == 0:
 *             return self._number_(Complex2Number(complex_length_mt(&M)))             # <<<<<<<<<<<<<<
 *         return None
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_10 = complex_length_mt((&__pyx_v_M)); if (unlikely(PyErr_Occurred())) __PYX_ERR(8, 543, __pyx_L1_error)
    __pyx_t_4 = __pyx_f_6SnapPy_Complex2Number(__pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 543, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/fundamental_group.pyx":542
 *         cdef MoebiusTransformation M
 *         result = fg_word_to_matrix(self.c_group_presentation, c_word, NULL, &M)
 *         if result == 0:             # <<<<<<<<<<<<<<
 *             return self._number_(Complex2Number(complex_length_mt(&M)))
 *         return None
*/
  }

  /* "cython/core/fundamental_group.pyx":544
 *         if result == 0:
 *             return self._number_(Complex2Number(complex_length_mt(&M)))
 *         return None             # <<<<<<<<<<<<<<
 * 
 * class HolonomyGroup(CHolonomyGroup):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":531
 *         return self._matrix(word, 'O')
 * 
 *     def complex_length(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the complex length of the isometry represented by the
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.CHolonomyGroup.complex_length", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_word_list);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_9__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14CHolonomyGroup_9__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_9__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_9__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_14CHolonomyGroup_8__reduce_cython__(((struct __pyx_obj_6SnapPy_CHolonomyGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(7, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_11__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14CHolonomyGroup_11__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_11__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14CHolonomyGroup_11__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(7, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(7, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(7, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14CHolonomyGroup_10__setstate_cython__(((struct __pyx_obj_6SnapPy_CHolonomyGroup *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14CHolonomyGroup_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CHolonomyGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(7, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.CHolonomyGroup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/fundamental_group.pyx":600
 *     """
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13HolonomyGroup_1_number_(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13HolonomyGroup_1_number_ = {"_number_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13HolonomyGroup_1_number_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13HolonomyGroup_1_number_(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_number_ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(8, 600, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 600, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_number_", 0) < (0)) __PYX_ERR(8, 600, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_number_", 1, 1, 1, i); __PYX_ERR(8, 600, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(8, 600, __pyx_L3_error)
    }
    __pyx_v_n = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_number_", 1, 1, 1, __pyx_nargs); __PYX_ERR(8, 600, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.HolonomyGroup._number_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13HolonomyGroup__number_(__pyx_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13HolonomyGroup__number_(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_n) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_number_", 0);

  /* "cython/core/fundamental_group.pyx":602
 *     @staticmethod
 *     def _number_(n):
 *         return number.number_to_native_number(n)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(8, 602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number_to_native_number); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_n};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 602, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/fundamental_group.pyx":600
 *     """
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.HolonomyGroup._number_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":16
 *     cdef readonly _owns_c_symmetry_group
 * 
 *     def __cinit__(self, is_full_group, owns_c_symmetry_group):             # <<<<<<<<<<<<<<
 *         self.c_symmetry_group = NULL
 *         self._is_full_group = is_full_group
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_13SymmetryGroup_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6SnapPy_13SymmetryGroup_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_is_full_group = 0;
  PyObject *__pyx_v_owns_c_symmetry_group = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_is_full_group,&__pyx_mstate_global->__pyx_n_u_owns_c_symmetry_group,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 16, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(9, 16, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 16, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(9, 16, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, i); __PYX_ERR(9, 16, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 16, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(9, 16, __pyx_L3_error)
    }
    __pyx_v_is_full_group = values[0];
    __pyx_v_owns_c_symmetry_group = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 2, 2, __pyx_nargs); __PYX_ERR(9, 16, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup___cinit__(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self), __pyx_v_is_full_group, __pyx_v_owns_c_symmetry_group);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_13SymmetryGroup___cinit__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self, PyObject *__pyx_v_is_full_group, PyObject *__pyx_v_owns_c_symmetry_group) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cython/core/symmetry_group.pyx":17
 * 
 *     def __cinit__(self, is_full_group, owns_c_symmetry_group):
 *         self.c_symmetry_group = NULL             # <<<<<<<<<<<<<<
 *         self._is_full_group = is_full_group
 *         self._owns_c_symmetry_group = owns_c_symmetry_group
*/
  __pyx_v_self->c_symmetry_group = NULL;

  /* "cython/core/symmetry_group.pyx":18
 *     def __cinit__(self, is_full_group, owns_c_symmetry_group):
 *         self.c_symmetry_group = NULL
 *         self._is_full_group = is_full_group             # <<<<<<<<<<<<<<
 *         self._owns_c_symmetry_group = owns_c_symmetry_group
 * 
*/
  __Pyx_INCREF(__pyx_v_is_full_group);
  __Pyx_GIVEREF(__pyx_v_is_full_group);
  __Pyx_GOTREF(__pyx_v_self->_is_full_group);
  __Pyx_DECREF(__pyx_v_self->_is_full_group);
  __pyx_v_self->_is_full_group = __pyx_v_is_full_group;

  /* "cython/core/symmetry_group.pyx":19
 *         self.c_symmetry_group = NULL
 *         self._is_full_group = is_full_group
 *         self._owns_c_symmetry_group = owns_c_symmetry_group             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __Pyx_INCREF(__pyx_v_owns_c_symmetry_group);
  __Pyx_GIVEREF(__pyx_v_owns_c_symmetry_group);
  __Pyx_GOTREF(__pyx_v_self->_owns_c_symmetry_group);
  __Pyx_DECREF(__pyx_v_self->_owns_c_symmetry_group);
  __pyx_v_self->_owns_c_symmetry_group = __pyx_v_owns_c_symmetry_group;

  /* "cython/core/symmetry_group.pyx":16
 *     cdef readonly _owns_c_symmetry_group
 * 
 *     def __cinit__(self, is_full_group, owns_c_symmetry_group):             # <<<<<<<<<<<<<<
 *         self.c_symmetry_group = NULL
 *         self._is_full_group = is_full_group
*/

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":21
 *         self._owns_c_symmetry_group = owns_c_symmetry_group
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._owns_c_symmetry_group:
 *             free_symmetry_group(self.c_symmetry_group)
*/

/* Python wrapper */
static void __pyx_pw_6SnapPy_13SymmetryGroup_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_6SnapPy_13SymmetryGroup_3__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_6SnapPy_13SymmetryGroup_2__dealloc__(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_6SnapPy_13SymmetryGroup_2__dealloc__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cython/core/symmetry_group.pyx":22
 * 
 *     def __dealloc__(self):
 *         if self._owns_c_symmetry_group:             # <<<<<<<<<<<<<<
 *             free_symmetry_group(self.c_symmetry_group)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_self->_owns_c_symmetry_group); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(9, 22, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/symmetry_group.pyx":23
 *     def __dealloc__(self):
 *         if self._owns_c_symmetry_group:
 *             free_symmetry_group(self.c_symmetry_group)             # <<<<<<<<<<<<<<
 * 
 *     cdef _set_c_symmetry_group(self, c_SymmetryGroup * c_symmetry_group):
*/
    free_symmetry_group(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 23, __pyx_L1_error)

    /* "cython/core/symmetry_group.pyx":22
 * 
 *     def __dealloc__(self):
 *         if self._owns_c_symmetry_group:             # <<<<<<<<<<<<<<
 *             free_symmetry_group(self.c_symmetry_group)
 * 
*/
  }

  /* "cython/core/symmetry_group.pyx":21
 *         self._owns_c_symmetry_group = owns_c_symmetry_group
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._owns_c_symmetry_group:
 *             free_symmetry_group(self.c_symmetry_group)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("SnapPy.SymmetryGroup.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
}

/* "cython/core/symmetry_group.pyx":25
 *             free_symmetry_group(self.c_symmetry_group)
 * 
 *     cdef _set_c_symmetry_group(self, c_SymmetryGroup * c_symmetry_group):             # <<<<<<<<<<<<<<
 *         if c_symmetry_group is NULL:
 *             raise ValueError('You tried to create an *empty* SymmetryGroup.')
*/

static PyObject *__pyx_f_6SnapPy_13SymmetryGroup__set_c_symmetry_group(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self, SymmetryGroup *__pyx_v_c_symmetry_group) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_set_c_symmetry_group", 0);

  /* "cython/core/symmetry_group.pyx":26
 * 
 *     cdef _set_c_symmetry_group(self, c_SymmetryGroup * c_symmetry_group):
 *         if c_symmetry_group is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('You tried to create an *empty* SymmetryGroup.')
 *         self.c_symmetry_group = c_symmetry_group
*/
  __pyx_t_1 = (__pyx_v_c_symmetry_group == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/symmetry_group.pyx":27
 *     cdef _set_c_symmetry_group(self, c_SymmetryGroup * c_symmetry_group):
 *         if c_symmetry_group is NULL:
 *             raise ValueError('You tried to create an *empty* SymmetryGroup.')             # <<<<<<<<<<<<<<
 *         self.c_symmetry_group = c_symmetry_group
 * 
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_You_tried_to_create_an_empty_Sym};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 27, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(9, 27, __pyx_L1_error)

    /* "cython/core/symmetry_group.pyx":26
 * 
 *     cdef _set_c_symmetry_group(self, c_SymmetryGroup * c_symmetry_group):
 *         if c_symmetry_group is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('You tried to create an *empty* SymmetryGroup.')
 *         self.c_symmetry_group = c_symmetry_group
*/
  }

  /* "cython/core/symmetry_group.pyx":28
 *         if c_symmetry_group is NULL:
 *             raise ValueError('You tried to create an *empty* SymmetryGroup.')
 *         self.c_symmetry_group = c_symmetry_group             # <<<<<<<<<<<<<<
 * 
 *     def is_full_group(self):
*/
  __pyx_v_self->c_symmetry_group = __pyx_v_c_symmetry_group;

  /* "cython/core/symmetry_group.pyx":25
 *             free_symmetry_group(self.c_symmetry_group)
 * 
 *     cdef _set_c_symmetry_group(self, c_SymmetryGroup * c_symmetry_group):             # <<<<<<<<<<<<<<
 *         if c_symmetry_group is NULL:
 *             raise ValueError('You tried to create an *empty* SymmetryGroup.')
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup._set_c_symmetry_group", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":30
 *         self.c_symmetry_group = c_symmetry_group
 * 
 *     def is_full_group(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the full symmetry group has been found.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_5is_full_group(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_4is_full_group, "\n        Return whether the full symmetry group has been found.\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.is_full_group()\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_5is_full_group = {"is_full_group", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_5is_full_group, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_4is_full_group};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_5is_full_group(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_full_group (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_full_group", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_full_group", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_4is_full_group(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_4is_full_group(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_full_group", 0);

  /* "cython/core/symmetry_group.pyx":38
 *         True
 *         """
 *         return self._is_full_group             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_is_full_group);
  __pyx_r = __pyx_v_self->_is_full_group;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":30
 *         self.c_symmetry_group = c_symmetry_group
 * 
 *     def is_full_group(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the full symmetry group has been found.
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":40
 *         return self._is_full_group
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.is_full_group():
 *             thePretext = ''
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_7__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_7__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_6__repr__(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_6__repr__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_v_thePretext = NULL;
  PyObject *__pyx_v_theText = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/symmetry_group.pyx":41
 * 
 *     def __repr__(self):
 *         if self.is_full_group():             # <<<<<<<<<<<<<<
 *             thePretext = ''
 *         elif self.order() == 1:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_full_group, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 41, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 41, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cython/core/symmetry_group.pyx":42
 *     def __repr__(self):
 *         if self.is_full_group():
 *             thePretext = ''             # <<<<<<<<<<<<<<
 *         elif self.order() == 1:
 *             return 'unknown'
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__10);
    __pyx_v_thePretext = __pyx_mstate_global->__pyx_kp_u__10;

    /* "cython/core/symmetry_group.pyx":41
 * 
 *     def __repr__(self):
 *         if self.is_full_group():             # <<<<<<<<<<<<<<
 *             thePretext = ''
 *         elif self.order() == 1:
*/
    goto __pyx_L3;
  }

  /* "cython/core/symmetry_group.pyx":43
 *         if self.is_full_group():
 *             thePretext = ''
 *         elif self.order() == 1:             # <<<<<<<<<<<<<<
 *             return 'unknown'
 *         else:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_order, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 43, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_1, 1, 0)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 43, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cython/core/symmetry_group.pyx":44
 *             thePretext = ''
 *         elif self.order() == 1:
 *             return 'unknown'             # <<<<<<<<<<<<<<
 *         else:
 *             thePretext = 'at least '
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_unknown);
    __pyx_r = __pyx_mstate_global->__pyx_n_u_unknown;
    goto __pyx_L0;

    /* "cython/core/symmetry_group.pyx":43
 *         if self.is_full_group():
 *             thePretext = ''
 *         elif self.order() == 1:             # <<<<<<<<<<<<<<
 *             return 'unknown'
 *         else:
*/
  }

  /* "cython/core/symmetry_group.pyx":46
 *             return 'unknown'
 *         else:
 *             thePretext = 'at least '             # <<<<<<<<<<<<<<
 *         if self.is_abelian():
 *             theText = repr(self.abelian_description())
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_at_least);
    __pyx_v_thePretext = __pyx_mstate_global->__pyx_kp_u_at_least;
  }
  __pyx_L3:;

  /* "cython/core/symmetry_group.pyx":47
 *         else:
 *             thePretext = 'at least '
 *         if self.is_abelian():             # <<<<<<<<<<<<<<
 *             theText = repr(self.abelian_description())
 *         elif self.is_dihedral():
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_abelian, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 47, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 47, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cython/core/symmetry_group.pyx":48
 *             thePretext = 'at least '
 *         if self.is_abelian():
 *             theText = repr(self.abelian_description())             # <<<<<<<<<<<<<<
 *         elif self.is_dihedral():
 *             theText = 'D%d' % (self.order()//2)
*/
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_abelian_description, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 48, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_2 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 48, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_theText = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/symmetry_group.pyx":47
 *         else:
 *             thePretext = 'at least '
 *         if self.is_abelian():             # <<<<<<<<<<<<<<
 *             theText = repr(self.abelian_description())
 *         elif self.is_dihedral():
*/
    goto __pyx_L4;
  }

  /* "cython/core/symmetry_group.pyx":49
 *         if self.is_abelian():
 *             theText = repr(self.abelian_description())
 *         elif self.is_dihedral():             # <<<<<<<<<<<<<<
 *             theText = 'D%d' % (self.order()//2)
 *         elif self.is_polyhedral():
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_dihedral, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 49, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 49, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_4) {

    /* "cython/core/symmetry_group.pyx":50
 *             theText = repr(self.abelian_description())
 *         elif self.is_dihedral():
 *             theText = 'D%d' % (self.order()//2)             # <<<<<<<<<<<<<<
 *         elif self.is_polyhedral():
 *             theText = self.polyhedral_description()
*/
    __pyx_t_1 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_order, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 50, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = __Pyx_PyLong_FloorDivideObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 50, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_D_d, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 50, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_theText = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/symmetry_group.pyx":49
 *         if self.is_abelian():
 *             theText = repr(self.abelian_description())
 *         elif self.is_dihedral():             # <<<<<<<<<<<<<<
 *             theText = 'D%d' % (self.order()//2)
 *         elif self.is_polyhedral():
*/
    goto __pyx_L4;
  }

  /* "cython/core/symmetry_group.pyx":51
 *         elif self.is_dihedral():
 *             theText = 'D%d' % (self.order()//2)
 *         elif self.is_polyhedral():             # <<<<<<<<<<<<<<
 *             theText = self.polyhedral_description()
 *         elif self.is_S5():
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_polyhedral, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 51, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 51, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_4) {

    /* "cython/core/symmetry_group.pyx":52
 *             theText = 'D%d' % (self.order()//2)
 *         elif self.is_polyhedral():
 *             theText = self.polyhedral_description()             # <<<<<<<<<<<<<<
 *         elif self.is_S5():
 *             theText = 'S5'
*/
    __pyx_t_1 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_polyhedral_description, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 52, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_theText = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/symmetry_group.pyx":51
 *         elif self.is_dihedral():
 *             theText = 'D%d' % (self.order()//2)
 *         elif self.is_polyhedral():             # <<<<<<<<<<<<<<
 *             theText = self.polyhedral_description()
 *         elif self.is_S5():
*/
    goto __pyx_L4;
  }

  /* "cython/core/symmetry_group.pyx":53
 *         elif self.is_polyhedral():
 *             theText = self.polyhedral_description()
 *         elif self.is_S5():             # <<<<<<<<<<<<<<
 *             theText = 'S5'
 *         elif self.is_direct_product():
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_S5, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 53, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 53, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_4) {

    /* "cython/core/symmetry_group.pyx":54
 *             theText = self.polyhedral_description()
 *         elif self.is_S5():
 *             theText = 'S5'             # <<<<<<<<<<<<<<
 *         elif self.is_direct_product():
 *             theText = '%s x %s' % self.direct_product_description()
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_S5);
    __pyx_v_theText = __pyx_mstate_global->__pyx_n_u_S5;

    /* "cython/core/symmetry_group.pyx":53
 *         elif self.is_polyhedral():
 *             theText = self.polyhedral_description()
 *         elif self.is_S5():             # <<<<<<<<<<<<<<
 *             theText = 'S5'
 *         elif self.is_direct_product():
*/
    goto __pyx_L4;
  }

  /* "cython/core/symmetry_group.pyx":55
 *         elif self.is_S5():
 *             theText = 'S5'
 *         elif self.is_direct_product():             # <<<<<<<<<<<<<<
 *             theText = '%s x %s' % self.direct_product_description()
 *         else:
*/
  __pyx_t_1 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_direct_product, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 55, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 55, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_4) {

    /* "cython/core/symmetry_group.pyx":56
 *             theText = 'S5'
 *         elif self.is_direct_product():
 *             theText = '%s x %s' % self.direct_product_description()             # <<<<<<<<<<<<<<
 *         else:
 *             theText = 'nonabelian group of order %d' % self.order()
*/
    __pyx_t_1 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_direct_product_description, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 56, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_s_x_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 56, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_theText = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cython/core/symmetry_group.pyx":55
 *         elif self.is_S5():
 *             theText = 'S5'
 *         elif self.is_direct_product():             # <<<<<<<<<<<<<<
 *             theText = '%s x %s' % self.direct_product_description()
 *         else:
*/
    goto __pyx_L4;
  }

  /* "cython/core/symmetry_group.pyx":58
 *             theText = '%s x %s' % self.direct_product_description()
 *         else:
 *             theText = 'nonabelian group of order %d' % self.order()             # <<<<<<<<<<<<<<
 * 
 *         return thePretext + theText
*/
  /*else*/ {
    __pyx_t_2 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_order, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 58, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_nonabelian_group_of_order_d, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 58, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_theText = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "cython/core/symmetry_group.pyx":60
 *             theText = 'nonabelian group of order %d' % self.order()
 * 
 *         return thePretext + theText             # <<<<<<<<<<<<<<
 * 
 *     def order(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyNumber_Add(__pyx_v_thePretext, __pyx_v_theText); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 60, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":40
 *         return self._is_full_group
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.is_full_group():
 *             thePretext = ''
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_thePretext);
  __Pyx_XDECREF(__pyx_v_theText);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":62
 *         return thePretext + theText
 * 
 *     def order(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the order of the symmetry group
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_9order(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_8order, "\n        Return the order of the symmetry group\n\n        >>> S = Manifold('s000').symmetry_group()\n        >>> S.order()\n        4\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_9order = {"order", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_9order, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_8order};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_9order(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("order (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("order", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("order", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_8order(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_8order(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("order", 0);

  /* "cython/core/symmetry_group.pyx":70
 *         4
 *         """
 *         return symmetry_group_order(self.c_symmetry_group)             # <<<<<<<<<<<<<<
 * 
 *     def is_abelian(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = symmetry_group_order(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 70, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":62
 *         return thePretext + theText
 * 
 *     def order(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the order of the symmetry group
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.order", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":72
 *         return symmetry_group_order(self.c_symmetry_group)
 * 
 *     def is_abelian(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the symmetry group is abelian.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_11is_abelian(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_10is_abelian, "\n        Return whether the symmetry group is abelian.\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.is_abelian()\n        False\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_11is_abelian = {"is_abelian", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_11is_abelian, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_10is_abelian};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_11is_abelian(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_abelian (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_abelian", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_abelian", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_10is_abelian(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_10is_abelian(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  AbelianGroup *__pyx_v_abelian_description;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_abelian", 0);

  /* "cython/core/symmetry_group.pyx":80
 *         False
 *         """
 *         cdef c_AbelianGroup* abelian_description = NULL             # <<<<<<<<<<<<<<
 *         return B2B(symmetry_group_is_abelian(
 *             self.c_symmetry_group, &abelian_description))
*/
  __pyx_v_abelian_description = NULL;

  /* "cython/core/symmetry_group.pyx":81
 *         """
 *         cdef c_AbelianGroup* abelian_description = NULL
 *         return B2B(symmetry_group_is_abelian(             # <<<<<<<<<<<<<<
 *             self.c_symmetry_group, &abelian_description))
 * 
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/symmetry_group.pyx":82
 *         cdef c_AbelianGroup* abelian_description = NULL
 *         return B2B(symmetry_group_is_abelian(
 *             self.c_symmetry_group, &abelian_description))             # <<<<<<<<<<<<<<
 * 
 *     def abelian_description(self):
*/
  __pyx_t_1 = symmetry_group_is_abelian(__pyx_v_self->c_symmetry_group, (&__pyx_v_abelian_description)); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 81, __pyx_L1_error)

  /* "cython/core/symmetry_group.pyx":81
 *         """
 *         cdef c_AbelianGroup* abelian_description = NULL
 *         return B2B(symmetry_group_is_abelian(             # <<<<<<<<<<<<<<
 *             self.c_symmetry_group, &abelian_description))
 * 
*/
  __pyx_t_2 = __pyx_f_6SnapPy_B2B(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":72
 *         return symmetry_group_order(self.c_symmetry_group)
 * 
 *     def is_abelian(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the symmetry group is abelian.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.is_abelian", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":84
 *             self.c_symmetry_group, &abelian_description))
 * 
 *     def abelian_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the symmetry group is abelian, return it as an AbelianGroup
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_13abelian_description(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_12abelian_description, "\n        If the symmetry group is abelian, return it as an AbelianGroup\n\n        >>> S = Manifold('v3379').symmetry_group()\n        >>> S.abelian_description()\n        Z/2 + Z/2 + Z/2\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_13abelian_description = {"abelian_description", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_13abelian_description, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_12abelian_description};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_13abelian_description(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("abelian_description (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("abelian_description", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("abelian_description", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_12abelian_description(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_12abelian_description(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  AbelianGroup *__pyx_v_A;
  int __pyx_v_n;
  PyObject *__pyx_v_is_abelian = NULL;
  PyObject *__pyx_v_coeffs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("abelian_description", 0);

  /* "cython/core/symmetry_group.pyx":94
 *         cdef c_AbelianGroup* A
 *         cdef int n
 *         is_abelian = B2B(symmetry_group_is_abelian(self.c_symmetry_group, &A))             # <<<<<<<<<<<<<<
 *         if not is_abelian:
 *             raise ValueError('The symmetry group is not abelian.')
*/
  __pyx_t_1 = symmetry_group_is_abelian(__pyx_v_self->c_symmetry_group, (&__pyx_v_A)); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 94, __pyx_L1_error)
  __pyx_t_2 = __pyx_f_6SnapPy_B2B(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_is_abelian = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/symmetry_group.pyx":95
 *         cdef int n
 *         is_abelian = B2B(symmetry_group_is_abelian(self.c_symmetry_group, &A))
 *         if not is_abelian:             # <<<<<<<<<<<<<<
 *             raise ValueError('The symmetry group is not abelian.')
 * 
*/
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_is_abelian); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(9, 95, __pyx_L1_error)
  __pyx_t_4 = (!__pyx_t_3);
  if (unlikely(__pyx_t_4)) {

    /* "cython/core/symmetry_group.pyx":96
 *         is_abelian = B2B(symmetry_group_is_abelian(self.c_symmetry_group, &A))
 *         if not is_abelian:
 *             raise ValueError('The symmetry group is not abelian.')             # <<<<<<<<<<<<<<
 * 
 *         coeffs = []
*/
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_The_symmetry_group_is_not_abelia};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 96, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(9, 96, __pyx_L1_error)

    /* "cython/core/symmetry_group.pyx":95
 *         cdef int n
 *         is_abelian = B2B(symmetry_group_is_abelian(self.c_symmetry_group, &A))
 *         if not is_abelian:             # <<<<<<<<<<<<<<
 *             raise ValueError('The symmetry group is not abelian.')
 * 
*/
  }

  /* "cython/core/symmetry_group.pyx":98
 *             raise ValueError('The symmetry group is not abelian.')
 * 
 *         coeffs = []             # <<<<<<<<<<<<<<
 *         for n in range(A.num_torsion_coefficients):
 *             coeffs.append(A.torsion_coefficients[n])
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_coeffs = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/symmetry_group.pyx":99
 * 
 *         coeffs = []
 *         for n in range(A.num_torsion_coefficients):             # <<<<<<<<<<<<<<
 *             coeffs.append(A.torsion_coefficients[n])
 * 
*/
  __pyx_t_7 = __pyx_v_A->num_torsion_coefficients;
  __pyx_t_8 = __pyx_t_7;
  for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
    __pyx_v_n = __pyx_t_9;

    /* "cython/core/symmetry_group.pyx":100
 *         coeffs = []
 *         for n in range(A.num_torsion_coefficients):
 *             coeffs.append(A.torsion_coefficients[n])             # <<<<<<<<<<<<<<
 * 
 *         # Don't need to free A as it is attached to the symmetry group object
*/
    __pyx_t_2 = __Pyx_PyLong_From_long((__pyx_v_A->torsion_coefficients[__pyx_v_n])); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_coeffs, __pyx_t_2); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(9, 100, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }

  /* "cython/core/symmetry_group.pyx":103
 * 
 *         # Don't need to free A as it is attached to the symmetry group object
 *         return AbelianGroup(elementary_divisors=coeffs)             # <<<<<<<<<<<<<<
 * 
 *     def is_dihedral(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_5 = NULL;
  __pyx_t_6 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_11 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_11)) __PYX_ERR(9, 103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_v_coeffs, __pyx_t_11, __pyx_callargs+1, 0) < (0)) __PYX_ERR(9, 103, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_11);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 103, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_r = ((PyObject *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":84
 *             self.c_symmetry_group, &abelian_description))
 * 
 *     def abelian_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the symmetry group is abelian, return it as an AbelianGroup
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.abelian_description", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_is_abelian);
  __Pyx_XDECREF(__pyx_v_coeffs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":105
 *         return AbelianGroup(elementary_divisors=coeffs)
 * 
 *     def is_dihedral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the symmetry group is dihedral.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_15is_dihedral(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_14is_dihedral, "\n        Return whether the symmetry group is dihedral.\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.is_dihedral()\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_15is_dihedral = {"is_dihedral", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_15is_dihedral, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_14is_dihedral};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_15is_dihedral(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_dihedral (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_dihedral", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_dihedral", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_14is_dihedral(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_14is_dihedral(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_dihedral", 0);

  /* "cython/core/symmetry_group.pyx":113
 *         True
 *         """
 *         return B2B(symmetry_group_is_dihedral(self.c_symmetry_group))             # <<<<<<<<<<<<<<
 * 
 *     def is_polyhedral(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = symmetry_group_is_dihedral(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 113, __pyx_L1_error)
  __pyx_t_2 = __pyx_f_6SnapPy_B2B(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":105
 *         return AbelianGroup(elementary_divisors=coeffs)
 * 
 *     def is_dihedral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the symmetry group is dihedral.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.is_dihedral", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":115
 *         return B2B(symmetry_group_is_dihedral(self.c_symmetry_group))
 * 
 *     def is_polyhedral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether the symmetry group is a (possibly binary)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_17is_polyhedral(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_16is_polyhedral, "\n        Returns whether the symmetry group is a (possibly binary)\n        polyhedral group.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_17is_polyhedral = {"is_polyhedral", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_17is_polyhedral, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_16is_polyhedral};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_17is_polyhedral(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_polyhedral (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_polyhedral", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_polyhedral", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_16is_polyhedral(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_16is_polyhedral(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_polyhedral", 0);

  /* "cython/core/symmetry_group.pyx":120
 *         polyhedral group.
 *         """
 *         return B2B(symmetry_group_is_polyhedral(self.c_symmetry_group,             # <<<<<<<<<<<<<<
 *                                                 NULL, NULL, NULL, NULL))
 * 
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/symmetry_group.pyx":121
 *         """
 *         return B2B(symmetry_group_is_polyhedral(self.c_symmetry_group,
 *                                                 NULL, NULL, NULL, NULL))             # <<<<<<<<<<<<<<
 * 
 *     def polyhedral_description(self):
*/
  __pyx_t_1 = symmetry_group_is_polyhedral(__pyx_v_self->c_symmetry_group, NULL, NULL, NULL, NULL); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 120, __pyx_L1_error)

  /* "cython/core/symmetry_group.pyx":120
 *         polyhedral group.
 *         """
 *         return B2B(symmetry_group_is_polyhedral(self.c_symmetry_group,             # <<<<<<<<<<<<<<
 *                                                 NULL, NULL, NULL, NULL))
 * 
*/
  __pyx_t_2 = __pyx_f_6SnapPy_B2B(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 120, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":115
 *         return B2B(symmetry_group_is_dihedral(self.c_symmetry_group))
 * 
 *     def is_polyhedral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether the symmetry group is a (possibly binary)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.is_polyhedral", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":123
 *                                                 NULL, NULL, NULL, NULL))
 * 
 *     def polyhedral_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the symmetry group is a (possibly binary)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_19polyhedral_description(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_18polyhedral_description, "\n        If the symmetry group is a (possibly binary)\n        polyhedral group, return a description of it.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_19polyhedral_description = {"polyhedral_description", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_19polyhedral_description, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_18polyhedral_description};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_19polyhedral_description(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("polyhedral_description (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("polyhedral_description", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("polyhedral_description", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_18polyhedral_description(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_18polyhedral_description(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  Boolean __pyx_v_is_binary_group;
  int __pyx_v_p;
  int __pyx_v_q;
  int __pyx_v_r;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("polyhedral_description", 0);

  /* "cython/core/symmetry_group.pyx":131
 *         cdef int p, q, r
 * 
 *         if not self.is_polyhedral():             # <<<<<<<<<<<<<<
 *             raise ValueError('The symmetry group is not polyhedral.')
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_polyhedral, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 131, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = (!__pyx_t_4);
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/symmetry_group.pyx":132
 * 
 *         if not self.is_polyhedral():
 *             raise ValueError('The symmetry group is not polyhedral.')             # <<<<<<<<<<<<<<
 * 
 *         symmetry_group_is_polyhedral(self.c_symmetry_group,
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_symmetry_group_is_not_polyhe};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 132, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(9, 132, __pyx_L1_error)

    /* "cython/core/symmetry_group.pyx":131
 *         cdef int p, q, r
 * 
 *         if not self.is_polyhedral():             # <<<<<<<<<<<<<<
 *             raise ValueError('The symmetry group is not polyhedral.')
 * 
*/
  }

  /* "cython/core/symmetry_group.pyx":134
 *             raise ValueError('The symmetry group is not polyhedral.')
 * 
 *         symmetry_group_is_polyhedral(self.c_symmetry_group,             # <<<<<<<<<<<<<<
 *                                      &is_binary_group, &p, &q, &r)
 * 
*/
  symmetry_group_is_polyhedral(__pyx_v_self->c_symmetry_group, (&__pyx_v_is_binary_group), (&__pyx_v_p), (&__pyx_v_q), (&__pyx_v_r)); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 134, __pyx_L1_error)

  /* "cython/core/symmetry_group.pyx":137
 *                                      &is_binary_group, &p, &q, &r)
 * 
 *         assert p == 2             # <<<<<<<<<<<<<<
 * 
 *         if q == 2:
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_5 = (__pyx_v_p == 2);
    if (unlikely(!__pyx_t_5)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
      __PYX_ERR(9, 137, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(9, 137, __pyx_L1_error)
  #endif

  /* "cython/core/symmetry_group.pyx":139
 *         assert p == 2
 * 
 *         if q == 2:             # <<<<<<<<<<<<<<
 *             assert(is_binary_group)
 *             name = 'binary dihedral group <2,2,%d>' % r
*/
  switch (__pyx_v_q) {
    case 2:

    /* "cython/core/symmetry_group.pyx":140
 * 
 *         if q == 2:
 *             assert(is_binary_group)             # <<<<<<<<<<<<<<
 *             name = 'binary dihedral group <2,2,%d>' % r
 *         elif q== 3:
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_5 = (__pyx_v_is_binary_group != 0);
      if (unlikely(!__pyx_t_5)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
        __PYX_ERR(9, 140, __pyx_L1_error)
      }
    }
    #else
    if ((1)); else __PYX_ERR(9, 140, __pyx_L1_error)
    #endif

    /* "cython/core/symmetry_group.pyx":141
 *         if q == 2:
 *             assert(is_binary_group)
 *             name = 'binary dihedral group <2,2,%d>' % r             # <<<<<<<<<<<<<<
 *         elif q== 3:
 *             name = 'binary ' if is_binary_group else ''
*/
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_binary_dihedral_group_2_2_d, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_name = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/symmetry_group.pyx":139
 *         assert p == 2
 * 
 *         if q == 2:             # <<<<<<<<<<<<<<
 *             assert(is_binary_group)
 *             name = 'binary dihedral group <2,2,%d>' % r
*/
    break;
    case 3:

    /* "cython/core/symmetry_group.pyx":143
 *             name = 'binary dihedral group <2,2,%d>' % r
 *         elif q== 3:
 *             name = 'binary ' if is_binary_group else ''             # <<<<<<<<<<<<<<
 *             name += {3: 'tetrahedral group',
 *                      4: 'octahedral group',
*/
    __pyx_t_5 = (__pyx_v_is_binary_group != 0);
    if (__pyx_t_5) {
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_binary);
      __pyx_t_2 = __pyx_mstate_global->__pyx_kp_u_binary;
    } else {
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__10);
      __pyx_t_2 = __pyx_mstate_global->__pyx_kp_u__10;
    }
    __pyx_v_name = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/symmetry_group.pyx":144
 *         elif q== 3:
 *             name = 'binary ' if is_binary_group else ''
 *             name += {3: 'tetrahedral group',             # <<<<<<<<<<<<<<
 *                      4: 'octahedral group',
 *                      5: 'icosohedral group'}[r]
*/
    __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_kp_u_tetrahedral_group) < (0)) __PYX_ERR(9, 144, __pyx_L1_error)
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_int_4, __pyx_mstate_global->__pyx_kp_u_octahedral_group) < (0)) __PYX_ERR(9, 144, __pyx_L1_error)
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_int_5, __pyx_mstate_global->__pyx_kp_u_icosohedral_group) < (0)) __PYX_ERR(9, 144, __pyx_L1_error)

    /* "cython/core/symmetry_group.pyx":146
 *             name += {3: 'tetrahedral group',
 *                      4: 'octahedral group',
 *                      5: 'icosohedral group'}[r]             # <<<<<<<<<<<<<<
 * 
 *         return name
*/
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_r); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyDict_GetItem(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/symmetry_group.pyx":144
 *         elif q== 3:
 *             name = 'binary ' if is_binary_group else ''
 *             name += {3: 'tetrahedral group',             # <<<<<<<<<<<<<<
 *                      4: 'octahedral group',
 *                      5: 'icosohedral group'}[r]
*/
    __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_name, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/symmetry_group.pyx":142
 *             assert(is_binary_group)
 *             name = 'binary dihedral group <2,2,%d>' % r
 *         elif q== 3:             # <<<<<<<<<<<<<<
 *             name = 'binary ' if is_binary_group else ''
 *             name += {3: 'tetrahedral group',
*/
    break;
    default: break;
  }

  /* "cython/core/symmetry_group.pyx":148
 *                      5: 'icosohedral group'}[r]
 * 
 *         return name             # <<<<<<<<<<<<<<
 * 
 *     def is_S5(self):
*/
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(!__pyx_v_name)) { __Pyx_RaiseUnboundLocalError("name"); __PYX_ERR(9, 148, __pyx_L1_error) }
  __Pyx_INCREF(__pyx_v_name);
  __pyx_r = __pyx_v_name;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":123
 *                                                 NULL, NULL, NULL, NULL))
 * 
 *     def polyhedral_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the symmetry group is a (possibly binary)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.polyhedral_description", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":150
 *         return name
 * 
 *     def is_S5(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether the group is the symmetric group on five things.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_21is_S5(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_20is_S5, "\n        Returns whether the group is the symmetric group on five things.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_21is_S5 = {"is_S5", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_21is_S5, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_20is_S5};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_21is_S5(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_S5 (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_S5", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_S5", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_20is_S5(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_20is_S5(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_S5", 0);

  /* "cython/core/symmetry_group.pyx":154
 *         Returns whether the group is the symmetric group on five things.
 *         """
 *         return B2B(symmetry_group_is_S5(self.c_symmetry_group))             # <<<<<<<<<<<<<<
 * 
 *     def is_direct_product(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = symmetry_group_is_S5(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 154, __pyx_L1_error)
  __pyx_t_2 = __pyx_f_6SnapPy_B2B(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":150
 *         return name
 * 
 *     def is_S5(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether the group is the symmetric group on five things.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.is_S5", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":156
 *         return B2B(symmetry_group_is_S5(self.c_symmetry_group))
 * 
 *     def is_direct_product(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the SymmetryGroup is a nontrivial direct
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_23is_direct_product(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_22is_direct_product, "\n        Return whether the SymmetryGroup is a nontrivial direct\n        product with at least one nonabelian factor.\n\n        >>> S = Manifold('s960').symmetry_group()\n        >>> S.is_direct_product()\n        True\n        >>> S\n        Z/4 x D3\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_23is_direct_product = {"is_direct_product", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_23is_direct_product, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_22is_direct_product};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_23is_direct_product(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_direct_product (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_direct_product", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_direct_product", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_22is_direct_product(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_22is_direct_product(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_direct_product", 0);

  /* "cython/core/symmetry_group.pyx":167
 *         Z/4 x D3
 *         """
 *         return B2B(symmetry_group_is_direct_product(self.c_symmetry_group))             # <<<<<<<<<<<<<<
 * 
 *     def direct_product_description(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = symmetry_group_is_direct_product(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 167, __pyx_L1_error)
  __pyx_t_2 = __pyx_f_6SnapPy_B2B(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":156
 *         return B2B(symmetry_group_is_S5(self.c_symmetry_group))
 * 
 *     def is_direct_product(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the SymmetryGroup is a nontrivial direct
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.is_direct_product", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":169
 *         return B2B(symmetry_group_is_direct_product(self.c_symmetry_group))
 * 
 *     def direct_product_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the SymmetryGroup is a nontrivial direct product with at
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_25direct_product_description(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_24direct_product_description, "\n        If the SymmetryGroup is a nontrivial direct product with at\n        least one nonabelian factor, return a pair of SymmetryGroups\n        consisting of the (two) factors.\n\n        >>> S = Manifold('s960').symmetry_group()\n        >>> S.direct_product_description()\n        (Z/4, D3)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_25direct_product_description = {"direct_product_description", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_25direct_product_description, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_24direct_product_description};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_25direct_product_description(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("direct_product_description (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("direct_product_description", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("direct_product_description", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_24direct_product_description(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_24direct_product_description(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  SymmetryGroup *__pyx_v_c_factor_0;
  SymmetryGroup *__pyx_v_c_factor_1;
  struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_factor_0 = 0;
  struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_factor_1 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  SymmetryGroup *__pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("direct_product_description", 0);

  /* "cython/core/symmetry_group.pyx":179
 *         (Z/4, D3)
 *         """
 *         if not self.is_direct_product():             # <<<<<<<<<<<<<<
 *             raise ValueError('The symmetry group is not a nontrivial, '
 *                              'nonabelian direct product.')
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_direct_product, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 179, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = (!__pyx_t_4);
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/symmetry_group.pyx":180
 *         """
 *         if not self.is_direct_product():
 *             raise ValueError('The symmetry group is not a nontrivial, '             # <<<<<<<<<<<<<<
 *                              'nonabelian direct product.')
 * 
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_symmetry_group_is_not_a_nont};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 180, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(9, 180, __pyx_L1_error)

    /* "cython/core/symmetry_group.pyx":179
 *         (Z/4, D3)
 *         """
 *         if not self.is_direct_product():             # <<<<<<<<<<<<<<
 *             raise ValueError('The symmetry group is not a nontrivial, '
 *                              'nonabelian direct product.')
*/
  }

  /* "cython/core/symmetry_group.pyx":188
 *         cdef SymmetryGroup factor_1
 * 
 *         c_factor_0 = get_symmetry_group_factor(self.c_symmetry_group, 0)             # <<<<<<<<<<<<<<
 *         c_factor_1 = get_symmetry_group_factor(self.c_symmetry_group, 1)
 * 
*/
  __pyx_t_6 = get_symmetry_group_factor(__pyx_v_self->c_symmetry_group, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 188, __pyx_L1_error)
  __pyx_v_c_factor_0 = __pyx_t_6;

  /* "cython/core/symmetry_group.pyx":189
 * 
 *         c_factor_0 = get_symmetry_group_factor(self.c_symmetry_group, 0)
 *         c_factor_1 = get_symmetry_group_factor(self.c_symmetry_group, 1)             # <<<<<<<<<<<<<<
 * 
 *         factor_0 = SymmetryGroup(True, False)
*/
  __pyx_t_6 = get_symmetry_group_factor(__pyx_v_self->c_symmetry_group, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 189, __pyx_L1_error)
  __pyx_v_c_factor_1 = __pyx_t_6;

  /* "cython/core/symmetry_group.pyx":191
 *         c_factor_1 = get_symmetry_group_factor(self.c_symmetry_group, 1)
 * 
 *         factor_0 = SymmetryGroup(True, False)             # <<<<<<<<<<<<<<
 *         factor_1 = SymmetryGroup(True, False)
 *         factor_0._set_c_symmetry_group(c_factor_0)
*/
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup), __pyx_mstate_global->__pyx_tuple[22], NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_factor_0 = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":192
 * 
 *         factor_0 = SymmetryGroup(True, False)
 *         factor_1 = SymmetryGroup(True, False)             # <<<<<<<<<<<<<<
 *         factor_0._set_c_symmetry_group(c_factor_0)
 *         factor_1._set_c_symmetry_group(c_factor_1)
*/
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup), __pyx_mstate_global->__pyx_tuple[22], NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_factor_1 = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":193
 *         factor_0 = SymmetryGroup(True, False)
 *         factor_1 = SymmetryGroup(True, False)
 *         factor_0._set_c_symmetry_group(c_factor_0)             # <<<<<<<<<<<<<<
 *         factor_1._set_c_symmetry_group(c_factor_1)
 *         return (factor_0, factor_1)
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *)__pyx_v_factor_0->__pyx_vtab)->_set_c_symmetry_group(__pyx_v_factor_0, __pyx_v_c_factor_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":194
 *         factor_1 = SymmetryGroup(True, False)
 *         factor_0._set_c_symmetry_group(c_factor_0)
 *         factor_1._set_c_symmetry_group(c_factor_1)             # <<<<<<<<<<<<<<
 *         return (factor_0, factor_1)
 * 
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *)__pyx_v_factor_1->__pyx_vtab)->_set_c_symmetry_group(__pyx_v_factor_1, __pyx_v_c_factor_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":195
 *         factor_0._set_c_symmetry_group(c_factor_0)
 *         factor_1._set_c_symmetry_group(c_factor_1)
 *         return (factor_0, factor_1)             # <<<<<<<<<<<<<<
 * 
 *     def is_amphicheiral(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF((PyObject *)__pyx_v_factor_0);
  __Pyx_GIVEREF((PyObject *)__pyx_v_factor_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_factor_0)) != (0)) __PYX_ERR(9, 195, __pyx_L1_error);
  __Pyx_INCREF((PyObject *)__pyx_v_factor_1);
  __Pyx_GIVEREF((PyObject *)__pyx_v_factor_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_factor_1)) != (0)) __PYX_ERR(9, 195, __pyx_L1_error);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":169
 *         return B2B(symmetry_group_is_direct_product(self.c_symmetry_group))
 * 
 *     def direct_product_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the SymmetryGroup is a nontrivial direct product with at
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.direct_product_description", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_factor_0);
  __Pyx_XDECREF((PyObject *)__pyx_v_factor_1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":197
 *         return (factor_0, factor_1)
 * 
 *     def is_amphicheiral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the manifold has an orientation reversing symmetry.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_27is_amphicheiral(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_26is_amphicheiral, "\n        Return whether the manifold has an orientation reversing symmetry.\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.is_amphicheiral()\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_27is_amphicheiral = {"is_amphicheiral", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_27is_amphicheiral, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_26is_amphicheiral};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_27is_amphicheiral(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_amphicheiral (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_amphicheiral", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_amphicheiral", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_26is_amphicheiral(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_26is_amphicheiral(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_amphicheiral", 0);

  /* "cython/core/symmetry_group.pyx":205
 *         True
 *         """
 *         return B2B(symmetry_group_is_amphicheiral(self.c_symmetry_group))             # <<<<<<<<<<<<<<
 * 
 *     def is_invertible_knot(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = symmetry_group_is_amphicheiral(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 205, __pyx_L1_error)
  __pyx_t_2 = __pyx_f_6SnapPy_B2B(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":197
 *         return (factor_0, factor_1)
 * 
 *     def is_amphicheiral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the manifold has an orientation reversing symmetry.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.is_amphicheiral", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":207
 *         return B2B(symmetry_group_is_amphicheiral(self.c_symmetry_group))
 * 
 *     def is_invertible_knot(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether a one-cusped has a symmetry that acts on the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_29is_invertible_knot(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_28is_invertible_knot, "\n        Return whether a one-cusped has a symmetry that acts on the\n        cusp via the matrix -I.\n\n        >>> S = Manifold('m015').symmetry_group()\n        >>> S.is_invertible_knot()\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_29is_invertible_knot = {"is_invertible_knot", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_29is_invertible_knot, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_28is_invertible_knot};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_29is_invertible_knot(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_invertible_knot (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("is_invertible_knot", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("is_invertible_knot", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_28is_invertible_knot(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_28is_invertible_knot(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Boolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_invertible_knot", 0);

  /* "cython/core/symmetry_group.pyx":216
 *         True
 *         """
 *         return B2B(symmetry_group_invertible_knot(self.c_symmetry_group))             # <<<<<<<<<<<<<<
 * 
 *     def commutator_subgroup(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = symmetry_group_invertible_knot(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 216, __pyx_L1_error)
  __pyx_t_2 = __pyx_f_6SnapPy_B2B(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":207
 *         return B2B(symmetry_group_is_amphicheiral(self.c_symmetry_group))
 * 
 *     def is_invertible_knot(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether a one-cusped has a symmetry that acts on the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.is_invertible_knot", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":218
 *         return B2B(symmetry_group_invertible_knot(self.c_symmetry_group))
 * 
 *     def commutator_subgroup(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the commutator subgroup of the SymmetryGroup
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_31commutator_subgroup(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_30commutator_subgroup, "\n        Return the commutator subgroup of the SymmetryGroup\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S\n        D4\n        >>> S.commutator_subgroup()\n        Z/2\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_31commutator_subgroup = {"commutator_subgroup", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_31commutator_subgroup, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_30commutator_subgroup};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_31commutator_subgroup(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("commutator_subgroup (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("commutator_subgroup", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("commutator_subgroup", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_30commutator_subgroup(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_30commutator_subgroup(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  SymmetryGroup *__pyx_v_c_comm_subgroup;
  struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_comm_subgroup = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  SymmetryGroup *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("commutator_subgroup", 0);

  /* "cython/core/symmetry_group.pyx":231
 *         cdef SymmetryGroup comm_subgroup
 * 
 *         c_comm_subgroup = get_commutator_subgroup(self.c_symmetry_group)             # <<<<<<<<<<<<<<
 *         comm_subgroup = SymmetryGroup(self.is_full_group(), True)
 *         comm_subgroup._set_c_symmetry_group(c_comm_subgroup)
*/
  __pyx_t_1 = get_commutator_subgroup(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 231, __pyx_L1_error)
  __pyx_v_c_comm_subgroup = __pyx_t_1;

  /* "cython/core/symmetry_group.pyx":232
 * 
 *         c_comm_subgroup = get_commutator_subgroup(self.c_symmetry_group)
 *         comm_subgroup = SymmetryGroup(self.is_full_group(), True)             # <<<<<<<<<<<<<<
 *         comm_subgroup._set_c_symmetry_group(c_comm_subgroup)
 *         return comm_subgroup
*/
  __pyx_t_3 = NULL;
  __pyx_t_5 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_full_group, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(9, 232, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_t_4, Py_True};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 232, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  __pyx_v_comm_subgroup = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/symmetry_group.pyx":233
 *         c_comm_subgroup = get_commutator_subgroup(self.c_symmetry_group)
 *         comm_subgroup = SymmetryGroup(self.is_full_group(), True)
 *         comm_subgroup._set_c_symmetry_group(c_comm_subgroup)             # <<<<<<<<<<<<<<
 *         return comm_subgroup
 * 
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *)__pyx_v_comm_subgroup->__pyx_vtab)->_set_c_symmetry_group(__pyx_v_comm_subgroup, __pyx_v_c_comm_subgroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/symmetry_group.pyx":234
 *         comm_subgroup = SymmetryGroup(self.is_full_group(), True)
 *         comm_subgroup._set_c_symmetry_group(c_comm_subgroup)
 *         return comm_subgroup             # <<<<<<<<<<<<<<
 * 
 *     def abelianization(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_comm_subgroup);
  __pyx_r = ((PyObject *)__pyx_v_comm_subgroup);
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":218
 *         return B2B(symmetry_group_invertible_knot(self.c_symmetry_group))
 * 
 *     def commutator_subgroup(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the commutator subgroup of the SymmetryGroup
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.commutator_subgroup", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_comm_subgroup);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":236
 *         return comm_subgroup
 * 
 *     def abelianization(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the abelianization of the symmetry group
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_33abelianization(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_32abelianization, "\n        Return the abelianization of the symmetry group\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.abelianization()\n        Z/2 + Z/2\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_33abelianization = {"abelianization", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_33abelianization, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_32abelianization};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_33abelianization(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("abelianization (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("abelianization", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("abelianization", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_32abelianization(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_32abelianization(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  SymmetryGroup *__pyx_v_c_abelianization;
  struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_abelianization = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  SymmetryGroup *__pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("abelianization", 0);

  /* "cython/core/symmetry_group.pyx":245
 *         """
 * 
 *         if not self.is_full_group():             # <<<<<<<<<<<<<<
 *             raise ValueError('The full symmetry group is not known.')
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_full_group, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 245, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = (!__pyx_t_4);
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/symmetry_group.pyx":246
 * 
 *         if not self.is_full_group():
 *             raise ValueError('The full symmetry group is not known.')             # <<<<<<<<<<<<<<
 * 
 *         cdef c_SymmetryGroup* c_abelianization
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_full_symmetry_group_is_not_k};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 246, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(9, 246, __pyx_L1_error)

    /* "cython/core/symmetry_group.pyx":245
 *         """
 * 
 *         if not self.is_full_group():             # <<<<<<<<<<<<<<
 *             raise ValueError('The full symmetry group is not known.')
 * 
*/
  }

  /* "cython/core/symmetry_group.pyx":251
 *         cdef SymmetryGroup abelianization
 * 
 *         c_abelianization = get_abelianization(self.c_symmetry_group)             # <<<<<<<<<<<<<<
 *         abelianization = SymmetryGroup(self.is_full_group(), True)
 *         abelianization._set_c_symmetry_group(c_abelianization)
*/
  __pyx_t_6 = get_abelianization(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 251, __pyx_L1_error)
  __pyx_v_c_abelianization = __pyx_t_6;

  /* "cython/core/symmetry_group.pyx":252
 * 
 *         c_abelianization = get_abelianization(self.c_symmetry_group)
 *         abelianization = SymmetryGroup(self.is_full_group(), True)             # <<<<<<<<<<<<<<
 *         abelianization._set_c_symmetry_group(c_abelianization)
 *         return abelianization.abelian_description()
*/
  __pyx_t_2 = NULL;
  __pyx_t_8 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_full_group, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 252, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_7, Py_True};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 252, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_abelianization = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":253
 *         c_abelianization = get_abelianization(self.c_symmetry_group)
 *         abelianization = SymmetryGroup(self.is_full_group(), True)
 *         abelianization._set_c_symmetry_group(c_abelianization)             # <<<<<<<<<<<<<<
 *         return abelianization.abelian_description()
 * 
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *)__pyx_v_abelianization->__pyx_vtab)->_set_c_symmetry_group(__pyx_v_abelianization, __pyx_v_c_abelianization); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":254
 *         abelianization = SymmetryGroup(self.is_full_group(), True)
 *         abelianization._set_c_symmetry_group(c_abelianization)
 *         return abelianization.abelian_description()             # <<<<<<<<<<<<<<
 * 
 *     def center(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_7 = ((PyObject *)__pyx_v_abelianization);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_abelian_description, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":236
 *         return comm_subgroup
 * 
 *     def abelianization(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the abelianization of the symmetry group
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.abelianization", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_abelianization);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":256
 *         return abelianization.abelian_description()
 * 
 *     def center(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the center of the symmetry group
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_35center(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_34center, "\n        Return the center of the symmetry group\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.center()\n        Z/2\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_35center = {"center", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_35center, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_34center};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_35center(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("center (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("center", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("center", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_34center(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_34center(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  SymmetryGroup *__pyx_v_c_center;
  struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_center = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  SymmetryGroup *__pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("center", 0);

  /* "cython/core/symmetry_group.pyx":265
 *         """
 * 
 *         if not self.is_full_group():             # <<<<<<<<<<<<<<
 *             raise ValueError('The full symmetry group not known.')
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_full_group, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(9, 265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_5 = (!__pyx_t_4);
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/symmetry_group.pyx":266
 * 
 *         if not self.is_full_group():
 *             raise ValueError('The full symmetry group not known.')             # <<<<<<<<<<<<<<
 * 
 *         cdef c_SymmetryGroup* c_center
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_full_symmetry_group_not_know};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 266, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(9, 266, __pyx_L1_error)

    /* "cython/core/symmetry_group.pyx":265
 *         """
 * 
 *         if not self.is_full_group():             # <<<<<<<<<<<<<<
 *             raise ValueError('The full symmetry group not known.')
 * 
*/
  }

  /* "cython/core/symmetry_group.pyx":271
 *         cdef SymmetryGroup center
 * 
 *         c_center = get_center(self.c_symmetry_group)             # <<<<<<<<<<<<<<
 *         center = SymmetryGroup(self.is_full_group(), True)
 *         center._set_c_symmetry_group(c_center)
*/
  __pyx_t_6 = get_center(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 271, __pyx_L1_error)
  __pyx_v_c_center = __pyx_t_6;

  /* "cython/core/symmetry_group.pyx":272
 * 
 *         c_center = get_center(self.c_symmetry_group)
 *         center = SymmetryGroup(self.is_full_group(), True)             # <<<<<<<<<<<<<<
 *         center._set_c_symmetry_group(c_center)
 *         return center.abelian_description()
*/
  __pyx_t_2 = NULL;
  __pyx_t_8 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
    __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_is_full_group, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 272, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_7, Py_True};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 272, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_1);
  }
  __pyx_v_center = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":273
 *         c_center = get_center(self.c_symmetry_group)
 *         center = SymmetryGroup(self.is_full_group(), True)
 *         center._set_c_symmetry_group(c_center)             # <<<<<<<<<<<<<<
 *         return center.abelian_description()
 * 
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_SymmetryGroup *)__pyx_v_center->__pyx_vtab)->_set_c_symmetry_group(__pyx_v_center, __pyx_v_c_center); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":274
 *         center = SymmetryGroup(self.is_full_group(), True)
 *         center._set_c_symmetry_group(c_center)
 *         return center.abelian_description()             # <<<<<<<<<<<<<<
 * 
 *     def multiply_elements(self, i, j):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_7 = ((PyObject *)__pyx_v_center);
  __Pyx_INCREF(__pyx_t_7);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_abelian_description, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":256
 *         return abelianization.abelian_description()
 * 
 *     def center(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the center of the symmetry group
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.center", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_center);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":276
 *         return center.abelian_description()
 * 
 *     def multiply_elements(self, i, j):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the product of group elements i and j.  The convention
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_37multiply_elements(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_36multiply_elements, "\n        Returns the product of group elements i and j.  The convention\n        is that products of symmetries read right to left.  That is,\n        the composition (symmetry[i] o symmetry[j]) acts by first\n        doing symmetry[j], then symmetry[i].\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.multiply_elements(2, 3)\n        1\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_37multiply_elements = {"multiply_elements", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_37multiply_elements, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_36multiply_elements};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_37multiply_elements(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_i = 0;
  PyObject *__pyx_v_j = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("multiply_elements (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_i,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(9, 276, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(9, 276, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 276, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "multiply_elements", 0) < (0)) __PYX_ERR(9, 276, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("multiply_elements", 1, 2, 2, i); __PYX_ERR(9, 276, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(9, 276, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(9, 276, __pyx_L3_error)
    }
    __pyx_v_i = values[0];
    __pyx_v_j = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("multiply_elements", 1, 2, 2, __pyx_nargs); __PYX_ERR(9, 276, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.multiply_elements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_36multiply_elements(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self), __pyx_v_i, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_36multiply_elements(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self, PyObject *__pyx_v_i, PyObject *__pyx_v_j) {
  PyObject *__pyx_v_order = NULL;
  PyObject *__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("multiply_elements", 0);

  /* "cython/core/symmetry_group.pyx":287
 *         1
 *         """
 *         order = self.order()             # <<<<<<<<<<<<<<
 *         for x in [i, j]:
 *             if not (0 <= x < order):
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_order, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_order = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/symmetry_group.pyx":288
 *         """
 *         order = self.order()
 *         for x in [i, j]:             # <<<<<<<<<<<<<<
 *             if not (0 <= x < order):
 *                 raise ValueError('The symmetry group has only %d '
*/
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_i);
  __Pyx_GIVEREF(__pyx_v_i);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_i) != (0)) __PYX_ERR(9, 288, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_j);
  __Pyx_GIVEREF(__pyx_v_j);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_j) != (0)) __PYX_ERR(9, 288, __pyx_L1_error);
  __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (__pyx_t_4 >= 2) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4));
    #else
    __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4);
    #endif
    ++__pyx_t_4;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_x, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/symmetry_group.pyx":289
 *         order = self.order()
 *         for x in [i, j]:
 *             if not (0 <= x < order):             # <<<<<<<<<<<<<<
 *                 raise ValueError('The symmetry group has only %d '
 *                                  'elements.' % order)
*/
    __pyx_t_1 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_x, Py_LE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 289, __pyx_L1_error)
    if (__Pyx_PyObject_IsTrue(__pyx_t_1)) {
      __Pyx_DECREF(__pyx_t_1);
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_x, __pyx_v_order, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 289, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(9, 289, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_6 = (!__pyx_t_5);
    if (unlikely(__pyx_t_6)) {

      /* "cython/core/symmetry_group.pyx":290
 *         for x in [i, j]:
 *             if not (0 <= x < order):
 *                 raise ValueError('The symmetry group has only %d '             # <<<<<<<<<<<<<<
 *                                  'elements.' % order)
 * 
*/
      __pyx_t_7 = NULL;

      /* "cython/core/symmetry_group.pyx":291
 *             if not (0 <= x < order):
 *                 raise ValueError('The symmetry group has only %d '
 *                                  'elements.' % order)             # <<<<<<<<<<<<<<
 * 
 *         return symmetry_group_product(self.c_symmetry_group, i, j)
*/
      __pyx_t_8 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_The_symmetry_group_has_only_d_el, __pyx_v_order); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 291, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_3 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_8};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 290, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(9, 290, __pyx_L1_error)

      /* "cython/core/symmetry_group.pyx":289
 *         order = self.order()
 *         for x in [i, j]:
 *             if not (0 <= x < order):             # <<<<<<<<<<<<<<
 *                 raise ValueError('The symmetry group has only %d '
 *                                  'elements.' % order)
*/
    }

    /* "cython/core/symmetry_group.pyx":288
 *         """
 *         order = self.order()
 *         for x in [i, j]:             # <<<<<<<<<<<<<<
 *             if not (0 <= x < order):
 *                 raise ValueError('The symmetry group has only %d '
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/symmetry_group.pyx":293
 *                                  'elements.' % order)
 * 
 *         return symmetry_group_product(self.c_symmetry_group, i, j)             # <<<<<<<<<<<<<<
 * 
 *     def isometries(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_9 = __Pyx_PyLong_As_int(__pyx_v_i); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(9, 293, __pyx_L1_error)
  __pyx_t_10 = __Pyx_PyLong_As_int(__pyx_v_j); if (unlikely((__pyx_t_10 == (int)-1) && PyErr_Occurred())) __PYX_ERR(9, 293, __pyx_L1_error)
  __pyx_t_11 = symmetry_group_product(__pyx_v_self->c_symmetry_group, __pyx_t_9, __pyx_t_10); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 293, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":276
 *         return center.abelian_description()
 * 
 *     def multiply_elements(self, i, j):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the product of group elements i and j.  The convention
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.multiply_elements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_order);
  __Pyx_XDECREF(__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":295
 *         return symmetry_group_product(self.c_symmetry_group, i, j)
 * 
 *     def isometries(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a detailed list of all the isometries in the symmetry group.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_39isometries(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_13SymmetryGroup_38isometries, "\n        Return a detailed list of all the isometries in the symmetry group.\n\n        >>> S = Manifold('s959').symmetry_group()\n        >>> isoms = S.isometries()\n        >>> isoms[8]\n        0 -> 1   1 -> 0\n        [-1 -1]  [ 0  1]\n        [ 1  0]  [-1 -1]\n        Does not extend to link\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_39isometries = {"isometries", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_39isometries, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_38isometries};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_39isometries(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("isometries (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("isometries", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("isometries", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_38isometries(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_38isometries(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  IsometryList *__pyx_v_isometries;
  PyObject *__pyx_v_ans = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  IsometryList *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("isometries", 0);

  /* "cython/core/symmetry_group.pyx":309
 *         cdef IsometryList *isometries
 * 
 *         isometries = get_symmetry_list(self.c_symmetry_group)             # <<<<<<<<<<<<<<
 *         ans = IsometryListToIsometries(isometries)
 *         return ans
*/
  __pyx_t_1 = get_symmetry_list(__pyx_v_self->c_symmetry_group); if (unlikely(PyErr_Occurred())) __PYX_ERR(9, 309, __pyx_L1_error)
  __pyx_v_isometries = __pyx_t_1;

  /* "cython/core/symmetry_group.pyx":310
 * 
 *         isometries = get_symmetry_list(self.c_symmetry_group)
 *         ans = IsometryListToIsometries(isometries)             # <<<<<<<<<<<<<<
 *         return ans
*/
  __pyx_t_2 = __pyx_f_6SnapPy_IsometryListToIsometries(__pyx_v_isometries); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_ans = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/symmetry_group.pyx":311
 *         isometries = get_symmetry_list(self.c_symmetry_group)
 *         ans = IsometryListToIsometries(isometries)
 *         return ans             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_ans);
  __pyx_r = __pyx_v_ans;
  goto __pyx_L0;

  /* "cython/core/symmetry_group.pyx":295
 *         return symmetry_group_product(self.c_symmetry_group, i, j)
 * 
 *     def isometries(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a detailed list of all the isometries in the symmetry group.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.isometries", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ans);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":13
 *     """
 *     cdef c_SymmetryGroup *c_symmetry_group
 *     cdef readonly _is_full_group             # <<<<<<<<<<<<<<
 *     cdef readonly _owns_c_symmetry_group
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_14_is_full_group_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_14_is_full_group_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_14_is_full_group___get__(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_14_is_full_group___get__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_is_full_group);
  __pyx_r = __pyx_v_self->_is_full_group;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/symmetry_group.pyx":14
 *     cdef c_SymmetryGroup *c_symmetry_group
 *     cdef readonly _is_full_group
 *     cdef readonly _owns_c_symmetry_group             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self, is_full_group, owns_c_symmetry_group):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_22_owns_c_symmetry_group_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_22_owns_c_symmetry_group_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_22_owns_c_symmetry_group___get__(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_22_owns_c_symmetry_group___get__(struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_owns_c_symmetry_group);
  __pyx_r = __pyx_v_self->_owns_c_symmetry_group;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_41__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_41__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_41__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_41__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_40__reduce_cython__(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_40__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(7, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_43__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13SymmetryGroup_43__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_43__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13SymmetryGroup_43__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(7, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(7, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(7, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13SymmetryGroup_42__setstate_cython__(((struct __pyx_obj_6SnapPy_SymmetryGroup *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13SymmetryGroup_42__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_SymmetryGroup *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(7, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.SymmetryGroup.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":3
 * # Dirichlet Domains
 * 
 * cdef (WEPolyhedron*, int) get_generators_from_bytes(data_bytes,             # <<<<<<<<<<<<<<
 *                                                     double vertex_epsilon,
 *                                                     displacement,
*/

static __pyx_ctuple_WEPolyhedron__ptr__and_int __pyx_f_6SnapPy_get_generators_from_bytes(PyObject *__pyx_v_data_bytes, double __pyx_v_vertex_epsilon, PyObject *__pyx_v_displacement, CYTHON_UNUSED PyObject *__pyx_v_centroid_at_origin, PyObject *__pyx_v_maximize_injectivity_radius, PyObject *__pyx_v_include_words) {
  int __pyx_v_num_gens;
  PyObject *__pyx_v_data = NULL;
  PyObject *__pyx_v_nums = NULL;
  PyObject *__pyx_v_line = NULL;
  O31Matrix *__pyx_v_generators;
  MoebiusTransformation *__pyx_v_temp_gens;
  int __pyx_v_i;
  long __pyx_v_j;
  long __pyx_v_k;
  PyObject *__pyx_v_num_string = NULL;
  WEPolyhedron *__pyx_v_dirichlet_domain;
  double __pyx_v_c_displacement[3];
  long __pyx_v_n;
  __pyx_ctuple_WEPolyhedron__ptr__and_int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  long __pyx_t_11;
  long __pyx_t_12;
  char *__pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  Boolean __pyx_t_15;
  double __pyx_t_16;
  Boolean __pyx_t_17;
  WEPolyhedron *__pyx_t_18;
  __pyx_ctuple_WEPolyhedron__ptr__and_int __pyx_t_19;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_generators_from_bytes", 0);

  /* "cython/core/dirichlet.pyx":12
 *     cdef int num_gens
 * 
 *     data = data_bytes.split(b'\n')             # <<<<<<<<<<<<<<
 *     if data[0].strip() != b'% Generators':
 *         raise ValueError('The generator data does not start with '
*/
  __pyx_t_2 = __pyx_v_data_bytes;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_b_};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_split, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 12, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_data = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":13
 * 
 *     data = data_bytes.split(b'\n')
 *     if data[0].strip() != b'% Generators':             # <<<<<<<<<<<<<<
 *         raise ValueError('The generator data does not start with '
 *                          '"% Generators"')
*/
  __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_data, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 13, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __pyx_t_4;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_5 = (__Pyx_PyBytes_Equals(__pyx_t_1, __pyx_mstate_global->__pyx_kp_b_Generators_2, Py_NE)); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(10, 13, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/dirichlet.pyx":14
 *     data = data_bytes.split(b'\n')
 *     if data[0].strip() != b'% Generators':
 *         raise ValueError('The generator data does not start with '             # <<<<<<<<<<<<<<
 *                          '"% Generators"')
 *     nums = []
*/
    __pyx_t_4 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_generator_data_does_not_star};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 14, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(10, 14, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":13
 * 
 *     data = data_bytes.split(b'\n')
 *     if data[0].strip() != b'% Generators':             # <<<<<<<<<<<<<<
 *         raise ValueError('The generator data does not start with '
 *                          '"% Generators"')
*/
  }

  /* "cython/core/dirichlet.pyx":16
 *         raise ValueError('The generator data does not start with '
 *                          '"% Generators"')
 *     nums = []             # <<<<<<<<<<<<<<
 *     for line in data[1:]:
 *         nums += line.split()
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_nums = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":17
 *                          '"% Generators"')
 *     nums = []
 *     for line in data[1:]:             # <<<<<<<<<<<<<<
 *         nums += line.split()
 *     num_gens = int(nums[0])
*/
  __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_data, 1, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[5], 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4);
    __pyx_t_6 = 0;
    __pyx_t_7 = NULL;
  } else {
    __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 17, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 17, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_7)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 17, __pyx_L1_error)
          #endif
          if (__pyx_t_6 >= __pyx_temp) break;
        }
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_4, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_6;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 17, __pyx_L1_error)
          #endif
          if (__pyx_t_6 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6));
        #else
        __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_6);
        #endif
        ++__pyx_t_6;
      }
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 17, __pyx_L1_error)
    } else {
      __pyx_t_1 = __pyx_t_7(__pyx_t_4);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(10, 17, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_line, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":18
 *     nums = []
 *     for line in data[1:]:
 *         nums += line.split()             # <<<<<<<<<<<<<<
 *     num_gens = int(nums[0])
 *     nums.pop(0)
*/
    __pyx_t_2 = __pyx_v_line;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_split, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 18, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_nums, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 18, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_nums, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/dirichlet.pyx":17
 *                          '"% Generators"')
 *     nums = []
 *     for line in data[1:]:             # <<<<<<<<<<<<<<
 *         nums += line.split()
 *     num_gens = int(nums[0])
*/
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/dirichlet.pyx":19
 *     for line in data[1:]:
 *         nums += line.split()
 *     num_gens = int(nums[0])             # <<<<<<<<<<<<<<
 *     nums.pop(0)
 * 
*/
  __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_nums, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_8 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(10, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_num_gens = __pyx_t_8;

  /* "cython/core/dirichlet.pyx":20
 *         nums += line.split()
 *     num_gens = int(nums[0])
 *     nums.pop(0)             # <<<<<<<<<<<<<<
 * 
 *     cdef O31Matrix *generators
*/
  __pyx_t_2 = __Pyx_PyObject_PopIndex(__pyx_v_nums, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 20, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/dirichlet.pyx":24
 *     cdef O31Matrix *generators
 *     cdef MoebiusTransformation *temp_gens
 *     if len(nums) == 16 * num_gens:             # <<<<<<<<<<<<<<
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))
 *         for i in range(num_gens):
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_nums); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(10, 24, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_6 == (16 * __pyx_v_num_gens));
  if (__pyx_t_5) {

    /* "cython/core/dirichlet.pyx":25
 *     cdef MoebiusTransformation *temp_gens
 *     if len(nums) == 16 * num_gens:
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))             # <<<<<<<<<<<<<<
 *         for i in range(num_gens):
 *             for j in range(4):
*/
    __pyx_v_generators = ((O31Matrix *)malloc((__pyx_v_num_gens * (sizeof(O31Matrix)))));

    /* "cython/core/dirichlet.pyx":26
 *     if len(nums) == 16 * num_gens:
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))
 *         for i in range(num_gens):             # <<<<<<<<<<<<<<
 *             for j in range(4):
 *                 for k in range(4):
*/
    __pyx_t_8 = __pyx_v_num_gens;
    __pyx_t_9 = __pyx_t_8;
    for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
      __pyx_v_i = __pyx_t_10;

      /* "cython/core/dirichlet.pyx":27
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))
 *         for i in range(num_gens):
 *             for j in range(4):             # <<<<<<<<<<<<<<
 *                 for k in range(4):
 *                     num_string = nums.pop(0)  # save a reference
*/
      for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
        __pyx_v_j = __pyx_t_11;

        /* "cython/core/dirichlet.pyx":28
 *         for i in range(num_gens):
 *             for j in range(4):
 *                 for k in range(4):             # <<<<<<<<<<<<<<
 *                     num_string = nums.pop(0)  # save a reference
 *                     generators[i][j][k] = <Real_struct>Real_from_string(
*/
        for (__pyx_t_12 = 0; __pyx_t_12 < 4; __pyx_t_12+=1) {
          __pyx_v_k = __pyx_t_12;

          /* "cython/core/dirichlet.pyx":29
 *             for j in range(4):
 *                 for k in range(4):
 *                     num_string = nums.pop(0)  # save a reference             # <<<<<<<<<<<<<<
 *                     generators[i][j][k] = <Real_struct>Real_from_string(
 *                         <char*>num_string)
*/
          __pyx_t_2 = __Pyx_PyObject_PopIndex(__pyx_v_nums, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 29, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_XDECREF_SET(__pyx_v_num_string, __pyx_t_2);
          __pyx_t_2 = 0;

          /* "cython/core/dirichlet.pyx":31
 *                     num_string = nums.pop(0)  # save a reference
 *                     generators[i][j][k] = <Real_struct>Real_from_string(
 *                         <char*>num_string)             # <<<<<<<<<<<<<<
 *     elif len(nums) == 8*num_gens:
 *         temp_gens = <MoebiusTransformation *>malloc(
*/
          __pyx_t_13 = __Pyx_PyObject_AsWritableString(__pyx_v_num_string); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(10, 31, __pyx_L1_error)

          /* "cython/core/dirichlet.pyx":30
 *                 for k in range(4):
 *                     num_string = nums.pop(0)  # save a reference
 *                     generators[i][j][k] = <Real_struct>Real_from_string(             # <<<<<<<<<<<<<<
 *                         <char*>num_string)
 *     elif len(nums) == 8*num_gens:
*/
          (((__pyx_v_generators[__pyx_v_i])[__pyx_v_j])[__pyx_v_k]) = Real_from_string(((char *)__pyx_t_13));
        }
      }
    }

    /* "cython/core/dirichlet.pyx":24
 *     cdef O31Matrix *generators
 *     cdef MoebiusTransformation *temp_gens
 *     if len(nums) == 16 * num_gens:             # <<<<<<<<<<<<<<
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))
 *         for i in range(num_gens):
*/
    goto __pyx_L7;
  }

  /* "cython/core/dirichlet.pyx":32
 *                     generators[i][j][k] = <Real_struct>Real_from_string(
 *                         <char*>num_string)
 *     elif len(nums) == 8*num_gens:             # <<<<<<<<<<<<<<
 *         temp_gens = <MoebiusTransformation *>malloc(
 *             num_gens*sizeof(MoebiusTransformation))
*/
  __pyx_t_6 = PyObject_Length(__pyx_v_nums); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(10, 32, __pyx_L1_error)
  __pyx_t_5 = (__pyx_t_6 == (8 * __pyx_v_num_gens));
  if (likely(__pyx_t_5)) {

    /* "cython/core/dirichlet.pyx":33
 *                         <char*>num_string)
 *     elif len(nums) == 8*num_gens:
 *         temp_gens = <MoebiusTransformation *>malloc(             # <<<<<<<<<<<<<<
 *             num_gens*sizeof(MoebiusTransformation))
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))
*/
    __pyx_v_temp_gens = ((MoebiusTransformation *)malloc((__pyx_v_num_gens * (sizeof(MoebiusTransformation)))));

    /* "cython/core/dirichlet.pyx":35
 *         temp_gens = <MoebiusTransformation *>malloc(
 *             num_gens*sizeof(MoebiusTransformation))
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))             # <<<<<<<<<<<<<<
 *         for i in range(num_gens):
 *             temp_gens[i].parity = orientation_preserving
*/
    __pyx_v_generators = ((O31Matrix *)malloc((__pyx_v_num_gens * (sizeof(O31Matrix)))));

    /* "cython/core/dirichlet.pyx":36
 *             num_gens*sizeof(MoebiusTransformation))
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))
 *         for i in range(num_gens):             # <<<<<<<<<<<<<<
 *             temp_gens[i].parity = orientation_preserving
 *             for j in range(2):
*/
    __pyx_t_8 = __pyx_v_num_gens;
    __pyx_t_9 = __pyx_t_8;
    for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
      __pyx_v_i = __pyx_t_10;

      /* "cython/core/dirichlet.pyx":37
 *         generators = <O31Matrix *>malloc(num_gens*sizeof(O31Matrix))
 *         for i in range(num_gens):
 *             temp_gens[i].parity = orientation_preserving             # <<<<<<<<<<<<<<
 *             for j in range(2):
 *                 for k in range(2):
*/
      (__pyx_v_temp_gens[__pyx_v_i]).parity = orientation_preserving;

      /* "cython/core/dirichlet.pyx":38
 *         for i in range(num_gens):
 *             temp_gens[i].parity = orientation_preserving
 *             for j in range(2):             # <<<<<<<<<<<<<<
 *                 for k in range(2):
 *                     num_string = nums.pop(0)  # save a reference
*/
      for (__pyx_t_11 = 0; __pyx_t_11 < 2; __pyx_t_11+=1) {
        __pyx_v_j = __pyx_t_11;

        /* "cython/core/dirichlet.pyx":39
 *             temp_gens[i].parity = orientation_preserving
 *             for j in range(2):
 *                 for k in range(2):             # <<<<<<<<<<<<<<
 *                     num_string = nums.pop(0)  # save a reference
 *                     temp_gens[i].matrix[j][k].real = Real_from_string(
*/
        for (__pyx_t_12 = 0; __pyx_t_12 < 2; __pyx_t_12+=1) {
          __pyx_v_k = __pyx_t_12;

          /* "cython/core/dirichlet.pyx":40
 *             for j in range(2):
 *                 for k in range(2):
 *                     num_string = nums.pop(0)  # save a reference             # <<<<<<<<<<<<<<
 *                     temp_gens[i].matrix[j][k].real = Real_from_string(
 *                         <char*>num_string)
*/
          __pyx_t_2 = __Pyx_PyObject_PopIndex(__pyx_v_nums, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 40, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_XDECREF_SET(__pyx_v_num_string, __pyx_t_2);
          __pyx_t_2 = 0;

          /* "cython/core/dirichlet.pyx":42
 *                     num_string = nums.pop(0)  # save a reference
 *                     temp_gens[i].matrix[j][k].real = Real_from_string(
 *                         <char*>num_string)             # <<<<<<<<<<<<<<
 *                     num_string = nums.pop(0)  # save a reference
 *                     temp_gens[i].matrix[j][k].imag = Real_from_string(
*/
          __pyx_t_13 = __Pyx_PyObject_AsWritableString(__pyx_v_num_string); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(10, 42, __pyx_L1_error)

          /* "cython/core/dirichlet.pyx":41
 *                 for k in range(2):
 *                     num_string = nums.pop(0)  # save a reference
 *                     temp_gens[i].matrix[j][k].real = Real_from_string(             # <<<<<<<<<<<<<<
 *                         <char*>num_string)
 *                     num_string = nums.pop(0)  # save a reference
*/
          (((__pyx_v_temp_gens[__pyx_v_i]).matrix[__pyx_v_j])[__pyx_v_k]).real = Real_from_string(((char *)__pyx_t_13));

          /* "cython/core/dirichlet.pyx":43
 *                     temp_gens[i].matrix[j][k].real = Real_from_string(
 *                         <char*>num_string)
 *                     num_string = nums.pop(0)  # save a reference             # <<<<<<<<<<<<<<
 *                     temp_gens[i].matrix[j][k].imag = Real_from_string(
 *                         <char*>num_string)
*/
          __pyx_t_2 = __Pyx_PyObject_PopIndex(__pyx_v_nums, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 43, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF_SET(__pyx_v_num_string, __pyx_t_2);
          __pyx_t_2 = 0;

          /* "cython/core/dirichlet.pyx":45
 *                     num_string = nums.pop(0)  # save a reference
 *                     temp_gens[i].matrix[j][k].imag = Real_from_string(
 *                         <char*>num_string)             # <<<<<<<<<<<<<<
 *         Moebius_array_to_O31_array(temp_gens, generators, num_gens)
 *         free(temp_gens)
*/
          __pyx_t_13 = __Pyx_PyObject_AsWritableString(__pyx_v_num_string); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(10, 45, __pyx_L1_error)

          /* "cython/core/dirichlet.pyx":44
 *                         <char*>num_string)
 *                     num_string = nums.pop(0)  # save a reference
 *                     temp_gens[i].matrix[j][k].imag = Real_from_string(             # <<<<<<<<<<<<<<
 *                         <char*>num_string)
 *         Moebius_array_to_O31_array(temp_gens, generators, num_gens)
*/
          (((__pyx_v_temp_gens[__pyx_v_i]).matrix[__pyx_v_j])[__pyx_v_k]).imag = Real_from_string(((char *)__pyx_t_13));
        }
      }
    }

    /* "cython/core/dirichlet.pyx":46
 *                     temp_gens[i].matrix[j][k].imag = Real_from_string(
 *                         <char*>num_string)
 *         Moebius_array_to_O31_array(temp_gens, generators, num_gens)             # <<<<<<<<<<<<<<
 *         free(temp_gens)
 *     else:
*/
    Moebius_array_to_O31_array(__pyx_v_temp_gens, __pyx_v_generators, __pyx_v_num_gens); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 46, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":47
 *                         <char*>num_string)
 *         Moebius_array_to_O31_array(temp_gens, generators, num_gens)
 *         free(temp_gens)             # <<<<<<<<<<<<<<
 *     else:
 *         raise ValueError('The amount of data given is not consistent '
*/
    free(__pyx_v_temp_gens);

    /* "cython/core/dirichlet.pyx":32
 *                     generators[i][j][k] = <Real_struct>Real_from_string(
 *                         <char*>num_string)
 *     elif len(nums) == 8*num_gens:             # <<<<<<<<<<<<<<
 *         temp_gens = <MoebiusTransformation *>malloc(
 *             num_gens*sizeof(MoebiusTransformation))
*/
    goto __pyx_L7;
  }

  /* "cython/core/dirichlet.pyx":49
 *         free(temp_gens)
 *     else:
 *         raise ValueError('The amount of data given is not consistent '             # <<<<<<<<<<<<<<
 *                          'with %d O31 or SL2C matrices.' % num_gens)
 * 
*/
  /*else*/ {
    __pyx_t_4 = NULL;

    /* "cython/core/dirichlet.pyx":50
 *     else:
 *         raise ValueError('The amount of data given is not consistent '
 *                          'with %d O31 or SL2C matrices.' % num_gens)             # <<<<<<<<<<<<<<
 * 
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):
*/
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_num_gens); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 50, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_14 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_The_amount_of_data_given_is_not, __pyx_t_1); if (unlikely(!__pyx_t_14)) __PYX_ERR(10, 50, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_14};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 49, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(10, 49, __pyx_L1_error)
  }
  __pyx_L7:;

  /* "cython/core/dirichlet.pyx":52
 *                          'with %d O31 or SL2C matrices.' % num_gens)
 * 
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):             # <<<<<<<<<<<<<<
 *         raise ValueError('The data given do not have the '
 *                          'right determinants.')
*/
  __pyx_t_15 = O31_determinants_OK(__pyx_v_generators, __pyx_v_num_gens, det_error_epsilon); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 52, __pyx_L1_error)
  __pyx_t_5 = (!(__pyx_t_15 != 0));
  if (unlikely(__pyx_t_5)) {

    /* "cython/core/dirichlet.pyx":53
 * 
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):
 *         raise ValueError('The data given do not have the '             # <<<<<<<<<<<<<<
 *                          'right determinants.')
 * 
*/
    __pyx_t_14 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_14, __pyx_mstate_global->__pyx_kp_u_The_data_given_do_not_have_the_r};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(10, 53, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":52
 *                          'with %d O31 or SL2C matrices.' % num_gens)
 * 
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):             # <<<<<<<<<<<<<<
 *         raise ValueError('The data given do not have the '
 *                          'right determinants.')
*/
  }

  /* "cython/core/dirichlet.pyx":58
 *     cdef WEPolyhedron *dirichlet_domain
 *     cdef double c_displacement[3]
 *     for n from 0 <= n < 3:             # <<<<<<<<<<<<<<
 *         c_displacement[n] = <double>displacement[n]
 *     dirichlet_domain = Dirichlet_from_generators_with_displacement(
*/
  for (__pyx_v_n = 0; __pyx_v_n < 3; __pyx_v_n++) {

    /* "cython/core/dirichlet.pyx":59
 *     cdef double c_displacement[3]
 *     for n from 0 <= n < 3:
 *         c_displacement[n] = <double>displacement[n]             # <<<<<<<<<<<<<<
 *     dirichlet_domain = Dirichlet_from_generators_with_displacement(
 *         generators, num_gens, c_displacement, vertex_epsilon,
*/
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_displacement, __pyx_v_n, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 59, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_16 = __Pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_16 == (double)-1) && PyErr_Occurred())) __PYX_ERR(10, 59, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    (__pyx_v_c_displacement[__pyx_v_n]) = ((double)__pyx_t_16);
  }

  /* "cython/core/dirichlet.pyx":62
 *     dirichlet_domain = Dirichlet_from_generators_with_displacement(
 *         generators, num_gens, c_displacement, vertex_epsilon,
 *         Dirichlet_keep_going, maximize_injectivity_radius,             # <<<<<<<<<<<<<<
 *         include_words)
 *     free(generators)
*/
  __pyx_t_15 = __Pyx_PyLong_As_Boolean(__pyx_v_maximize_injectivity_radius); if (unlikely((__pyx_t_15 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 62, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":63
 *         generators, num_gens, c_displacement, vertex_epsilon,
 *         Dirichlet_keep_going, maximize_injectivity_radius,
 *         include_words)             # <<<<<<<<<<<<<<
 *     free(generators)
 *     return dirichlet_domain, num_gens
*/
  __pyx_t_17 = __Pyx_PyLong_As_Boolean(__pyx_v_include_words); if (unlikely((__pyx_t_17 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 63, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":60
 *     for n from 0 <= n < 3:
 *         c_displacement[n] = <double>displacement[n]
 *     dirichlet_domain = Dirichlet_from_generators_with_displacement(             # <<<<<<<<<<<<<<
 *         generators, num_gens, c_displacement, vertex_epsilon,
 *         Dirichlet_keep_going, maximize_injectivity_radius,
*/
  __pyx_t_18 = Dirichlet_from_generators_with_displacement(__pyx_v_generators, __pyx_v_num_gens, __pyx_v_c_displacement, __pyx_v_vertex_epsilon, Dirichlet_keep_going, __pyx_t_15, __pyx_t_17); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 60, __pyx_L1_error)
  __pyx_v_dirichlet_domain = __pyx_t_18;

  /* "cython/core/dirichlet.pyx":64
 *         Dirichlet_keep_going, maximize_injectivity_radius,
 *         include_words)
 *     free(generators)             # <<<<<<<<<<<<<<
 *     return dirichlet_domain, num_gens
 * 
*/
  free(__pyx_v_generators);

  /* "cython/core/dirichlet.pyx":65
 *         include_words)
 *     free(generators)
 *     return dirichlet_domain, num_gens             # <<<<<<<<<<<<<<
 * 
 * cdef WEPolyhedron* dirichlet_from_O31_matrix_list(matrices,
*/
  __pyx_t_19.f0 = __pyx_v_dirichlet_domain;
  __pyx_t_19.f1 = __pyx_v_num_gens;
  __pyx_r = __pyx_t_19;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":3
 * # Dirichlet Domains
 * 
 * cdef (WEPolyhedron*, int) get_generators_from_bytes(data_bytes,             # <<<<<<<<<<<<<<
 *                                                     double vertex_epsilon,
 *                                                     displacement,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("SnapPy.get_generators_from_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_data);
  __Pyx_XDECREF(__pyx_v_nums);
  __Pyx_XDECREF(__pyx_v_line);
  __Pyx_XDECREF(__pyx_v_num_string);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":67
 *     return dirichlet_domain, num_gens
 * 
 * cdef WEPolyhedron* dirichlet_from_O31_matrix_list(matrices,             # <<<<<<<<<<<<<<
 *                                                   double vertex_epsilon,
 *                                                   displacement,
*/

static WEPolyhedron *__pyx_f_6SnapPy_dirichlet_from_O31_matrix_list(PyObject *__pyx_v_matrices, double __pyx_v_vertex_epsilon, PyObject *__pyx_v_displacement, CYTHON_UNUSED PyObject *__pyx_v_centroid_at_origin, PyObject *__pyx_v_maximize_injectivity_radius, PyObject *__pyx_v_include_words) {
  WEPolyhedron *__pyx_v_c_dirichlet_domain;
  O31Matrix *__pyx_v_generators;
  int __pyx_v_i;
  int __pyx_v_j;
  int __pyx_v_k;
  int __pyx_v_num_gens;
  PyObject *__pyx_v_A = NULL;
  double __pyx_v_c_displacement[3];
  long __pyx_v_n;
  WEPolyhedron *__pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  __pyx_t_6SnapPy_Real __pyx_t_10;
  Boolean __pyx_t_11;
  int __pyx_t_12;
  size_t __pyx_t_13;
  double __pyx_t_14;
  Boolean __pyx_t_15;
  WEPolyhedron *__pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dirichlet_from_O31_matrix_list", 0);

  /* "cython/core/dirichlet.pyx":77
 *     cdef O31Matrix* generators
 *     cdef int i, j, k, num_gens
 *     num_gens = <int>len(matrices)             # <<<<<<<<<<<<<<
 *     generators = <O31Matrix*>malloc(num_gens*sizeof(O31Matrix))
 *     for i, A in enumerate(matrices):
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_matrices); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(10, 77, __pyx_L1_error)
  __pyx_v_num_gens = ((int)__pyx_t_1);

  /* "cython/core/dirichlet.pyx":78
 *     cdef int i, j, k, num_gens
 *     num_gens = <int>len(matrices)
 *     generators = <O31Matrix*>malloc(num_gens*sizeof(O31Matrix))             # <<<<<<<<<<<<<<
 *     for i, A in enumerate(matrices):
 *         for j in range(4):
*/
  __pyx_v_generators = ((O31Matrix *)malloc((__pyx_v_num_gens * (sizeof(O31Matrix)))));

  /* "cython/core/dirichlet.pyx":79
 *     num_gens = <int>len(matrices)
 *     generators = <O31Matrix*>malloc(num_gens*sizeof(O31Matrix))
 *     for i, A in enumerate(matrices):             # <<<<<<<<<<<<<<
 *         for j in range(4):
 *             for k in range(4):
*/
  __pyx_t_2 = 0;
  if (likely(PyList_CheckExact(__pyx_v_matrices)) || PyTuple_CheckExact(__pyx_v_matrices)) {
    __pyx_t_3 = __pyx_v_matrices; __Pyx_INCREF(__pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_matrices); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 79, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 79, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 79, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_5 = __Pyx_PyList_GetItemRefFast(__pyx_t_3, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_3);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 79, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1));
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_3, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 79, __pyx_L1_error)
    } else {
      __pyx_t_5 = __pyx_t_4(__pyx_t_3);
      if (unlikely(!__pyx_t_5)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(10, 79, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_A, __pyx_t_5);
    __pyx_t_5 = 0;
    __pyx_v_i = __pyx_t_2;
    __pyx_t_2 = (__pyx_t_2 + 1);

    /* "cython/core/dirichlet.pyx":80
 *     generators = <O31Matrix*>malloc(num_gens*sizeof(O31Matrix))
 *     for i, A in enumerate(matrices):
 *         for j in range(4):             # <<<<<<<<<<<<<<
 *             for k in range(4):
 *                 generators[i][j][k] = <Real_struct>Object2Real(A[j,k])
*/
    for (__pyx_t_6 = 0; __pyx_t_6 < 4; __pyx_t_6+=1) {
      __pyx_v_j = __pyx_t_6;

      /* "cython/core/dirichlet.pyx":81
 *     for i, A in enumerate(matrices):
 *         for j in range(4):
 *             for k in range(4):             # <<<<<<<<<<<<<<
 *                 generators[i][j][k] = <Real_struct>Object2Real(A[j,k])
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):
*/
      for (__pyx_t_7 = 0; __pyx_t_7 < 4; __pyx_t_7+=1) {
        __pyx_v_k = __pyx_t_7;

        /* "cython/core/dirichlet.pyx":82
 *         for j in range(4):
 *             for k in range(4):
 *                 generators[i][j][k] = <Real_struct>Object2Real(A[j,k])             # <<<<<<<<<<<<<<
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):
 *         raise ValueError('The data given do not have the '
*/
        __pyx_t_5 = __Pyx_PyLong_From_int(__pyx_v_j); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 82, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_v_k); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 82, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 82, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_5) != (0)) __PYX_ERR(10, 82, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_8) != (0)) __PYX_ERR(10, 82, __pyx_L1_error);
        __pyx_t_5 = 0;
        __pyx_t_8 = 0;
        __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_v_A, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 82, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __pyx_t_10 = __pyx_f_6SnapPy_Object2Real(__pyx_t_8); if (unlikely(__pyx_t_10 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(10, 82, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        (((__pyx_v_generators[__pyx_v_i])[__pyx_v_j])[__pyx_v_k]) = __pyx_t_10;
      }
    }

    /* "cython/core/dirichlet.pyx":79
 *     num_gens = <int>len(matrices)
 *     generators = <O31Matrix*>malloc(num_gens*sizeof(O31Matrix))
 *     for i, A in enumerate(matrices):             # <<<<<<<<<<<<<<
 *         for j in range(4):
 *             for k in range(4):
*/
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/dirichlet.pyx":83
 *             for k in range(4):
 *                 generators[i][j][k] = <Real_struct>Object2Real(A[j,k])
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):             # <<<<<<<<<<<<<<
 *         raise ValueError('The data given do not have the '
 *                          'right determinants.')
*/
  __pyx_t_11 = O31_determinants_OK(__pyx_v_generators, __pyx_v_num_gens, det_error_epsilon); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 83, __pyx_L1_error)
  __pyx_t_12 = (!(__pyx_t_11 != 0));
  if (unlikely(__pyx_t_12)) {

    /* "cython/core/dirichlet.pyx":84
 *                 generators[i][j][k] = <Real_struct>Object2Real(A[j,k])
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):
 *         raise ValueError('The data given do not have the '             # <<<<<<<<<<<<<<
 *                          'right determinants.')
 *     cdef double c_displacement[3]
*/
    __pyx_t_8 = NULL;
    __pyx_t_13 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_kp_u_The_data_given_do_not_have_the_r};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_13, (2-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 84, __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_ERR(10, 84, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":83
 *             for k in range(4):
 *                 generators[i][j][k] = <Real_struct>Object2Real(A[j,k])
 *     if not O31_determinants_OK(generators, num_gens, det_error_epsilon):             # <<<<<<<<<<<<<<
 *         raise ValueError('The data given do not have the '
 *                          'right determinants.')
*/
  }

  /* "cython/core/dirichlet.pyx":87
 *                          'right determinants.')
 *     cdef double c_displacement[3]
 *     for n from 0 <= n < 3:             # <<<<<<<<<<<<<<
 *         c_displacement[n] = <double>displacement[n]
 *     c_dirichlet_domain = Dirichlet_from_generators_with_displacement(
*/
  for (__pyx_v_n = 0; __pyx_v_n < 3; __pyx_v_n++) {

    /* "cython/core/dirichlet.pyx":88
 *     cdef double c_displacement[3]
 *     for n from 0 <= n < 3:
 *         c_displacement[n] = <double>displacement[n]             # <<<<<<<<<<<<<<
 *     c_dirichlet_domain = Dirichlet_from_generators_with_displacement(
 *         generators, num_gens, c_displacement, vertex_epsilon,
*/
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_displacement, __pyx_v_n, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 88, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_14 = __Pyx_PyFloat_AsDouble(__pyx_t_3); if (unlikely((__pyx_t_14 == (double)-1) && PyErr_Occurred())) __PYX_ERR(10, 88, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    (__pyx_v_c_displacement[__pyx_v_n]) = ((double)__pyx_t_14);
  }

  /* "cython/core/dirichlet.pyx":91
 *     c_dirichlet_domain = Dirichlet_from_generators_with_displacement(
 *         generators, num_gens, c_displacement, vertex_epsilon,
 *         Dirichlet_keep_going, maximize_injectivity_radius,             # <<<<<<<<<<<<<<
 *         include_words)
 *     free(generators)
*/
  __pyx_t_11 = __Pyx_PyLong_As_Boolean(__pyx_v_maximize_injectivity_radius); if (unlikely((__pyx_t_11 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 91, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":92
 *         generators, num_gens, c_displacement, vertex_epsilon,
 *         Dirichlet_keep_going, maximize_injectivity_radius,
 *         include_words)             # <<<<<<<<<<<<<<
 *     free(generators)
 *     return c_dirichlet_domain
*/
  __pyx_t_15 = __Pyx_PyLong_As_Boolean(__pyx_v_include_words); if (unlikely((__pyx_t_15 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 92, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":89
 *     for n from 0 <= n < 3:
 *         c_displacement[n] = <double>displacement[n]
 *     c_dirichlet_domain = Dirichlet_from_generators_with_displacement(             # <<<<<<<<<<<<<<
 *         generators, num_gens, c_displacement, vertex_epsilon,
 *         Dirichlet_keep_going, maximize_injectivity_radius,
*/
  __pyx_t_16 = Dirichlet_from_generators_with_displacement(__pyx_v_generators, __pyx_v_num_gens, __pyx_v_c_displacement, __pyx_v_vertex_epsilon, Dirichlet_keep_going, __pyx_t_11, __pyx_t_15); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 89, __pyx_L1_error)
  __pyx_v_c_dirichlet_domain = __pyx_t_16;

  /* "cython/core/dirichlet.pyx":93
 *         Dirichlet_keep_going, maximize_injectivity_radius,
 *         include_words)
 *     free(generators)             # <<<<<<<<<<<<<<
 *     return c_dirichlet_domain
 * 
*/
  free(__pyx_v_generators);

  /* "cython/core/dirichlet.pyx":94
 *         include_words)
 *     free(generators)
 *     return c_dirichlet_domain             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = __pyx_v_c_dirichlet_domain;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":67
 *     return dirichlet_domain, num_gens
 * 
 * cdef WEPolyhedron* dirichlet_from_O31_matrix_list(matrices,             # <<<<<<<<<<<<<<
 *                                                   double vertex_epsilon,
 *                                                   displacement,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.dirichlet_from_O31_matrix_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_A);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":102
 *     cdef int c_num_generators
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_1_number_(CYTHON_UNUSED PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_1_number_ = {"_number_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_1_number_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_1_number_(CYTHON_UNUSED PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_number_ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 102, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 102, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_number_", 0) < (0)) __PYX_ERR(10, 102, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_number_", 1, 1, 1, i); __PYX_ERR(10, 102, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 102, __pyx_L3_error)
    }
    __pyx_v_n = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_number_", 1, 1, 1, __pyx_nargs); __PYX_ERR(10, 102, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CDirichletDomain._number_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain__number_(__pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain__number_(PyObject *__pyx_v_n) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_number_", 0);

  /* "cython/core/dirichlet.pyx":104
 *     @staticmethod
 *     def _number_(n):
 *         return number.number_to_native_number(n)             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number_to_native_number); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_n};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 104, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":102
 *     cdef int c_num_generators
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain._number_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":106
 *         return number.number_to_native_number(n)
 * 
 *     def __cinit__(self,             # <<<<<<<<<<<<<<
 *                   Manifold manifold=None,
 *                   vertex_epsilon=default_vertex_epsilon,
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_16CDirichletDomain_3__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6SnapPy_16CDirichletDomain_3__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_manifold = 0;
  PyObject *__pyx_v_vertex_epsilon = 0;
  PyObject *__pyx_v_displacement = 0;
  PyObject *__pyx_v_centroid_at_origin = 0;
  PyObject *__pyx_v_maximize_injectivity_radius = 0;
  PyObject *__pyx_v_include_words = 0;
  PyObject *__pyx_v_generator_file = 0;
  PyObject *__pyx_v_generator_bytes = 0;
  PyObject *__pyx_v_O31_generators = 0;
  PyObject *__pyx_v_manifold_name = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_manifold,&__pyx_mstate_global->__pyx_n_u_vertex_epsilon,&__pyx_mstate_global->__pyx_n_u_displacement,&__pyx_mstate_global->__pyx_n_u_centroid_at_origin,&__pyx_mstate_global->__pyx_n_u_maximize_injectivity_radius,&__pyx_mstate_global->__pyx_n_u_include_words,&__pyx_mstate_global->__pyx_n_u_generator_file,&__pyx_mstate_global->__pyx_n_u_generator_bytes,&__pyx_mstate_global->__pyx_n_u_O31_generators,&__pyx_mstate_global->__pyx_n_u_manifold_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 106, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case 10:
        values[9] = __Pyx_ArgRef_VARARGS(__pyx_args, 9);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[9])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  9:
        values[8] = __Pyx_ArgRef_VARARGS(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_VARARGS(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_VARARGS(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_VARARGS(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_VARARGS(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_VARARGS(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(10, 106, __pyx_L3_error)

      /* "cython/core/dirichlet.pyx":107
 * 
 *     def __cinit__(self,
 *                   Manifold manifold=None,             # <<<<<<<<<<<<<<
 *                   vertex_epsilon=default_vertex_epsilon,
 *                   displacement=None,
*/
      if (!values[0]) values[0] = __Pyx_NewRef((PyObject *)((struct __pyx_obj_6SnapPy_Manifold *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__38);

      /* "cython/core/dirichlet.pyx":109
 *                   Manifold manifold=None,
 *                   vertex_epsilon=default_vertex_epsilon,
 *                   displacement=None,             # <<<<<<<<<<<<<<
 *                   centroid_at_origin=True,
 *                   maximize_injectivity_radius=True,
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/dirichlet.pyx":110
 *                   vertex_epsilon=default_vertex_epsilon,
 *                   displacement=None,
 *                   centroid_at_origin=True,             # <<<<<<<<<<<<<<
 *                   maximize_injectivity_radius=True,
 *                   include_words = False,
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/dirichlet.pyx":111
 *                   displacement=None,
 *                   centroid_at_origin=True,
 *                   maximize_injectivity_radius=True,             # <<<<<<<<<<<<<<
 *                   include_words = False,
 *                   str generator_file='',
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/dirichlet.pyx":112
 *                   centroid_at_origin=True,
 *                   maximize_injectivity_radius=True,
 *                   include_words = False,             # <<<<<<<<<<<<<<
 *                   str generator_file='',
 *                   bytes generator_bytes=b'',
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_kp_u__10));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_kp_b__10));

      /* "cython/core/dirichlet.pyx":115
 *                   str generator_file='',
 *                   bytes generator_bytes=b'',
 *                   O31_generators=None,             # <<<<<<<<<<<<<<
 *                   str manifold_name='unnamed'):
 *         cdef double c_displacement[3]
*/
      if (!values[8]) values[8] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[9]) values[9] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_n_u_unnamed));
    } else {
      switch (__pyx_nargs) {
        case 10:
        values[9] = __Pyx_ArgRef_VARARGS(__pyx_args, 9);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[9])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  9:
        values[8] = __Pyx_ArgRef_VARARGS(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_VARARGS(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_VARARGS(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_VARARGS(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_VARARGS(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_VARARGS(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_VARARGS(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_VARARGS(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "cython/core/dirichlet.pyx":107
 * 
 *     def __cinit__(self,
 *                   Manifold manifold=None,             # <<<<<<<<<<<<<<
 *                   vertex_epsilon=default_vertex_epsilon,
 *                   displacement=None,
*/
      if (!values[0]) values[0] = __Pyx_NewRef((PyObject *)((struct __pyx_obj_6SnapPy_Manifold *)Py_None));
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_mstate_global->__pyx_k__38);

      /* "cython/core/dirichlet.pyx":109
 *                   Manifold manifold=None,
 *                   vertex_epsilon=default_vertex_epsilon,
 *                   displacement=None,             # <<<<<<<<<<<<<<
 *                   centroid_at_origin=True,
 *                   maximize_injectivity_radius=True,
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "cython/core/dirichlet.pyx":110
 *                   vertex_epsilon=default_vertex_epsilon,
 *                   displacement=None,
 *                   centroid_at_origin=True,             # <<<<<<<<<<<<<<
 *                   maximize_injectivity_radius=True,
 *                   include_words = False,
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/dirichlet.pyx":111
 *                   displacement=None,
 *                   centroid_at_origin=True,
 *                   maximize_injectivity_radius=True,             # <<<<<<<<<<<<<<
 *                   include_words = False,
 *                   str generator_file='',
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/dirichlet.pyx":112
 *                   centroid_at_origin=True,
 *                   maximize_injectivity_radius=True,
 *                   include_words = False,             # <<<<<<<<<<<<<<
 *                   str generator_file='',
 *                   bytes generator_bytes=b'',
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_kp_u__10));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_kp_b__10));

      /* "cython/core/dirichlet.pyx":115
 *                   str generator_file='',
 *                   bytes generator_bytes=b'',
 *                   O31_generators=None,             # <<<<<<<<<<<<<<
 *                   str manifold_name='unnamed'):
 *         cdef double c_displacement[3]
*/
      if (!values[8]) values[8] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[9]) values[9] = __Pyx_NewRef(((PyObject*)__pyx_mstate_global->__pyx_n_u_unnamed));
    }
    __pyx_v_manifold = ((struct __pyx_obj_6SnapPy_Manifold *)values[0]);
    __pyx_v_vertex_epsilon = values[1];
    __pyx_v_displacement = values[2];
    __pyx_v_centroid_at_origin = values[3];
    __pyx_v_maximize_injectivity_radius = values[4];
    __pyx_v_include_words = values[5];
    __pyx_v_generator_file = ((PyObject*)values[6]);
    __pyx_v_generator_bytes = ((PyObject*)values[7]);
    __pyx_v_O31_generators = values[8];
    __pyx_v_manifold_name = ((PyObject*)values[9]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 0, 10, __pyx_nargs); __PYX_ERR(10, 106, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_manifold), __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, 1, "manifold", 0))) __PYX_ERR(10, 107, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_generator_file), (&PyUnicode_Type), 1, "generator_file", 1))) __PYX_ERR(10, 113, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_generator_bytes), (&PyBytes_Type), 1, "generator_bytes", 1))) __PYX_ERR(10, 114, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_manifold_name), (&PyUnicode_Type), 1, "manifold_name", 1))) __PYX_ERR(10, 116, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_2__cinit__(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self), __pyx_v_manifold, __pyx_v_vertex_epsilon, __pyx_v_displacement, __pyx_v_centroid_at_origin, __pyx_v_maximize_injectivity_radius, __pyx_v_include_words, __pyx_v_generator_file, __pyx_v_generator_bytes, __pyx_v_O31_generators, __pyx_v_manifold_name);

  /* "cython/core/dirichlet.pyx":106
 *         return number.number_to_native_number(n)
 * 
 *     def __cinit__(self,             # <<<<<<<<<<<<<<
 *                   Manifold manifold=None,
 *                   vertex_epsilon=default_vertex_epsilon,
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_16CDirichletDomain_2__cinit__(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_manifold, PyObject *__pyx_v_vertex_epsilon, PyObject *__pyx_v_displacement, PyObject *__pyx_v_centroid_at_origin, PyObject *__pyx_v_maximize_injectivity_radius, PyObject *__pyx_v_include_words, PyObject *__pyx_v_generator_file, PyObject *__pyx_v_generator_bytes, PyObject *__pyx_v_O31_generators, PyObject *__pyx_v_manifold_name) {
  double __pyx_v_c_displacement[3];
  PyObject *__pyx_v_input_file = NULL;
  PyObject *__pyx_v_data = NULL;
  long __pyx_v_n;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  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;
  int __pyx_t_12;
  double __pyx_t_13;
  __pyx_ctuple_WEPolyhedron__ptr__and_int __pyx_t_14;
  WEPolyhedron *__pyx_t_15;
  int __pyx_t_16;
  Py_ssize_t __pyx_t_17;
  Boolean __pyx_t_18;
  Boolean __pyx_t_19;
  Boolean __pyx_t_20;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);
  __Pyx_INCREF(__pyx_v_displacement);

  /* "cython/core/dirichlet.pyx":118
 *                   str manifold_name='unnamed'):
 *         cdef double c_displacement[3]
 *         if displacement is None:             # <<<<<<<<<<<<<<
 *             displacement = [0.0, 0.0, 0.0]
 *         self.c_dirichlet_domain = NULL
*/
  __pyx_t_1 = (__pyx_v_displacement == Py_None);
  if (__pyx_t_1) {

    /* "cython/core/dirichlet.pyx":119
 *         cdef double c_displacement[3]
 *         if displacement is None:
 *             displacement = [0.0, 0.0, 0.0]             # <<<<<<<<<<<<<<
 *         self.c_dirichlet_domain = NULL
 *         if generator_file != '':
*/
    __pyx_t_2 = PyList_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_float_0_0);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_float_0_0);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_mstate_global->__pyx_float_0_0) != (0)) __PYX_ERR(10, 119, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_float_0_0);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_float_0_0);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_mstate_global->__pyx_float_0_0) != (0)) __PYX_ERR(10, 119, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_float_0_0);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_float_0_0);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 2, __pyx_mstate_global->__pyx_float_0_0) != (0)) __PYX_ERR(10, 119, __pyx_L1_error);
    __Pyx_DECREF_SET(__pyx_v_displacement, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/dirichlet.pyx":118
 *                   str manifold_name='unnamed'):
 *         cdef double c_displacement[3]
 *         if displacement is None:             # <<<<<<<<<<<<<<
 *             displacement = [0.0, 0.0, 0.0]
 *         self.c_dirichlet_domain = NULL
*/
  }

  /* "cython/core/dirichlet.pyx":120
 *         if displacement is None:
 *             displacement = [0.0, 0.0, 0.0]
 *         self.c_dirichlet_domain = NULL             # <<<<<<<<<<<<<<
 *         if generator_file != '':
 *             with open(generator_file, mode='rb') as input_file:
*/
  __pyx_v_self->c_dirichlet_domain = NULL;

  /* "cython/core/dirichlet.pyx":121
 *             displacement = [0.0, 0.0, 0.0]
 *         self.c_dirichlet_domain = NULL
 *         if generator_file != '':             # <<<<<<<<<<<<<<
 *             with open(generator_file, mode='rb') as input_file:
 *                 data = input_file.read()
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_generator_file, __pyx_mstate_global->__pyx_kp_u__10, Py_NE)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(10, 121, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/dirichlet.pyx":122
 *         self.c_dirichlet_domain = NULL
 *         if generator_file != '':
 *             with open(generator_file, mode='rb') as input_file:             # <<<<<<<<<<<<<<
 *                 data = input_file.read()
 *             self.c_dirichlet_domain, self.c_num_generators = (
*/
    /*with:*/ {
      __pyx_t_3 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, __pyx_v_generator_file};
        __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 122, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_mode, __pyx_mstate_global->__pyx_n_u_rb, __pyx_t_5, __pyx_callargs+2, 0) < (0)) __PYX_ERR(10, 122, __pyx_L1_error)
        __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 122, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_t_6 = __Pyx_PyObject_LookupSpecial(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_exit_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_3 = NULL;
      __pyx_t_7 = __Pyx_PyObject_LookupSpecial(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_enter); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 122, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (likely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
        assert(__pyx_t_3);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 122, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __pyx_t_7 = __pyx_t_5;
      __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      /*try:*/ {
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_8);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_10);
          /*try:*/ {
            __pyx_v_input_file = __pyx_t_7;
            __pyx_t_7 = 0;

            /* "cython/core/dirichlet.pyx":123
 *         if generator_file != '':
 *             with open(generator_file, mode='rb') as input_file:
 *                 data = input_file.read()             # <<<<<<<<<<<<<<
 *             self.c_dirichlet_domain, self.c_num_generators = (
 *                 get_generators_from_bytes(
*/
            __pyx_t_2 = __pyx_v_input_file;
            __Pyx_INCREF(__pyx_t_2);
            __pyx_t_4 = 0;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
              __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_read, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
              if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 123, __pyx_L9_error)
              __Pyx_GOTREF(__pyx_t_7);
            }
            __pyx_v_data = __pyx_t_7;
            __pyx_t_7 = 0;

            /* "cython/core/dirichlet.pyx":122
 *         self.c_dirichlet_domain = NULL
 *         if generator_file != '':
 *             with open(generator_file, mode='rb') as input_file:             # <<<<<<<<<<<<<<
 *                 data = input_file.read()
 *             self.c_dirichlet_domain, self.c_num_generators = (
*/
          }
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          goto __pyx_L14_try_end;
          __pyx_L9_error:;
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          /*except:*/ {
            __Pyx_AddTraceback("SnapPy.CDirichletDomain.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_5) < 0) __PYX_ERR(10, 122, __pyx_L11_except_error)
            __Pyx_XGOTREF(__pyx_t_7);
            __Pyx_XGOTREF(__pyx_t_2);
            __Pyx_XGOTREF(__pyx_t_5);
            __pyx_t_3 = PyTuple_Pack(3, __pyx_t_7, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 122, __pyx_L11_except_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_t_11 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, NULL);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_11)) __PYX_ERR(10, 122, __pyx_L11_except_error)
            __Pyx_GOTREF(__pyx_t_11);
            __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_11);
            __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            if (__pyx_t_1 < (0)) __PYX_ERR(10, 122, __pyx_L11_except_error)
            __pyx_t_12 = (!__pyx_t_1);
            if (unlikely(__pyx_t_12)) {
              __Pyx_GIVEREF(__pyx_t_7);
              __Pyx_GIVEREF(__pyx_t_2);
              __Pyx_XGIVEREF(__pyx_t_5);
              __Pyx_ErrRestoreWithState(__pyx_t_7, __pyx_t_2, __pyx_t_5);
              __pyx_t_7 = 0;  __pyx_t_2 = 0;  __pyx_t_5 = 0; 
              __PYX_ERR(10, 122, __pyx_L11_except_error)
            }
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            goto __pyx_L10_exception_handled;
          }
          __pyx_L11_except_error:;
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
          goto __pyx_L1_error;
          __pyx_L10_exception_handled:;
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
          __pyx_L14_try_end:;
        }
      }
      /*finally:*/ {
        /*normal exit:*/{
          if (__pyx_t_6) {
            __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[23], NULL);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 122, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_10);
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          }
          goto __pyx_L8;
        }
        __pyx_L8:;
      }
      goto __pyx_L18;
      __pyx_L5_error:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L1_error;
      __pyx_L18:;
    }

    /* "cython/core/dirichlet.pyx":126
 *             self.c_dirichlet_domain, self.c_num_generators = (
 *                 get_generators_from_bytes(
 *                     data, vertex_epsilon, displacement,             # <<<<<<<<<<<<<<
 *                     centroid_at_origin, maximize_injectivity_radius,
 *                     include_words))
*/
    if (unlikely(!__pyx_v_data)) { __Pyx_RaiseUnboundLocalError("data"); __PYX_ERR(10, 126, __pyx_L1_error) }
    __pyx_t_13 = __Pyx_PyFloat_AsDouble(__pyx_v_vertex_epsilon); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())) __PYX_ERR(10, 126, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":125
 *                 data = input_file.read()
 *             self.c_dirichlet_domain, self.c_num_generators = (
 *                 get_generators_from_bytes(             # <<<<<<<<<<<<<<
 *                     data, vertex_epsilon, displacement,
 *                     centroid_at_origin, maximize_injectivity_radius,
*/
    __pyx_t_14 = __pyx_f_6SnapPy_get_generators_from_bytes(__pyx_v_data, __pyx_t_13, __pyx_v_displacement, __pyx_v_centroid_at_origin, __pyx_v_maximize_injectivity_radius, __pyx_v_include_words); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 125, __pyx_L1_error)
    __pyx_t_15 = __pyx_t_14.f0;
    __pyx_t_16 = __pyx_t_14.f1;

    /* "cython/core/dirichlet.pyx":124
 *             with open(generator_file, mode='rb') as input_file:
 *                 data = input_file.read()
 *             self.c_dirichlet_domain, self.c_num_generators = (             # <<<<<<<<<<<<<<
 *                 get_generators_from_bytes(
 *                     data, vertex_epsilon, displacement,
*/
    __pyx_v_self->c_dirichlet_domain = __pyx_t_15;
    __pyx_v_self->c_num_generators = __pyx_t_16;

    /* "cython/core/dirichlet.pyx":129
 *                     centroid_at_origin, maximize_injectivity_radius,
 *                     include_words))
 *             self.manifold_name = generator_file             # <<<<<<<<<<<<<<
 *         elif generator_bytes != b'':
 *             self.c_dirichlet_domain, self.c_num_generators = (
*/
    if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name, __pyx_v_generator_file) < (0)) __PYX_ERR(10, 129, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":121
 *             displacement = [0.0, 0.0, 0.0]
 *         self.c_dirichlet_domain = NULL
 *         if generator_file != '':             # <<<<<<<<<<<<<<
 *             with open(generator_file, mode='rb') as input_file:
 *                 data = input_file.read()
*/
    goto __pyx_L4;
  }

  /* "cython/core/dirichlet.pyx":130
 *                     include_words))
 *             self.manifold_name = generator_file
 *         elif generator_bytes != b'':             # <<<<<<<<<<<<<<
 *             self.c_dirichlet_domain, self.c_num_generators = (
 *                 get_generators_from_bytes(
*/
  __pyx_t_12 = (__Pyx_PyBytes_Equals(__pyx_v_generator_bytes, __pyx_mstate_global->__pyx_kp_b__10, Py_NE)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(10, 130, __pyx_L1_error)
  if (__pyx_t_12) {

    /* "cython/core/dirichlet.pyx":133
 *             self.c_dirichlet_domain, self.c_num_generators = (
 *                 get_generators_from_bytes(
 *                     generator_bytes, vertex_epsilon, displacement,             # <<<<<<<<<<<<<<
 *                     centroid_at_origin, maximize_injectivity_radius,
 *                     include_words))
*/
    __pyx_t_13 = __Pyx_PyFloat_AsDouble(__pyx_v_vertex_epsilon); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())) __PYX_ERR(10, 133, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":132
 *         elif generator_bytes != b'':
 *             self.c_dirichlet_domain, self.c_num_generators = (
 *                 get_generators_from_bytes(             # <<<<<<<<<<<<<<
 *                     generator_bytes, vertex_epsilon, displacement,
 *                     centroid_at_origin, maximize_injectivity_radius,
*/
    __pyx_t_14 = __pyx_f_6SnapPy_get_generators_from_bytes(__pyx_v_generator_bytes, __pyx_t_13, __pyx_v_displacement, __pyx_v_centroid_at_origin, __pyx_v_maximize_injectivity_radius, __pyx_v_include_words); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 132, __pyx_L1_error)
    __pyx_t_15 = __pyx_t_14.f0;
    __pyx_t_16 = __pyx_t_14.f1;

    /* "cython/core/dirichlet.pyx":131
 *             self.manifold_name = generator_file
 *         elif generator_bytes != b'':
 *             self.c_dirichlet_domain, self.c_num_generators = (             # <<<<<<<<<<<<<<
 *                 get_generators_from_bytes(
 *                     generator_bytes, vertex_epsilon, displacement,
*/
    __pyx_v_self->c_dirichlet_domain = __pyx_t_15;
    __pyx_v_self->c_num_generators = __pyx_t_16;

    /* "cython/core/dirichlet.pyx":136
 *                     centroid_at_origin, maximize_injectivity_radius,
 *                     include_words))
 *             self.manifold_name = manifold_name             # <<<<<<<<<<<<<<
 *         elif O31_generators is not None:
 *             self.c_num_generators = len(O31_generators)
*/
    if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name, __pyx_v_manifold_name) < (0)) __PYX_ERR(10, 136, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":130
 *                     include_words))
 *             self.manifold_name = generator_file
 *         elif generator_bytes != b'':             # <<<<<<<<<<<<<<
 *             self.c_dirichlet_domain, self.c_num_generators = (
 *                 get_generators_from_bytes(
*/
    goto __pyx_L4;
  }

  /* "cython/core/dirichlet.pyx":137
 *                     include_words))
 *             self.manifold_name = manifold_name
 *         elif O31_generators is not None:             # <<<<<<<<<<<<<<
 *             self.c_num_generators = len(O31_generators)
 *             self.c_dirichlet_domain = dirichlet_from_O31_matrix_list(
*/
  __pyx_t_12 = (__pyx_v_O31_generators != Py_None);
  if (__pyx_t_12) {

    /* "cython/core/dirichlet.pyx":138
 *             self.manifold_name = manifold_name
 *         elif O31_generators is not None:
 *             self.c_num_generators = len(O31_generators)             # <<<<<<<<<<<<<<
 *             self.c_dirichlet_domain = dirichlet_from_O31_matrix_list(
 *                 O31_generators, vertex_epsilon, displacement,
*/
    __pyx_t_17 = PyObject_Length(__pyx_v_O31_generators); if (unlikely(__pyx_t_17 == ((Py_ssize_t)-1))) __PYX_ERR(10, 138, __pyx_L1_error)
    __pyx_v_self->c_num_generators = __pyx_t_17;

    /* "cython/core/dirichlet.pyx":140
 *             self.c_num_generators = len(O31_generators)
 *             self.c_dirichlet_domain = dirichlet_from_O31_matrix_list(
 *                 O31_generators, vertex_epsilon, displacement,             # <<<<<<<<<<<<<<
 *                 centroid_at_origin, maximize_injectivity_radius,
 *                 include_words)
*/
    __pyx_t_13 = __Pyx_PyFloat_AsDouble(__pyx_v_vertex_epsilon); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())) __PYX_ERR(10, 140, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":139
 *         elif O31_generators is not None:
 *             self.c_num_generators = len(O31_generators)
 *             self.c_dirichlet_domain = dirichlet_from_O31_matrix_list(             # <<<<<<<<<<<<<<
 *                 O31_generators, vertex_epsilon, displacement,
 *                 centroid_at_origin, maximize_injectivity_radius,
*/
    __pyx_t_15 = __pyx_f_6SnapPy_dirichlet_from_O31_matrix_list(__pyx_v_O31_generators, __pyx_t_13, __pyx_v_displacement, __pyx_v_centroid_at_origin, __pyx_v_maximize_injectivity_radius, __pyx_v_include_words); if (unlikely(__pyx_t_15 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(10, 139, __pyx_L1_error)
    __pyx_v_self->c_dirichlet_domain = __pyx_t_15;

    /* "cython/core/dirichlet.pyx":143
 *                 centroid_at_origin, maximize_injectivity_radius,
 *                 include_words)
 *             self.manifold_name = manifold_name             # <<<<<<<<<<<<<<
 *         else:
 *             if manifold is None:
*/
    if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name, __pyx_v_manifold_name) < (0)) __PYX_ERR(10, 143, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":137
 *                     include_words))
 *             self.manifold_name = manifold_name
 *         elif O31_generators is not None:             # <<<<<<<<<<<<<<
 *             self.c_num_generators = len(O31_generators)
 *             self.c_dirichlet_domain = dirichlet_from_O31_matrix_list(
*/
    goto __pyx_L4;
  }

  /* "cython/core/dirichlet.pyx":145
 *             self.manifold_name = manifold_name
 *         else:
 *             if manifold is None:             # <<<<<<<<<<<<<<
 *                 raise ValueError('Supply a manifold, or generators.')
 *             if manifold.c_triangulation is NULL:
*/
  /*else*/ {
    __pyx_t_12 = (((PyObject *)__pyx_v_manifold) == Py_None);
    if (unlikely(__pyx_t_12)) {

      /* "cython/core/dirichlet.pyx":146
 *         else:
 *             if manifold is None:
 *                 raise ValueError('Supply a manifold, or generators.')             # <<<<<<<<<<<<<<
 *             if manifold.c_triangulation is NULL:
 *                 raise ValueError('The Triangulation is empty.')
*/
      __pyx_t_2 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Supply_a_manifold_or_generators};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 146, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_Raise(__pyx_t_5, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __PYX_ERR(10, 146, __pyx_L1_error)

      /* "cython/core/dirichlet.pyx":145
 *             self.manifold_name = manifold_name
 *         else:
 *             if manifold is None:             # <<<<<<<<<<<<<<
 *                 raise ValueError('Supply a manifold, or generators.')
 *             if manifold.c_triangulation is NULL:
*/
    }

    /* "cython/core/dirichlet.pyx":147
 *             if manifold is None:
 *                 raise ValueError('Supply a manifold, or generators.')
 *             if manifold.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The Triangulation is empty.')
 *             for n from 0 <= n < 3:
*/
    __pyx_t_12 = (__pyx_v_manifold->__pyx_base.c_triangulation == NULL);
    if (unlikely(__pyx_t_12)) {

      /* "cython/core/dirichlet.pyx":148
 *                 raise ValueError('Supply a manifold, or generators.')
 *             if manifold.c_triangulation is NULL:
 *                 raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *             for n from 0 <= n < 3:
 *                 c_displacement[n] = <double>displacement[n]
*/
      __pyx_t_2 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
        __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 148, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_Raise(__pyx_t_5, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __PYX_ERR(10, 148, __pyx_L1_error)

      /* "cython/core/dirichlet.pyx":147
 *             if manifold is None:
 *                 raise ValueError('Supply a manifold, or generators.')
 *             if manifold.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The Triangulation is empty.')
 *             for n from 0 <= n < 3:
*/
    }

    /* "cython/core/dirichlet.pyx":149
 *             if manifold.c_triangulation is NULL:
 *                 raise ValueError('The Triangulation is empty.')
 *             for n from 0 <= n < 3:             # <<<<<<<<<<<<<<
 *                 c_displacement[n] = <double>displacement[n]
 *             copy_triangulation(manifold.c_triangulation,
*/
    for (__pyx_v_n = 0; __pyx_v_n < 3; __pyx_v_n++) {

      /* "cython/core/dirichlet.pyx":150
 *                 raise ValueError('The Triangulation is empty.')
 *             for n from 0 <= n < 3:
 *                 c_displacement[n] = <double>displacement[n]             # <<<<<<<<<<<<<<
 *             copy_triangulation(manifold.c_triangulation,
 *                                &self.c_triangulation)
*/
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_displacement, __pyx_v_n, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 150, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_13 = __Pyx_PyFloat_AsDouble(__pyx_t_5); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())) __PYX_ERR(10, 150, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      (__pyx_v_c_displacement[__pyx_v_n]) = ((double)__pyx_t_13);
    }

    /* "cython/core/dirichlet.pyx":151
 *             for n from 0 <= n < 3:
 *                 c_displacement[n] = <double>displacement[n]
 *             copy_triangulation(manifold.c_triangulation,             # <<<<<<<<<<<<<<
 *                                &self.c_triangulation)
 *             self.c_dirichlet_domain = Dirichlet_with_displacement(
*/
    copy_triangulation(__pyx_v_manifold->__pyx_base.c_triangulation, (&__pyx_v_self->c_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 151, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":156
 *                 self.c_triangulation,
 *                 c_displacement,
 *                 vertex_epsilon,             # <<<<<<<<<<<<<<
 *                 centroid_at_origin,
 *                 Dirichlet_keep_going,
*/
    __pyx_t_13 = __Pyx_PyFloat_AsDouble(__pyx_v_vertex_epsilon); if (unlikely((__pyx_t_13 == (double)-1) && PyErr_Occurred())) __PYX_ERR(10, 156, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":157
 *                 c_displacement,
 *                 vertex_epsilon,
 *                 centroid_at_origin,             # <<<<<<<<<<<<<<
 *                 Dirichlet_keep_going,
 *                 maximize_injectivity_radius,
*/
    __pyx_t_18 = __Pyx_PyLong_As_Boolean(__pyx_v_centroid_at_origin); if (unlikely((__pyx_t_18 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 157, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":159
 *                 centroid_at_origin,
 *                 Dirichlet_keep_going,
 *                 maximize_injectivity_radius,             # <<<<<<<<<<<<<<
 *                 include_words)
 *             # num_generators computed implicitly by
*/
    __pyx_t_19 = __Pyx_PyLong_As_Boolean(__pyx_v_maximize_injectivity_radius); if (unlikely((__pyx_t_19 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 159, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":160
 *                 Dirichlet_keep_going,
 *                 maximize_injectivity_radius,
 *                 include_words)             # <<<<<<<<<<<<<<
 *             # num_generators computed implicitly by
 *             # Dirichlet_with_displacement.
*/
    __pyx_t_20 = __Pyx_PyLong_As_Boolean(__pyx_v_include_words); if (unlikely((__pyx_t_20 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 160, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":153
 *             copy_triangulation(manifold.c_triangulation,
 *                                &self.c_triangulation)
 *             self.c_dirichlet_domain = Dirichlet_with_displacement(             # <<<<<<<<<<<<<<
 *                 self.c_triangulation,
 *                 c_displacement,
*/
    __pyx_t_15 = Dirichlet_with_displacement(__pyx_v_self->c_triangulation, __pyx_v_c_displacement, __pyx_t_13, __pyx_t_18, Dirichlet_keep_going, __pyx_t_19, __pyx_t_20); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 153, __pyx_L1_error)
    __pyx_v_self->c_dirichlet_domain = __pyx_t_15;

    /* "cython/core/dirichlet.pyx":163
 *             # num_generators computed implicitly by
 *             # Dirichlet_with_displacement.
 *             self.c_num_generators = self.c_triangulation.num_generators             # <<<<<<<<<<<<<<
 *             self.manifold_name = manifold.name()
 *         if self.c_dirichlet_domain == NULL:
*/
    __pyx_t_16 = __pyx_v_self->c_triangulation->num_generators;
    __pyx_v_self->c_num_generators = __pyx_t_16;

    /* "cython/core/dirichlet.pyx":164
 *             # Dirichlet_with_displacement.
 *             self.c_num_generators = self.c_triangulation.num_generators
 *             self.manifold_name = manifold.name()             # <<<<<<<<<<<<<<
 *         if self.c_dirichlet_domain == NULL:
 *             raise RuntimeError('The Dirichlet construction failed.')
*/
    __pyx_t_2 = ((PyObject *)__pyx_v_manifold);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 164, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name, __pyx_t_5) < (0)) __PYX_ERR(10, 164, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __pyx_L4:;

  /* "cython/core/dirichlet.pyx":165
 *             self.c_num_generators = self.c_triangulation.num_generators
 *             self.manifold_name = manifold.name()
 *         if self.c_dirichlet_domain == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The Dirichlet construction failed.')
 *         if manifold:
*/
  __pyx_t_12 = (__pyx_v_self->c_dirichlet_domain == NULL);
  if (unlikely(__pyx_t_12)) {

    /* "cython/core/dirichlet.pyx":166
 *             self.manifold_name = manifold.name()
 *         if self.c_dirichlet_domain == NULL:
 *             raise RuntimeError('The Dirichlet construction failed.')             # <<<<<<<<<<<<<<
 *         if manifold:
 *             self._number_ = manifold._number_
*/
    __pyx_t_2 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_Dirichlet_construction_faile};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 166, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_Raise(__pyx_t_5, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_ERR(10, 166, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":165
 *             self.c_num_generators = self.c_triangulation.num_generators
 *             self.manifold_name = manifold.name()
 *         if self.c_dirichlet_domain == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The Dirichlet construction failed.')
 *         if manifold:
*/
  }

  /* "cython/core/dirichlet.pyx":167
 *         if self.c_dirichlet_domain == NULL:
 *             raise RuntimeError('The Dirichlet construction failed.')
 *         if manifold:             # <<<<<<<<<<<<<<
 *             self._number_ = manifold._number_
 * 
*/
  __pyx_t_12 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_manifold)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(10, 167, __pyx_L1_error)
  if (__pyx_t_12) {

    /* "cython/core/dirichlet.pyx":168
 *             raise RuntimeError('The Dirichlet construction failed.')
 *         if manifold:
 *             self._number_ = manifold._number_             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_manifold), __pyx_mstate_global->__pyx_n_u_number_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_5) < (0)) __PYX_ERR(10, 168, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/dirichlet.pyx":167
 *         if self.c_dirichlet_domain == NULL:
 *             raise RuntimeError('The Dirichlet construction failed.')
 *         if manifold:             # <<<<<<<<<<<<<<
 *             self._number_ = manifold._number_
 * 
*/
  }

  /* "cython/core/dirichlet.pyx":106
 *         return number.number_to_native_number(n)
 * 
 *     def __cinit__(self,             # <<<<<<<<<<<<<<
 *                   Manifold manifold=None,
 *                   vertex_epsilon=default_vertex_epsilon,
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_input_file);
  __Pyx_XDECREF(__pyx_v_data);
  __Pyx_XDECREF(__pyx_v_displacement);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":170
 *             self._number_ = manifold._number_
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
*/

/* Python wrapper */
static void __pyx_pw_6SnapPy_16CDirichletDomain_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_6SnapPy_16CDirichletDomain_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_6SnapPy_16CDirichletDomain_4__dealloc__(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_6SnapPy_16CDirichletDomain_4__dealloc__(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cython/core/dirichlet.pyx":171
 * 
 *     def __dealloc__(self):
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(self.c_triangulation)
 *         if self.c_dirichlet_domain != NULL:
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (__pyx_t_1) {

    /* "cython/core/dirichlet.pyx":172
 *     def __dealloc__(self):
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         if self.c_dirichlet_domain != NULL:
 *             free_Dirichlet_domain(self.c_dirichlet_domain)
*/
    free_triangulation(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 172, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":171
 * 
 *     def __dealloc__(self):
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(self.c_triangulation)
 *         if self.c_dirichlet_domain != NULL:
*/
  }

  /* "cython/core/dirichlet.pyx":173
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
 *         if self.c_dirichlet_domain != NULL:             # <<<<<<<<<<<<<<
 *             free_Dirichlet_domain(self.c_dirichlet_domain)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_dirichlet_domain != NULL);
  if (__pyx_t_1) {

    /* "cython/core/dirichlet.pyx":174
 *             free_triangulation(self.c_triangulation)
 *         if self.c_dirichlet_domain != NULL:
 *             free_Dirichlet_domain(self.c_dirichlet_domain)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
    free_Dirichlet_domain(__pyx_v_self->c_dirichlet_domain); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 174, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":173
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
 *         if self.c_dirichlet_domain != NULL:             # <<<<<<<<<<<<<<
 *             free_Dirichlet_domain(self.c_dirichlet_domain)
 * 
*/
  }

  /* "cython/core/dirichlet.pyx":170
 *             self._number_ = manifold._number_
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("SnapPy.CDirichletDomain.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
}

/* "cython/core/dirichlet.pyx":176
 *             free_Dirichlet_domain(self.c_dirichlet_domain)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '%d finite vertices, %d ideal vertices; %d edges; %d faces' % (
 *             self.num_finite_vertices(),
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_7__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_7__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_6__repr__(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_6__repr__(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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[8];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/dirichlet.pyx":177
 * 
 *     def __repr__(self):
 *         return '%d finite vertices, %d ideal vertices; %d edges; %d faces' % (             # <<<<<<<<<<<<<<
 *             self.num_finite_vertices(),
 *             self.num_ideal_vertices(),
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/dirichlet.pyx":178
 *     def __repr__(self):
 *         return '%d finite vertices, %d ideal vertices; %d edges; %d faces' % (
 *             self.num_finite_vertices(),             # <<<<<<<<<<<<<<
 *             self.num_ideal_vertices(),
 *             self.num_edges(),
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_num_finite_vertices); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_2), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/dirichlet.pyx":179
 *         return '%d finite vertices, %d ideal vertices; %d edges; %d faces' % (
 *             self.num_finite_vertices(),
 *             self.num_ideal_vertices(),             # <<<<<<<<<<<<<<
 *             self.num_edges(),
 *             self.num_faces(),
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_num_ideal_vertices); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_3), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/dirichlet.pyx":180
 *             self.num_finite_vertices(),
 *             self.num_ideal_vertices(),
 *             self.num_edges(),             # <<<<<<<<<<<<<<
 *             self.num_faces(),
 *             )
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_num_edges); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_4), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/dirichlet.pyx":181
 *             self.num_ideal_vertices(),
 *             self.num_edges(),
 *             self.num_faces(),             # <<<<<<<<<<<<<<
 *             )
 * 
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_num_faces); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_5), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_6[0] = __pyx_t_1;
  __pyx_t_6[1] = __pyx_mstate_global->__pyx_kp_u_finite_vertices;
  __pyx_t_6[2] = __pyx_t_2;
  __pyx_t_6[3] = __pyx_mstate_global->__pyx_kp_u_ideal_vertices;
  __pyx_t_6[4] = __pyx_t_3;
  __pyx_t_6[5] = __pyx_mstate_global->__pyx_kp_u_edges;
  __pyx_t_6[6] = __pyx_t_4;
  __pyx_t_6[7] = __pyx_mstate_global->__pyx_kp_u_faces;

  /* "cython/core/dirichlet.pyx":177
 * 
 *     def __repr__(self):
 *         return '%d finite vertices, %d ideal vertices; %d edges; %d faces' % (             # <<<<<<<<<<<<<<
 *             self.num_finite_vertices(),
 *             self.num_ideal_vertices(),
*/
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_6, 8, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1) + 18 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 17 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 8 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + 6, 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4));
  if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":176
 *             free_Dirichlet_domain(self.c_dirichlet_domain)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '%d finite vertices, %d ideal vertices; %d edges; %d faces' % (
 *             self.num_finite_vertices(),
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.CDirichletDomain.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":184
 *             )
 * 
 *     def num_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of vertices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_9num_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_8num_vertices, "\n        Return the number of vertices.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_9num_vertices = {"num_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_9num_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_8num_vertices};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_9num_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_vertices (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_vertices", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_vertices", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_8num_vertices(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_8num_vertices(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  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("num_vertices", 0);

  /* "cython/core/dirichlet.pyx":188
 *         Return the number of vertices.
 *         """
 *         return self.c_dirichlet_domain.num_vertices             # <<<<<<<<<<<<<<
 * 
 *     def num_finite_vertices(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->c_dirichlet_domain->num_vertices); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":184
 *             )
 * 
 *     def num_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of vertices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.num_vertices", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":190
 *         return self.c_dirichlet_domain.num_vertices
 * 
 *     def num_finite_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of finite (non-ideal) vertices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_11num_finite_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_10num_finite_vertices, "\n        Return the number of finite (non-ideal) vertices.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_11num_finite_vertices = {"num_finite_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_11num_finite_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_10num_finite_vertices};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_11num_finite_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_finite_vertices (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_finite_vertices", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_finite_vertices", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_10num_finite_vertices(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_10num_finite_vertices(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  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("num_finite_vertices", 0);

  /* "cython/core/dirichlet.pyx":194
 *         Return the number of finite (non-ideal) vertices.
 *         """
 *         return self.c_dirichlet_domain.num_finite_vertices             # <<<<<<<<<<<<<<
 * 
 *     def num_ideal_vertices(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->c_dirichlet_domain->num_finite_vertices); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":190
 *         return self.c_dirichlet_domain.num_vertices
 * 
 *     def num_finite_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of finite (non-ideal) vertices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.num_finite_vertices", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":196
 *         return self.c_dirichlet_domain.num_finite_vertices
 * 
 *     def num_ideal_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of ideal vertices.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_13num_ideal_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_12num_ideal_vertices, "\n        Return the number of ideal vertices.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_13num_ideal_vertices = {"num_ideal_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_13num_ideal_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_12num_ideal_vertices};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_13num_ideal_vertices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_ideal_vertices (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_ideal_vertices", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_ideal_vertices", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_12num_ideal_vertices(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_12num_ideal_vertices(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  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("num_ideal_vertices", 0);

  /* "cython/core/dirichlet.pyx":200
 *         Return the number of ideal vertices.
 *         """
 *         return self.c_dirichlet_domain.num_ideal_vertices             # <<<<<<<<<<<<<<
 * 
 *     def num_edges(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->c_dirichlet_domain->num_ideal_vertices); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":196
 *         return self.c_dirichlet_domain.num_finite_vertices
 * 
 *     def num_ideal_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of ideal vertices.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.num_ideal_vertices", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":202
 *         return self.c_dirichlet_domain.num_ideal_vertices
 * 
 *     def num_edges(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of edges.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_15num_edges(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_14num_edges, "\n        Return the number of edges.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_15num_edges = {"num_edges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_15num_edges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_14num_edges};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_15num_edges(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_edges (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_edges", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_edges", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_14num_edges(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_14num_edges(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  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("num_edges", 0);

  /* "cython/core/dirichlet.pyx":206
 *         Return the number of edges.
 *         """
 *         return self.c_dirichlet_domain.num_edges             # <<<<<<<<<<<<<<
 * 
 *     def num_faces(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->c_dirichlet_domain->num_edges); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":202
 *         return self.c_dirichlet_domain.num_ideal_vertices
 * 
 *     def num_edges(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of edges.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.num_edges", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":208
 *         return self.c_dirichlet_domain.num_edges
 * 
 *     def num_faces(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of faces.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_17num_faces(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_16num_faces, "\n        Return the number of faces.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_17num_faces = {"num_faces", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_17num_faces, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_16num_faces};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_17num_faces(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_faces (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_faces", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_faces", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_16num_faces(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_16num_faces(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  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("num_faces", 0);

  /* "cython/core/dirichlet.pyx":212
 *         Return the number of faces.
 *         """
 *         return self.c_dirichlet_domain.num_faces             # <<<<<<<<<<<<<<
 * 
 *     def in_radius(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->c_dirichlet_domain->num_faces); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":208
 *         return self.c_dirichlet_domain.num_edges
 * 
 *     def num_faces(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of faces.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.num_faces", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":214
 *         return self.c_dirichlet_domain.num_faces
 * 
 *     def in_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the radius of the largest inscribed sphere.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_19in_radius(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_18in_radius, "\n        Return the radius of the largest inscribed sphere.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_19in_radius = {"in_radius", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_19in_radius, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_18in_radius};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_19in_radius(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("in_radius (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("in_radius", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("in_radius", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_18in_radius(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_18in_radius(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__pyx_v_radius = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("in_radius", 0);

  /* "cython/core/dirichlet.pyx":218
 *         Return the radius of the largest inscribed sphere.
 *         """
 *         radius = Real2Number(self.c_dirichlet_domain.inradius)             # <<<<<<<<<<<<<<
 *         return self._number_(radius)
 * 
*/
  __pyx_t_1 = __pyx_f_6SnapPy_Real2Number(__pyx_v_self->c_dirichlet_domain->inradius); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_radius = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":219
 *         """
 *         radius = Real2Number(self.c_dirichlet_domain.inradius)
 *         return self._number_(radius)             # <<<<<<<<<<<<<<
 * 
 *     def out_radius(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_radius};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":214
 *         return self.c_dirichlet_domain.num_faces
 * 
 *     def in_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the radius of the largest inscribed sphere.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.in_radius", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_radius);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":221
 *         return self._number_(radius)
 * 
 *     def out_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the radius of the smallest circubscribed sphere.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_21out_radius(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_20out_radius, "\n        Return the radius of the smallest circubscribed sphere.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_21out_radius = {"out_radius", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_21out_radius, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_20out_radius};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_21out_radius(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("out_radius (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("out_radius", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("out_radius", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_20out_radius(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_20out_radius(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__pyx_v_radius = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("out_radius", 0);

  /* "cython/core/dirichlet.pyx":225
 *         Return the radius of the smallest circubscribed sphere.
 *         """
 *         radius = Real2Number(self.c_dirichlet_domain.outradius)             # <<<<<<<<<<<<<<
 *         return self._number_(radius)
 * 
*/
  __pyx_t_1 = __pyx_f_6SnapPy_Real2Number(__pyx_v_self->c_dirichlet_domain->outradius); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_radius = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":226
 *         """
 *         radius = Real2Number(self.c_dirichlet_domain.outradius)
 *         return self._number_(radius)             # <<<<<<<<<<<<<<
 * 
 *     def spine_radius(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_radius};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":221
 *         return self._number_(radius)
 * 
 *     def out_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the radius of the smallest circubscribed sphere.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.out_radius", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_radius);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":228
 *         return self._number_(radius)
 * 
 *     def spine_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the infimum of the radii (measured from the origin) of all
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_23spine_radius(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_22spine_radius, "\n        Return the infimum of the radii (measured from the origin) of all\n        spines dual to the Dirichlet domain.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_23spine_radius = {"spine_radius", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_23spine_radius, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_22spine_radius};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_23spine_radius(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("spine_radius (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("spine_radius", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("spine_radius", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_22spine_radius(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_22spine_radius(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__pyx_v_radius = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("spine_radius", 0);

  /* "cython/core/dirichlet.pyx":233
 *         spines dual to the Dirichlet domain.
 *         """
 *         radius = Real2Number(self.c_dirichlet_domain.spine_radius)             # <<<<<<<<<<<<<<
 *         return self._number_(radius)
 * 
*/
  __pyx_t_1 = __pyx_f_6SnapPy_Real2Number(__pyx_v_self->c_dirichlet_domain->spine_radius); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_radius = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":234
 *         """
 *         radius = Real2Number(self.c_dirichlet_domain.spine_radius)
 *         return self._number_(radius)             # <<<<<<<<<<<<<<
 * 
 *     def length_spectrum_dicts(self, cutoff_length=1.0,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_radius};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":228
 *         return self._number_(radius)
 * 
 *     def spine_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the infimum of the radii (measured from the origin) of all
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.spine_radius", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_radius);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":236
 *         return self._number_(radius)
 * 
 *     def length_spectrum_dicts(self, cutoff_length=1.0,             # <<<<<<<<<<<<<<
 *                               full_rigor=True,
 *                               multiplicities=True,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_25length_spectrum_dicts(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_24length_spectrum_dicts, "\n        Return a list of info objects describing the short\n        geodesics up to the specified cutoff length.  The keys are\n        'length', 'parity', 'topology', and 'multiplicity'.  The\n        length is the complex length; the parity specifies whether\n        orientation is preserved; and topology distinguishes between\n        circles and mirrored intervals.  Finally, the key 'matrix'\n        in the fundamental group realizing this element.\n\n        >>> M = Manifold('m004(1,2)')\n        >>> D = M.dirichlet_domain(maximize_injectivity_radius=False)\n        >>> lengths = D.length_spectrum_dicts()\n        >>> len(lengths)\n        2\n        >>> lengths[0].matrix in D.pairing_matrices()\n        True\n\n        If the flag 'grouped' is False, then each geodesic is returned as\n        a separate item rather than collating by (length, parity, topology).\n        If the flag 'multiplicities' is False, then the geodesics *are*\n        collated but the multiplicity of each item is set to 0.\n\n        >>> M = Manifold('m003(-3, 1)')\n        >>> D = M.dirichlet_domain()\n        >>> [g.multiplicity for g in D.length_spectrum_dicts()]\n        [3, 3]\n        >>> [g.multiplicity for g in D.length_spectrum_dicts(grouped=False)]\n        [1, 1, 1, 1, 1, 1]\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_25length_spectrum_dicts = {"length_spectrum_dicts", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_25length_spectrum_dicts, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_24length_spectrum_dicts};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_25length_spectrum_dicts(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_cutoff_length = 0;
  PyObject *__pyx_v_full_rigor = 0;
  PyObject *__pyx_v_multiplicities = 0;
  PyObject *__pyx_v_user_radius = 0;
  PyObject *__pyx_v_grouped = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("length_spectrum_dicts (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cutoff_length,&__pyx_mstate_global->__pyx_n_u_full_rigor,&__pyx_mstate_global->__pyx_n_u_multiplicities,&__pyx_mstate_global->__pyx_n_u_user_radius,&__pyx_mstate_global->__pyx_n_u_grouped,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 236, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "length_spectrum_dicts", 0) < (0)) __PYX_ERR(10, 236, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_1_0));

      /* "cython/core/dirichlet.pyx":237
 * 
 *     def length_spectrum_dicts(self, cutoff_length=1.0,
 *                               full_rigor=True,             # <<<<<<<<<<<<<<
 *                               multiplicities=True,
 *                               user_radius=0.0,
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/dirichlet.pyx":238
 *     def length_spectrum_dicts(self, cutoff_length=1.0,
 *                               full_rigor=True,
 *                               multiplicities=True,             # <<<<<<<<<<<<<<
 *                               user_radius=0.0,
 *                               grouped=True):
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_0_0));

      /* "cython/core/dirichlet.pyx":240
 *                               multiplicities=True,
 *                               user_radius=0.0,
 *                               grouped=True):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of info objects describing the short
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_True));
    } else {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 236, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_1_0));

      /* "cython/core/dirichlet.pyx":237
 * 
 *     def length_spectrum_dicts(self, cutoff_length=1.0,
 *                               full_rigor=True,             # <<<<<<<<<<<<<<
 *                               multiplicities=True,
 *                               user_radius=0.0,
*/
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/dirichlet.pyx":238
 *     def length_spectrum_dicts(self, cutoff_length=1.0,
 *                               full_rigor=True,
 *                               multiplicities=True,             # <<<<<<<<<<<<<<
 *                               user_radius=0.0,
 *                               grouped=True):
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_0_0));

      /* "cython/core/dirichlet.pyx":240
 *                               multiplicities=True,
 *                               user_radius=0.0,
 *                               grouped=True):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of info objects describing the short
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_True));
    }
    __pyx_v_cutoff_length = values[0];
    __pyx_v_full_rigor = values[1];
    __pyx_v_multiplicities = values[2];
    __pyx_v_user_radius = values[3];
    __pyx_v_grouped = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("length_spectrum_dicts", 0, 0, 5, __pyx_nargs); __PYX_ERR(10, 236, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.length_spectrum_dicts", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_24length_spectrum_dicts(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self), __pyx_v_cutoff_length, __pyx_v_full_rigor, __pyx_v_multiplicities, __pyx_v_user_radius, __pyx_v_grouped);

  /* "cython/core/dirichlet.pyx":236
 *         return self._number_(radius)
 * 
 *     def length_spectrum_dicts(self, cutoff_length=1.0,             # <<<<<<<<<<<<<<
 *                               full_rigor=True,
 *                               multiplicities=True,
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_24length_spectrum_dicts(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_cutoff_length, PyObject *__pyx_v_full_rigor, PyObject *__pyx_v_multiplicities, PyObject *__pyx_v_user_radius, PyObject *__pyx_v_grouped) {
  int __pyx_v_num_lengths;
  MultiLength *__pyx_v_geodesics;
  int *__pyx_v_c_word;
  PyObject *__pyx_v_spectrum = NULL;
  long __pyx_v_n;
  PyObject *__pyx_v_length = NULL;
  PyObject *__pyx_v_its_matrix = NULL;
  PyObject *__pyx_v_d = NULL;
  PyObject *__pyx_9genexpr85__pyx_v_i = NULL;
  long __pyx_9genexpr86__pyx_v_j;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __pyx_t_6SnapPy_Real __pyx_t_1;
  Boolean __pyx_t_2;
  Boolean __pyx_t_3;
  Boolean __pyx_t_4;
  __pyx_t_6SnapPy_Real __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  long __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  Py_ssize_t __pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  size_t __pyx_t_18;
  int *__pyx_t_19;
  int __pyx_t_20;
  int __pyx_t_21;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("length_spectrum_dicts", 0);

  /* "cython/core/dirichlet.pyx":275
 * 
 *         length_spectrum(self.c_dirichlet_domain,
 *                         Object2Real(cutoff_length),             # <<<<<<<<<<<<<<
 *                         full_rigor,
 *                         multiplicities,
*/
  __pyx_t_1 = __pyx_f_6SnapPy_Object2Real(__pyx_v_cutoff_length); if (unlikely(__pyx_t_1 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(10, 275, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":276
 *         length_spectrum(self.c_dirichlet_domain,
 *                         Object2Real(cutoff_length),
 *                         full_rigor,             # <<<<<<<<<<<<<<
 *                         multiplicities,
 *                         grouped,
*/
  __pyx_t_2 = __Pyx_PyLong_As_Boolean(__pyx_v_full_rigor); if (unlikely((__pyx_t_2 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 276, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":277
 *                         Object2Real(cutoff_length),
 *                         full_rigor,
 *                         multiplicities,             # <<<<<<<<<<<<<<
 *                         grouped,
 *                         Object2Real(user_radius),
*/
  __pyx_t_3 = __Pyx_PyLong_As_Boolean(__pyx_v_multiplicities); if (unlikely((__pyx_t_3 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 277, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":278
 *                         full_rigor,
 *                         multiplicities,
 *                         grouped,             # <<<<<<<<<<<<<<
 *                         Object2Real(user_radius),
 *                         &geodesics,
*/
  __pyx_t_4 = __Pyx_PyLong_As_Boolean(__pyx_v_grouped); if (unlikely((__pyx_t_4 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(10, 278, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":279
 *                         multiplicities,
 *                         grouped,
 *                         Object2Real(user_radius),             # <<<<<<<<<<<<<<
 *                         &geodesics,
 *                         &num_lengths)
*/
  __pyx_t_5 = __pyx_f_6SnapPy_Object2Real(__pyx_v_user_radius); if (unlikely(__pyx_t_5 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(10, 279, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":274
 *         cdef int* c_word
 * 
 *         length_spectrum(self.c_dirichlet_domain,             # <<<<<<<<<<<<<<
 *                         Object2Real(cutoff_length),
 *                         full_rigor,
*/
  length_spectrum(__pyx_v_self->c_dirichlet_domain, __pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_t_5, (&__pyx_v_geodesics), (&__pyx_v_num_lengths)); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 274, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":282
 *                         &geodesics,
 *                         &num_lengths)
 *         spectrum = []             # <<<<<<<<<<<<<<
 *         for n from 0 <= n < num_lengths:
 *             length = Complex2Number(geodesics[n].length)
*/
  __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v_spectrum = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":283
 *                         &num_lengths)
 *         spectrum = []
 *         for n from 0 <= n < num_lengths:             # <<<<<<<<<<<<<<
 *             length = Complex2Number(geodesics[n].length)
 *             its_matrix = matrix([[self._number_(Real2Number(<Real>geodesics[n].matrix[i][j]))
*/
  __pyx_t_7 = __pyx_v_num_lengths;
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_7; __pyx_v_n++) {

    /* "cython/core/dirichlet.pyx":284
 *         spectrum = []
 *         for n from 0 <= n < num_lengths:
 *             length = Complex2Number(geodesics[n].length)             # <<<<<<<<<<<<<<
 *             its_matrix = matrix([[self._number_(Real2Number(<Real>geodesics[n].matrix[i][j]))
 *                                   for j in range(4)] for i in range(4)] )
*/
    __pyx_t_6 = __pyx_f_6SnapPy_Complex2Number((__pyx_v_geodesics[__pyx_v_n]).length); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "cython/core/dirichlet.pyx":285
 *         for n from 0 <= n < num_lengths:
 *             length = Complex2Number(geodesics[n].length)
 *             its_matrix = matrix([[self._number_(Real2Number(<Real>geodesics[n].matrix[i][j]))             # <<<<<<<<<<<<<<
 *                                   for j in range(4)] for i in range(4)] )
 *             d = {
*/
    __pyx_t_8 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    { /* enter inner scope */
      __pyx_t_10 = PyList_New(0); if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 285, __pyx_L7_error)
      __Pyx_GOTREF(__pyx_t_10);

      /* "cython/core/dirichlet.pyx":286
 *             length = Complex2Number(geodesics[n].length)
 *             its_matrix = matrix([[self._number_(Real2Number(<Real>geodesics[n].matrix[i][j]))
 *                                   for j in range(4)] for i in range(4)] )             # <<<<<<<<<<<<<<
 *             d = {
 *                 "length" : self._number_(length),
*/
      for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
        __pyx_t_12 = PyLong_FromSsize_t(__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 286, __pyx_L7_error)
        __Pyx_GOTREF(__pyx_t_12);
        __Pyx_XDECREF_SET(__pyx_9genexpr85__pyx_v_i, __pyx_t_12);
        __pyx_t_12 = 0;
        { /* enter inner scope */

          /* "cython/core/dirichlet.pyx":285
 *         for n from 0 <= n < num_lengths:
 *             length = Complex2Number(geodesics[n].length)
 *             its_matrix = matrix([[self._number_(Real2Number(<Real>geodesics[n].matrix[i][j]))             # <<<<<<<<<<<<<<
 *                                   for j in range(4)] for i in range(4)] )
 *             d = {
*/
          __pyx_t_12 = PyList_New(0); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 285, __pyx_L7_error)
          __Pyx_GOTREF(__pyx_t_12);

          /* "cython/core/dirichlet.pyx":286
 *             length = Complex2Number(geodesics[n].length)
 *             its_matrix = matrix([[self._number_(Real2Number(<Real>geodesics[n].matrix[i][j]))
 *                                   for j in range(4)] for i in range(4)] )             # <<<<<<<<<<<<<<
 *             d = {
 *                 "length" : self._number_(length),
*/
          for (__pyx_t_13 = 0; __pyx_t_13 < 4; __pyx_t_13+=1) {
            __pyx_9genexpr86__pyx_v_j = __pyx_t_13;

            /* "cython/core/dirichlet.pyx":285
 *         for n from 0 <= n < num_lengths:
 *             length = Complex2Number(geodesics[n].length)
 *             its_matrix = matrix([[self._number_(Real2Number(<Real>geodesics[n].matrix[i][j]))             # <<<<<<<<<<<<<<
 *                                   for j in range(4)] for i in range(4)] )
 *             d = {
*/
            __pyx_t_15 = ((PyObject *)__pyx_v_self);
            __Pyx_INCREF(__pyx_t_15);
            __pyx_t_16 = __Pyx_PyIndex_AsSsize_t(__pyx_9genexpr85__pyx_v_i); if (unlikely((__pyx_t_16 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(10, 285, __pyx_L7_error)
            __pyx_t_17 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(((__pyx_v_geodesics[__pyx_v_n]).matrix[__pyx_t_16])[__pyx_9genexpr86__pyx_v_j]))); if (unlikely(!__pyx_t_17)) __PYX_ERR(10, 285, __pyx_L7_error)
            __Pyx_GOTREF(__pyx_t_17);
            __pyx_t_18 = 0;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_15, __pyx_t_17};
              __pyx_t_14 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_18, (2-__pyx_t_18) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
              __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
              if (unlikely(!__pyx_t_14)) __PYX_ERR(10, 285, __pyx_L7_error)
              __Pyx_GOTREF(__pyx_t_14);
            }
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_12, (PyObject*)__pyx_t_14))) __PYX_ERR(10, 285, __pyx_L7_error)
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          }
        } /* exit inner scope */
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_10, (PyObject*)__pyx_t_12))) __PYX_ERR(10, 285, __pyx_L7_error)
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      }
      __Pyx_XDECREF(__pyx_9genexpr85__pyx_v_i); __pyx_9genexpr85__pyx_v_i = 0;
      goto __pyx_L12_exit_scope;
      __pyx_L7_error:;
      __Pyx_XDECREF(__pyx_9genexpr85__pyx_v_i); __pyx_9genexpr85__pyx_v_i = 0;
      goto __pyx_L1_error;
      __pyx_L12_exit_scope:;
    } /* exit inner scope */
    __pyx_t_18 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_9);
      assert(__pyx_t_8);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
      __pyx_t_18 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_10};
      __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_18, (2-__pyx_t_18) | (__pyx_t_18*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 285, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __Pyx_XDECREF_SET(__pyx_v_its_matrix, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "cython/core/dirichlet.pyx":288
 *                                   for j in range(4)] for i in range(4)] )
 *             d = {
 *                 "length" : self._number_(length),             # <<<<<<<<<<<<<<
 *                 "parity" : MatrixParity[geodesics[n].parity],
 *                 "topology" : Orbifold1[geodesics[n].topology],
*/
    __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_10 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_18 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_v_length};
      __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_18, (2-__pyx_t_18) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 288, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
    }
    if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_9) < (0)) __PYX_ERR(10, 288, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/dirichlet.pyx":289
 *             d = {
 *                 "length" : self._number_(length),
 *                 "parity" : MatrixParity[geodesics[n].parity],             # <<<<<<<<<<<<<<
 *                 "topology" : Orbifold1[geodesics[n].topology],
 *                 "multiplicity" :  geodesics[n].multiplicity,
*/
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_MatrixParity); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyLong_From_MatrixParity((__pyx_v_geodesics[__pyx_v_n]).parity); if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_8 = __Pyx_PyObject_GetItem(__pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_parity, __pyx_t_8) < (0)) __PYX_ERR(10, 288, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cython/core/dirichlet.pyx":290
 *                 "length" : self._number_(length),
 *                 "parity" : MatrixParity[geodesics[n].parity],
 *                 "topology" : Orbifold1[geodesics[n].topology],             # <<<<<<<<<<<<<<
 *                 "multiplicity" :  geodesics[n].multiplicity,
 *                 "matrix" : its_matrix }
*/
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_Orbifold1); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_10 = __Pyx_PyLong_From_Orbifold1((__pyx_v_geodesics[__pyx_v_n]).topology); if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_topology, __pyx_t_9) < (0)) __PYX_ERR(10, 288, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/dirichlet.pyx":291
 *                 "parity" : MatrixParity[geodesics[n].parity],
 *                 "topology" : Orbifold1[geodesics[n].topology],
 *                 "multiplicity" :  geodesics[n].multiplicity,             # <<<<<<<<<<<<<<
 *                 "matrix" : its_matrix }
 * 
*/
    __pyx_t_9 = __Pyx_PyLong_From_int((__pyx_v_geodesics[__pyx_v_n]).multiplicity); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_multiplicity, __pyx_t_9) < (0)) __PYX_ERR(10, 288, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/dirichlet.pyx":292
 *                 "topology" : Orbifold1[geodesics[n].topology],
 *                 "multiplicity" :  geodesics[n].multiplicity,
 *                 "matrix" : its_matrix }             # <<<<<<<<<<<<<<
 * 
 *             c_word = geodesics[n].word
*/
    if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_matrix, __pyx_v_its_matrix) < (0)) __PYX_ERR(10, 288, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_d, ((PyObject*)__pyx_t_6));
    __pyx_t_6 = 0;

    /* "cython/core/dirichlet.pyx":294
 *                 "matrix" : its_matrix }
 * 
 *             c_word = geodesics[n].word             # <<<<<<<<<<<<<<
 *             if c_word:
 *                 d['word'] = c_word_as_string(
*/
    __pyx_t_19 = (__pyx_v_geodesics[__pyx_v_n]).word;
    __pyx_v_c_word = __pyx_t_19;

    /* "cython/core/dirichlet.pyx":295
 * 
 *             c_word = geodesics[n].word
 *             if c_word:             # <<<<<<<<<<<<<<
 *                 d['word'] = c_word_as_string(
 *                     c_word, self.c_num_generators, verbose_form = False)
*/
    __pyx_t_20 = (__pyx_v_c_word != 0);
    if (__pyx_t_20) {

      /* "cython/core/dirichlet.pyx":296
 *             c_word = geodesics[n].word
 *             if c_word:
 *                 d['word'] = c_word_as_string(             # <<<<<<<<<<<<<<
 *                     c_word, self.c_num_generators, verbose_form = False)
 * 
*/
      __pyx_t_6 = __pyx_f_6SnapPy_c_word_as_string(__pyx_v_c_word, __pyx_v_self->c_num_generators, Py_False); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 296, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (unlikely((PyDict_SetItem(__pyx_v_d, __pyx_mstate_global->__pyx_n_u_word, __pyx_t_6) < 0))) __PYX_ERR(10, 296, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/dirichlet.pyx":295
 * 
 *             c_word = geodesics[n].word
 *             if c_word:             # <<<<<<<<<<<<<<
 *                 d['word'] = c_word_as_string(
 *                     c_word, self.c_num_generators, verbose_form = False)
*/
    }

    /* "cython/core/dirichlet.pyx":299
 *                     c_word, self.c_num_generators, verbose_form = False)
 * 
 *             spectrum.append(LengthSpectrumInfo(**d))             # <<<<<<<<<<<<<<
 *         free_length_spectrum(geodesics, num_lengths)
 *         return LengthSpectrum(spectrum)
*/
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_LengthSpectrumInfo); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_9 = PyDict_Copy(__pyx_v_d); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_21 = __Pyx_PyList_Append(__pyx_v_spectrum, __pyx_t_10); if (unlikely(__pyx_t_21 == ((int)-1))) __PYX_ERR(10, 299, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  }

  /* "cython/core/dirichlet.pyx":300
 * 
 *             spectrum.append(LengthSpectrumInfo(**d))
 *         free_length_spectrum(geodesics, num_lengths)             # <<<<<<<<<<<<<<
 *         return LengthSpectrum(spectrum)
 * 
*/
  free_length_spectrum(__pyx_v_geodesics, __pyx_v_num_lengths); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 300, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":301
 *             spectrum.append(LengthSpectrumInfo(**d))
 *         free_length_spectrum(geodesics, num_lengths)
 *         return LengthSpectrum(spectrum)             # <<<<<<<<<<<<<<
 * 
 *     def vertex_list(self, details = False):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_LengthSpectrum); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_18 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_18 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_v_spectrum};
    __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_18, (2-__pyx_t_18) | (__pyx_t_18*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
  }
  __pyx_r = __pyx_t_10;
  __pyx_t_10 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":236
 *         return self._number_(radius)
 * 
 *     def length_spectrum_dicts(self, cutoff_length=1.0,             # <<<<<<<<<<<<<<
 *                               full_rigor=True,
 *                               multiplicities=True,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.length_spectrum_dicts", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_spectrum);
  __Pyx_XDECREF(__pyx_v_length);
  __Pyx_XDECREF(__pyx_v_its_matrix);
  __Pyx_XDECREF(__pyx_v_d);
  __Pyx_XDECREF(__pyx_9genexpr85__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":303
 *         return LengthSpectrum(spectrum)
 * 
 *     def vertex_list(self, details = False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of the coordinates of the vertices.  These are
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_27vertex_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_26vertex_list, "\n        Return a list of the coordinates of the vertices.  These are\n        the three space coordinates of a point in the time=1 slice of\n        Minkowski space.  That is to say, these are the coordinates of\n        the image of the point under projection into the Klein model.\n\n        If `details = True` is passed, returns a list of vertices,\n        each represented by a dictionary with keys 'position',\n        'ideal', 'vertex_class'. The coordinates are the value for\n        'position'. The index of the vertex class this vertex belongs\n        to is the value for 'vertex_class'. The value for 'ideal'\n        is True if the vertex is an ideal point.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_27vertex_list = {"vertex_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_27vertex_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_26vertex_list};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_27vertex_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_details = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("vertex_list (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_details,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 303, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 303, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "vertex_list", 0) < (0)) __PYX_ERR(10, 303, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 303, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_details = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("vertex_list", 0, 0, 1, __pyx_nargs); __PYX_ERR(10, 303, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.vertex_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_26vertex_list(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self), __pyx_v_details);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_26vertex_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_details) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("vertex_list", 0);

  /* "cython/core/dirichlet.pyx":318
 *         """
 * 
 *         if details:             # <<<<<<<<<<<<<<
 *             return self._vertex_data_list()
 *         else:
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_details); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(10, 318, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/dirichlet.pyx":319
 * 
 *         if details:
 *             return self._vertex_data_list()             # <<<<<<<<<<<<<<
 *         else:
 *             return self._vertex_list()
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_vertex_data_list, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 319, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/dirichlet.pyx":318
 *         """
 * 
 *         if details:             # <<<<<<<<<<<<<<
 *             return self._vertex_data_list()
 *         else:
*/
  }

  /* "cython/core/dirichlet.pyx":321
 *             return self._vertex_data_list()
 *         else:
 *             return self._vertex_list()             # <<<<<<<<<<<<<<
 * 
 *     def _vertex_list(self):
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_vertex_list, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 321, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/dirichlet.pyx":303
 *         return LengthSpectrum(spectrum)
 * 
 *     def vertex_list(self, details = False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of the coordinates of the vertices.  These are
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.vertex_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":323
 *             return self._vertex_list()
 * 
 *     def _vertex_list(self):             # <<<<<<<<<<<<<<
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_29_vertex_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_29_vertex_list = {"_vertex_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_29_vertex_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_29_vertex_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_vertex_list (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_vertex_list", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_vertex_list", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_28_vertex_list(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_28_vertex_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  WEVertex *__pyx_v_vertex;
  PyObject *__pyx_v_vertices = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  WEVertex *__pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_vertex_list", 0);

  /* "cython/core/dirichlet.pyx":324
 * 
 *     def _vertex_list(self):
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin             # <<<<<<<<<<<<<<
 *         vertices = []
 *         vertex = vertex.next
*/
  __pyx_v_vertex = (&__pyx_v_self->c_dirichlet_domain->vertex_list_begin);

  /* "cython/core/dirichlet.pyx":325
 *     def _vertex_list(self):
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []             # <<<<<<<<<<<<<<
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_vertices = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":326
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []
 *         vertex = vertex.next             # <<<<<<<<<<<<<<
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             vertices.append(
*/
  __pyx_t_2 = __pyx_v_vertex->next;
  __pyx_v_vertex = __pyx_t_2;

  /* "cython/core/dirichlet.pyx":327
 *         vertices = []
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:             # <<<<<<<<<<<<<<
 *             vertices.append(
 *                 (self._number_(Real2Number(<Real>vertex.x[1])),
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_vertex != (&__pyx_v_self->c_dirichlet_domain->vertex_list_end));
    if (!__pyx_t_3) break;

    /* "cython/core/dirichlet.pyx":329
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             vertices.append(
 *                 (self._number_(Real2Number(<Real>vertex.x[1])),             # <<<<<<<<<<<<<<
 *                  self._number_(Real2Number(<Real>vertex.x[2])),
 *                  self._number_(Real2Number(<Real>vertex.x[3]))) )
*/
    __pyx_t_4 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_v_vertex->x[1]))); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 329, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }

    /* "cython/core/dirichlet.pyx":330
 *             vertices.append(
 *                 (self._number_(Real2Number(<Real>vertex.x[1])),
 *                  self._number_(Real2Number(<Real>vertex.x[2])),             # <<<<<<<<<<<<<<
 *                  self._number_(Real2Number(<Real>vertex.x[3]))) )
 *             vertex = vertex.next
*/
    __pyx_t_4 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_7 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_v_vertex->x[2]))); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 330, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_7};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 330, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }

    /* "cython/core/dirichlet.pyx":331
 *                 (self._number_(Real2Number(<Real>vertex.x[1])),
 *                  self._number_(Real2Number(<Real>vertex.x[2])),
 *                  self._number_(Real2Number(<Real>vertex.x[3]))) )             # <<<<<<<<<<<<<<
 *             vertex = vertex.next
 *         return vertices
*/
    __pyx_t_4 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_8 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_v_vertex->x[3]))); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 331, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 331, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }

    /* "cython/core/dirichlet.pyx":329
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             vertices.append(
 *                 (self._number_(Real2Number(<Real>vertex.x[1])),             # <<<<<<<<<<<<<<
 *                  self._number_(Real2Number(<Real>vertex.x[2])),
 *                  self._number_(Real2Number(<Real>vertex.x[3]))) )
*/
    __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(10, 329, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_5);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_5) != (0)) __PYX_ERR(10, 329, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7) != (0)) __PYX_ERR(10, 329, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_5 = 0;
    __pyx_t_7 = 0;

    /* "cython/core/dirichlet.pyx":328
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             vertices.append(             # <<<<<<<<<<<<<<
 *                 (self._number_(Real2Number(<Real>vertex.x[1])),
 *                  self._number_(Real2Number(<Real>vertex.x[2])),
*/
    __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_vertices, __pyx_t_8); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(10, 328, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

    /* "cython/core/dirichlet.pyx":332
 *                  self._number_(Real2Number(<Real>vertex.x[2])),
 *                  self._number_(Real2Number(<Real>vertex.x[3]))) )
 *             vertex = vertex.next             # <<<<<<<<<<<<<<
 *         return vertices
 * 
*/
    __pyx_t_2 = __pyx_v_vertex->next;
    __pyx_v_vertex = __pyx_t_2;
  }

  /* "cython/core/dirichlet.pyx":333
 *                  self._number_(Real2Number(<Real>vertex.x[3]))) )
 *             vertex = vertex.next
 *         return vertices             # <<<<<<<<<<<<<<
 * 
 *     def _vertex_data_list(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_vertices);
  __pyx_r = __pyx_v_vertices;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":323
 *             return self._vertex_list()
 * 
 *     def _vertex_list(self):             # <<<<<<<<<<<<<<
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain._vertex_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_vertices);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":335
 *         return vertices
 * 
 *     def _vertex_data_list(self):             # <<<<<<<<<<<<<<
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_31_vertex_data_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_31_vertex_data_list = {"_vertex_data_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_31_vertex_data_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_31_vertex_data_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_vertex_data_list (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_vertex_data_list", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_vertex_data_list", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_30_vertex_data_list(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_30_vertex_data_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  WEVertex *__pyx_v_vertex;
  PyObject *__pyx_v_vertices = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  WEVertex *__pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_vertex_data_list", 0);

  /* "cython/core/dirichlet.pyx":336
 * 
 *     def _vertex_data_list(self):
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin             # <<<<<<<<<<<<<<
 *         vertices = []
 *         vertex = vertex.next
*/
  __pyx_v_vertex = (&__pyx_v_self->c_dirichlet_domain->vertex_list_begin);

  /* "cython/core/dirichlet.pyx":337
 *     def _vertex_data_list(self):
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []             # <<<<<<<<<<<<<<
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_vertices = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":338
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []
 *         vertex = vertex.next             # <<<<<<<<<<<<<<
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             vertices.append(
*/
  __pyx_t_2 = __pyx_v_vertex->next;
  __pyx_v_vertex = __pyx_t_2;

  /* "cython/core/dirichlet.pyx":339
 *         vertices = []
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:             # <<<<<<<<<<<<<<
 *             vertices.append(
 *                 {'position': ( self._number_(Real2Number(<Real>vertex.x[1])),
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_vertex != (&__pyx_v_self->c_dirichlet_domain->vertex_list_end));
    if (!__pyx_t_3) break;

    /* "cython/core/dirichlet.pyx":341
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             vertices.append(
 *                 {'position': ( self._number_(Real2Number(<Real>vertex.x[1])),             # <<<<<<<<<<<<<<
 *                                self._number_(Real2Number(<Real>vertex.x[2])),
 *                                self._number_(Real2Number(<Real>vertex.x[3])) ),
*/
    __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_v_vertex->x[1]))); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 341, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }

    /* "cython/core/dirichlet.pyx":342
 *             vertices.append(
 *                 {'position': ( self._number_(Real2Number(<Real>vertex.x[1])),
 *                                self._number_(Real2Number(<Real>vertex.x[2])),             # <<<<<<<<<<<<<<
 *                                self._number_(Real2Number(<Real>vertex.x[3])) ),
 *                  'ideal': bool(vertex.ideal),
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_8 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_v_vertex->x[2]))); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_8};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 342, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }

    /* "cython/core/dirichlet.pyx":343
 *                 {'position': ( self._number_(Real2Number(<Real>vertex.x[1])),
 *                                self._number_(Real2Number(<Real>vertex.x[2])),
 *                                self._number_(Real2Number(<Real>vertex.x[3])) ),             # <<<<<<<<<<<<<<
 *                  'ideal': bool(vertex.ideal),
 *                  'vertex_class' : vertex.v_class.index
*/
    __pyx_t_5 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_9 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_v_vertex->x[3]))); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 343, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_9};
      __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 343, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }

    /* "cython/core/dirichlet.pyx":341
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             vertices.append(
 *                 {'position': ( self._number_(Real2Number(<Real>vertex.x[1])),             # <<<<<<<<<<<<<<
 *                                self._number_(Real2Number(<Real>vertex.x[2])),
 *                                self._number_(Real2Number(<Real>vertex.x[3])) ),
*/
    __pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4) != (0)) __PYX_ERR(10, 341, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_6) != (0)) __PYX_ERR(10, 341, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_8) != (0)) __PYX_ERR(10, 341, __pyx_L1_error);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __pyx_t_8 = 0;
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_position, __pyx_t_9) < (0)) __PYX_ERR(10, 341, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/dirichlet.pyx":344
 *                                self._number_(Real2Number(<Real>vertex.x[2])),
 *                                self._number_(Real2Number(<Real>vertex.x[3])) ),
 *                  'ideal': bool(vertex.ideal),             # <<<<<<<<<<<<<<
 *                  'vertex_class' : vertex.v_class.index
 *                  })
*/
    __pyx_t_9 = __Pyx_PyBool_FromLong((!(!(__pyx_v_vertex->ideal != 0)))); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 344, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_ideal, __pyx_t_9) < (0)) __PYX_ERR(10, 341, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/dirichlet.pyx":345
 *                                self._number_(Real2Number(<Real>vertex.x[3])) ),
 *                  'ideal': bool(vertex.ideal),
 *                  'vertex_class' : vertex.v_class.index             # <<<<<<<<<<<<<<
 *                  })
 *             vertex = vertex.next
*/
    __pyx_t_9 = __Pyx_PyLong_From_int(__pyx_v_vertex->v_class->index); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 345, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_vertex_class, __pyx_t_9) < (0)) __PYX_ERR(10, 341, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/dirichlet.pyx":340
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             vertices.append(             # <<<<<<<<<<<<<<
 *                 {'position': ( self._number_(Real2Number(<Real>vertex.x[1])),
 *                                self._number_(Real2Number(<Real>vertex.x[2])),
*/
    __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_vertices, __pyx_t_1); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(10, 340, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":347
 *                  'vertex_class' : vertex.v_class.index
 *                  })
 *             vertex = vertex.next             # <<<<<<<<<<<<<<
 *         return vertices
 * 
*/
    __pyx_t_2 = __pyx_v_vertex->next;
    __pyx_v_vertex = __pyx_t_2;
  }

  /* "cython/core/dirichlet.pyx":348
 *                  })
 *             vertex = vertex.next
 *         return vertices             # <<<<<<<<<<<<<<
 * 
 *     def _vertex_to_index_dict(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_vertices);
  __pyx_r = __pyx_v_vertices;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":335
 *         return vertices
 * 
 *     def _vertex_data_list(self):             # <<<<<<<<<<<<<<
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain._vertex_data_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_vertices);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":350
 *         return vertices
 * 
 *     def _vertex_to_index_dict(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns dictionary from WEVertex pointer to index of vertex.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_33_vertex_to_index_dict(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_32_vertex_to_index_dict, "\n        Returns dictionary from WEVertex pointer to index of vertex.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_33_vertex_to_index_dict = {"_vertex_to_index_dict", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_33_vertex_to_index_dict, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_32_vertex_to_index_dict};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_33_vertex_to_index_dict(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_vertex_to_index_dict (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_vertex_to_index_dict", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_vertex_to_index_dict", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_32_vertex_to_index_dict(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_32_vertex_to_index_dict(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  WEVertex *__pyx_v_vertex;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_index = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  WEVertex *__pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_vertex_to_index_dict", 0);

  /* "cython/core/dirichlet.pyx":354
 *         Returns dictionary from WEVertex pointer to index of vertex.
 *         """
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin             # <<<<<<<<<<<<<<
 * 
 *         result = {}
*/
  __pyx_v_vertex = (&__pyx_v_self->c_dirichlet_domain->vertex_list_begin);

  /* "cython/core/dirichlet.pyx":356
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 * 
 *         result = {}             # <<<<<<<<<<<<<<
 *         index = 0
 *         vertex = vertex.next
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":357
 * 
 *         result = {}
 *         index = 0             # <<<<<<<<<<<<<<
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_v_index = __pyx_mstate_global->__pyx_int_0;

  /* "cython/core/dirichlet.pyx":358
 *         result = {}
 *         index = 0
 *         vertex = vertex.next             # <<<<<<<<<<<<<<
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             result[<size_t>(vertex)] = index
*/
  __pyx_t_2 = __pyx_v_vertex->next;
  __pyx_v_vertex = __pyx_t_2;

  /* "cython/core/dirichlet.pyx":359
 *         index = 0
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:             # <<<<<<<<<<<<<<
 *             result[<size_t>(vertex)] = index
 *             index += 1
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_vertex != (&__pyx_v_self->c_dirichlet_domain->vertex_list_end));
    if (!__pyx_t_3) break;

    /* "cython/core/dirichlet.pyx":360
 *         vertex = vertex.next
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             result[<size_t>(vertex)] = index             # <<<<<<<<<<<<<<
 *             index += 1
 *             vertex = vertex.next
*/
    __pyx_t_1 = __Pyx_PyLong_FromSize_t(((size_t)__pyx_v_vertex)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 360, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_t_1, __pyx_v_index) < 0))) __PYX_ERR(10, 360, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":361
 *         while vertex != &self.c_dirichlet_domain.vertex_list_end:
 *             result[<size_t>(vertex)] = index
 *             index += 1             # <<<<<<<<<<<<<<
 *             vertex = vertex.next
 *         return result
*/
    __pyx_t_1 = __Pyx_PyLong_AddObjC(__pyx_v_index, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 361, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_index, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":362
 *             result[<size_t>(vertex)] = index
 *             index += 1
 *             vertex = vertex.next             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
    __pyx_t_2 = __pyx_v_vertex->next;
    __pyx_v_vertex = __pyx_t_2;
  }

  /* "cython/core/dirichlet.pyx":363
 *             index += 1
 *             vertex = vertex.next
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def _edge_to_index_dict(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":350
 *         return vertices
 * 
 *     def _vertex_to_index_dict(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns dictionary from WEVertex pointer to index of vertex.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain._vertex_to_index_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":365
 *         return result
 * 
 *     def _edge_to_index_dict(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns dictionary from WEEdge pointer to index of edge.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_35_edge_to_index_dict(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_34_edge_to_index_dict, "\n        Returns dictionary from WEEdge pointer to index of edge.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_35_edge_to_index_dict = {"_edge_to_index_dict", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_35_edge_to_index_dict, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_34_edge_to_index_dict};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_35_edge_to_index_dict(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_edge_to_index_dict (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_edge_to_index_dict", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_edge_to_index_dict", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_34_edge_to_index_dict(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_34_edge_to_index_dict(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  WEEdge *__pyx_v_edge;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_index = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  WEEdge *__pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_edge_to_index_dict", 0);

  /* "cython/core/dirichlet.pyx":369
 *         Returns dictionary from WEEdge pointer to index of edge.
 *         """
 *         cdef WEEdge *edge = &self.c_dirichlet_domain.edge_list_begin             # <<<<<<<<<<<<<<
 * 
 *         result = { }
*/
  __pyx_v_edge = (&__pyx_v_self->c_dirichlet_domain->edge_list_begin);

  /* "cython/core/dirichlet.pyx":371
 *         cdef WEEdge *edge = &self.c_dirichlet_domain.edge_list_begin
 * 
 *         result = { }             # <<<<<<<<<<<<<<
 *         index = 0
 *         edge = edge.next
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":372
 * 
 *         result = { }
 *         index = 0             # <<<<<<<<<<<<<<
 *         edge = edge.next
 *         while edge != &self.c_dirichlet_domain.edge_list_end:
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_v_index = __pyx_mstate_global->__pyx_int_0;

  /* "cython/core/dirichlet.pyx":373
 *         result = { }
 *         index = 0
 *         edge = edge.next             # <<<<<<<<<<<<<<
 *         while edge != &self.c_dirichlet_domain.edge_list_end:
 *             result[<size_t>(edge)] = index
*/
  __pyx_t_2 = __pyx_v_edge->next;
  __pyx_v_edge = __pyx_t_2;

  /* "cython/core/dirichlet.pyx":374
 *         index = 0
 *         edge = edge.next
 *         while edge != &self.c_dirichlet_domain.edge_list_end:             # <<<<<<<<<<<<<<
 *             result[<size_t>(edge)] = index
 *             index += 1
*/
  while (1) {
    __pyx_t_3 = (__pyx_v_edge != (&__pyx_v_self->c_dirichlet_domain->edge_list_end));
    if (!__pyx_t_3) break;

    /* "cython/core/dirichlet.pyx":375
 *         edge = edge.next
 *         while edge != &self.c_dirichlet_domain.edge_list_end:
 *             result[<size_t>(edge)] = index             # <<<<<<<<<<<<<<
 *             index += 1
 *             edge = edge.next
*/
    __pyx_t_1 = __Pyx_PyLong_FromSize_t(((size_t)__pyx_v_edge)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (unlikely((PyDict_SetItem(__pyx_v_result, __pyx_t_1, __pyx_v_index) < 0))) __PYX_ERR(10, 375, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":376
 *         while edge != &self.c_dirichlet_domain.edge_list_end:
 *             result[<size_t>(edge)] = index
 *             index += 1             # <<<<<<<<<<<<<<
 *             edge = edge.next
 *         return result
*/
    __pyx_t_1 = __Pyx_PyLong_AddObjC(__pyx_v_index, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 376, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_index, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":377
 *             result[<size_t>(edge)] = index
 *             index += 1
 *             edge = edge.next             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
    __pyx_t_2 = __pyx_v_edge->next;
    __pyx_v_edge = __pyx_t_2;
  }

  /* "cython/core/dirichlet.pyx":378
 *             index += 1
 *             edge = edge.next
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def face_list(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":365
 *         return result
 * 
 *     def _edge_to_index_dict(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns dictionary from WEEdge pointer to index of edge.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain._edge_to_index_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":380
 *         return result
 * 
 *     def face_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of faces, each represented as a dictionary with
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_37face_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_36face_list, "\n        Return a list of faces, each represented as a dictionary with\n        keys 'vertices', 'distance', 'closest', 'hue', 'vertex_indices',\n        'edge_indices', 'vertex_image_indices', 'edge_image_indices',\n        'edge_orientations'.\n\n        The distance from the origin is the value for 'distance', and\n        the value for 'closest' is the orthogonal projection of the\n        origin to the plane containing the face.  The vertices of each\n        face are listed in clockwise order, as viewed from outside the\n        polyhedron.\n\n        The coordinates of vertices are stored in 'vertices' and the\n        corresponding index into vertex_data_list() is stored in\n        'vertex_index'. The indices (in edge_list()) to the edges of\n        the face (also in clockwise order) are stored in\n        'edge_indices' such that the first edge is adjacent to the\n        first and second vertex.  The respective value in\n        'edge_orientations' is +/-1 to indicate whether the\n        orientation of the edge induced from the orientation of the face\n        is the same or opposite than the edges orientation.\n\n        To find the image of a vertex or edge adjacent to a face under\n        the pairing matrix for this face, lookup the index in\n        'vertex_image_indices', respectively, 'edge_image_indices' at\n        the respective position.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_37face_list = {"face_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_37face_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_36face_list};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_37face_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("face_list (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("face_list", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("face_list", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_36face_list(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_6SnapPy_16CDirichletDomain_9face_list_2generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cython/core/dirichlet.pyx":434
 *                 vertex = edge.v[end]
 *                 vertices.append(tuple(
 *                     self._number_(Real2Number(<Real>vertex.x[i]))             # <<<<<<<<<<<<<<
 *                     for i in range(1,4) ))
 *                 vertex_indices.append(
*/

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_9face_list_genexpr(PyObject *__pyx_self) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *)__pyx_tp_new_6SnapPy___pyx_scope_struct_7_genexpr(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(10, 434, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_outer_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *) __pyx_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_outer_scope);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_6SnapPy_16CDirichletDomain_9face_list_2generator4, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_face_list_locals_genexpr, __pyx_mstate_global->__pyx_n_u_SnapPy); if (unlikely(!gen)) __PYX_ERR(10, 434, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.face_list.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_6SnapPy_16CDirichletDomain_9face_list_2generator4(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *__pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  long __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    case 1: goto __pyx_L6_resume_from_yield;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(__pyx_sent_value != Py_None)) {
    if (unlikely(__pyx_sent_value)) PyErr_SetString(PyExc_TypeError, "can't send non-None value to a just-started generator");
    __PYX_ERR(10, 434, __pyx_L1_error)
  }

  /* "cython/core/dirichlet.pyx":435
 *                 vertices.append(tuple(
 *                     self._number_(Real2Number(<Real>vertex.x[i]))
 *                     for i in range(1,4) ))             # <<<<<<<<<<<<<<
 *                 vertex_indices.append(
 *                     vertex_to_index[<size_t>(vertex)])
*/
  for (__pyx_t_1 = 1; __pyx_t_1 < 4; __pyx_t_1+=1) {
    __pyx_cur_scope->__pyx_v_i = __pyx_t_1;

    /* "cython/core/dirichlet.pyx":434
 *                 vertex = edge.v[end]
 *                 vertices.append(tuple(
 *                     self._number_(Real2Number(<Real>vertex.x[i]))             # <<<<<<<<<<<<<<
 *                     for i in range(1,4) ))
 *                 vertex_indices.append(
*/
    if (unlikely(!__pyx_cur_scope->__pyx_outer_scope->__pyx_v_self)) { __Pyx_RaiseClosureNameError("self"); __PYX_ERR(10, 434, __pyx_L1_error) }
    __pyx_t_3 = ((PyObject *)__pyx_cur_scope->__pyx_outer_scope->__pyx_v_self);
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_cur_scope->__pyx_outer_scope->__pyx_v_vertex->x[__pyx_cur_scope->__pyx_v_i]))); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 434, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 434, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    __pyx_cur_scope->__pyx_t_0 = __pyx_t_1;
    __Pyx_XGIVEREF(__pyx_r);
    __Pyx_RefNannyFinishContext();
    __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
    /* return from generator, yielding value */
    __pyx_generator->resume_label = 1;
    return __pyx_r;
    __pyx_L6_resume_from_yield:;
    __pyx_t_1 = __pyx_cur_scope->__pyx_t_0;
    if (unlikely(!__pyx_sent_value)) __PYX_ERR(10, 434, __pyx_L1_error)
  }
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":380
 *         return result
 * 
 *     def face_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of faces, each represented as a dictionary with
*/

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_36face_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *__pyx_cur_scope;
  WEFace *__pyx_v_face;
  WEEdge *__pyx_v_edge;
  WEEdge *__pyx_v_neighbor;
  PyObject *__pyx_v_vertex_to_index = NULL;
  PyObject *__pyx_v_edge_to_index = NULL;
  long __pyx_v_left;
  long __pyx_v_right;
  long __pyx_v_tail;
  long __pyx_v_tip;
  PyObject *__pyx_v_faces = NULL;
  PyObject *__pyx_v_vertices = NULL;
  PyObject *__pyx_v_vertex_indices = NULL;
  PyObject *__pyx_v_vertex_image_indices = NULL;
  PyObject *__pyx_v_edge_indices = NULL;
  PyObject *__pyx_v_edge_image_indices = NULL;
  PyObject *__pyx_v_edge_orientations = NULL;
  long __pyx_v_side;
  long __pyx_v_end;
  long __pyx_v_neighbor_end;
  PyObject *__pyx_gb_6SnapPy_16CDirichletDomain_9face_list_2generator4 = 0;
  PyObject *__pyx_9genexpr88__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  long __pyx_t_4;
  long __pyx_t_5;
  long __pyx_t_6;
  long __pyx_t_7;
  WEFace *__pyx_t_8;
  int __pyx_t_9;
  WEEdge *__pyx_t_10;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  Py_ssize_t __pyx_t_14;
  Py_ssize_t __pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  double __pyx_t_17;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("face_list", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *)__pyx_tp_new_6SnapPy___pyx_scope_struct_6_face_list(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(10, 380, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_v_self = __pyx_v_self;
  __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self);

  /* "cython/core/dirichlet.pyx":408
 *         the respective position.
 *         """
 *         cdef WEFace *face = &self.c_dirichlet_domain.face_list_begin             # <<<<<<<<<<<<<<
 *         cdef WEEdge *edge
 *         cdef WEEdge *neighbor
*/
  __pyx_v_face = (&__pyx_cur_scope->__pyx_v_self->c_dirichlet_domain->face_list_begin);

  /* "cython/core/dirichlet.pyx":413
 *         cdef WEVertex *vertex
 * 
 *         vertex_to_index = self._vertex_to_index_dict()             # <<<<<<<<<<<<<<
 *         edge_to_index = self._edge_to_index_dict()
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_vertex_to_index_dict, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_vertex_to_index = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":414
 * 
 *         vertex_to_index = self._vertex_to_index_dict()
 *         edge_to_index = self._edge_to_index_dict()             # <<<<<<<<<<<<<<
 * 
 *         # WE enums -- see winged_edge.h
*/
  __pyx_t_2 = ((PyObject *)__pyx_cur_scope->__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_edge_to_index_dict, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 414, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_edge_to_index = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":417
 * 
 *         # WE enums -- see winged_edge.h
 *         left, right, tail, tip = 0, 1, 0, 1             # <<<<<<<<<<<<<<
 *         faces = []
 *         face = face.next
*/
  __pyx_t_4 = 0;
  __pyx_t_5 = 1;
  __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  __pyx_v_left = __pyx_t_4;
  __pyx_v_right = __pyx_t_5;
  __pyx_v_tail = __pyx_t_6;
  __pyx_v_tip = __pyx_t_7;

  /* "cython/core/dirichlet.pyx":418
 *         # WE enums -- see winged_edge.h
 *         left, right, tail, tip = 0, 1, 0, 1
 *         faces = []             # <<<<<<<<<<<<<<
 *         face = face.next
 *         while face != &self.c_dirichlet_domain.face_list_end:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_faces = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":419
 *         left, right, tail, tip = 0, 1, 0, 1
 *         faces = []
 *         face = face.next             # <<<<<<<<<<<<<<
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             vertices = []
*/
  __pyx_t_8 = __pyx_v_face->next;
  __pyx_v_face = __pyx_t_8;

  /* "cython/core/dirichlet.pyx":420
 *         faces = []
 *         face = face.next
 *         while face != &self.c_dirichlet_domain.face_list_end:             # <<<<<<<<<<<<<<
 *             vertices = []
 *             vertex_indices = []
*/
  while (1) {
    __pyx_t_9 = (__pyx_v_face != (&__pyx_cur_scope->__pyx_v_self->c_dirichlet_domain->face_list_end));
    if (!__pyx_t_9) break;

    /* "cython/core/dirichlet.pyx":421
 *         face = face.next
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             vertices = []             # <<<<<<<<<<<<<<
 *             vertex_indices = []
 *             vertex_image_indices = []
*/
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 421, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_vertices, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":422
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             vertices = []
 *             vertex_indices = []             # <<<<<<<<<<<<<<
 *             vertex_image_indices = []
 *             edge_indices = []
*/
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 422, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_vertex_indices, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":423
 *             vertices = []
 *             vertex_indices = []
 *             vertex_image_indices = []             # <<<<<<<<<<<<<<
 *             edge_indices = []
 *             edge_image_indices = []
*/
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_vertex_image_indices, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":424
 *             vertex_indices = []
 *             vertex_image_indices = []
 *             edge_indices = []             # <<<<<<<<<<<<<<
 *             edge_image_indices = []
 *             edge_orientations = []
*/
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 424, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_edge_indices, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":425
 *             vertex_image_indices = []
 *             edge_indices = []
 *             edge_image_indices = []             # <<<<<<<<<<<<<<
 *             edge_orientations = []
 *             edge = face.some_edge
*/
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 425, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_edge_image_indices, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":426
 *             edge_indices = []
 *             edge_image_indices = []
 *             edge_orientations = []             # <<<<<<<<<<<<<<
 *             edge = face.some_edge
 *             while True:
*/
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 426, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_edge_orientations, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":427
 *             edge_image_indices = []
 *             edge_orientations = []
 *             edge = face.some_edge             # <<<<<<<<<<<<<<
 *             while True:
 *                 # find the vertex at the counter-clockwise end
*/
    __pyx_t_10 = __pyx_v_face->some_edge;
    __pyx_v_edge = __pyx_t_10;

    /* "cython/core/dirichlet.pyx":428
 *             edge_orientations = []
 *             edge = face.some_edge
 *             while True:             # <<<<<<<<<<<<<<
 *                 # find the vertex at the counter-clockwise end
 *                 side = left if edge.f[left] == face else right
*/
    while (1) {

      /* "cython/core/dirichlet.pyx":430
 *             while True:
 *                 # find the vertex at the counter-clockwise end
 *                 side = left if edge.f[left] == face else right             # <<<<<<<<<<<<<<
 *                 end = tip if side == left else tail
 *                 vertex = edge.v[end]
*/
      __pyx_t_9 = ((__pyx_v_edge->f[__pyx_v_left]) == __pyx_v_face);
      if (__pyx_t_9) {
        __pyx_t_7 = __pyx_v_left;
      } else {
        __pyx_t_7 = __pyx_v_right;
      }
      __pyx_v_side = __pyx_t_7;

      /* "cython/core/dirichlet.pyx":431
 *                 # find the vertex at the counter-clockwise end
 *                 side = left if edge.f[left] == face else right
 *                 end = tip if side == left else tail             # <<<<<<<<<<<<<<
 *                 vertex = edge.v[end]
 *                 vertices.append(tuple(
*/
      __pyx_t_9 = (__pyx_v_side == __pyx_v_left);
      if (__pyx_t_9) {
        __pyx_t_7 = __pyx_v_tip;
      } else {
        __pyx_t_7 = __pyx_v_tail;
      }
      __pyx_v_end = __pyx_t_7;

      /* "cython/core/dirichlet.pyx":432
 *                 side = left if edge.f[left] == face else right
 *                 end = tip if side == left else tail
 *                 vertex = edge.v[end]             # <<<<<<<<<<<<<<
 *                 vertices.append(tuple(
 *                     self._number_(Real2Number(<Real>vertex.x[i]))
*/
      __pyx_cur_scope->__pyx_v_vertex = (__pyx_v_edge->v[__pyx_v_end]);

      /* "cython/core/dirichlet.pyx":434
 *                 vertex = edge.v[end]
 *                 vertices.append(tuple(
 *                     self._number_(Real2Number(<Real>vertex.x[i]))             # <<<<<<<<<<<<<<
 *                     for i in range(1,4) ))
 *                 vertex_indices.append(
*/
      __pyx_t_1 = __pyx_pf_6SnapPy_16CDirichletDomain_9face_list_genexpr(((PyObject*)__pyx_cur_scope)); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 434, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "cython/core/dirichlet.pyx":433
 *                 end = tip if side == left else tail
 *                 vertex = edge.v[end]
 *                 vertices.append(tuple(             # <<<<<<<<<<<<<<
 *                     self._number_(Real2Number(<Real>vertex.x[i]))
 *                     for i in range(1,4) ))
*/
      __pyx_t_2 = __Pyx_PySequence_Tuple(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 433, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_vertices, __pyx_t_2); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(10, 433, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/dirichlet.pyx":437
 *                     for i in range(1,4) ))
 *                 vertex_indices.append(
 *                     vertex_to_index[<size_t>(vertex)])             # <<<<<<<<<<<<<<
 *                 edge_indices.append(
 *                     edge_to_index[<size_t>(edge)])
*/
      __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_vertex_to_index, ((size_t)__pyx_cur_scope->__pyx_v_vertex), size_t, 0, __Pyx_PyLong_FromSize_t, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 437, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);

      /* "cython/core/dirichlet.pyx":436
 *                     self._number_(Real2Number(<Real>vertex.x[i]))
 *                     for i in range(1,4) ))
 *                 vertex_indices.append(             # <<<<<<<<<<<<<<
 *                     vertex_to_index[<size_t>(vertex)])
 *                 edge_indices.append(
*/
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_vertex_indices, __pyx_t_2); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(10, 436, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/dirichlet.pyx":439
 *                     vertex_to_index[<size_t>(vertex)])
 *                 edge_indices.append(
 *                     edge_to_index[<size_t>(edge)])             # <<<<<<<<<<<<<<
 *                 edge_orientations.append(
 *                     +1 if side == left else -1)
*/
      __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_edge_to_index, ((size_t)__pyx_v_edge), size_t, 0, __Pyx_PyLong_FromSize_t, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 439, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);

      /* "cython/core/dirichlet.pyx":438
 *                 vertex_indices.append(
 *                     vertex_to_index[<size_t>(vertex)])
 *                 edge_indices.append(             # <<<<<<<<<<<<<<
 *                     edge_to_index[<size_t>(edge)])
 *                 edge_orientations.append(
*/
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_edge_indices, __pyx_t_2); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(10, 438, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/dirichlet.pyx":441
 *                     edge_to_index[<size_t>(edge)])
 *                 edge_orientations.append(
 *                     +1 if side == left else -1)             # <<<<<<<<<<<<<<
 * 
 *                 neighbor = edge.neighbor[side]
*/
      __pyx_t_9 = (__pyx_v_side == __pyx_v_left);
      if (__pyx_t_9) {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
        __pyx_t_2 = __pyx_mstate_global->__pyx_int_1;
      } else {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_int_neg_1);
        __pyx_t_2 = __pyx_mstate_global->__pyx_int_neg_1;
      }

      /* "cython/core/dirichlet.pyx":440
 *                 edge_indices.append(
 *                     edge_to_index[<size_t>(edge)])
 *                 edge_orientations.append(             # <<<<<<<<<<<<<<
 *                     +1 if side == left else -1)
 * 
*/
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_edge_orientations, __pyx_t_2); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(10, 440, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/dirichlet.pyx":443
 *                     +1 if side == left else -1)
 * 
 *                 neighbor = edge.neighbor[side]             # <<<<<<<<<<<<<<
 *                 edge_image_indices.append(
 *                     edge_to_index[<size_t>neighbor])
*/
      __pyx_v_neighbor = (__pyx_v_edge->neighbor[__pyx_v_side]);

      /* "cython/core/dirichlet.pyx":445
 *                 neighbor = edge.neighbor[side]
 *                 edge_image_indices.append(
 *                     edge_to_index[<size_t>neighbor])             # <<<<<<<<<<<<<<
 * 
 *                 neighbor_end = end
*/
      __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_edge_to_index, ((size_t)__pyx_v_neighbor), size_t, 0, __Pyx_PyLong_FromSize_t, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 445, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);

      /* "cython/core/dirichlet.pyx":444
 * 
 *                 neighbor = edge.neighbor[side]
 *                 edge_image_indices.append(             # <<<<<<<<<<<<<<
 *                     edge_to_index[<size_t>neighbor])
 * 
*/
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_edge_image_indices, __pyx_t_2); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(10, 444, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/dirichlet.pyx":447
 *                     edge_to_index[<size_t>neighbor])
 * 
 *                 neighbor_end = end             # <<<<<<<<<<<<<<
 *                 if not edge.preserves_direction[side]:
 *                     neighbor_end = tail if end == tip else tip
*/
      __pyx_v_neighbor_end = __pyx_v_end;

      /* "cython/core/dirichlet.pyx":448
 * 
 *                 neighbor_end = end
 *                 if not edge.preserves_direction[side]:             # <<<<<<<<<<<<<<
 *                     neighbor_end = tail if end == tip else tip
 * 
*/
      __pyx_t_9 = (!((__pyx_v_edge->preserves_direction[__pyx_v_side]) != 0));
      if (__pyx_t_9) {

        /* "cython/core/dirichlet.pyx":449
 *                 neighbor_end = end
 *                 if not edge.preserves_direction[side]:
 *                     neighbor_end = tail if end == tip else tip             # <<<<<<<<<<<<<<
 * 
 *                 vertex_image_indices.append(
*/
        __pyx_t_9 = (__pyx_v_end == __pyx_v_tip);
        if (__pyx_t_9) {
          __pyx_t_7 = __pyx_v_tail;
        } else {
          __pyx_t_7 = __pyx_v_tip;
        }
        __pyx_v_neighbor_end = __pyx_t_7;

        /* "cython/core/dirichlet.pyx":448
 * 
 *                 neighbor_end = end
 *                 if not edge.preserves_direction[side]:             # <<<<<<<<<<<<<<
 *                     neighbor_end = tail if end == tip else tip
 * 
*/
      }

      /* "cython/core/dirichlet.pyx":452
 * 
 *                 vertex_image_indices.append(
 *                     vertex_to_index[<size_t>(neighbor.v[neighbor_end])])             # <<<<<<<<<<<<<<
 * 
 *                 # get the next edge
*/
      __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_vertex_to_index, ((size_t)(__pyx_v_neighbor->v[__pyx_v_neighbor_end])), size_t, 0, __Pyx_PyLong_FromSize_t, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 452, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);

      /* "cython/core/dirichlet.pyx":451
 *                     neighbor_end = tail if end == tip else tip
 * 
 *                 vertex_image_indices.append(             # <<<<<<<<<<<<<<
 *                     vertex_to_index[<size_t>(neighbor.v[neighbor_end])])
 * 
*/
      __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_vertex_image_indices, __pyx_t_2); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(10, 451, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/dirichlet.pyx":455
 * 
 *                 # get the next edge
 *                 edge = edge.e[end][side]             # <<<<<<<<<<<<<<
 *                 if edge == face.some_edge:
 *                     break
*/
      __pyx_v_edge = ((__pyx_v_edge->e[__pyx_v_end])[__pyx_v_side]);

      /* "cython/core/dirichlet.pyx":456
 *                 # get the next edge
 *                 edge = edge.e[end][side]
 *                 if edge == face.some_edge:             # <<<<<<<<<<<<<<
 *                     break
 * 
*/
      __pyx_t_9 = (__pyx_v_edge == __pyx_v_face->some_edge);
      if (__pyx_t_9) {

        /* "cython/core/dirichlet.pyx":457
 *                 edge = edge.e[end][side]
 *                 if edge == face.some_edge:
 *                     break             # <<<<<<<<<<<<<<
 * 
 *             faces.append(
*/
        goto __pyx_L6_break;

        /* "cython/core/dirichlet.pyx":456
 *                 # get the next edge
 *                 edge = edge.e[end][side]
 *                 if edge == face.some_edge:             # <<<<<<<<<<<<<<
 *                     break
 * 
*/
      }
    }
    __pyx_L6_break:;

    /* "cython/core/dirichlet.pyx":460
 * 
 *             faces.append(
 *                 {'vertices' : vertices,             # <<<<<<<<<<<<<<
 *                  'vertex_indices' : vertex_indices,
 *                  'edge_indices' : edge_indices,
*/
    __pyx_t_2 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 460, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_vertices, __pyx_v_vertices) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":461
 *             faces.append(
 *                 {'vertices' : vertices,
 *                  'vertex_indices' : vertex_indices,             # <<<<<<<<<<<<<<
 *                  'edge_indices' : edge_indices,
 *                  'vertex_image_indices' : vertex_image_indices,
*/
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_vertex_indices, __pyx_v_vertex_indices) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":462
 *                 {'vertices' : vertices,
 *                  'vertex_indices' : vertex_indices,
 *                  'edge_indices' : edge_indices,             # <<<<<<<<<<<<<<
 *                  'vertex_image_indices' : vertex_image_indices,
 *                  'edge_image_indices' : edge_image_indices,
*/
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_edge_indices, __pyx_v_edge_indices) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":463
 *                  'vertex_indices' : vertex_indices,
 *                  'edge_indices' : edge_indices,
 *                  'vertex_image_indices' : vertex_image_indices,             # <<<<<<<<<<<<<<
 *                  'edge_image_indices' : edge_image_indices,
 *                  'distance' : self._number_(Real2Number(<Real>face.dist)),
*/
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_vertex_image_indices, __pyx_v_vertex_image_indices) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":464
 *                  'edge_indices' : edge_indices,
 *                  'vertex_image_indices' : vertex_image_indices,
 *                  'edge_image_indices' : edge_image_indices,             # <<<<<<<<<<<<<<
 *                  'distance' : self._number_(Real2Number(<Real>face.dist)),
 *                  'closest'  : [
*/
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_edge_image_indices, __pyx_v_edge_image_indices) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":465
 *                  'vertex_image_indices' : vertex_image_indices,
 *                  'edge_image_indices' : edge_image_indices,
 *                  'distance' : self._number_(Real2Number(<Real>face.dist)),             # <<<<<<<<<<<<<<
 *                  'closest'  : [
 *                      self._number_(Real2Number(<Real>face.closest_point[i]))
*/
    __pyx_t_12 = ((PyObject *)__pyx_cur_scope->__pyx_v_self);
    __Pyx_INCREF(__pyx_t_12);
    __pyx_t_13 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)__pyx_v_face->dist)); if (unlikely(!__pyx_t_13)) __PYX_ERR(10, 465, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_13};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 465, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_distance, __pyx_t_1) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    { /* enter inner scope */

      /* "cython/core/dirichlet.pyx":466
 *                  'edge_image_indices' : edge_image_indices,
 *                  'distance' : self._number_(Real2Number(<Real>face.dist)),
 *                  'closest'  : [             # <<<<<<<<<<<<<<
 *                      self._number_(Real2Number(<Real>face.closest_point[i]))
 *                      for i in range(1,4) ],
*/
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 466, __pyx_L11_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "cython/core/dirichlet.pyx":468
 *                  'closest'  : [
 *                      self._number_(Real2Number(<Real>face.closest_point[i]))
 *                      for i in range(1,4) ],             # <<<<<<<<<<<<<<
 *                  'hue'      : Real2double(face.f_class.hue),
 *                  'edge_orientations' : edge_orientations})
*/
      for (__pyx_t_14 = 1; __pyx_t_14 < 4; __pyx_t_14+=1) {
        __pyx_t_13 = PyLong_FromSsize_t(__pyx_t_14); if (unlikely(!__pyx_t_13)) __PYX_ERR(10, 468, __pyx_L11_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_XDECREF_SET(__pyx_9genexpr88__pyx_v_i, __pyx_t_13);
        __pyx_t_13 = 0;

        /* "cython/core/dirichlet.pyx":467
 *                  'distance' : self._number_(Real2Number(<Real>face.dist)),
 *                  'closest'  : [
 *                      self._number_(Real2Number(<Real>face.closest_point[i]))             # <<<<<<<<<<<<<<
 *                      for i in range(1,4) ],
 *                  'hue'      : Real2double(face.f_class.hue),
*/
        __pyx_t_12 = ((PyObject *)__pyx_cur_scope->__pyx_v_self);
        __Pyx_INCREF(__pyx_t_12);
        __pyx_t_15 = __Pyx_PyIndex_AsSsize_t(__pyx_9genexpr88__pyx_v_i); if (unlikely((__pyx_t_15 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(10, 467, __pyx_L11_error)
        __pyx_t_16 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(__pyx_v_face->closest_point[__pyx_t_15]))); if (unlikely(!__pyx_t_16)) __PYX_ERR(10, 467, __pyx_L11_error)
        __Pyx_GOTREF(__pyx_t_16);
        __pyx_t_3 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_t_16};
          __pyx_t_13 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
          if (unlikely(!__pyx_t_13)) __PYX_ERR(10, 467, __pyx_L11_error)
          __Pyx_GOTREF(__pyx_t_13);
        }
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_13))) __PYX_ERR(10, 466, __pyx_L11_error)
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      }
      __Pyx_XDECREF(__pyx_9genexpr88__pyx_v_i); __pyx_9genexpr88__pyx_v_i = 0;
      goto __pyx_L14_exit_scope;
      __pyx_L11_error:;
      __Pyx_XDECREF(__pyx_9genexpr88__pyx_v_i); __pyx_9genexpr88__pyx_v_i = 0;
      goto __pyx_L1_error;
      __pyx_L14_exit_scope:;
    } /* exit inner scope */
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_closest, __pyx_t_1) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":469
 *                      self._number_(Real2Number(<Real>face.closest_point[i]))
 *                      for i in range(1,4) ],
 *                  'hue'      : Real2double(face.f_class.hue),             # <<<<<<<<<<<<<<
 *                  'edge_orientations' : edge_orientations})
 *             face = face.next
*/
    __pyx_t_17 = __pyx_f_6SnapPy_Real2double(__pyx_v_face->f_class->hue); if (unlikely(__pyx_t_17 == ((double)-1) && PyErr_Occurred())) __PYX_ERR(10, 469, __pyx_L1_error)
    __pyx_t_1 = PyFloat_FromDouble(__pyx_t_17); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_hue, __pyx_t_1) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":470
 *                      for i in range(1,4) ],
 *                  'hue'      : Real2double(face.f_class.hue),
 *                  'edge_orientations' : edge_orientations})             # <<<<<<<<<<<<<<
 *             face = face.next
 *         return faces
*/
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_edge_orientations, __pyx_v_edge_orientations) < (0)) __PYX_ERR(10, 460, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":459
 *                     break
 * 
 *             faces.append(             # <<<<<<<<<<<<<<
 *                 {'vertices' : vertices,
 *                  'vertex_indices' : vertex_indices,
*/
    __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_faces, __pyx_t_2); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(10, 459, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/dirichlet.pyx":471
 *                  'hue'      : Real2double(face.f_class.hue),
 *                  'edge_orientations' : edge_orientations})
 *             face = face.next             # <<<<<<<<<<<<<<
 *         return faces
 * 
*/
    __pyx_t_8 = __pyx_v_face->next;
    __pyx_v_face = __pyx_t_8;
  }

  /* "cython/core/dirichlet.pyx":472
 *                  'edge_orientations' : edge_orientations})
 *             face = face.next
 *         return faces             # <<<<<<<<<<<<<<
 * 
 *     def edge_list(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_faces);
  __pyx_r = __pyx_v_faces;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":380
 *         return result
 * 
 *     def face_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of faces, each represented as a dictionary with
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.face_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_vertex_to_index);
  __Pyx_XDECREF(__pyx_v_edge_to_index);
  __Pyx_XDECREF(__pyx_v_faces);
  __Pyx_XDECREF(__pyx_v_vertices);
  __Pyx_XDECREF(__pyx_v_vertex_indices);
  __Pyx_XDECREF(__pyx_v_vertex_image_indices);
  __Pyx_XDECREF(__pyx_v_edge_indices);
  __Pyx_XDECREF(__pyx_v_edge_image_indices);
  __Pyx_XDECREF(__pyx_v_edge_orientations);
  __Pyx_XDECREF(__pyx_gb_6SnapPy_16CDirichletDomain_9face_list_2generator4);
  __Pyx_XDECREF(__pyx_9genexpr88__pyx_v_i);
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":474
 *         return faces
 * 
 *     def edge_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of edges, each represented as a dictionar with keys
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_39edge_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_38edge_list, "\n        Return a list of edges, each represented as a dictionar with keys\n        'tail_vertex_index', 'tip_vertex_index', 'edge_class'.\n\n        The index (into vertex_data_list()) to the two vertices at the\n        end of the edge are stored in 'tail_vertex_index' and\n        'tip_vertex_index'. The index of the edge class this edge\n        belongs to is stored in 'edge_class'.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_39edge_list = {"edge_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_39edge_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_38edge_list};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_39edge_list(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("edge_list (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("edge_list", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("edge_list", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_38edge_list(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_38edge_list(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  WEEdge *__pyx_v_edge;
  PyObject *__pyx_v_edges = 0;
  PyObject *__pyx_v_vertex_to_index = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  WEEdge *__pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("edge_list", 0);

  /* "cython/core/dirichlet.pyx":485
 *         """
 * 
 *         cdef WEEdge *edge = &self.c_dirichlet_domain.edge_list_begin             # <<<<<<<<<<<<<<
 *         cdef list edges = []
 * 
*/
  __pyx_v_edge = (&__pyx_v_self->c_dirichlet_domain->edge_list_begin);

  /* "cython/core/dirichlet.pyx":486
 * 
 *         cdef WEEdge *edge = &self.c_dirichlet_domain.edge_list_begin
 *         cdef list edges = []             # <<<<<<<<<<<<<<
 * 
 *         vertex_to_index = self._vertex_to_index_dict()
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_edges = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":488
 *         cdef list edges = []
 * 
 *         vertex_to_index = self._vertex_to_index_dict()             # <<<<<<<<<<<<<<
 * 
 *         edge = edge.next
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_vertex_to_index_dict, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 488, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_vertex_to_index = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":490
 *         vertex_to_index = self._vertex_to_index_dict()
 * 
 *         edge = edge.next             # <<<<<<<<<<<<<<
 *         while edge != &self.c_dirichlet_domain.edge_list_end:
 * 
*/
  __pyx_t_4 = __pyx_v_edge->next;
  __pyx_v_edge = __pyx_t_4;

  /* "cython/core/dirichlet.pyx":491
 * 
 *         edge = edge.next
 *         while edge != &self.c_dirichlet_domain.edge_list_end:             # <<<<<<<<<<<<<<
 * 
 *             edges.append(
*/
  while (1) {
    __pyx_t_5 = (__pyx_v_edge != (&__pyx_v_self->c_dirichlet_domain->edge_list_end));
    if (!__pyx_t_5) break;

    /* "cython/core/dirichlet.pyx":494
 * 
 *             edges.append(
 *                 {'tail_vertex_index': vertex_to_index[<size_t>(edge.v[0])],             # <<<<<<<<<<<<<<
 *                  'tip_vertex_index': vertex_to_index[<size_t>(edge.v[1])],
 *                  'edge_class': edge.e_class.index})
*/
    __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 494, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_vertex_to_index, ((size_t)(__pyx_v_edge->v[0])), size_t, 0, __Pyx_PyLong_FromSize_t, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 494, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_tail_vertex_index, __pyx_t_2) < (0)) __PYX_ERR(10, 494, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/dirichlet.pyx":495
 *             edges.append(
 *                 {'tail_vertex_index': vertex_to_index[<size_t>(edge.v[0])],
 *                  'tip_vertex_index': vertex_to_index[<size_t>(edge.v[1])],             # <<<<<<<<<<<<<<
 *                  'edge_class': edge.e_class.index})
 * 
*/
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_vertex_to_index, ((size_t)(__pyx_v_edge->v[1])), size_t, 0, __Pyx_PyLong_FromSize_t, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_tip_vertex_index, __pyx_t_2) < (0)) __PYX_ERR(10, 494, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/dirichlet.pyx":496
 *                 {'tail_vertex_index': vertex_to_index[<size_t>(edge.v[0])],
 *                  'tip_vertex_index': vertex_to_index[<size_t>(edge.v[1])],
 *                  'edge_class': edge.e_class.index})             # <<<<<<<<<<<<<<
 * 
 *             edge = edge.next
*/
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_edge->e_class->index); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 496, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_edge_class, __pyx_t_2) < (0)) __PYX_ERR(10, 494, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/dirichlet.pyx":493
 *         while edge != &self.c_dirichlet_domain.edge_list_end:
 * 
 *             edges.append(             # <<<<<<<<<<<<<<
 *                 {'tail_vertex_index': vertex_to_index[<size_t>(edge.v[0])],
 *                  'tip_vertex_index': vertex_to_index[<size_t>(edge.v[1])],
*/
    __pyx_t_6 = __Pyx_PyList_Append(__pyx_v_edges, __pyx_t_1); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(10, 493, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":498
 *                  'edge_class': edge.e_class.index})
 * 
 *             edge = edge.next             # <<<<<<<<<<<<<<
 * 
 *         return edges
*/
    __pyx_t_4 = __pyx_v_edge->next;
    __pyx_v_edge = __pyx_t_4;
  }

  /* "cython/core/dirichlet.pyx":500
 *             edge = edge.next
 * 
 *         return edges             # <<<<<<<<<<<<<<
 * 
 *     def view(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_edges);
  __pyx_r = __pyx_v_edges;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":474
 *         return faces
 * 
 *     def edge_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of edges, each represented as a dictionar with keys
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.edge_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_edges);
  __Pyx_XDECREF(__pyx_v_vertex_to_index);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":502
 *         return edges
 * 
 *     def view(self):             # <<<<<<<<<<<<<<
 *         if PolyhedronViewer:
 *             return ViewerWindow(PolyhedronViewer, facedicts=self.face_list(),
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_41view(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_41view = {"view", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_41view, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_41view(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("view (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("view", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("view", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_40view(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_40view(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  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;
  size_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("view", 0);

  /* "cython/core/dirichlet.pyx":503
 * 
 *     def view(self):
 *         if PolyhedronViewer:             # <<<<<<<<<<<<<<
 *             return ViewerWindow(PolyhedronViewer, facedicts=self.face_list(),
 *                                 title=f'Dirichlet Domain of {self.manifold_name}')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_PolyhedronViewer); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(10, 503, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/dirichlet.pyx":504
 *     def view(self):
 *         if PolyhedronViewer:
 *             return ViewerWindow(PolyhedronViewer, facedicts=self.face_list(),             # <<<<<<<<<<<<<<
 *                                 title=f'Dirichlet Domain of {self.manifold_name}')
 *         raise RuntimeError('The PolyhedronViewer class '
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ViewerWindow); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 504, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_PolyhedronViewer); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 504, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = ((PyObject *)__pyx_v_self);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_8 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
      __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_face_list, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 504, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }

    /* "cython/core/dirichlet.pyx":505
 *         if PolyhedronViewer:
 *             return ViewerWindow(PolyhedronViewer, facedicts=self.face_list(),
 *                                 title=f'Dirichlet Domain of {self.manifold_name}')             # <<<<<<<<<<<<<<
 *         raise RuntimeError('The PolyhedronViewer class '
 *                            'was not imported.')
*/
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_Dirichlet_Domain_of, __pyx_t_9); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_8 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_8 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_3, __pyx_t_5};
      __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 504, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_facedicts, __pyx_t_6, __pyx_t_9, __pyx_callargs+2, 0) < (0)) __PYX_ERR(10, 504, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_title, __pyx_t_7, __pyx_t_9, __pyx_callargs+2, 1) < (0)) __PYX_ERR(10, 504, __pyx_L1_error)
      __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 504, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/dirichlet.pyx":503
 * 
 *     def view(self):
 *         if PolyhedronViewer:             # <<<<<<<<<<<<<<
 *             return ViewerWindow(PolyhedronViewer, facedicts=self.face_list(),
 *                                 title=f'Dirichlet Domain of {self.manifold_name}')
*/
  }

  /* "cython/core/dirichlet.pyx":506
 *             return ViewerWindow(PolyhedronViewer, facedicts=self.face_list(),
 *                                 title=f'Dirichlet Domain of {self.manifold_name}')
 *         raise RuntimeError('The PolyhedronViewer class '             # <<<<<<<<<<<<<<
 *                            'was not imported.')
 * 
*/
  __pyx_t_4 = NULL;
  __pyx_t_8 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_PolyhedronViewer_class_was_n};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(10, 506, __pyx_L1_error)

  /* "cython/core/dirichlet.pyx":502
 *         return edges
 * 
 *     def view(self):             # <<<<<<<<<<<<<<
 *         if PolyhedronViewer:
 *             return ViewerWindow(PolyhedronViewer, facedicts=self.face_list(),
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __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_9);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.view", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":509
 *                            'was not imported.')
 * 
 *     def manifold(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Manifold computed directly from the Dirichlet
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_43manifold(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_42manifold, "\n        Returns a Manifold computed directly from the Dirichlet\n        domain, regarded as polyhedron with faces identified in pairs.\n        Only works if this gives a manifold not an orbifold.\n\n        >>> M = Manifold('7_3')\n        >>> D = M.dirichlet_domain()\n        >>> A = D.manifold()\n        >>> M.is_isometric_to(A)\n        True\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_43manifold = {"manifold", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_43manifold, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_42manifold};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_43manifold(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("manifold (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("manifold", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("manifold", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_42manifold(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_42manifold(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__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("manifold", 0);

  /* "cython/core/dirichlet.pyx":522
 * 
 *         """
 *         return self.triangulate(_manifold_class)             # <<<<<<<<<<<<<<
 * 
 *     def triangulation(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_manifold_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_CDirichletDomain *)__pyx_v_self->__pyx_vtab)->triangulate(__pyx_v_self, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":509
 *                            'was not imported.')
 * 
 *     def manifold(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Manifold computed directly from the Dirichlet
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.manifold", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":524
 *         return self.triangulate(_manifold_class)
 * 
 *     def triangulation(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Triangulation computed directly from the Dirichlet
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_45triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_44triangulation, "\n        Returns a Triangulation computed directly from the Dirichlet\n        domain, regarded as polyhedron with faces identified in pairs.\n        Only works if this gives a manifold not an orbifold.\n\n        >>> M = Manifold('7_3')\n        >>> D = M.dirichlet_domain()\n        >>> B = D.triangulation()\n        >>> M.is_isometric_to(B.with_hyperbolic_structure())\n        True\n\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_45triangulation = {"triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_45triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_44triangulation};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_45triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("triangulation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("triangulation", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("triangulation", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_44triangulation(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_44triangulation(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__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("triangulation", 0);

  /* "cython/core/dirichlet.pyx":537
 * 
 *         """
 *         return self.triangulate(_triangulation_class)             # <<<<<<<<<<<<<<
 * 
 *     cdef triangulate(self, return_class):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_triangulation_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_CDirichletDomain *)__pyx_v_self->__pyx_vtab)->triangulate(__pyx_v_self, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":524
 *         return self.triangulate(_manifold_class)
 * 
 *     def triangulation(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Triangulation computed directly from the Dirichlet
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":539
 *         return self.triangulate(_triangulation_class)
 * 
 *     cdef triangulate(self, return_class):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation *c_triangulation
 *         cdef Triangulation M
*/

static PyObject *__pyx_f_6SnapPy_16CDirichletDomain_triangulate(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_return_class) {
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_M = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Triangulation *__pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("triangulate", 0);

  /* "cython/core/dirichlet.pyx":542
 *         cdef c_Triangulation *c_triangulation
 *         cdef Triangulation M
 *         c_triangulation = Dirichlet_to_triangulation(self.c_dirichlet_domain)             # <<<<<<<<<<<<<<
 *         if c_triangulation is NULL:
 *             raise ValueError('The Dirichlet domain could not be '
*/
  __pyx_t_1 = Dirichlet_to_triangulation(__pyx_v_self->c_dirichlet_domain); if (unlikely(PyErr_Occurred())) __PYX_ERR(10, 542, __pyx_L1_error)
  __pyx_v_c_triangulation = __pyx_t_1;

  /* "cython/core/dirichlet.pyx":543
 *         cdef Triangulation M
 *         c_triangulation = Dirichlet_to_triangulation(self.c_dirichlet_domain)
 *         if c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Dirichlet domain could not be '
 *                              'triangulated; perhaps this is an '
*/
  __pyx_t_2 = (__pyx_v_c_triangulation == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/dirichlet.pyx":544
 *         c_triangulation = Dirichlet_to_triangulation(self.c_dirichlet_domain)
 *         if c_triangulation is NULL:
 *             raise ValueError('The Dirichlet domain could not be '             # <<<<<<<<<<<<<<
 *                              'triangulated; perhaps this is an '
 *                              'orbifold group?')
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_The_Dirichlet_domain_could_not_b};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 544, __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_ERR(10, 544, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":543
 *         cdef Triangulation M
 *         c_triangulation = Dirichlet_to_triangulation(self.c_dirichlet_domain)
 *         if c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Dirichlet domain could not be '
 *                              'triangulated; perhaps this is an '
*/
  }

  /* "cython/core/dirichlet.pyx":547
 *                              'triangulated; perhaps this is an '
 *                              'orbifold group?')
 *         M = return_class('empty')             # <<<<<<<<<<<<<<
 *         M.set_c_triangulation(c_triangulation)
 *         M.set_name(self.manifold_name)
*/
  __pyx_t_4 = NULL;
  __Pyx_INCREF(__pyx_v_return_class);
  __pyx_t_6 = __pyx_v_return_class; 
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 547, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation))))) __PYX_ERR(10, 547, __pyx_L1_error)
  __pyx_v_M = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cython/core/dirichlet.pyx":548
 *                              'orbifold group?')
 *         M = return_class('empty')
 *         M.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         M.set_name(self.manifold_name)
 *         return M
*/
  __pyx_t_3 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_M->__pyx_vtab)->set_c_triangulation(__pyx_v_M, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/dirichlet.pyx":549
 *         M = return_class('empty')
 *         M.set_c_triangulation(c_triangulation)
 *         M.set_name(self.manifold_name)             # <<<<<<<<<<<<<<
 *         return M
 * 
*/
  __pyx_t_6 = ((PyObject *)__pyx_v_M);
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_4};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cython/core/dirichlet.pyx":550
 *         M.set_c_triangulation(c_triangulation)
 *         M.set_name(self.manifold_name)
 *         return M             # <<<<<<<<<<<<<<
 * 
 *     def volume(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_M);
  __pyx_r = ((PyObject *)__pyx_v_M);
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":539
 *         return self.triangulate(_triangulation_class)
 * 
 *     cdef triangulate(self, return_class):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation *c_triangulation
 *         cdef Triangulation M
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.triangulate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_M);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":552
 *         return M
 * 
 *     def volume(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the approximate volume of the DirichletDomain.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_47volume(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_46volume, "\n        Returns the approximate volume of the DirichletDomain.\n        Because matrices in O(3,1) tend to accumulate roundoff error,\n        it's hard to get a good bound on the accuracy of the computed\n        volume.  Nevertheless, the kernel computes the best value it\n        can, with the hope that it will aid the user in recognizing\n        manifolds defined by a set of generators.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_47volume = {"volume", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_47volume, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_46volume};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_47volume(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("volume (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("volume", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("volume", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_46volume(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_46volume(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__pyx_v_volume = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("volume", 0);

  /* "cython/core/dirichlet.pyx":561
 *         manifolds defined by a set of generators.
 *         """
 *         volume = Real2Number(self.c_dirichlet_domain.approximate_volume)             # <<<<<<<<<<<<<<
 *         return self._number_(volume)
 * 
*/
  __pyx_t_1 = __pyx_f_6SnapPy_Real2Number(__pyx_v_self->c_dirichlet_domain->approximate_volume); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_volume = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":562
 *         """
 *         volume = Real2Number(self.c_dirichlet_domain.approximate_volume)
 *         return self._number_(volume)             # <<<<<<<<<<<<<<
 * 
 *     def pairing_matrices(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_volume};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":552
 *         return M
 * 
 *     def volume(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the approximate volume of the DirichletDomain.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.volume", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_volume);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":564
 *         return self._number_(volume)
 * 
 *     def pairing_matrices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of the O31Matrices which pair the faces of
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_49pairing_matrices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_48pairing_matrices, "\n        Returns a list of the O31Matrices which pair the faces of\n        this DirichletDomain.\n\n        >>> M = Manifold('s345')\n        >>> D = M.dirichlet_domain()\n        >>> matrices = D.pairing_matrices()\n        >>> D1 = DirichletDomain(O31_generators=matrices)\n        >>> N = D1.manifold()\n        >>> M.is_isometric_to(N)\n        True\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_49pairing_matrices = {"pairing_matrices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_49pairing_matrices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_48pairing_matrices};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_49pairing_matrices(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pairing_matrices (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pairing_matrices", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pairing_matrices", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_48pairing_matrices(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_48pairing_matrices(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  O31Matrix *__pyx_v_M;
  WEFace *__pyx_v_face;
  PyObject *__pyx_v_matrices = NULL;
  int __pyx_9genexpr89__pyx_v_i;
  int __pyx_9genexpr90__pyx_v_j;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  WEFace *__pyx_t_5;
  O31Matrix *__pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pairing_matrices", 0);

  /* "cython/core/dirichlet.pyx":581
 *         cdef WEFace* face
 * 
 *         if self.c_dirichlet_domain == NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Dirichlet Domain was not computed.')
 *         matrices = []
*/
  __pyx_t_1 = (__pyx_v_self->c_dirichlet_domain == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/dirichlet.pyx":582
 * 
 *         if self.c_dirichlet_domain == NULL:
 *             raise ValueError('The Dirichlet Domain was not computed.')             # <<<<<<<<<<<<<<
 *         matrices = []
 *         face = self.c_dirichlet_domain.face_list_begin.next
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Dirichlet_Domain_was_not_com};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(10, 582, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":581
 *         cdef WEFace* face
 * 
 *         if self.c_dirichlet_domain == NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Dirichlet Domain was not computed.')
 *         matrices = []
*/
  }

  /* "cython/core/dirichlet.pyx":583
 *         if self.c_dirichlet_domain == NULL:
 *             raise ValueError('The Dirichlet Domain was not computed.')
 *         matrices = []             # <<<<<<<<<<<<<<
 *         face = self.c_dirichlet_domain.face_list_begin.next
 *         while face != &self.c_dirichlet_domain.face_list_end:
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_matrices = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/dirichlet.pyx":584
 *             raise ValueError('The Dirichlet Domain was not computed.')
 *         matrices = []
 *         face = self.c_dirichlet_domain.face_list_begin.next             # <<<<<<<<<<<<<<
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             M = face.group_element
*/
  __pyx_t_5 = __pyx_v_self->c_dirichlet_domain->face_list_begin.next;
  __pyx_v_face = __pyx_t_5;

  /* "cython/core/dirichlet.pyx":585
 *         matrices = []
 *         face = self.c_dirichlet_domain.face_list_begin.next
 *         while face != &self.c_dirichlet_domain.face_list_end:             # <<<<<<<<<<<<<<
 *             M = face.group_element
 *             matrices.append(matrix(
*/
  while (1) {
    __pyx_t_1 = (__pyx_v_face != (&__pyx_v_self->c_dirichlet_domain->face_list_end));
    if (!__pyx_t_1) break;

    /* "cython/core/dirichlet.pyx":586
 *         face = self.c_dirichlet_domain.face_list_begin.next
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             M = face.group_element             # <<<<<<<<<<<<<<
 *             matrices.append(matrix(
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))
*/
    __pyx_t_6 = __pyx_v_face->group_element;
    __pyx_v_M = __pyx_t_6;

    /* "cython/core/dirichlet.pyx":587
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             M = face.group_element
 *             matrices.append(matrix(             # <<<<<<<<<<<<<<
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))
 *                   for j in range(4)] for i in range(4)] ))
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_matrix); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    { /* enter inner scope */

      /* "cython/core/dirichlet.pyx":588
 *             M = face.group_element
 *             matrices.append(matrix(
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))             # <<<<<<<<<<<<<<
 *                   for j in range(4)] for i in range(4)] ))
 *             face = face.next
*/
      __pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);

      /* "cython/core/dirichlet.pyx":589
 *             matrices.append(matrix(
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))
 *                   for j in range(4)] for i in range(4)] ))             # <<<<<<<<<<<<<<
 *             face = face.next
 *         return matrices
*/
      for (__pyx_t_9 = 0; __pyx_t_9 < 4; __pyx_t_9+=1) {
        __pyx_9genexpr89__pyx_v_i = __pyx_t_9;
        { /* enter inner scope */

          /* "cython/core/dirichlet.pyx":588
 *             M = face.group_element
 *             matrices.append(matrix(
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))             # <<<<<<<<<<<<<<
 *                   for j in range(4)] for i in range(4)] ))
 *             face = face.next
*/
          __pyx_t_10 = PyList_New(0); if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 588, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);

          /* "cython/core/dirichlet.pyx":589
 *             matrices.append(matrix(
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))
 *                   for j in range(4)] for i in range(4)] ))             # <<<<<<<<<<<<<<
 *             face = face.next
 *         return matrices
*/
          for (__pyx_t_11 = 0; __pyx_t_11 < 4; __pyx_t_11+=1) {
            __pyx_9genexpr90__pyx_v_j = __pyx_t_11;

            /* "cython/core/dirichlet.pyx":588
 *             M = face.group_element
 *             matrices.append(matrix(
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))             # <<<<<<<<<<<<<<
 *                   for j in range(4)] for i in range(4)] ))
 *             face = face.next
*/
            __pyx_t_13 = ((PyObject *)__pyx_v_self);
            __Pyx_INCREF(__pyx_t_13);
            __pyx_t_14 = __pyx_f_6SnapPy_Real2Number(((__pyx_t_6SnapPy_Real)(((__pyx_v_M[0])[__pyx_9genexpr89__pyx_v_i])[__pyx_9genexpr90__pyx_v_j]))); if (unlikely(!__pyx_t_14)) __PYX_ERR(10, 588, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_14);
            __pyx_t_4 = 0;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_14};
              __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
              if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 588, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_12);
            }
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_10, (PyObject*)__pyx_t_12))) __PYX_ERR(10, 588, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          }
        } /* exit inner scope */
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_8, (PyObject*)__pyx_t_10))) __PYX_ERR(10, 588, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      }
    } /* exit inner scope */
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_8};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 587, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }

    /* "cython/core/dirichlet.pyx":587
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             M = face.group_element
 *             matrices.append(matrix(             # <<<<<<<<<<<<<<
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))
 *                   for j in range(4)] for i in range(4)] ))
*/
    __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_matrices, __pyx_t_2); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(10, 587, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/dirichlet.pyx":590
 *                 [[self._number_(Real2Number(<Real>M[0][i][j]))
 *                   for j in range(4)] for i in range(4)] ))
 *             face = face.next             # <<<<<<<<<<<<<<
 *         return matrices
 * 
*/
    __pyx_t_5 = __pyx_v_face->next;
    __pyx_v_face = __pyx_t_5;
  }

  /* "cython/core/dirichlet.pyx":591
 *                   for j in range(4)] for i in range(4)] ))
 *             face = face.next
 *         return matrices             # <<<<<<<<<<<<<<
 * 
 *     def pairing_words(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_matrices);
  __pyx_r = __pyx_v_matrices;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":564
 *         return self._number_(volume)
 * 
 *     def pairing_matrices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of the O31Matrices which pair the faces of
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.pairing_matrices", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_matrices);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":593
 *         return matrices
 * 
 *     def pairing_words(self):             # <<<<<<<<<<<<<<
 *         """
 *         Group elements which pair the faces of this DirichletDomain
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_51pairing_words(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_50pairing_words, "\n        Group elements which pair the faces of this DirichletDomain\n        as words in the original generators:\n\n        >>> M = Manifold('m004')\n        >>> D = M.dirichlet_domain(include_words = True)\n        >>> sorted(D.pairing_words()) #doctest: +ELLIPSIS\n        ['A', ...]\n\n        Requires that DirichletDomain was computed with\n        include_words = True.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_51pairing_words = {"pairing_words", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_51pairing_words, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_50pairing_words};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_51pairing_words(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pairing_words (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("pairing_words", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("pairing_words", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_50pairing_words(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_50pairing_words(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  WEFace *__pyx_v_face;
  int *__pyx_v_c_word;
  PyObject *__pyx_v_words = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  WEFace *__pyx_t_5;
  int *__pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pairing_words", 0);

  /* "cython/core/dirichlet.pyx":610
 *         cdef int* c_word
 * 
 *         if self.c_dirichlet_domain == NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Dirichlet Domain was not computed.')
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_dirichlet_domain == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/dirichlet.pyx":611
 * 
 *         if self.c_dirichlet_domain == NULL:
 *             raise ValueError('The Dirichlet Domain was not computed.')             # <<<<<<<<<<<<<<
 * 
 *         words = []
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Dirichlet_Domain_was_not_com};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 611, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(10, 611, __pyx_L1_error)

    /* "cython/core/dirichlet.pyx":610
 *         cdef int* c_word
 * 
 *         if self.c_dirichlet_domain == NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Dirichlet Domain was not computed.')
 * 
*/
  }

  /* "cython/core/dirichlet.pyx":613
 *             raise ValueError('The Dirichlet Domain was not computed.')
 * 
 *         words = []             # <<<<<<<<<<<<<<
 * 
 *         face = self.c_dirichlet_domain.face_list_begin.next
*/
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_words = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/dirichlet.pyx":615
 *         words = []
 * 
 *         face = self.c_dirichlet_domain.face_list_begin.next             # <<<<<<<<<<<<<<
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             c_word = face.group_element_word
*/
  __pyx_t_5 = __pyx_v_self->c_dirichlet_domain->face_list_begin.next;
  __pyx_v_face = __pyx_t_5;

  /* "cython/core/dirichlet.pyx":616
 * 
 *         face = self.c_dirichlet_domain.face_list_begin.next
 *         while face != &self.c_dirichlet_domain.face_list_end:             # <<<<<<<<<<<<<<
 *             c_word = face.group_element_word
 * 
*/
  while (1) {
    __pyx_t_1 = (__pyx_v_face != (&__pyx_v_self->c_dirichlet_domain->face_list_end));
    if (!__pyx_t_1) break;

    /* "cython/core/dirichlet.pyx":617
 *         face = self.c_dirichlet_domain.face_list_begin.next
 *         while face != &self.c_dirichlet_domain.face_list_end:
 *             c_word = face.group_element_word             # <<<<<<<<<<<<<<
 * 
 *             if c_word == NULL:
*/
    __pyx_t_6 = __pyx_v_face->group_element_word;
    __pyx_v_c_word = __pyx_t_6;

    /* "cython/core/dirichlet.pyx":619
 *             c_word = face.group_element_word
 * 
 *             if c_word == NULL:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The Dirichlet Domain was computed without '
 *                                  'include_words = True.')
*/
    __pyx_t_1 = (__pyx_v_c_word == NULL);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/dirichlet.pyx":620
 * 
 *             if c_word == NULL:
 *                 raise ValueError('The Dirichlet Domain was computed without '             # <<<<<<<<<<<<<<
 *                                  'include_words = True.')
 * 
*/
      __pyx_t_3 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Dirichlet_Domain_was_compute};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 620, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(10, 620, __pyx_L1_error)

      /* "cython/core/dirichlet.pyx":619
 *             c_word = face.group_element_word
 * 
 *             if c_word == NULL:             # <<<<<<<<<<<<<<
 *                 raise ValueError('The Dirichlet Domain was computed without '
 *                                  'include_words = True.')
*/
    }

    /* "cython/core/dirichlet.pyx":624
 * 
 *             words.append(
 *                 c_word_as_string(             # <<<<<<<<<<<<<<
 *                     c_word, self.c_num_generators, verbose_form = False))
 * 
*/
    __pyx_t_2 = __pyx_f_6SnapPy_c_word_as_string(__pyx_v_c_word, __pyx_v_self->c_num_generators, Py_False); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 624, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "cython/core/dirichlet.pyx":623
 *                                  'include_words = True.')
 * 
 *             words.append(             # <<<<<<<<<<<<<<
 *                 c_word_as_string(
 *                     c_word, self.c_num_generators, verbose_form = False))
*/
    __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_words, __pyx_t_2); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(10, 623, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/dirichlet.pyx":627
 *                     c_word, self.c_num_generators, verbose_form = False))
 * 
 *             face = face.next             # <<<<<<<<<<<<<<
 * 
 *         return words
*/
    __pyx_t_5 = __pyx_v_face->next;
    __pyx_v_face = __pyx_t_5;
  }

  /* "cython/core/dirichlet.pyx":629
 *             face = face.next
 * 
 *         return words             # <<<<<<<<<<<<<<
 * 
 *     def _to_string(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_words);
  __pyx_r = __pyx_v_words;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":593
 *         return matrices
 * 
 *     def pairing_words(self):             # <<<<<<<<<<<<<<
 *         """
 *         Group elements which pair the faces of this DirichletDomain
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.pairing_words", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_words);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":631
 *         return words
 * 
 *     def _to_string(self):             # <<<<<<<<<<<<<<
 *         matrices = self.pairing_matrices()
 *         result = '%% Generators\n%s\n' % len(matrices)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_53_to_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_53_to_string = {"_to_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_53_to_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_53_to_string(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_to_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("_to_string", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("_to_string", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_52_to_string(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static PyObject *__pyx_gb_6SnapPy_16CDirichletDomain_10_to_string_2generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */

/* "cython/core/dirichlet.pyx":636
 *         for matrix in matrices:
 *             for row in matrix:
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)             # <<<<<<<<<<<<<<
 *             result += '\n'
 *         return result
*/

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_10_to_string_genexpr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_genexpr_arg_0) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *__pyx_cur_scope;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("genexpr", 0);
  __pyx_cur_scope = (struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *)__pyx_tp_new_6SnapPy___pyx_scope_struct_8_genexpr(__pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr, __pyx_mstate_global->__pyx_empty_tuple, NULL);
  if (unlikely(!__pyx_cur_scope)) {
    __pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *)Py_None);
    __Pyx_INCREF(Py_None);
    __PYX_ERR(10, 636, __pyx_L1_error)
  } else {
    __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
  }
  __pyx_cur_scope->__pyx_genexpr_arg_0 = __pyx_genexpr_arg_0;
  __Pyx_INCREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  __Pyx_GIVEREF(__pyx_cur_scope->__pyx_genexpr_arg_0);
  {
    __pyx_CoroutineObject *gen = __Pyx_Generator_New((__pyx_coroutine_body_t) __pyx_gb_6SnapPy_16CDirichletDomain_10_to_string_2generator5, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7]), (PyObject *) __pyx_cur_scope, __pyx_mstate_global->__pyx_n_u_genexpr, __pyx_mstate_global->__pyx_n_u_to_string_locals_genexpr, __pyx_mstate_global->__pyx_n_u_SnapPy); if (unlikely(!gen)) __PYX_ERR(10, 636, __pyx_L1_error)
    __Pyx_DECREF(__pyx_cur_scope);
    __Pyx_RefNannyFinishContext();
    return (PyObject *) gen;
  }

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.CDirichletDomain._to_string.genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_DECREF((PyObject *)__pyx_cur_scope);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_gb_6SnapPy_16CDirichletDomain_10_to_string_2generator5(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value) /* generator body */
{
  struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *__pyx_cur_scope = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *)__pyx_generator->closure);
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("genexpr", 0);
  switch (__pyx_generator->resume_label) {
    case 0: goto __pyx_L3_first_run;
    default: /* CPython raises the right error here */
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __pyx_L3_first_run:;
  if (unlikely(!__pyx_sent_value)) __PYX_ERR(10, 636, __pyx_L1_error)
  __pyx_r = PyList_New(0); if (unlikely(!__pyx_r)) __PYX_ERR(10, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_r);
  if (unlikely(!__pyx_cur_scope->__pyx_genexpr_arg_0)) { __Pyx_RaiseUnboundLocalError(".0"); __PYX_ERR(10, 636, __pyx_L1_error) }
  if (likely(PyList_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_genexpr_arg_0)) {
    __pyx_t_1 = __pyx_cur_scope->__pyx_genexpr_arg_0; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_genexpr_arg_0); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 636, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 636, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 636, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 636, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 636, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(10, 636, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_x);
    __Pyx_XDECREF_SET(__pyx_cur_scope->__pyx_v_x, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_cur_scope->__pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 636, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (unlikely(__Pyx_ListComp_Append(__pyx_r, (PyObject*)__pyx_t_4))) __PYX_ERR(10, 636, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_r); __pyx_r = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  if (__Pyx_PyErr_Occurred()) {
    __Pyx_Generator_Replace_StopIteration(0);
    __Pyx_AddTraceback("genexpr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  }
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  #if !CYTHON_USE_EXC_INFO_STACK
  __Pyx_Coroutine_ResetAndClearException(__pyx_generator);
  #endif
  __pyx_generator->resume_label = -1;
  __Pyx_Coroutine_clear((PyObject*)__pyx_generator);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":631
 *         return words
 * 
 *     def _to_string(self):             # <<<<<<<<<<<<<<
 *         matrices = self.pairing_matrices()
 *         result = '%% Generators\n%s\n' % len(matrices)
*/

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_52_to_string(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self) {
  PyObject *__pyx_v_matrices = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_matrix = NULL;
  PyObject *__pyx_v_row = NULL;
  PyObject *__pyx_gb_6SnapPy_16CDirichletDomain_10_to_string_2generator5 = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_to_string", 0);

  /* "cython/core/dirichlet.pyx":632
 * 
 *     def _to_string(self):
 *         matrices = self.pairing_matrices()             # <<<<<<<<<<<<<<
 *         result = '%% Generators\n%s\n' % len(matrices)
 *         for matrix in matrices:
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_pairing_matrices, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_matrices = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":633
 *     def _to_string(self):
 *         matrices = self.pairing_matrices()
 *         result = '%% Generators\n%s\n' % len(matrices)             # <<<<<<<<<<<<<<
 *         for matrix in matrices:
 *             for row in matrix:
*/
  __pyx_t_4 = PyObject_Length(__pyx_v_matrices); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(10, 633, __pyx_L1_error)
  __pyx_t_1 = PyLong_FromSsize_t(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Generators_s, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_result = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/dirichlet.pyx":634
 *         matrices = self.pairing_matrices()
 *         result = '%% Generators\n%s\n' % len(matrices)
 *         for matrix in matrices:             # <<<<<<<<<<<<<<
 *             for row in matrix:
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)
*/
  if (likely(PyList_CheckExact(__pyx_v_matrices)) || PyTuple_CheckExact(__pyx_v_matrices)) {
    __pyx_t_2 = __pyx_v_matrices; __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = 0;
    __pyx_t_5 = NULL;
  } else {
    __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_matrices); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 634, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 634, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_5)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 634, __pyx_L1_error)
          #endif
          if (__pyx_t_4 >= __pyx_temp) break;
        }
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_4;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 634, __pyx_L1_error)
          #endif
          if (__pyx_t_4 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4));
        #else
        __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_4);
        #endif
        ++__pyx_t_4;
      }
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 634, __pyx_L1_error)
    } else {
      __pyx_t_1 = __pyx_t_5(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(10, 634, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_matrix, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":635
 *         result = '%% Generators\n%s\n' % len(matrices)
 *         for matrix in matrices:
 *             for row in matrix:             # <<<<<<<<<<<<<<
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)
 *             result += '\n'
*/
    if (likely(PyList_CheckExact(__pyx_v_matrix)) || PyTuple_CheckExact(__pyx_v_matrix)) {
      __pyx_t_1 = __pyx_v_matrix; __Pyx_INCREF(__pyx_t_1);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_matrix); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 635, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 635, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 635, __pyx_L1_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 635, __pyx_L1_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_8 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6));
          #else
          __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 635, __pyx_L1_error)
      } else {
        __pyx_t_8 = __pyx_t_7(__pyx_t_1);
        if (unlikely(!__pyx_t_8)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(10, 635, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_XDECREF_SET(__pyx_v_row, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "cython/core/dirichlet.pyx":636
 *         for matrix in matrices:
 *             for row in matrix:
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)             # <<<<<<<<<<<<<<
 *             result += '\n'
 *         return result
*/
      __pyx_t_8 = __pyx_pf_6SnapPy_16CDirichletDomain_10_to_string_genexpr(NULL, __pyx_v_row); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_Generator_GetInlinedResult(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__9, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_9 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_s_2, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_v_result, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(10, 636, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF_SET(__pyx_v_result, ((PyObject*)__pyx_t_8));
      __pyx_t_8 = 0;

      /* "cython/core/dirichlet.pyx":635
 *         result = '%% Generators\n%s\n' % len(matrices)
 *         for matrix in matrices:
 *             for row in matrix:             # <<<<<<<<<<<<<<
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)
 *             result += '\n'
*/
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":637
 *             for row in matrix:
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)
 *             result += '\n'             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
    __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_v_result, __pyx_mstate_global->__pyx_kp_u_); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_result, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "cython/core/dirichlet.pyx":634
 *         matrices = self.pairing_matrices()
 *         result = '%% Generators\n%s\n' % len(matrices)
 *         for matrix in matrices:             # <<<<<<<<<<<<<<
 *             for row in matrix:
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)
*/
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/dirichlet.pyx":638
 *                 result += ' %s\n' % ' '.join(str(x) for x in row)
 *             result += '\n'
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def __reduce_ex__(self, protocol):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":631
 *         return words
 * 
 *     def _to_string(self):             # <<<<<<<<<<<<<<
 *         matrices = self.pairing_matrices()
 *         result = '%% Generators\n%s\n' % len(matrices)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain._to_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_matrices);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_matrix);
  __Pyx_XDECREF(__pyx_v_row);
  __Pyx_XDECREF(__pyx_gb_6SnapPy_16CDirichletDomain_10_to_string_2generator5);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":640
 *         return result
 * 
 *     def __reduce_ex__(self, protocol):             # <<<<<<<<<<<<<<
 *         return (_unpickle_dirichlet_domain, (self._to_string(), self.manifold_name))
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_55__reduce_ex__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_55__reduce_ex__ = {"__reduce_ex__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_55__reduce_ex__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_55__reduce_ex__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_protocol = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_ex__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_protocol,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 640, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 640, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__reduce_ex__", 0) < (0)) __PYX_ERR(10, 640, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__reduce_ex__", 1, 1, 1, i); __PYX_ERR(10, 640, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 640, __pyx_L3_error)
    }
    __pyx_v_protocol = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__reduce_ex__", 1, 1, 1, __pyx_nargs); __PYX_ERR(10, 640, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.__reduce_ex__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_54__reduce_ex__(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self), __pyx_v_protocol);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_54__reduce_ex__(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_protocol) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_ex__", 0);

  /* "cython/core/dirichlet.pyx":641
 * 
 *     def __reduce_ex__(self, protocol):
 *         return (_unpickle_dirichlet_domain, (self._to_string(), self.manifold_name))             # <<<<<<<<<<<<<<
 * 
 *     def save(self, filename):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_unpickle_dirichlet_domain); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_string, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 641, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2) != (0)) __PYX_ERR(10, 641, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3) != (0)) __PYX_ERR(10, 641, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(10, 641, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_5);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5) != (0)) __PYX_ERR(10, 641, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_5 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":640
 *         return result
 * 
 *     def __reduce_ex__(self, protocol):             # <<<<<<<<<<<<<<
 *         return (_unpickle_dirichlet_domain, (self._to_string(), self.manifold_name))
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.__reduce_ex__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":643
 *         return (_unpickle_dirichlet_domain, (self._to_string(), self.manifold_name))
 * 
 *     def save(self, filename):             # <<<<<<<<<<<<<<
 *         """
 *         Save the Dirichlet domain as a text file in "% Generators" format.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_57save(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_56save, "\n        Save the Dirichlet domain as a text file in \"% Generators\" format.\n\n        >>> from snappy.number import Number\n        >>> acc, Number._accuracy_for_testing = Number._accuracy_for_testing, None\n        >>> M = Manifold('m125')\n        >>> D = M.dirichlet_domain()\n        >>> from tempfile import NamedTemporaryFile\n        >>> f = NamedTemporaryFile(delete=False)\n        >>> f.close()\n        >>> D.save(f.name)\n        >>> E = DirichletDomain(generator_file=f.name); E\n        30 finite vertices, 2 ideal vertices; 50 edges; 20 faces\n        >>> os.unlink(f.name)\n        >>> from pickle import dumps, loads\n        >>> E = loads(dumps(D)); E\n        30 finite vertices, 2 ideal vertices; 50 edges; 20 faces\n        >>> Number._accuracy_for_testing = acc\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_57save = {"save", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_57save, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_56save};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_57save(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_filename = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("save (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_filename,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 643, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 643, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "save", 0) < (0)) __PYX_ERR(10, 643, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("save", 1, 1, 1, i); __PYX_ERR(10, 643, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 643, __pyx_L3_error)
    }
    __pyx_v_filename = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("save", 1, 1, 1, __pyx_nargs); __PYX_ERR(10, 643, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.save", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_56save(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self), __pyx_v_filename);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_56save(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_filename) {
  PyObject *__pyx_v_output = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  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;
  int __pyx_t_13;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("save", 0);

  /* "cython/core/dirichlet.pyx":663
 *         >>> Number._accuracy_for_testing = acc
 *         """
 *         with open(filename, mode='wb') as output:             # <<<<<<<<<<<<<<
 *             output.write(self._to_string().encode('ascii'))
 * 
*/
  /*with:*/ {
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_v_filename};
      __pyx_t_4 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 663, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_mode, __pyx_mstate_global->__pyx_n_u_wb, __pyx_t_4, __pyx_callargs+2, 0) < (0)) __PYX_ERR(10, 663, __pyx_L1_error)
      __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 663, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_5 = __Pyx_PyObject_LookupSpecial(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_exit_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 663, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = NULL;
    __pyx_t_6 = __Pyx_PyObject_LookupSpecial(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_enter); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 663, __pyx_L3_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = 1;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_3 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 663, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_6 = __pyx_t_4;
    __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    /*try:*/ {
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_9);
        /*try:*/ {
          __pyx_v_output = __pyx_t_6;
          __pyx_t_6 = 0;

          /* "cython/core/dirichlet.pyx":664
 *         """
 *         with open(filename, mode='wb') as output:
 *             output.write(self._to_string().encode('ascii'))             # <<<<<<<<<<<<<<
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,
*/
          __pyx_t_1 = __pyx_v_output;
          __Pyx_INCREF(__pyx_t_1);
          __pyx_t_11 = ((PyObject *)__pyx_v_self);
          __Pyx_INCREF(__pyx_t_11);
          __pyx_t_3 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_11, NULL};
            __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_string, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 664, __pyx_L7_error)
            __Pyx_GOTREF(__pyx_t_10);
          }
          __pyx_t_2 = __pyx_t_10;
          __Pyx_INCREF(__pyx_t_2);
          __pyx_t_3 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_n_u_ascii};
            __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 664, __pyx_L7_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __pyx_t_3 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_4};
            __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_write, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 664, __pyx_L7_error)
            __Pyx_GOTREF(__pyx_t_6);
          }
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

          /* "cython/core/dirichlet.pyx":663
 *         >>> Number._accuracy_for_testing = acc
 *         """
 *         with open(filename, mode='wb') as output:             # <<<<<<<<<<<<<<
 *             output.write(self._to_string().encode('ascii'))
 * 
*/
        }
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        goto __pyx_L12_try_end;
        __pyx_L7_error:;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        /*except:*/ {
          __Pyx_AddTraceback("SnapPy.CDirichletDomain.save", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_4, &__pyx_t_1) < 0) __PYX_ERR(10, 663, __pyx_L9_except_error)
          __Pyx_XGOTREF(__pyx_t_6);
          __Pyx_XGOTREF(__pyx_t_4);
          __Pyx_XGOTREF(__pyx_t_1);
          __pyx_t_10 = PyTuple_Pack(3, __pyx_t_6, __pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 663, __pyx_L9_except_error)
          __Pyx_GOTREF(__pyx_t_10);
          __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 663, __pyx_L9_except_error)
          __Pyx_GOTREF(__pyx_t_12);
          __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          if (__pyx_t_13 < (0)) __PYX_ERR(10, 663, __pyx_L9_except_error)
          __pyx_t_14 = (!__pyx_t_13);
          if (unlikely(__pyx_t_14)) {
            __Pyx_GIVEREF(__pyx_t_6);
            __Pyx_GIVEREF(__pyx_t_4);
            __Pyx_XGIVEREF(__pyx_t_1);
            __Pyx_ErrRestoreWithState(__pyx_t_6, __pyx_t_4, __pyx_t_1);
            __pyx_t_6 = 0;  __pyx_t_4 = 0;  __pyx_t_1 = 0; 
            __PYX_ERR(10, 663, __pyx_L9_except_error)
          }
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          goto __pyx_L8_exception_handled;
        }
        __pyx_L9_except_error:;
        __Pyx_XGIVEREF(__pyx_t_7);
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
        goto __pyx_L1_error;
        __pyx_L8_exception_handled:;
        __Pyx_XGIVEREF(__pyx_t_7);
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
        __pyx_L12_try_end:;
      }
    }
    /*finally:*/ {
      /*normal exit:*/{
        if (__pyx_t_5) {
          __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[23], NULL);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_9)) __PYX_ERR(10, 663, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        }
        goto __pyx_L6;
      }
      __pyx_L6:;
    }
    goto __pyx_L16;
    __pyx_L3_error:;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L1_error;
    __pyx_L16:;
  }

  /* "cython/core/dirichlet.pyx":643
 *         return (_unpickle_dirichlet_domain, (self._to_string(), self.manifold_name))
 * 
 *     def save(self, filename):             # <<<<<<<<<<<<<<
 *         """
 *         Save the Dirichlet domain as a text file in "% Generators" format.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.save", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_output);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":666
 *             output.write(self._to_string().encode('ascii'))
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,             # <<<<<<<<<<<<<<
 *                    shrink_factor=0.9, cutoff_radius=0.9, callback=None):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_59export_stl(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_16CDirichletDomain_58export_stl, "\n        Export the Dirichlet domain as an stl file suitable for 3d printing.\n\n        Arguments can be given to modify the model produced:\n\n        * model='klein' - (alt. 'poincare') the model of HH^3 to use.\n\n        * cutout=False - remove the interior of each face\n\n        * shrink_factor=0.9 - the fraction to cut out of each face\n\n        * cuttoff_radius=0.9 - maximum rescaling for projection into Poincare model\n\n        * num_subdivision=3 - number of times to subdivide for the Poincare model\n\n        For printing domains in the Poincare model, cutoff_radius is critical for avoiding\n        infinitely thin cusps, which cannot be printed.\n\n        This can take a long time for finely subdivided domains. So we call UI_callback\n        every so often if it is not None.\n\n        >>> D = Manifold('m004').dirichlet_domain()\n        >>> D.export_stl('fig-eight-klein.stl')     #doctest: +SKIP\n        >>> D.export_stl('fig-eight-poincare.stl', model='poincare')     #doctest: +SKIP\n        >>> D.export_stl('fig-eight-klein-wireframe.stl', cutout=True)     #doctest: +SKIP\n        >>> D.export_stl('fig-eight-poincare-wireframe.stl', model='poincare', cutout=True)     #doctest: +SKIP\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_16CDirichletDomain_59export_stl = {"export_stl", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_59export_stl, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_58export_stl};
static PyObject *__pyx_pw_6SnapPy_16CDirichletDomain_59export_stl(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_filename = 0;
  PyObject *__pyx_v_model = 0;
  PyObject *__pyx_v_cutout = 0;
  PyObject *__pyx_v_num_subdivisions = 0;
  PyObject *__pyx_v_shrink_factor = 0;
  PyObject *__pyx_v_cutoff_radius = 0;
  CYTHON_UNUSED PyObject *__pyx_v_callback = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("export_stl (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_filename,&__pyx_mstate_global->__pyx_n_u_model,&__pyx_mstate_global->__pyx_n_u_cutout,&__pyx_mstate_global->__pyx_n_u_num_subdivisions,&__pyx_mstate_global->__pyx_n_u_shrink_factor,&__pyx_mstate_global->__pyx_n_u_cutoff_radius,&__pyx_mstate_global->__pyx_n_u_callback,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 666, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "export_stl", 0) < (0)) __PYX_ERR(10, 666, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_klein));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_3));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_0_9));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_0_9));

      /* "cython/core/dirichlet.pyx":667
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,
 *                    shrink_factor=0.9, cutoff_radius=0.9, callback=None):             # <<<<<<<<<<<<<<
 *         """
 *         Export the Dirichlet domain as an stl file suitable for 3d printing.
*/
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("export_stl", 0, 1, 7, i); __PYX_ERR(10, 666, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 666, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 666, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_n_u_klein));

      /* "cython/core/dirichlet.pyx":666
 *             output.write(self._to_string().encode('ascii'))
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,             # <<<<<<<<<<<<<<
 *                    shrink_factor=0.9, cutoff_radius=0.9, callback=None):
 *         """
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_False));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_3));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_0_9));
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_0_9));

      /* "cython/core/dirichlet.pyx":667
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,
 *                    shrink_factor=0.9, cutoff_radius=0.9, callback=None):             # <<<<<<<<<<<<<<
 *         """
 *         Export the Dirichlet domain as an stl file suitable for 3d printing.
*/
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_filename = values[0];
    __pyx_v_model = values[1];
    __pyx_v_cutout = values[2];
    __pyx_v_num_subdivisions = values[3];
    __pyx_v_shrink_factor = values[4];
    __pyx_v_cutoff_radius = values[5];
    __pyx_v_callback = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("export_stl", 0, 1, 7, __pyx_nargs); __PYX_ERR(10, 666, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CDirichletDomain.export_stl", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16CDirichletDomain_58export_stl(((struct __pyx_obj_6SnapPy_CDirichletDomain *)__pyx_v_self), __pyx_v_filename, __pyx_v_model, __pyx_v_cutout, __pyx_v_num_subdivisions, __pyx_v_shrink_factor, __pyx_v_cutoff_radius, __pyx_v_callback);

  /* "cython/core/dirichlet.pyx":666
 *             output.write(self._to_string().encode('ascii'))
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,             # <<<<<<<<<<<<<<
 *                    shrink_factor=0.9, cutoff_radius=0.9, callback=None):
 *         """
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16CDirichletDomain_58export_stl(struct __pyx_obj_6SnapPy_CDirichletDomain *__pyx_v_self, PyObject *__pyx_v_filename, PyObject *__pyx_v_model, PyObject *__pyx_v_cutout, PyObject *__pyx_v_num_subdivisions, PyObject *__pyx_v_shrink_factor, PyObject *__pyx_v_cutoff_radius, CYTHON_UNUSED PyObject *__pyx_v_callback) {
  PyObject *__pyx_v_output = NULL;
  PyObject *__pyx_v_output_file = NULL;
  PyObject *__pyx_v_line = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  Py_ssize_t __pyx_t_11;
  PyObject *(*__pyx_t_12)(PyObject *);
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("export_stl", 0);

  /* "cython/core/dirichlet.pyx":695
 *         >>> D.export_stl('fig-eight-poincare-wireframe.stl', model='poincare', cutout=True)     #doctest: +SKIP
 *         """
 *         output = stl(self.face_list(), model, cutout, num_subdivisions, shrink_factor, cutoff_radius)             # <<<<<<<<<<<<<<
 *         with open(filename, 'w') as output_file:
 *             for line in output:
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_stl); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_face_list, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 695, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[7] = {__pyx_t_2, __pyx_t_4, __pyx_v_model, __pyx_v_cutout, __pyx_v_num_subdivisions, __pyx_v_shrink_factor, __pyx_v_cutoff_radius};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (7-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 695, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_output = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/dirichlet.pyx":696
 *         """
 *         output = stl(self.face_list(), model, cutout, num_subdivisions, shrink_factor, cutoff_radius)
 *         with open(filename, 'w') as output_file:             # <<<<<<<<<<<<<<
 *             for line in output:
 *                 if UI_callback is not None:
*/
  /*with:*/ {
    __pyx_t_3 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_filename, __pyx_mstate_global->__pyx_n_u_w};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 696, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_7 = __Pyx_PyObject_LookupSpecial(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_exit_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = NULL;
    __pyx_t_2 = __Pyx_PyObject_LookupSpecial(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_enter); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 696, __pyx_L3_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = 1;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
      __pyx_t_6 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 696, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_2 = __pyx_t_3;
    __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    /*try:*/ {
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_10);
        /*try:*/ {
          __pyx_v_output_file = __pyx_t_2;
          __pyx_t_2 = 0;

          /* "cython/core/dirichlet.pyx":697
 *         output = stl(self.face_list(), model, cutout, num_subdivisions, shrink_factor, cutoff_radius)
 *         with open(filename, 'w') as output_file:
 *             for line in output:             # <<<<<<<<<<<<<<
 *                 if UI_callback is not None:
 *                     UI_callback()
*/
          if (likely(PyList_CheckExact(__pyx_v_output)) || PyTuple_CheckExact(__pyx_v_output)) {
            __pyx_t_2 = __pyx_v_output; __Pyx_INCREF(__pyx_t_2);
            __pyx_t_11 = 0;
            __pyx_t_12 = NULL;
          } else {
            __pyx_t_11 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_output); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 697, __pyx_L7_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 697, __pyx_L7_error)
          }
          for (;;) {
            if (likely(!__pyx_t_12)) {
              if (likely(PyList_CheckExact(__pyx_t_2))) {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 697, __pyx_L7_error)
                  #endif
                  if (__pyx_t_11 >= __pyx_temp) break;
                }
                __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_2, __pyx_t_11, __Pyx_ReferenceSharing_OwnStrongReference);
                ++__pyx_t_11;
              } else {
                {
                  Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_2);
                  #if !CYTHON_ASSUME_SAFE_SIZE
                  if (unlikely((__pyx_temp < 0))) __PYX_ERR(10, 697, __pyx_L7_error)
                  #endif
                  if (__pyx_t_11 >= __pyx_temp) break;
                }
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_11));
                #else
                __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_11);
                #endif
                ++__pyx_t_11;
              }
              if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 697, __pyx_L7_error)
            } else {
              __pyx_t_1 = __pyx_t_12(__pyx_t_2);
              if (unlikely(!__pyx_t_1)) {
                PyObject* exc_type = PyErr_Occurred();
                if (exc_type) {
                  if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(10, 697, __pyx_L7_error)
                  PyErr_Clear();
                }
                break;
              }
            }
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_XDECREF_SET(__pyx_v_line, __pyx_t_1);
            __pyx_t_1 = 0;

            /* "cython/core/dirichlet.pyx":698
 *         with open(filename, 'w') as output_file:
 *             for line in output:
 *                 if UI_callback is not None:             # <<<<<<<<<<<<<<
 *                     UI_callback()
 *                 output_file.write(line)
*/
            __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_UI_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 698, __pyx_L7_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_13 = (__pyx_t_1 != Py_None);
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (__pyx_t_13) {

              /* "cython/core/dirichlet.pyx":699
 *             for line in output:
 *                 if UI_callback is not None:
 *                     UI_callback()             # <<<<<<<<<<<<<<
 *                 output_file.write(line)
 * 
*/
              __pyx_t_3 = NULL;
              __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_UI_callback); if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 699, __pyx_L7_error)
              __Pyx_GOTREF(__pyx_t_4);
              __pyx_t_6 = 1;
              #if CYTHON_UNPACK_METHODS
              if (unlikely(PyMethod_Check(__pyx_t_4))) {
                __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
                assert(__pyx_t_3);
                PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
                __Pyx_INCREF(__pyx_t_3);
                __Pyx_INCREF(__pyx__function);
                __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
                __pyx_t_6 = 0;
              }
              #endif
              {
                PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
                __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
                __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
                if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 699, __pyx_L7_error)
                __Pyx_GOTREF(__pyx_t_1);
              }
              __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

              /* "cython/core/dirichlet.pyx":698
 *         with open(filename, 'w') as output_file:
 *             for line in output:
 *                 if UI_callback is not None:             # <<<<<<<<<<<<<<
 *                     UI_callback()
 *                 output_file.write(line)
*/
            }

            /* "cython/core/dirichlet.pyx":700
 *                 if UI_callback is not None:
 *                     UI_callback()
 *                 output_file.write(line)             # <<<<<<<<<<<<<<
 * 
 * 
*/
            __pyx_t_4 = __pyx_v_output_file;
            __Pyx_INCREF(__pyx_t_4);
            __pyx_t_6 = 0;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_line};
              __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_write, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
              if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 700, __pyx_L7_error)
              __Pyx_GOTREF(__pyx_t_1);
            }
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

            /* "cython/core/dirichlet.pyx":697
 *         output = stl(self.face_list(), model, cutout, num_subdivisions, shrink_factor, cutoff_radius)
 *         with open(filename, 'w') as output_file:
 *             for line in output:             # <<<<<<<<<<<<<<
 *                 if UI_callback is not None:
 *                     UI_callback()
*/
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "cython/core/dirichlet.pyx":696
 *         """
 *         output = stl(self.face_list(), model, cutout, num_subdivisions, shrink_factor, cutoff_radius)
 *         with open(filename, 'w') as output_file:             # <<<<<<<<<<<<<<
 *             for line in output:
 *                 if UI_callback is not None:
*/
        }
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L12_try_end;
        __pyx_L7_error:;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        /*except:*/ {
          __Pyx_AddTraceback("SnapPy.CDirichletDomain.export_stl", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_4) < 0) __PYX_ERR(10, 696, __pyx_L9_except_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __Pyx_XGOTREF(__pyx_t_1);
          __Pyx_XGOTREF(__pyx_t_4);
          __pyx_t_3 = PyTuple_Pack(3, __pyx_t_2, __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 696, __pyx_L9_except_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_3, NULL);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_14)) __PYX_ERR(10, 696, __pyx_L9_except_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          if (__pyx_t_13 < (0)) __PYX_ERR(10, 696, __pyx_L9_except_error)
          __pyx_t_15 = (!__pyx_t_13);
          if (unlikely(__pyx_t_15)) {
            __Pyx_GIVEREF(__pyx_t_2);
            __Pyx_GIVEREF(__pyx_t_1);
            __Pyx_XGIVEREF(__pyx_t_4);
            __Pyx_ErrRestoreWithState(__pyx_t_2, __pyx_t_1, __pyx_t_4);
            __pyx_t_2 = 0;  __pyx_t_1 = 0;  __pyx_t_4 = 0; 
            __PYX_ERR(10, 696, __pyx_L9_except_error)
          }
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          goto __pyx_L8_exception_handled;
        }
        __pyx_L9_except_error:;
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
        goto __pyx_L1_error;
        __pyx_L8_exception_handled:;
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
        __pyx_L12_try_end:;
      }
    }
    /*finally:*/ {
      /*normal exit:*/{
        if (__pyx_t_7) {
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[23], NULL);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(10, 696, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        }
        goto __pyx_L6;
      }
      __pyx_L6:;
    }
    goto __pyx_L20;
    __pyx_L3_error:;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    goto __pyx_L1_error;
    __pyx_L20:;
  }

  /* "cython/core/dirichlet.pyx":666
 *             output.write(self._to_string().encode('ascii'))
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,             # <<<<<<<<<<<<<<
 *                    shrink_factor=0.9, cutoff_radius=0.9, callback=None):
 *         """
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_AddTraceback("SnapPy.CDirichletDomain.export_stl", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_output);
  __Pyx_XDECREF(__pyx_v_output_file);
  __Pyx_XDECREF(__pyx_v_line);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/dirichlet.pyx":742
 * 
 * 
 * def _unpickle_dirichlet_domain(string, name):             # <<<<<<<<<<<<<<
 *     return DirichletDomain(generator_bytes=string.encode('ascii'), manifold_name=name)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_45_unpickle_dirichlet_domain(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_45_unpickle_dirichlet_domain = {"_unpickle_dirichlet_domain", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_45_unpickle_dirichlet_domain, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_45_unpickle_dirichlet_domain(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_string = 0;
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_unpickle_dirichlet_domain (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_string,&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(10, 742, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 742, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 742, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_unpickle_dirichlet_domain", 0) < (0)) __PYX_ERR(10, 742, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_unpickle_dirichlet_domain", 1, 2, 2, i); __PYX_ERR(10, 742, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(10, 742, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(10, 742, __pyx_L3_error)
    }
    __pyx_v_string = values[0];
    __pyx_v_name = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_unpickle_dirichlet_domain", 1, 2, 2, __pyx_nargs); __PYX_ERR(10, 742, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy._unpickle_dirichlet_domain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_44_unpickle_dirichlet_domain(__pyx_self, __pyx_v_string, __pyx_v_name);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_44_unpickle_dirichlet_domain(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_unpickle_dirichlet_domain", 0);

  /* "cython/core/dirichlet.pyx":743
 * 
 * def _unpickle_dirichlet_domain(string, name):
 *     return DirichletDomain(generator_bytes=string.encode('ascii'), manifold_name=name)             # <<<<<<<<<<<<<<
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_DirichletDomain); if (unlikely(!__pyx_t_3)) __PYX_ERR(10, 743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __pyx_v_string;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ascii};
    __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(10, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 2 : 0)] = {__pyx_t_2, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_generator_bytes, __pyx_t_4, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(10, 743, __pyx_L1_error)
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_manifold_name, __pyx_v_name, __pyx_t_5, __pyx_callargs+1, 1) < (0)) __PYX_ERR(10, 743, __pyx_L1_error)
    __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/dirichlet.pyx":742
 * 
 * 
 * def _unpickle_dirichlet_domain(string, name):             # <<<<<<<<<<<<<<
 *     return DirichletDomain(generator_bytes=string.encode('ascii'), manifold_name=name)
*/

  /* function exit code */
  __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_AddTraceback("SnapPy._unpickle_dirichlet_domain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":9
 *     cdef original_indices
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_1_number_(CYTHON_UNUSED PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_1_number_ = {"_number_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_1_number_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_1_number_(CYTHON_UNUSED PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_number_ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 9, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 9, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_number_", 0) < (0)) __PYX_ERR(11, 9, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_number_", 1, 1, 1, i); __PYX_ERR(11, 9, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 9, __pyx_L3_error)
    }
    __pyx_v_n = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_number_", 1, 1, 1, __pyx_nargs); __PYX_ERR(11, 9, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood._number_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood__number_(__pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood__number_(PyObject *__pyx_v_n) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_number_", 0);

  /* "cython/core/cusp_neighborhoods.pyx":11
 *     @staticmethod
 *     def _number_(n):
 *         return number.number_to_native_number(n)             # <<<<<<<<<<<<<<
 * 
 *     def __cinit__(self, Manifold manifold):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_number_to_native_number); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_n};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 11, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":9
 *     cdef original_indices
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood._number_", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":13
 *         return number.number_to_native_number(n)
 * 
 *     def __cinit__(self, Manifold manifold):             # <<<<<<<<<<<<<<
 *         if manifold.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
*/

/* Python wrapper */
static int __pyx_pw_6SnapPy_17CCuspNeighborhood_3__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6SnapPy_17CCuspNeighborhood_3__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_manifold = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return -1;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_manifold,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 13, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 13, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__cinit__", 0) < (0)) __PYX_ERR(11, 13, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, i); __PYX_ERR(11, 13, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_VARARGS(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 13, __pyx_L3_error)
    }
    __pyx_v_manifold = ((struct __pyx_obj_6SnapPy_Manifold *)values[0]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, __pyx_nargs); __PYX_ERR(11, 13, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_manifold), __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, 1, "manifold", 0))) __PYX_ERR(11, 13, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_2__cinit__(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_manifold);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6SnapPy_17CCuspNeighborhood_2__cinit__(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, struct __pyx_obj_6SnapPy_Manifold *__pyx_v_manifold) {
  PyObject *__pyx_v_is_complete = NULL;
  PyObject *__pyx_9genexpr92__pyx_v_n = NULL;
  PyObject *__pyx_9genexpr92__pyx_v_c = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  struct CuspNeighborhoods *__pyx_t_9;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cython/core/cusp_neighborhoods.pyx":14
 * 
 *     def __cinit__(self, Manifold manifold):
 *         if manifold.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         is_complete = manifold.cusp_info('is_complete')
*/
  __pyx_t_1 = (__pyx_v_manifold->__pyx_base.c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/cusp_neighborhoods.pyx":15
 *     def __cinit__(self, Manifold manifold):
 *         if manifold.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')             # <<<<<<<<<<<<<<
 *         is_complete = manifold.cusp_info('is_complete')
 *         self.original_indices = [n for n, c in enumerate(is_complete) if c]
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_Triangulation_is_empty};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 15, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(11, 15, __pyx_L1_error)

    /* "cython/core/cusp_neighborhoods.pyx":14
 * 
 *     def __cinit__(self, Manifold manifold):
 *         if manifold.c_triangulation is NULL:             # <<<<<<<<<<<<<<
 *             raise ValueError('The Triangulation is empty.')
 *         is_complete = manifold.cusp_info('is_complete')
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":16
 *         if manifold.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
 *         is_complete = manifold.cusp_info('is_complete')             # <<<<<<<<<<<<<<
 *         self.original_indices = [n for n, c in enumerate(is_complete) if c]
 *         copy_triangulation(manifold.c_triangulation,
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_manifold);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_n_u_is_complete};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 16, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_is_complete = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":17
 *             raise ValueError('The Triangulation is empty.')
 *         is_complete = manifold.cusp_info('is_complete')
 *         self.original_indices = [n for n, c in enumerate(is_complete) if c]             # <<<<<<<<<<<<<<
 *         copy_triangulation(manifold.c_triangulation,
 *                            &self.c_triangulation)
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 17, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_t_3 = __pyx_mstate_global->__pyx_int_0;
    if (likely(PyList_CheckExact(__pyx_v_is_complete)) || PyTuple_CheckExact(__pyx_v_is_complete)) {
      __pyx_t_5 = __pyx_v_is_complete; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_is_complete); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 17, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 17, __pyx_L6_error)
    }
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(11, 17, __pyx_L6_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(11, 17, __pyx_L6_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_8 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6));
          #else
          __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 17, __pyx_L6_error)
      } else {
        __pyx_t_8 = __pyx_t_7(__pyx_t_5);
        if (unlikely(!__pyx_t_8)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(11, 17, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_XDECREF_SET(__pyx_9genexpr92__pyx_v_c, __pyx_t_8);
      __pyx_t_8 = 0;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_9genexpr92__pyx_v_n, __pyx_t_3);
      __pyx_t_8 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 17, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3);
      __pyx_t_3 = __pyx_t_8;
      __pyx_t_8 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_9genexpr92__pyx_v_c); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(11, 17, __pyx_L6_error)
      if (__pyx_t_1) {
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_9genexpr92__pyx_v_n))) __PYX_ERR(11, 17, __pyx_L6_error)
      }
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_c); __pyx_9genexpr92__pyx_v_c = 0;
    __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_n); __pyx_9genexpr92__pyx_v_n = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_c); __pyx_9genexpr92__pyx_v_c = 0;
    __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_n); __pyx_9genexpr92__pyx_v_n = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->original_indices);
  __Pyx_DECREF(__pyx_v_self->original_indices);
  __pyx_v_self->original_indices = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":18
 *         is_complete = manifold.cusp_info('is_complete')
 *         self.original_indices = [n for n, c in enumerate(is_complete) if c]
 *         copy_triangulation(manifold.c_triangulation,             # <<<<<<<<<<<<<<
 *                            &self.c_triangulation)
 *         self.c_cusp_neighborhood = initialize_cusp_neighborhoods(
*/
  copy_triangulation(__pyx_v_manifold->__pyx_base.c_triangulation, (&__pyx_v_self->c_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 18, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":20
 *         copy_triangulation(manifold.c_triangulation,
 *                            &self.c_triangulation)
 *         self.c_cusp_neighborhood = initialize_cusp_neighborhoods(             # <<<<<<<<<<<<<<
 *             self.c_triangulation)
 *         if self.c_cusp_neighborhood == NULL:
*/
  __pyx_t_9 = initialize_cusp_neighborhoods(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 20, __pyx_L1_error)
  __pyx_v_self->c_cusp_neighborhood = __pyx_t_9;

  /* "cython/core/cusp_neighborhoods.pyx":22
 *         self.c_cusp_neighborhood = initialize_cusp_neighborhoods(
 *             self.c_triangulation)
 *         if self.c_cusp_neighborhood == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The cusp neighborhood construction failed.')
 *         self.manifold_name = manifold.name()
*/
  __pyx_t_1 = (__pyx_v_self->c_cusp_neighborhood == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/cusp_neighborhoods.pyx":23
 *             self.c_triangulation)
 *         if self.c_cusp_neighborhood == NULL:
 *             raise RuntimeError('The cusp neighborhood construction failed.')             # <<<<<<<<<<<<<<
 *         self.manifold_name = manifold.name()
 *         self._num_cusps = get_num_cusp_neighborhoods(self.c_cusp_neighborhood)
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_The_cusp_neighborhood_constructi};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 23, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(11, 23, __pyx_L1_error)

    /* "cython/core/cusp_neighborhoods.pyx":22
 *         self.c_cusp_neighborhood = initialize_cusp_neighborhoods(
 *             self.c_triangulation)
 *         if self.c_cusp_neighborhood == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The cusp neighborhood construction failed.')
 *         self.manifold_name = manifold.name()
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":24
 *         if self.c_cusp_neighborhood == NULL:
 *             raise RuntimeError('The cusp neighborhood construction failed.')
 *         self.manifold_name = manifold.name()             # <<<<<<<<<<<<<<
 *         self._num_cusps = get_num_cusp_neighborhoods(self.c_cusp_neighborhood)
 *         self._number_ = manifold._number_
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_manifold);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_name, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 24, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name, __pyx_t_2) < (0)) __PYX_ERR(11, 24, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":25
 *             raise RuntimeError('The cusp neighborhood construction failed.')
 *         self.manifold_name = manifold.name()
 *         self._num_cusps = get_num_cusp_neighborhoods(self.c_cusp_neighborhood)             # <<<<<<<<<<<<<<
 *         self._number_ = manifold._number_
 * 
*/
  __pyx_t_10 = get_num_cusp_neighborhoods(__pyx_v_self->c_cusp_neighborhood); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 25, __pyx_L1_error)
  __pyx_v_self->_num_cusps = __pyx_t_10;

  /* "cython/core/cusp_neighborhoods.pyx":26
 *         self.manifold_name = manifold.name()
 *         self._num_cusps = get_num_cusp_neighborhoods(self.c_cusp_neighborhood)
 *         self._number_ = manifold._number_             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_manifold), __pyx_mstate_global->__pyx_n_u_number_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_2) < (0)) __PYX_ERR(11, 26, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":13
 *         return number.number_to_native_number(n)
 * 
 *     def __cinit__(self, Manifold manifold):             # <<<<<<<<<<<<<<
 *         if manifold.c_triangulation is NULL:
 *             raise ValueError('The Triangulation is empty.')
*/

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_is_complete);
  __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_n);
  __Pyx_XDECREF(__pyx_9genexpr92__pyx_v_c);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":28
 *         self._number_ = manifold._number_
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
*/

/* Python wrapper */
static void __pyx_pw_6SnapPy_17CCuspNeighborhood_5__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_6SnapPy_17CCuspNeighborhood_5__dealloc__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_pf_6SnapPy_17CCuspNeighborhood_4__dealloc__(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_6SnapPy_17CCuspNeighborhood_4__dealloc__(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self) {
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "cython/core/cusp_neighborhoods.pyx":29
 * 
 *     def __dealloc__(self):
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(self.c_triangulation)
 *         if self.c_cusp_neighborhood != NULL:
*/
  __pyx_t_1 = (__pyx_v_self->c_triangulation != NULL);
  if (__pyx_t_1) {

    /* "cython/core/cusp_neighborhoods.pyx":30
 *     def __dealloc__(self):
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)             # <<<<<<<<<<<<<<
 *         if self.c_cusp_neighborhood != NULL:
 *             free_cusp_neighborhoods(self.c_cusp_neighborhood)
*/
    free_triangulation(__pyx_v_self->c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 30, __pyx_L1_error)

    /* "cython/core/cusp_neighborhoods.pyx":29
 * 
 *     def __dealloc__(self):
 *         if self.c_triangulation != NULL:             # <<<<<<<<<<<<<<
 *             free_triangulation(self.c_triangulation)
 *         if self.c_cusp_neighborhood != NULL:
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":31
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
 *         if self.c_cusp_neighborhood != NULL:             # <<<<<<<<<<<<<<
 *             free_cusp_neighborhoods(self.c_cusp_neighborhood)
 * 
*/
  __pyx_t_1 = (__pyx_v_self->c_cusp_neighborhood != NULL);
  if (__pyx_t_1) {

    /* "cython/core/cusp_neighborhoods.pyx":32
 *             free_triangulation(self.c_triangulation)
 *         if self.c_cusp_neighborhood != NULL:
 *             free_cusp_neighborhoods(self.c_cusp_neighborhood)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
    free_cusp_neighborhoods(__pyx_v_self->c_cusp_neighborhood); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 32, __pyx_L1_error)

    /* "cython/core/cusp_neighborhoods.pyx":31
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
 *         if self.c_cusp_neighborhood != NULL:             # <<<<<<<<<<<<<<
 *             free_cusp_neighborhoods(self.c_cusp_neighborhood)
 * 
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":28
 *         self._number_ = manifold._number_
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("SnapPy.CCuspNeighborhood.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
}

/* "cython/core/cusp_neighborhoods.pyx":34
 *             free_cusp_neighborhoods(self.c_cusp_neighborhood)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         N = self._num_cusps
 *         return 'Cusp Neighborhood with %d cusp%s' % (
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_7__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_7__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_6__repr__(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_6__repr__(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self) {
  int __pyx_v_N;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6[4];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/cusp_neighborhoods.pyx":35
 * 
 *     def __repr__(self):
 *         N = self._num_cusps             # <<<<<<<<<<<<<<
 *         return 'Cusp Neighborhood with %d cusp%s' % (
 *             N, N != 1 and 's' or '')
*/
  __pyx_t_1 = __pyx_v_self->_num_cusps;
  __pyx_v_N = __pyx_t_1;

  /* "cython/core/cusp_neighborhoods.pyx":36
 *     def __repr__(self):
 *         N = self._num_cusps
 *         return 'Cusp Neighborhood with %d cusp%s' % (             # <<<<<<<<<<<<<<
 *             N, N != 1 and 's' or '')
 * 
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/cusp_neighborhoods.pyx":37
 *         N = self._num_cusps
 *         return 'Cusp Neighborhood with %d cusp%s' % (
 *             N, N != 1 and 's' or '')             # <<<<<<<<<<<<<<
 * 
 *     def manifold(self):
*/
  __pyx_t_2 = __Pyx_PyUnicode_From_int(__pyx_v_N, 0, ' ', 'd'); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = (__pyx_v_N != 1);
  if (!__pyx_t_4) {
    goto __pyx_L4_next_or;
  } else {
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_mstate_global->__pyx_n_u_s); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(11, 37, __pyx_L1_error)
  if (!__pyx_t_4) {
  } else {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_s);
    __pyx_t_3 = __pyx_mstate_global->__pyx_n_u_s;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_L4_next_or:;
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__10);
  __pyx_t_3 = __pyx_mstate_global->__pyx_kp_u__10;
  __pyx_L3_bool_binop_done:;
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_3), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_6[0] = __pyx_mstate_global->__pyx_kp_u_Cusp_Neighborhood_with;
  __pyx_t_6[1] = __pyx_t_2;
  __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u_cusp;
  __pyx_t_6[3] = __pyx_t_5;

  /* "cython/core/cusp_neighborhoods.pyx":36
 *     def __repr__(self):
 *         N = self._num_cusps
 *         return 'Cusp Neighborhood with %d cusp%s' % (             # <<<<<<<<<<<<<<
 *             N, N != 1 and 's' or '')
 * 
*/
  __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_6, 4, 23 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + 5 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5));
  if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":34
 *             free_cusp_neighborhoods(self.c_cusp_neighborhood)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         N = self._num_cusps
 *         return 'Cusp Neighborhood with %d cusp%s' % (
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":39
 *             N, N != 1 and 's' or '')
 * 
 *     def manifold(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a Manifold built from the current canonical triangulation.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_9manifold(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_8manifold, "\n        Return a Manifold built from the current canonical triangulation.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_9manifold = {"manifold", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_9manifold, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_8manifold};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_9manifold(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("manifold (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("manifold", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("manifold", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_8manifold(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_8manifold(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self) {
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_M = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("manifold", 0);

  /* "cython/core/cusp_neighborhoods.pyx":46
 *         cdef Manifold M
 * 
 *         copy_triangulation(self.c_cusp_neighborhood.its_triangulation,             # <<<<<<<<<<<<<<
 *                            &c_triangulation)
 *         M = _manifold_class('empty')
*/
  copy_triangulation(__pyx_v_self->c_cusp_neighborhood->its_triangulation, (&__pyx_v_c_triangulation)); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 46, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":48
 *         copy_triangulation(self.c_cusp_neighborhood.its_triangulation,
 *                            &c_triangulation)
 *         M = _manifold_class('empty')             # <<<<<<<<<<<<<<
 *         M.set_c_triangulation(c_triangulation)
 *         M.set_name(self.manifold_name + '_canonical')
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_manifold_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_n_u_empty};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 48, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(11, 48, __pyx_L1_error)
  __pyx_v_M = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":49
 *                            &c_triangulation)
 *         M = _manifold_class('empty')
 *         M.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         M.set_name(self.manifold_name + '_canonical')
 *         return M
*/
  __pyx_t_1 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_M->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_M), __pyx_v_c_triangulation); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":50
 *         M = _manifold_class('empty')
 *         M.set_c_triangulation(c_triangulation)
 *         M.set_name(self.manifold_name + '_canonical')             # <<<<<<<<<<<<<<
 *         return M
 * 
*/
  __pyx_t_3 = ((PyObject *)__pyx_v_M);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Add(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_canonical); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 50, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":51
 *         M.set_c_triangulation(c_triangulation)
 *         M.set_name(self.manifold_name + '_canonical')
 *         return M             # <<<<<<<<<<<<<<
 * 
 *     def original_index(self, which_cusp):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_M);
  __pyx_r = ((PyObject *)__pyx_v_M);
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":39
 *             N, N != 1 and 's' or '')
 * 
 *     def manifold(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a Manifold built from the current canonical triangulation.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.manifold", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_M);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":53
 *         return M
 * 
 *     def original_index(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the index by which the Manifold identifies this cusp.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_11original_index(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_10original_index, "\n        Returns the index by which the Manifold identifies this cusp.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_11original_index = {"original_index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_11original_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_10original_index};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_11original_index(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("original_index (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 53, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 53, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "original_index", 0) < (0)) __PYX_ERR(11, 53, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("original_index", 1, 1, 1, i); __PYX_ERR(11, 53, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 53, __pyx_L3_error)
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("original_index", 1, 1, 1, __pyx_nargs); __PYX_ERR(11, 53, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.original_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_10original_index(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_10original_index(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  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("original_index", 0);

  /* "cython/core/cusp_neighborhoods.pyx":57
 *         Returns the index by which the Manifold identifies this cusp.
 *         """
 *         return self.original_indices[which_cusp]             # <<<<<<<<<<<<<<
 * 
 *     def check_index(self, which_cusp):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_self->original_indices, __pyx_v_which_cusp); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":53
 *         return M
 * 
 *     def original_index(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the index by which the Manifold identifies this cusp.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.original_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":59
 *         return self.original_indices[which_cusp]
 * 
 *     def check_index(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Raises an IndexError if the cusp index is invalid.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_13check_index(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_12check_index, "\n        Raises an IndexError if the cusp index is invalid.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_13check_index = {"check_index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_13check_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_12check_index};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_13check_index(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("check_index (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 59, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 59, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "check_index", 0) < (0)) __PYX_ERR(11, 59, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("check_index", 1, 1, 1, i); __PYX_ERR(11, 59, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 59, __pyx_L3_error)
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("check_index", 1, 1, 1, __pyx_nargs); __PYX_ERR(11, 59, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.check_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_12check_index(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_12check_index(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("check_index", 0);

  /* "cython/core/cusp_neighborhoods.pyx":63
 *         Raises an IndexError if the cusp index is invalid.
 *         """
 *         N = int(which_cusp)             # <<<<<<<<<<<<<<
 *         if 0 <= N < self._num_cusps:
 *             return N
*/
  __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_which_cusp); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 63, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_N = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":64
 *         """
 *         N = int(which_cusp)
 *         if 0 <= N < self._num_cusps:             # <<<<<<<<<<<<<<
 *             return N
 *         else:
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_N, Py_LE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 64, __pyx_L1_error)
  if (__Pyx_PyObject_IsTrue(__pyx_t_1)) {
    __Pyx_DECREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_self->_num_cusps); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 64, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyObject_RichCompare(__pyx_v_N, __pyx_t_2, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 64, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(11, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_3)) {

    /* "cython/core/cusp_neighborhoods.pyx":65
 *         N = int(which_cusp)
 *         if 0 <= N < self._num_cusps:
 *             return N             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError('The specified cusp (%s) does not '
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_N);
    __pyx_r = __pyx_v_N;
    goto __pyx_L0;

    /* "cython/core/cusp_neighborhoods.pyx":64
 *         """
 *         N = int(which_cusp)
 *         if 0 <= N < self._num_cusps:             # <<<<<<<<<<<<<<
 *             return N
 *         else:
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":67
 *             return N
 *         else:
 *             raise IndexError('The specified cusp (%s) does not '             # <<<<<<<<<<<<<<
 *                              'exist.' % which_cusp)
 * 
*/
  /*else*/ {
    __pyx_t_2 = NULL;

    /* "cython/core/cusp_neighborhoods.pyx":68
 *         else:
 *             raise IndexError('The specified cusp (%s) does not '
 *                              'exist.' % which_cusp)             # <<<<<<<<<<<<<<
 * 
 *     def num_cusps(self):
*/
    __pyx_t_4 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_The_specified_cusp_s_does_not_ex, __pyx_v_which_cusp); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 67, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(11, 67, __pyx_L1_error)
  }

  /* "cython/core/cusp_neighborhoods.pyx":59
 *         return self.original_indices[which_cusp]
 * 
 *     def check_index(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Raises an IndexError if the cusp index is invalid.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.check_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":70
 *                              'exist.' % which_cusp)
 * 
 *     def num_cusps(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of cusps.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_15num_cusps(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_14num_cusps, "\n        Return the number of cusps.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_15num_cusps = {"num_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_15num_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_14num_cusps};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_15num_cusps(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("num_cusps (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("num_cusps", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("num_cusps", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_14num_cusps(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_14num_cusps(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self) {
  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("num_cusps", 0);

  /* "cython/core/cusp_neighborhoods.pyx":74
 *         Return the number of cusps.
 *         """
 *         return self._num_cusps             # <<<<<<<<<<<<<<
 * 
 *     def topology(self, which_cusp = 0):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_self->_num_cusps); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":70
 *                              'exist.' % which_cusp)
 * 
 *     def num_cusps(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of cusps.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.num_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":76
 *         return self._num_cusps
 * 
 *     def topology(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the topological type of the specified cusp.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_17topology(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_16topology, "\n        Return the topological type of the specified cusp.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_17topology = {"topology", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_17topology, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_16topology};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_17topology(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("topology (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 76, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 76, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "topology", 0) < (0)) __PYX_ERR(11, 76, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 76, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("topology", 0, 0, 1, __pyx_nargs); __PYX_ERR(11, 76, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.topology", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_16topology(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_16topology(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  CuspTopology __pyx_v_topology;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  CuspTopology __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("topology", 0);

  /* "cython/core/cusp_neighborhoods.pyx":80
 *         Return the topological type of the specified cusp.
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         topology = get_cusp_neighborhood_topology(self.c_cusp_neighborhood, N)
 *         return CuspTopology[topology]
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":81
 *         """
 *         N = self.check_index(which_cusp)
 *         topology = get_cusp_neighborhood_topology(self.c_cusp_neighborhood, N)             # <<<<<<<<<<<<<<
 *         return CuspTopology[topology]
 * 
*/
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 81, __pyx_L1_error)
  __pyx_t_5 = get_cusp_neighborhood_topology(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 81, __pyx_L1_error)
  __pyx_v_topology = __pyx_t_5;

  /* "cython/core/cusp_neighborhoods.pyx":82
 *         N = self.check_index(which_cusp)
 *         topology = get_cusp_neighborhood_topology(self.c_cusp_neighborhood, N)
 *         return CuspTopology[topology]             # <<<<<<<<<<<<<<
 * 
 *     def get_displacement(self, which_cusp = 0):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_CuspTopology); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_From_CuspTopology(__pyx_v_topology); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":76
 *         return self._num_cusps
 * 
 *     def topology(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the topological type of the specified cusp.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.topology", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":84
 *         return CuspTopology[topology]
 * 
 *     def get_displacement(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement of the horospherical boundary of the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_19get_displacement(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_18get_displacement, "\n        Return the displacement of the horospherical boundary of the\n        specified cusp. The displacement is the hyperbolic distance\n        that the horospherical boundary has been displaced from its\n        \"home\" position, at which the area of the boundary is\n        3sqrt(3)/8.  (The translates of all of the horospheres are\n        guaranteed to be pairwise disjoint when each cusp has\n        displacement 0.)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_19get_displacement = {"get_displacement", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_19get_displacement, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_18get_displacement};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_19get_displacement(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_displacement (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 84, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 84, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_displacement", 0) < (0)) __PYX_ERR(11, 84, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 84, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_displacement", 0, 0, 1, __pyx_nargs); __PYX_ERR(11, 84, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.get_displacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_18get_displacement(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_18get_displacement(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_v_disp = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  __pyx_t_6SnapPy_Real __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_displacement", 0);

  /* "cython/core/cusp_neighborhoods.pyx":94
 *         displacement 0.)
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         disp = Number(Real2gen(get_cusp_neighborhood_displacement(
 *             self.c_cusp_neighborhood, N)))
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 94, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":95
 *         """
 *         N = self.check_index(which_cusp)
 *         disp = Number(Real2gen(get_cusp_neighborhood_displacement(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(disp)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/cusp_neighborhoods.pyx":96
 *         N = self.check_index(which_cusp)
 *         disp = Number(Real2gen(get_cusp_neighborhood_displacement(
 *             self.c_cusp_neighborhood, N)))             # <<<<<<<<<<<<<<
 *         return self._number_(disp)
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 96, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":95
 *         """
 *         N = self.check_index(which_cusp)
 *         disp = Number(Real2gen(get_cusp_neighborhood_displacement(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(disp)
*/
  __pyx_t_6 = get_cusp_neighborhood_displacement(__pyx_v_self->c_cusp_neighborhood, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 95, __pyx_L1_error)
  __pyx_t_7 = __pyx_v_6SnapPy_Real2gen(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 95, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_disp = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":97
 *         disp = Number(Real2gen(get_cusp_neighborhood_displacement(
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(disp)             # <<<<<<<<<<<<<<
 * 
 *     def set_displacement(self, new_displacement, which_cusp=0):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_disp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 97, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":84
 *         return CuspTopology[topology]
 * 
 *     def get_displacement(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement of the horospherical boundary of the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.get_displacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XDECREF(__pyx_v_disp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":99
 *         return self._number_(disp)
 * 
 *     def set_displacement(self, new_displacement, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Set the displacement of the specified cusp.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_21set_displacement(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_20set_displacement, "\n        Set the displacement of the specified cusp.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_21set_displacement = {"set_displacement", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_21set_displacement, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_20set_displacement};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_21set_displacement(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_new_displacement = 0;
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_displacement (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_new_displacement,&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 99, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 99, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 99, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_displacement", 0) < (0)) __PYX_ERR(11, 99, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_displacement", 0, 1, 2, i); __PYX_ERR(11, 99, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 99, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 99, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_new_displacement = values[0];
    __pyx_v_which_cusp = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_displacement", 0, 1, 2, __pyx_nargs); __PYX_ERR(11, 99, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.set_displacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_20set_displacement(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_new_displacement, __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_20set_displacement(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_new_displacement, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  __pyx_t_6SnapPy_Real __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_displacement", 0);

  /* "cython/core/cusp_neighborhoods.pyx":103
 *         Set the displacement of the specified cusp.
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         set_cusp_neighborhood_displacement(self.c_cusp_neighborhood,
 *                                            N, Object2Real(new_displacement))
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":105
 *         N = self.check_index(which_cusp)
 *         set_cusp_neighborhood_displacement(self.c_cusp_neighborhood,
 *                                            N, Object2Real(new_displacement))             # <<<<<<<<<<<<<<
 * 
 *     def stopping_displacement(self, which_cusp=0):
*/
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 105, __pyx_L1_error)
  __pyx_t_5 = __pyx_f_6SnapPy_Object2Real(__pyx_v_new_displacement); if (unlikely(__pyx_t_5 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(11, 105, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":104
 *         """
 *         N = self.check_index(which_cusp)
 *         set_cusp_neighborhood_displacement(self.c_cusp_neighborhood,             # <<<<<<<<<<<<<<
 *                                            N, Object2Real(new_displacement))
 * 
*/
  set_cusp_neighborhood_displacement(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 104, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":99
 *         return self._number_(disp)
 * 
 *     def set_displacement(self, new_displacement, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Set the displacement of the specified cusp.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.set_displacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":107
 *                                            N, Object2Real(new_displacement))
 * 
 *     def stopping_displacement(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement at which the specified cusp
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_23stopping_displacement(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_22stopping_displacement, "\n        Return the displacement at which the specified cusp\n        neighborhood bumps into itself or another cusp neighborhood.\n        (Assumes the other displacements are fixed.)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_23stopping_displacement = {"stopping_displacement", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_23stopping_displacement, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_22stopping_displacement};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_23stopping_displacement(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("stopping_displacement (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 107, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 107, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "stopping_displacement", 0) < (0)) __PYX_ERR(11, 107, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 107, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("stopping_displacement", 0, 0, 1, __pyx_nargs); __PYX_ERR(11, 107, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.stopping_displacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_22stopping_displacement(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_22stopping_displacement(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_v_disp = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  __pyx_t_6SnapPy_Real __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("stopping_displacement", 0);

  /* "cython/core/cusp_neighborhoods.pyx":113
 *         (Assumes the other displacements are fixed.)
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         disp = Number(Real2gen(get_cusp_neighborhood_stopping_displacement(
 *             self.c_cusp_neighborhood, N)))
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 113, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":114
 *         """
 *         N = self.check_index(which_cusp)
 *         disp = Number(Real2gen(get_cusp_neighborhood_stopping_displacement(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(disp)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/cusp_neighborhoods.pyx":115
 *         N = self.check_index(which_cusp)
 *         disp = Number(Real2gen(get_cusp_neighborhood_stopping_displacement(
 *             self.c_cusp_neighborhood, N)))             # <<<<<<<<<<<<<<
 *         return self._number_(disp)
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 115, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":114
 *         """
 *         N = self.check_index(which_cusp)
 *         disp = Number(Real2gen(get_cusp_neighborhood_stopping_displacement(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(disp)
*/
  __pyx_t_6 = get_cusp_neighborhood_stopping_displacement(__pyx_v_self->c_cusp_neighborhood, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 114, __pyx_L1_error)
  __pyx_t_7 = __pyx_v_6SnapPy_Real2gen(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_disp = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":116
 *         disp = Number(Real2gen(get_cusp_neighborhood_stopping_displacement(
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(disp)             # <<<<<<<<<<<<<<
 * 
 *     def stopper(self, which_cusp):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_disp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":107
 *                                            N, Object2Real(new_displacement))
 * 
 *     def stopping_displacement(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement at which the specified cusp
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.stopping_displacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XDECREF(__pyx_v_disp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":118
 *         return self._number_(disp)
 * 
 *     def stopper(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Return the index of the cusp which will be the first one that
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_25stopper(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_24stopper, "\n        Return the index of the cusp which will be the first one that\n        the specified cusp neighborhood bumps into.\n        (Assumes the other displacements are fixed.)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_25stopper = {"stopper", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_25stopper, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_24stopper};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_25stopper(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("stopper (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 118, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 118, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "stopper", 0) < (0)) __PYX_ERR(11, 118, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("stopper", 1, 1, 1, i); __PYX_ERR(11, 118, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 118, __pyx_L3_error)
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("stopper", 1, 1, 1, __pyx_nargs); __PYX_ERR(11, 118, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.stopper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_24stopper(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_24stopper(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("stopper", 0);

  /* "cython/core/cusp_neighborhoods.pyx":124
 *         (Assumes the other displacements are fixed.)
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         return get_cusp_neighborhood_stopper_cusp_index(
 *             self.c_cusp_neighborhood, N)
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 124, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":125
 *         """
 *         N = self.check_index(which_cusp)
 *         return get_cusp_neighborhood_stopper_cusp_index(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood, N)
 * 
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/cusp_neighborhoods.pyx":126
 *         N = self.check_index(which_cusp)
 *         return get_cusp_neighborhood_stopper_cusp_index(
 *             self.c_cusp_neighborhood, N)             # <<<<<<<<<<<<<<
 * 
 *     def reach(self, which_cusp=0):
*/
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 126, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":125
 *         """
 *         N = self.check_index(which_cusp)
 *         return get_cusp_neighborhood_stopper_cusp_index(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood, N)
 * 
*/
  __pyx_t_5 = get_cusp_neighborhood_stopper_cusp_index(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 125, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":118
 *         return self._number_(disp)
 * 
 *     def stopper(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Return the index of the cusp which will be the first one that
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.stopper", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":128
 *             self.c_cusp_neighborhood, N)
 * 
 *     def reach(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement at which the specified cusp
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_27reach(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_26reach, "\n        Return the displacement at which the specified cusp\n        neighborhood bumps into itself.  (This is twice the\n        distance between nearest horoball lifts.)\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_27reach = {"reach", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_27reach, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_26reach};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_27reach(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("reach (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 128, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 128, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "reach", 0) < (0)) __PYX_ERR(11, 128, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 128, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("reach", 0, 0, 1, __pyx_nargs); __PYX_ERR(11, 128, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.reach", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_26reach(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_26reach(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_v_reach = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  __pyx_t_6SnapPy_Real __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("reach", 0);

  /* "cython/core/cusp_neighborhoods.pyx":134
 *         distance between nearest horoball lifts.)
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         reach = Number(Real2gen(get_cusp_neighborhood_reach(
 *             self.c_cusp_neighborhood, N)))
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 134, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":135
 *         """
 *         N = self.check_index(which_cusp)
 *         reach = Number(Real2gen(get_cusp_neighborhood_reach(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(reach)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/cusp_neighborhoods.pyx":136
 *         N = self.check_index(which_cusp)
 *         reach = Number(Real2gen(get_cusp_neighborhood_reach(
 *             self.c_cusp_neighborhood, N)))             # <<<<<<<<<<<<<<
 *         return self._number_(reach)
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 136, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":135
 *         """
 *         N = self.check_index(which_cusp)
 *         reach = Number(Real2gen(get_cusp_neighborhood_reach(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(reach)
*/
  __pyx_t_6 = get_cusp_neighborhood_reach(__pyx_v_self->c_cusp_neighborhood, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 135, __pyx_L1_error)
  __pyx_t_7 = __pyx_v_6SnapPy_Real2gen(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_reach = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":137
 *         reach = Number(Real2gen(get_cusp_neighborhood_reach(
 *             self.c_cusp_neighborhood, N)))
 *         return self._number_(reach)             # <<<<<<<<<<<<<<
 * 
 *     def max_reach(self):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_reach};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":128
 *             self.c_cusp_neighborhood, N)
 * 
 *     def reach(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement at which the specified cusp
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.reach", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XDECREF(__pyx_v_reach);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":139
 *         return self._number_(reach)
 * 
 *     def max_reach(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the maximum reach over all cusps.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_29max_reach(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_28max_reach, "\n        Return the maximum reach over all cusps.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_29max_reach = {"max_reach", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_29max_reach, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_28max_reach};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_29max_reach(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("max_reach (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("max_reach", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("max_reach", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_28max_reach(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_28max_reach(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self) {
  PyObject *__pyx_v_reach = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __pyx_t_6SnapPy_Real __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("max_reach", 0);

  /* "cython/core/cusp_neighborhoods.pyx":143
 *         Return the maximum reach over all cusps.
 *         """
 *         reach = Number(Real2gen(get_cusp_neighborhood_max_reach(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood)))
 *         return self._number_(reach)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_3)) __PYX_ERR(11, 143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/cusp_neighborhoods.pyx":144
 *         """
 *         reach = Number(Real2gen(get_cusp_neighborhood_max_reach(
 *             self.c_cusp_neighborhood)))             # <<<<<<<<<<<<<<
 *         return self._number_(reach)
 * 
*/
  __pyx_t_4 = get_cusp_neighborhood_max_reach(__pyx_v_self->c_cusp_neighborhood); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 143, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":143
 *         Return the maximum reach over all cusps.
 *         """
 *         reach = Number(Real2gen(get_cusp_neighborhood_max_reach(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood)))
 *         return self._number_(reach)
*/
  __pyx_t_5 = __pyx_v_6SnapPy_Real2gen(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_5};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 143, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_reach = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":145
 *         reach = Number(Real2gen(get_cusp_neighborhood_max_reach(
 *             self.c_cusp_neighborhood)))
 *         return self._number_(reach)             # <<<<<<<<<<<<<<
 * 
 *     def get_tie(self, which_cusp):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_6 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_reach};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":139
 *         return self._number_(reach)
 * 
 *     def max_reach(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the maximum reach over all cusps.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.max_reach", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_reach);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":147
 *         return self._number_(reach)
 * 
 *     def get_tie(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Return True if the specified cusp is a member of the tied group.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_31get_tie(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_30get_tie, "\n        Return True if the specified cusp is a member of the tied group.\n        The displacements of the tied cusps are all the same.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_31get_tie = {"get_tie", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_31get_tie, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_30get_tie};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_31get_tie(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_tie (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 147, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 147, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_tie", 0) < (0)) __PYX_ERR(11, 147, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_tie", 1, 1, 1, i); __PYX_ERR(11, 147, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 147, __pyx_L3_error)
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_tie", 1, 1, 1, __pyx_nargs); __PYX_ERR(11, 147, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.get_tie", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_30get_tie(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_30get_tie(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  Boolean __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_tie", 0);

  /* "cython/core/cusp_neighborhoods.pyx":152
 *         The displacements of the tied cusps are all the same.
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         return get_cusp_neighborhood_tie(self.c_cusp_neighborhood, N)
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 152, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":153
 *         """
 *         N = self.check_index(which_cusp)
 *         return get_cusp_neighborhood_tie(self.c_cusp_neighborhood, N)             # <<<<<<<<<<<<<<
 * 
 *     def set_tie(self, which_cusp, new_tie):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 153, __pyx_L1_error)
  __pyx_t_5 = get_cusp_neighborhood_tie(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 153, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyLong_From_Boolean(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":147
 *         return self._number_(reach)
 * 
 *     def get_tie(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Return True if the specified cusp is a member of the tied group.
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.get_tie", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":155
 *         return get_cusp_neighborhood_tie(self.c_cusp_neighborhood, N)
 * 
 *     def set_tie(self, which_cusp, new_tie):             # <<<<<<<<<<<<<<
 *         """
 *         Mark the specified cusp as a member of the tied group.
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_33set_tie(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_32set_tie, "\n        Mark the specified cusp as a member of the tied group.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_33set_tie = {"set_tie", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_33set_tie, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_32set_tie};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_33set_tie(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  PyObject *__pyx_v_new_tie = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_tie (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_new_tie,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 155, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 155, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 155, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "set_tie", 0) < (0)) __PYX_ERR(11, 155, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("set_tie", 1, 2, 2, i); __PYX_ERR(11, 155, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 155, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 155, __pyx_L3_error)
    }
    __pyx_v_which_cusp = values[0];
    __pyx_v_new_tie = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_tie", 1, 2, 2, __pyx_nargs); __PYX_ERR(11, 155, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.set_tie", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_32set_tie(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp, __pyx_v_new_tie);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_32set_tie(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_new_tie) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  Boolean __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_tie", 0);

  /* "cython/core/cusp_neighborhoods.pyx":159
 *         Mark the specified cusp as a member of the tied group.
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         set_cusp_neighborhood_tie(self.c_cusp_neighborhood, N, new_tie)
 * 
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":160
 *         """
 *         N = self.check_index(which_cusp)
 *         set_cusp_neighborhood_tie(self.c_cusp_neighborhood, N, new_tie)             # <<<<<<<<<<<<<<
 * 
 *     def volume(self, which_cusp=0):
*/
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 160, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyLong_As_Boolean(__pyx_v_new_tie); if (unlikely((__pyx_t_5 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(11, 160, __pyx_L1_error)
  set_cusp_neighborhood_tie(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 160, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":155
 *         return get_cusp_neighborhood_tie(self.c_cusp_neighborhood, N)
 * 
 *     def set_tie(self, which_cusp, new_tie):             # <<<<<<<<<<<<<<
 *         """
 *         Mark the specified cusp as a member of the tied group.
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.set_tie", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":162
 *         set_cusp_neighborhood_tie(self.c_cusp_neighborhood, N, new_tie)
 * 
 *     def volume(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the volume of the horoball neighborhood of the specified
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_35volume(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_34volume, "\n        Return the volume of the horoball neighborhood of the specified\n        cusp.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_35volume = {"volume", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_35volume, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_34volume};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_35volume(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("volume (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 162, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 162, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "volume", 0) < (0)) __PYX_ERR(11, 162, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 162, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("volume", 0, 0, 1, __pyx_nargs); __PYX_ERR(11, 162, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.volume", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_34volume(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_34volume(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_v_volume = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  __pyx_t_6SnapPy_Real __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("volume", 0);

  /* "cython/core/cusp_neighborhoods.pyx":167
 *         cusp.
 *         """
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         volume = Number(Real2gen(get_cusp_neighborhood_cusp_volume(
 *                 self.c_cusp_neighborhood, N)))
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 167, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":168
 *         """
 *         N = self.check_index(which_cusp)
 *         volume = Number(Real2gen(get_cusp_neighborhood_cusp_volume(             # <<<<<<<<<<<<<<
 *                 self.c_cusp_neighborhood, N)))
 *         return self._number_(volume)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Number); if (unlikely(!__pyx_t_4)) __PYX_ERR(11, 168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/cusp_neighborhoods.pyx":169
 *         N = self.check_index(which_cusp)
 *         volume = Number(Real2gen(get_cusp_neighborhood_cusp_volume(
 *                 self.c_cusp_neighborhood, N)))             # <<<<<<<<<<<<<<
 *         return self._number_(volume)
 * 
*/
  __pyx_t_5 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 169, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":168
 *         """
 *         N = self.check_index(which_cusp)
 *         volume = Number(Real2gen(get_cusp_neighborhood_cusp_volume(             # <<<<<<<<<<<<<<
 *                 self.c_cusp_neighborhood, N)))
 *         return self._number_(volume)
*/
  __pyx_t_6 = get_cusp_neighborhood_cusp_volume(__pyx_v_self->c_cusp_neighborhood, __pyx_t_5); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 168, __pyx_L1_error)
  __pyx_t_7 = __pyx_v_6SnapPy_Real2gen(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_volume = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":170
 *         volume = Number(Real2gen(get_cusp_neighborhood_cusp_volume(
 *                 self.c_cusp_neighborhood, N)))
 *         return self._number_(volume)             # <<<<<<<<<<<<<<
 * 
 *     def translations(self, which_cusp = 0):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_volume};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 170, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":162
 *         set_cusp_neighborhood_tie(self.c_cusp_neighborhood, N, new_tie)
 * 
 *     def volume(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the volume of the horoball neighborhood of the specified
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.volume", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XDECREF(__pyx_v_volume);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":172
 *         return self._number_(volume)
 * 
 *     def translations(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the (complex) Euclidean translations of the meridian
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_37translations(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_36translations, "\n        Return the (complex) Euclidean translations of the meridian\n        and longitude of the specified cusp.\n\n        Also see :py:meth:`CuspNeighborhood.all_translations` which supports\n        arbitrary precision and verified results.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_37translations = {"translations", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_37translations, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_36translations};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_37translations(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("translations (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 172, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 172, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "translations", 0) < (0)) __PYX_ERR(11, 172, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    } else {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 172, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
    }
    __pyx_v_which_cusp = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("translations", 0, 0, 1, __pyx_nargs); __PYX_ERR(11, 172, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.translations", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_36translations(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_36translations(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp) {
  Complex __pyx_v_meridian;
  Complex __pyx_v_longitude;
  PyObject *__pyx_v_N = NULL;
  PyObject *__pyx_v_M = NULL;
  PyObject *__pyx_v_L = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("translations", 0);

  /* "cython/core/cusp_neighborhoods.pyx":182
 *         cdef Complex meridian
 *         cdef Complex longitude
 *         N = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         get_cusp_neighborhood_translations(self.c_cusp_neighborhood,
 *                                            N,
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 182, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_N = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":184
 *         N = self.check_index(which_cusp)
 *         get_cusp_neighborhood_translations(self.c_cusp_neighborhood,
 *                                            N,             # <<<<<<<<<<<<<<
 *                                            &meridian,
 *                                            &longitude)
*/
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_N); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 184, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":183
 *         cdef Complex longitude
 *         N = self.check_index(which_cusp)
 *         get_cusp_neighborhood_translations(self.c_cusp_neighborhood,             # <<<<<<<<<<<<<<
 *                                            N,
 *                                            &meridian,
*/
  get_cusp_neighborhood_translations(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4, (&__pyx_v_meridian), (&__pyx_v_longitude)); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 183, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":187
 *                                            &meridian,
 *                                            &longitude)
 *         M, L = Complex2Number(meridian), Complex2Number(longitude)             # <<<<<<<<<<<<<<
 *         return self._number_(M), self._number_(L)
 * 
*/
  __pyx_t_1 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_meridian); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_longitude); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_M = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_v_L = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":188
 *                                            &longitude)
 *         M, L = Complex2Number(meridian), Complex2Number(longitude)
 *         return self._number_(M), self._number_(L)             # <<<<<<<<<<<<<<
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_M};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_5 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_L};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2) != (0)) __PYX_ERR(11, 188, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1) != (0)) __PYX_ERR(11, 188, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":172
 *         return self._number_(volume)
 * 
 *     def translations(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the (complex) Euclidean translations of the meridian
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.translations", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_N);
  __Pyx_XDECREF(__pyx_v_M);
  __Pyx_XDECREF(__pyx_v_L);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":190
 *         return self._number_(M), self._number_(L)
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,             # <<<<<<<<<<<<<<
 *                   high_precision=False):
 *         """
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_39horoballs(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_38horoballs, "\n        Return a list of dictionaries describing the horoballs with\n        height at least cutoff.  The keys are 'center', 'radius', 'index'.\n\n        If the high_precision flag is set to the default value False, these\n        are Python complexes and floats.  Otherwise they are SnapPy Numbers.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_39horoballs = {"horoballs", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_39horoballs, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_38horoballs};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_39horoballs(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_cutoff = 0;
  PyObject *__pyx_v_which_cusp = 0;
  PyObject *__pyx_v_full_list = 0;
  PyObject *__pyx_v_high_precision = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("horoballs (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cutoff,&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_full_list,&__pyx_mstate_global->__pyx_n_u_high_precision,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 190, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(11, 190, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(11, 190, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 190, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 190, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "horoballs", 0) < (0)) __PYX_ERR(11, 190, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_0_1));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/cusp_neighborhoods.pyx":191
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,
 *                   high_precision=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of dictionaries describing the horoballs with
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(11, 190, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(11, 190, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 190, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 190, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_float_0_1));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));

      /* "cython/core/cusp_neighborhoods.pyx":190
 *         return self._number_(M), self._number_(L)
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,             # <<<<<<<<<<<<<<
 *                   high_precision=False):
 *         """
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_True));

      /* "cython/core/cusp_neighborhoods.pyx":191
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,
 *                   high_precision=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of dictionaries describing the horoballs with
*/
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_cutoff = values[0];
    __pyx_v_which_cusp = values[1];
    __pyx_v_full_list = values[2];
    __pyx_v_high_precision = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("horoballs", 0, 0, 4, __pyx_nargs); __PYX_ERR(11, 190, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.horoballs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_38horoballs(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_cutoff, __pyx_v_which_cusp, __pyx_v_full_list, __pyx_v_high_precision);

  /* "cython/core/cusp_neighborhoods.pyx":190
 *         return self._number_(M), self._number_(L)
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,             # <<<<<<<<<<<<<<
 *                   high_precision=False):
 *         """
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_38horoballs(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_cutoff, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_full_list, PyObject *__pyx_v_high_precision) {
  CuspNbhdHoroballList *__pyx_v_horoball_list;
  CuspNbhdHoroball __pyx_v_ball;
  PyObject *__pyx_v_result = NULL;
  long __pyx_v_n;
  PyObject *__pyx_v_dict = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  Boolean __pyx_t_5;
  __pyx_t_6SnapPy_Real __pyx_t_6;
  CuspNbhdHoroballList *__pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("horoballs", 0);
  __Pyx_INCREF(__pyx_v_which_cusp);

  /* "cython/core/cusp_neighborhoods.pyx":201
 *         cdef CuspNbhdHoroballList* horoball_list
 *         cdef CuspNbhdHoroball ball
 *         which_cusp = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         horoball_list = get_cusp_neighborhood_horoballs(
 *             self.c_cusp_neighborhood,
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_which_cusp, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":204
 *         horoball_list = get_cusp_neighborhood_horoballs(
 *             self.c_cusp_neighborhood,
 *             which_cusp,             # <<<<<<<<<<<<<<
 *             full_list,
 *             Object2Real(cutoff))
*/
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_which_cusp); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 204, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":205
 *             self.c_cusp_neighborhood,
 *             which_cusp,
 *             full_list,             # <<<<<<<<<<<<<<
 *             Object2Real(cutoff))
 *         if horoball_list == NULL:
*/
  __pyx_t_5 = __Pyx_PyLong_As_Boolean(__pyx_v_full_list); if (unlikely((__pyx_t_5 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(11, 205, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":206
 *             which_cusp,
 *             full_list,
 *             Object2Real(cutoff))             # <<<<<<<<<<<<<<
 *         if horoball_list == NULL:
 *             raise RuntimeError('The horoball construction failed.')
*/
  __pyx_t_6 = __pyx_f_6SnapPy_Object2Real(__pyx_v_cutoff); if (unlikely(__pyx_t_6 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(11, 206, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":202
 *         cdef CuspNbhdHoroball ball
 *         which_cusp = self.check_index(which_cusp)
 *         horoball_list = get_cusp_neighborhood_horoballs(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood,
 *             which_cusp,
*/
  __pyx_t_7 = get_cusp_neighborhood_horoballs(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4, __pyx_t_5, __pyx_t_6); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 202, __pyx_L1_error)
  __pyx_v_horoball_list = __pyx_t_7;

  /* "cython/core/cusp_neighborhoods.pyx":207
 *             full_list,
 *             Object2Real(cutoff))
 *         if horoball_list == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The horoball construction failed.')
 *         result = []
*/
  __pyx_t_8 = (__pyx_v_horoball_list == NULL);
  if (unlikely(__pyx_t_8)) {

    /* "cython/core/cusp_neighborhoods.pyx":208
 *             Object2Real(cutoff))
 *         if horoball_list == NULL:
 *             raise RuntimeError('The horoball construction failed.')             # <<<<<<<<<<<<<<
 *         result = []
 *         for n from 0 <= n < horoball_list.num_horoballs:
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_horoball_construction_failed};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 208, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(11, 208, __pyx_L1_error)

    /* "cython/core/cusp_neighborhoods.pyx":207
 *             full_list,
 *             Object2Real(cutoff))
 *         if horoball_list == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The horoball construction failed.')
 *         result = []
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":209
 *         if horoball_list == NULL:
 *             raise RuntimeError('The horoball construction failed.')
 *         result = []             # <<<<<<<<<<<<<<
 *         for n from 0 <= n < horoball_list.num_horoballs:
 *             ball = horoball_list.horoball[n]
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":210
 *             raise RuntimeError('The horoball construction failed.')
 *         result = []
 *         for n from 0 <= n < horoball_list.num_horoballs:             # <<<<<<<<<<<<<<
 *             ball = horoball_list.horoball[n]
 *             if high_precision:
*/
  __pyx_t_4 = __pyx_v_horoball_list->num_horoballs;
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) {

    /* "cython/core/cusp_neighborhoods.pyx":211
 *         result = []
 *         for n from 0 <= n < horoball_list.num_horoballs:
 *             ball = horoball_list.horoball[n]             # <<<<<<<<<<<<<<
 *             if high_precision:
 *                 dict = {
*/
    __pyx_v_ball = (__pyx_v_horoball_list->horoball[__pyx_v_n]);

    /* "cython/core/cusp_neighborhoods.pyx":212
 *         for n from 0 <= n < horoball_list.num_horoballs:
 *             ball = horoball_list.horoball[n]
 *             if high_precision:             # <<<<<<<<<<<<<<
 *                 dict = {
 *                     'center' : self._number_(Complex2Number(ball.center)),
*/
    __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_high_precision); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(11, 212, __pyx_L1_error)
    if (__pyx_t_8) {

      /* "cython/core/cusp_neighborhoods.pyx":214
 *             if high_precision:
 *                 dict = {
 *                     'center' : self._number_(Complex2Number(ball.center)),             # <<<<<<<<<<<<<<
 *                     'radius' : self._number_(Real2Number(ball.radius)),
 *                     'index'  : ball.cusp_index}
*/
      __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 214, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_9 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_10 = __pyx_f_6SnapPy_Complex2Number(__pyx_v_ball.center); if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 214, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_3 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_10};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 214, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_center, __pyx_t_2) < (0)) __PYX_ERR(11, 214, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/cusp_neighborhoods.pyx":215
 *                 dict = {
 *                     'center' : self._number_(Complex2Number(ball.center)),
 *                     'radius' : self._number_(Real2Number(ball.radius)),             # <<<<<<<<<<<<<<
 *                     'index'  : ball.cusp_index}
 *             else:
*/
      __pyx_t_10 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_10);
      __pyx_t_9 = __pyx_f_6SnapPy_Real2Number(__pyx_v_ball.radius); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 215, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_3 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_9};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 215, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_radius, __pyx_t_2) < (0)) __PYX_ERR(11, 214, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/cusp_neighborhoods.pyx":216
 *                     'center' : self._number_(Complex2Number(ball.center)),
 *                     'radius' : self._number_(Real2Number(ball.radius)),
 *                     'index'  : ball.cusp_index}             # <<<<<<<<<<<<<<
 *             else:
 *                 dict = {'center' : Complex2complex(ball.center),
*/
      __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_ball.cusp_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 216, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_2) < (0)) __PYX_ERR(11, 214, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_dict, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "cython/core/cusp_neighborhoods.pyx":212
 *         for n from 0 <= n < horoball_list.num_horoballs:
 *             ball = horoball_list.horoball[n]
 *             if high_precision:             # <<<<<<<<<<<<<<
 *                 dict = {
 *                     'center' : self._number_(Complex2Number(ball.center)),
*/
      goto __pyx_L6;
    }

    /* "cython/core/cusp_neighborhoods.pyx":218
 *                     'index'  : ball.cusp_index}
 *             else:
 *                 dict = {'center' : Complex2complex(ball.center),             # <<<<<<<<<<<<<<
 *                         'radius' : Real2float(ball.radius),
 *                         'index'  : ball.cusp_index}
*/
    /*else*/ {
      __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 218, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __pyx_f_6SnapPy_Complex2complex(__pyx_v_ball.center); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 218, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_center, __pyx_t_2) < (0)) __PYX_ERR(11, 218, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/cusp_neighborhoods.pyx":219
 *             else:
 *                 dict = {'center' : Complex2complex(ball.center),
 *                         'radius' : Real2float(ball.radius),             # <<<<<<<<<<<<<<
 *                         'index'  : ball.cusp_index}
 *             result.append(dict)
*/
      __pyx_t_2 = __pyx_f_6SnapPy_Real2float(__pyx_v_ball.radius); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 219, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_radius, __pyx_t_2) < (0)) __PYX_ERR(11, 218, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/cusp_neighborhoods.pyx":220
 *                 dict = {'center' : Complex2complex(ball.center),
 *                         'radius' : Real2float(ball.radius),
 *                         'index'  : ball.cusp_index}             # <<<<<<<<<<<<<<
 *             result.append(dict)
 *         free_cusp_neighborhood_horoball_list(horoball_list)
*/
      __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_ball.cusp_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 220, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_2) < (0)) __PYX_ERR(11, 218, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF_SET(__pyx_v_dict, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;
    }
    __pyx_L6:;

    /* "cython/core/cusp_neighborhoods.pyx":221
 *                         'radius' : Real2float(ball.radius),
 *                         'index'  : ball.cusp_index}
 *             result.append(dict)             # <<<<<<<<<<<<<<
 *         free_cusp_neighborhood_horoball_list(horoball_list)
 *         return result
*/
    __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_result, __pyx_v_dict); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(11, 221, __pyx_L1_error)
  }

  /* "cython/core/cusp_neighborhoods.pyx":222
 *                         'index'  : ball.cusp_index}
 *             result.append(dict)
 *         free_cusp_neighborhood_horoball_list(horoball_list)             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
  free_cusp_neighborhood_horoball_list(__pyx_v_horoball_list); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 222, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":223
 *             result.append(dict)
 *         free_cusp_neighborhood_horoball_list(horoball_list)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def Ford_domain(self, which_cusp=0, high_precision=False):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":190
 *         return self._number_(M), self._number_(L)
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,             # <<<<<<<<<<<<<<
 *                   high_precision=False):
 *         """
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.horoballs", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_dict);
  __Pyx_XDECREF(__pyx_v_which_cusp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":225
 *         return result
 * 
 *     def Ford_domain(self, which_cusp=0, high_precision=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of pairs of complex numbers describing the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_41Ford_domain(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_40Ford_domain, "\n        Return a list of pairs of complex numbers describing the\n        endpoints of the segments obtained by projecting the edges of\n        the Ford domain to the xy-plane in the upper half space model.\n\n        If the high_precision flag is set to False (the default), the\n        coordinates are Python complex numbers.  Otherwise they are\n        SnapPy Numbers.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_41Ford_domain = {"Ford_domain", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_41Ford_domain, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_40Ford_domain};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_41Ford_domain(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  PyObject *__pyx_v_high_precision = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Ford_domain (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_high_precision,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 225, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "Ford_domain", 0) < (0)) __PYX_ERR(11, 225, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_which_cusp = values[0];
    __pyx_v_high_precision = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Ford_domain", 0, 0, 2, __pyx_nargs); __PYX_ERR(11, 225, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.Ford_domain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_40Ford_domain(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp, __pyx_v_high_precision);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_40Ford_domain(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_high_precision) {
  CuspNbhdSegmentList *__pyx_v_segment_list;
  CuspNbhdSegment __pyx_v_segment;
  PyObject *__pyx_v_result = NULL;
  int __pyx_v_n;
  PyObject *__pyx_v_pair = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  CuspNbhdSegmentList *__pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("Ford_domain", 0);
  __Pyx_INCREF(__pyx_v_which_cusp);

  /* "cython/core/cusp_neighborhoods.pyx":237
 *         cdef CuspNbhdSegmentList* segment_list
 *         cdef CuspNbhdSegment segment
 *         which_cusp = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         segment_list = get_cusp_neighborhood_Ford_domain(
 *             self.c_cusp_neighborhood,
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_which_cusp, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":240
 *         segment_list = get_cusp_neighborhood_Ford_domain(
 *             self.c_cusp_neighborhood,
 *             which_cusp)             # <<<<<<<<<<<<<<
 *         if segment_list == NULL:
 *             raise RuntimeError('The Ford domain construction failed.')
*/
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_which_cusp); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 240, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":238
 *         cdef CuspNbhdSegment segment
 *         which_cusp = self.check_index(which_cusp)
 *         segment_list = get_cusp_neighborhood_Ford_domain(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood,
 *             which_cusp)
*/
  __pyx_t_5 = get_cusp_neighborhood_Ford_domain(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 238, __pyx_L1_error)
  __pyx_v_segment_list = __pyx_t_5;

  /* "cython/core/cusp_neighborhoods.pyx":241
 *             self.c_cusp_neighborhood,
 *             which_cusp)
 *         if segment_list == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The Ford domain construction failed.')
 *         result = []
*/
  __pyx_t_6 = (__pyx_v_segment_list == NULL);
  if (unlikely(__pyx_t_6)) {

    /* "cython/core/cusp_neighborhoods.pyx":242
 *             which_cusp)
 *         if segment_list == NULL:
 *             raise RuntimeError('The Ford domain construction failed.')             # <<<<<<<<<<<<<<
 *         result = []
 *         for n in range(segment_list.num_segments):
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_Ford_domain_construction_fai};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 242, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(11, 242, __pyx_L1_error)

    /* "cython/core/cusp_neighborhoods.pyx":241
 *             self.c_cusp_neighborhood,
 *             which_cusp)
 *         if segment_list == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The Ford domain construction failed.')
 *         result = []
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":243
 *         if segment_list == NULL:
 *             raise RuntimeError('The Ford domain construction failed.')
 *         result = []             # <<<<<<<<<<<<<<
 *         for n in range(segment_list.num_segments):
 *             segment = segment_list.segment[n]
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":244
 *             raise RuntimeError('The Ford domain construction failed.')
 *         result = []
 *         for n in range(segment_list.num_segments):             # <<<<<<<<<<<<<<
 *             segment = segment_list.segment[n]
 *             if high_precision:
*/
  __pyx_t_4 = __pyx_v_segment_list->num_segments;
  __pyx_t_7 = __pyx_t_4;
  for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
    __pyx_v_n = __pyx_t_8;

    /* "cython/core/cusp_neighborhoods.pyx":245
 *         result = []
 *         for n in range(segment_list.num_segments):
 *             segment = segment_list.segment[n]             # <<<<<<<<<<<<<<
 *             if high_precision:
 *                 pair = (
*/
    __pyx_v_segment = (__pyx_v_segment_list->segment[__pyx_v_n]);

    /* "cython/core/cusp_neighborhoods.pyx":246
 *         for n in range(segment_list.num_segments):
 *             segment = segment_list.segment[n]
 *             if high_precision:             # <<<<<<<<<<<<<<
 *                 pair = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),
*/
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_high_precision); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(11, 246, __pyx_L1_error)
    if (__pyx_t_6) {

      /* "cython/core/cusp_neighborhoods.pyx":248
 *             if high_precision:
 *                 pair = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),             # <<<<<<<<<<<<<<
 *                     self._number_(Complex2Number(segment.endpoint[1])))
 *             else:
*/
      __pyx_t_2 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_9 = __pyx_f_6SnapPy_Complex2Number((__pyx_v_segment.endpoint[0])); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_3 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_9};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 248, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }

      /* "cython/core/cusp_neighborhoods.pyx":249
 *                 pair = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),
 *                     self._number_(Complex2Number(segment.endpoint[1])))             # <<<<<<<<<<<<<<
 *             else:
 *                 pair = (Complex2complex(segment.endpoint[0]),
*/
      __pyx_t_2 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_10 = __pyx_f_6SnapPy_Complex2Number((__pyx_v_segment.endpoint[1])); if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_3 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_10};
        __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 249, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
      }

      /* "cython/core/cusp_neighborhoods.pyx":248
 *             if high_precision:
 *                 pair = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),             # <<<<<<<<<<<<<<
 *                     self._number_(Complex2Number(segment.endpoint[1])))
 *             else:
*/
      __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_1) != (0)) __PYX_ERR(11, 248, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_9);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_9) != (0)) __PYX_ERR(11, 248, __pyx_L1_error);
      __pyx_t_1 = 0;
      __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_pair, ((PyObject*)__pyx_t_10));
      __pyx_t_10 = 0;

      /* "cython/core/cusp_neighborhoods.pyx":246
 *         for n in range(segment_list.num_segments):
 *             segment = segment_list.segment[n]
 *             if high_precision:             # <<<<<<<<<<<<<<
 *                 pair = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),
*/
      goto __pyx_L6;
    }

    /* "cython/core/cusp_neighborhoods.pyx":251
 *                     self._number_(Complex2Number(segment.endpoint[1])))
 *             else:
 *                 pair = (Complex2complex(segment.endpoint[0]),             # <<<<<<<<<<<<<<
 *                         Complex2complex(segment.endpoint[1]))
 *             result.append(pair)
*/
    /*else*/ {
      __pyx_t_10 = __pyx_f_6SnapPy_Complex2complex((__pyx_v_segment.endpoint[0])); if (unlikely(!__pyx_t_10)) __PYX_ERR(11, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);

      /* "cython/core/cusp_neighborhoods.pyx":252
 *             else:
 *                 pair = (Complex2complex(segment.endpoint[0]),
 *                         Complex2complex(segment.endpoint[1]))             # <<<<<<<<<<<<<<
 *             result.append(pair)
 *         free_cusp_neighborhood_segment_list(segment_list)
*/
      __pyx_t_9 = __pyx_f_6SnapPy_Complex2complex((__pyx_v_segment.endpoint[1])); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 252, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);

      /* "cython/core/cusp_neighborhoods.pyx":251
 *                     self._number_(Complex2Number(segment.endpoint[1])))
 *             else:
 *                 pair = (Complex2complex(segment.endpoint[0]),             # <<<<<<<<<<<<<<
 *                         Complex2complex(segment.endpoint[1]))
 *             result.append(pair)
*/
      __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 251, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_10);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_10) != (0)) __PYX_ERR(11, 251, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_9);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_9) != (0)) __PYX_ERR(11, 251, __pyx_L1_error);
      __pyx_t_10 = 0;
      __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_pair, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;
    }
    __pyx_L6:;

    /* "cython/core/cusp_neighborhoods.pyx":253
 *                 pair = (Complex2complex(segment.endpoint[0]),
 *                         Complex2complex(segment.endpoint[1]))
 *             result.append(pair)             # <<<<<<<<<<<<<<
 *         free_cusp_neighborhood_segment_list(segment_list)
 *         return result
*/
    __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_result, __pyx_v_pair); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(11, 253, __pyx_L1_error)
  }

  /* "cython/core/cusp_neighborhoods.pyx":254
 *                         Complex2complex(segment.endpoint[1]))
 *             result.append(pair)
 *         free_cusp_neighborhood_segment_list(segment_list)             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
  free_cusp_neighborhood_segment_list(__pyx_v_segment_list); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 254, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":255
 *             result.append(pair)
 *         free_cusp_neighborhood_segment_list(segment_list)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def triangulation(self, which_cusp=0, high_precision=False):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":225
 *         return result
 * 
 *     def Ford_domain(self, which_cusp=0, high_precision=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of pairs of complex numbers describing the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.Ford_domain", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_pair);
  __Pyx_XDECREF(__pyx_v_which_cusp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":257
 *         return result
 * 
 *     def triangulation(self, which_cusp=0, high_precision=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of dictionaries describing the endpoints of the
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_43triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_42triangulation, "\n        Return a list of dictionaries describing the endpoints of the\n        segments obtained by projecting the edges of the triangulation\n        dual to the Ford domain into the xy-plane in the upper half\n        space model.  The keys are 'endpoints' and 'indices'.\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_43triangulation = {"triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_43triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_42triangulation};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_43triangulation(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  PyObject *__pyx_v_high_precision = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("triangulation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_high_precision,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 257, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 257, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 257, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "triangulation", 0) < (0)) __PYX_ERR(11, 257, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 257, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 257, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_False));
    }
    __pyx_v_which_cusp = values[0];
    __pyx_v_high_precision = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("triangulation", 0, 0, 2, __pyx_nargs); __PYX_ERR(11, 257, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_42triangulation(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp, __pyx_v_high_precision);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_42triangulation(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_high_precision) {
  CuspNbhdSegmentList *__pyx_v_segment_list;
  CuspNbhdSegment __pyx_v_segment;
  PyObject *__pyx_v_result = NULL;
  long __pyx_v_n;
  PyObject *__pyx_v_endpoints = NULL;
  PyObject *__pyx_v_indices = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  CuspNbhdSegmentList *__pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("triangulation", 0);
  __Pyx_INCREF(__pyx_v_which_cusp);

  /* "cython/core/cusp_neighborhoods.pyx":266
 *         cdef CuspNbhdSegmentList* segment_list
 *         cdef CuspNbhdSegment segment
 *         which_cusp = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         segment_list = get_cusp_neighborhood_triangulation(
 *             self.c_cusp_neighborhood,
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 266, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_which_cusp, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":269
 *         segment_list = get_cusp_neighborhood_triangulation(
 *             self.c_cusp_neighborhood,
 *             which_cusp)             # <<<<<<<<<<<<<<
 *         if segment_list == NULL:
 *             raise RuntimeError('The triangulation construction failed.')
*/
  __pyx_t_4 = __Pyx_PyLong_As_int(__pyx_v_which_cusp); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(11, 269, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":267
 *         cdef CuspNbhdSegment segment
 *         which_cusp = self.check_index(which_cusp)
 *         segment_list = get_cusp_neighborhood_triangulation(             # <<<<<<<<<<<<<<
 *             self.c_cusp_neighborhood,
 *             which_cusp)
*/
  __pyx_t_5 = get_cusp_neighborhood_triangulation(__pyx_v_self->c_cusp_neighborhood, __pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 267, __pyx_L1_error)
  __pyx_v_segment_list = __pyx_t_5;

  /* "cython/core/cusp_neighborhoods.pyx":270
 *             self.c_cusp_neighborhood,
 *             which_cusp)
 *         if segment_list == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The triangulation construction failed.')
 *         result = []
*/
  __pyx_t_6 = (__pyx_v_segment_list == NULL);
  if (unlikely(__pyx_t_6)) {

    /* "cython/core/cusp_neighborhoods.pyx":271
 *             which_cusp)
 *         if segment_list == NULL:
 *             raise RuntimeError('The triangulation construction failed.')             # <<<<<<<<<<<<<<
 *         result = []
 *         for n from 0 <= n < segment_list.num_segments:
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_triangulation_construction_f};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 271, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(11, 271, __pyx_L1_error)

    /* "cython/core/cusp_neighborhoods.pyx":270
 *             self.c_cusp_neighborhood,
 *             which_cusp)
 *         if segment_list == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError('The triangulation construction failed.')
 *         result = []
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":272
 *         if segment_list == NULL:
 *             raise RuntimeError('The triangulation construction failed.')
 *         result = []             # <<<<<<<<<<<<<<
 *         for n from 0 <= n < segment_list.num_segments:
 *             segment = segment_list.segment[n]
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":273
 *             raise RuntimeError('The triangulation construction failed.')
 *         result = []
 *         for n from 0 <= n < segment_list.num_segments:             # <<<<<<<<<<<<<<
 *             segment = segment_list.segment[n]
 *             if high_precision:
*/
  __pyx_t_4 = __pyx_v_segment_list->num_segments;
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) {

    /* "cython/core/cusp_neighborhoods.pyx":274
 *         result = []
 *         for n from 0 <= n < segment_list.num_segments:
 *             segment = segment_list.segment[n]             # <<<<<<<<<<<<<<
 *             if high_precision:
 *                 endpoints = (
*/
    __pyx_v_segment = (__pyx_v_segment_list->segment[__pyx_v_n]);

    /* "cython/core/cusp_neighborhoods.pyx":275
 *         for n from 0 <= n < segment_list.num_segments:
 *             segment = segment_list.segment[n]
 *             if high_precision:             # <<<<<<<<<<<<<<
 *                 endpoints = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),
*/
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_high_precision); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(11, 275, __pyx_L1_error)
    if (__pyx_t_6) {

      /* "cython/core/cusp_neighborhoods.pyx":277
 *             if high_precision:
 *                 endpoints = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),             # <<<<<<<<<<<<<<
 *                     self._number_(Complex2Number(segment.endpoint[1])))
 *             else:
*/
      __pyx_t_2 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_7 = __pyx_f_6SnapPy_Complex2Number((__pyx_v_segment.endpoint[0])); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_3 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 277, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }

      /* "cython/core/cusp_neighborhoods.pyx":278
 *                 endpoints = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),
 *                     self._number_(Complex2Number(segment.endpoint[1])))             # <<<<<<<<<<<<<<
 *             else:
 *                 endpoints = (Complex2complex(segment.endpoint[0]),
*/
      __pyx_t_2 = ((PyObject *)__pyx_v_self);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_8 = __pyx_f_6SnapPy_Complex2Number((__pyx_v_segment.endpoint[1])); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 278, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_3 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_8};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_number_2, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 278, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }

      /* "cython/core/cusp_neighborhoods.pyx":277
 *             if high_precision:
 *                 endpoints = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),             # <<<<<<<<<<<<<<
 *                     self._number_(Complex2Number(segment.endpoint[1])))
 *             else:
*/
      __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1) != (0)) __PYX_ERR(11, 277, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_7);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7) != (0)) __PYX_ERR(11, 277, __pyx_L1_error);
      __pyx_t_1 = 0;
      __pyx_t_7 = 0;
      __Pyx_XDECREF_SET(__pyx_v_endpoints, ((PyObject*)__pyx_t_8));
      __pyx_t_8 = 0;

      /* "cython/core/cusp_neighborhoods.pyx":275
 *         for n from 0 <= n < segment_list.num_segments:
 *             segment = segment_list.segment[n]
 *             if high_precision:             # <<<<<<<<<<<<<<
 *                 endpoints = (
 *                     self._number_(Complex2Number(segment.endpoint[0])),
*/
      goto __pyx_L6;
    }

    /* "cython/core/cusp_neighborhoods.pyx":280
 *                     self._number_(Complex2Number(segment.endpoint[1])))
 *             else:
 *                 endpoints = (Complex2complex(segment.endpoint[0]),             # <<<<<<<<<<<<<<
 *                              Complex2complex(segment.endpoint[1]))
 *             indices = (segment.start_index,
*/
    /*else*/ {
      __pyx_t_8 = __pyx_f_6SnapPy_Complex2complex((__pyx_v_segment.endpoint[0])); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 280, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);

      /* "cython/core/cusp_neighborhoods.pyx":281
 *             else:
 *                 endpoints = (Complex2complex(segment.endpoint[0]),
 *                              Complex2complex(segment.endpoint[1]))             # <<<<<<<<<<<<<<
 *             indices = (segment.start_index,
 *                        segment.middle_index,
*/
      __pyx_t_7 = __pyx_f_6SnapPy_Complex2complex((__pyx_v_segment.endpoint[1])); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 281, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);

      /* "cython/core/cusp_neighborhoods.pyx":280
 *                     self._number_(Complex2Number(segment.endpoint[1])))
 *             else:
 *                 endpoints = (Complex2complex(segment.endpoint[0]),             # <<<<<<<<<<<<<<
 *                              Complex2complex(segment.endpoint[1]))
 *             indices = (segment.start_index,
*/
      __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 280, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_8);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_8) != (0)) __PYX_ERR(11, 280, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_7);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_7) != (0)) __PYX_ERR(11, 280, __pyx_L1_error);
      __pyx_t_8 = 0;
      __pyx_t_7 = 0;
      __Pyx_XDECREF_SET(__pyx_v_endpoints, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;
    }
    __pyx_L6:;

    /* "cython/core/cusp_neighborhoods.pyx":282
 *                 endpoints = (Complex2complex(segment.endpoint[0]),
 *                              Complex2complex(segment.endpoint[1]))
 *             indices = (segment.start_index,             # <<<<<<<<<<<<<<
 *                        segment.middle_index,
 *                        segment.end_index)
*/
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_segment.start_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "cython/core/cusp_neighborhoods.pyx":283
 *                              Complex2complex(segment.endpoint[1]))
 *             indices = (segment.start_index,
 *                        segment.middle_index,             # <<<<<<<<<<<<<<
 *                        segment.end_index)
 *             result.append({'endpoints' : endpoints, 'indices' : indices})
*/
    __pyx_t_7 = __Pyx_PyLong_From_int(__pyx_v_segment.middle_index); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 283, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "cython/core/cusp_neighborhoods.pyx":284
 *             indices = (segment.start_index,
 *                        segment.middle_index,
 *                        segment.end_index)             # <<<<<<<<<<<<<<
 *             result.append({'endpoints' : endpoints, 'indices' : indices})
 *         free_cusp_neighborhood_segment_list(segment_list)
*/
    __pyx_t_8 = __Pyx_PyLong_From_int(__pyx_v_segment.end_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);

    /* "cython/core/cusp_neighborhoods.pyx":282
 *                 endpoints = (Complex2complex(segment.endpoint[0]),
 *                              Complex2complex(segment.endpoint[1]))
 *             indices = (segment.start_index,             # <<<<<<<<<<<<<<
 *                        segment.middle_index,
 *                        segment.end_index)
*/
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(11, 282, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_7);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7) != (0)) __PYX_ERR(11, 282, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_8);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_8) != (0)) __PYX_ERR(11, 282, __pyx_L1_error);
    __pyx_t_1 = 0;
    __pyx_t_7 = 0;
    __pyx_t_8 = 0;
    __Pyx_XDECREF_SET(__pyx_v_indices, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/cusp_neighborhoods.pyx":285
 *                        segment.middle_index,
 *                        segment.end_index)
 *             result.append({'endpoints' : endpoints, 'indices' : indices})             # <<<<<<<<<<<<<<
 *         free_cusp_neighborhood_segment_list(segment_list)
 *         return result
*/
    __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_endpoints, __pyx_v_endpoints) < (0)) __PYX_ERR(11, 285, __pyx_L1_error)
    if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_indices, __pyx_v_indices) < (0)) __PYX_ERR(11, 285, __pyx_L1_error)
    __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_t_2); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(11, 285, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }

  /* "cython/core/cusp_neighborhoods.pyx":286
 *                        segment.end_index)
 *             result.append({'endpoints' : endpoints, 'indices' : indices})
 *         free_cusp_neighborhood_segment_list(segment_list)             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
  free_cusp_neighborhood_segment_list(__pyx_v_segment_list); if (unlikely(PyErr_Occurred())) __PYX_ERR(11, 286, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":287
 *             result.append({'endpoints' : endpoints, 'indices' : indices})
 *         free_cusp_neighborhood_segment_list(segment_list)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def view(self, which_cusp=0, cutoff=None):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/cusp_neighborhoods.pyx":257
 *         return result
 * 
 *     def triangulation(self, which_cusp=0, high_precision=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of dictionaries describing the endpoints of the
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_endpoints);
  __Pyx_XDECREF(__pyx_v_indices);
  __Pyx_XDECREF(__pyx_v_which_cusp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/cusp_neighborhoods.pyx":289
 *         return result
 * 
 *     def view(self, which_cusp=0, cutoff=None):             # <<<<<<<<<<<<<<
 *         """
 *         Create a 3D picture of the horoball packing.  One can specify
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_45view(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_17CCuspNeighborhood_44view, "\n        Create a 3D picture of the horoball packing.  One can specify\n        which cusp to put at infinity and how large of horoballs to\n        look at, e.g.\n\n        >>> M = Manifold('m125')\n        >>> C = M.cusp_neighborhood()\n        >>> C.view(which_cusp = 1, cutoff=0.2)   #doctest: +CYOPENGL\n        ");
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_45view = {"view", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_45view, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_44view};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_45view(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_which_cusp = 0;
  PyObject *__pyx_v_cutoff = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("view (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_which_cusp,&__pyx_mstate_global->__pyx_n_u_cutoff,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(11, 289, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "view", 0) < (0)) __PYX_ERR(11, 289, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(11, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(11, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)__pyx_mstate_global->__pyx_int_0));
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_which_cusp = values[0];
    __pyx_v_cutoff = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("view", 0, 0, 2, __pyx_nargs); __PYX_ERR(11, 289, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.view", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_44view(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v_which_cusp, __pyx_v_cutoff);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_44view(struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, PyObject *__pyx_v_which_cusp, PyObject *__pyx_v_cutoff) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  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[4];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("view", 0);
  __Pyx_INCREF(__pyx_v_which_cusp);

  /* "cython/core/cusp_neighborhoods.pyx":299
 *         >>> C.view(which_cusp = 1, cutoff=0.2)   #doctest: +CYOPENGL
 *         """
 *         which_cusp = self.check_index(which_cusp)             # <<<<<<<<<<<<<<
 *         if HoroballViewer:
 *             return ViewerWindow(HoroballViewer, self, which_cusp=which_cusp,
*/
  __pyx_t_2 = ((PyObject *)__pyx_v_self);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_which_cusp};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_check_index, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_which_cusp, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":300
 *         """
 *         which_cusp = self.check_index(which_cusp)
 *         if HoroballViewer:             # <<<<<<<<<<<<<<
 *             return ViewerWindow(HoroballViewer, self, which_cusp=which_cusp,
 *                                 cutoff=cutoff,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_HoroballViewer); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(11, 300, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cython/core/cusp_neighborhoods.pyx":301
 *         which_cusp = self.check_index(which_cusp)
 *         if HoroballViewer:
 *             return ViewerWindow(HoroballViewer, self, which_cusp=which_cusp,             # <<<<<<<<<<<<<<
 *                                 cutoff=cutoff,
 *                                 title='Cusp neighborhood%s of %s' % (
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ViewerWindow); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HoroballViewer); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);

    /* "cython/core/cusp_neighborhoods.pyx":304
 *                                 cutoff=cutoff,
 *                                 title='Cusp neighborhood%s of %s' % (
 *                                     's' if self.num_cusps() > 1 else '',             # <<<<<<<<<<<<<<
 *                                     self.manifold_name))
 *         raise RuntimeError('The HoroballViewer class was not imported.')
*/
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_num_cusps); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = PyObject_RichCompare(__pyx_t_9, __pyx_mstate_global->__pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 304, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(11, 304, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (__pyx_t_4) {
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_s);
      __pyx_t_7 = __pyx_mstate_global->__pyx_n_u_s;
    } else {
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__10);
      __pyx_t_7 = __pyx_mstate_global->__pyx_kp_u__10;
    }
    __pyx_t_8 = __Pyx_PyUnicode_Unicode(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(11, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "cython/core/cusp_neighborhoods.pyx":305
 *                                 title='Cusp neighborhood%s of %s' % (
 *                                     's' if self.num_cusps() > 1 else '',
 *                                     self.manifold_name))             # <<<<<<<<<<<<<<
 *         raise RuntimeError('The HoroballViewer class was not imported.')
 * 
*/
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_mstate_global->__pyx_n_u_manifold_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 305, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_9 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_7), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 305, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_10[0] = __pyx_mstate_global->__pyx_kp_u_Cusp_neighborhood;
    __pyx_t_10[1] = __pyx_t_8;
    __pyx_t_10[2] = __pyx_mstate_global->__pyx_kp_u_of;
    __pyx_t_10[3] = __pyx_t_9;

    /* "cython/core/cusp_neighborhoods.pyx":303
 *             return ViewerWindow(HoroballViewer, self, which_cusp=which_cusp,
 *                                 cutoff=cutoff,
 *                                 title='Cusp neighborhood%s of %s' % (             # <<<<<<<<<<<<<<
 *                                     's' if self.num_cusps() > 1 else '',
 *                                     self.manifold_name))
*/
    __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_10, 4, 17 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8) + 4 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9));
    if (unlikely(!__pyx_t_7)) __PYX_ERR(11, 303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_3 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_3 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 3 : 0)] = {__pyx_t_2, __pyx_t_6, ((PyObject *)__pyx_v_self)};
      __pyx_t_9 = __Pyx_MakeVectorcallBuilderKwds(3); if (unlikely(!__pyx_t_9)) __PYX_ERR(11, 301, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_which_cusp, __pyx_v_which_cusp, __pyx_t_9, __pyx_callargs+3, 0) < (0)) __PYX_ERR(11, 301, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_cutoff, __pyx_v_cutoff, __pyx_t_9, __pyx_callargs+3, 1) < (0)) __PYX_ERR(11, 301, __pyx_L1_error)
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_title, __pyx_t_7, __pyx_t_9, __pyx_callargs+3, 2) < (0)) __PYX_ERR(11, 301, __pyx_L1_error)
      __pyx_t_1 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 301, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cython/core/cusp_neighborhoods.pyx":300
 *         """
 *         which_cusp = self.check_index(which_cusp)
 *         if HoroballViewer:             # <<<<<<<<<<<<<<
 *             return ViewerWindow(HoroballViewer, self, which_cusp=which_cusp,
 *                                 cutoff=cutoff,
*/
  }

  /* "cython/core/cusp_neighborhoods.pyx":306
 *                                     's' if self.num_cusps() > 1 else '',
 *                                     self.manifold_name))
 *         raise RuntimeError('The HoroballViewer class was not imported.')             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_The_HoroballViewer_class_was_not};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 306, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(11, 306, __pyx_L1_error)

  /* "cython/core/cusp_neighborhoods.pyx":289
 *         return result
 * 
 *     def view(self, which_cusp=0, cutoff=None):             # <<<<<<<<<<<<<<
 *         """
 *         Create a 3D picture of the horoball packing.  One can specify
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __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_AddTraceback("SnapPy.CCuspNeighborhood.view", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_which_cusp);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_47__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_47__reduce_cython__ = {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_47__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_47__reduce_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  if (unlikely(__pyx_nargs > 0)) { __Pyx_RaiseArgtupleInvalid("__reduce_cython__", 1, 0, 0, __pyx_nargs); return NULL; }
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("__reduce_cython__", __pyx_kwds); return NULL;}
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_46__reduce_cython__(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_46__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(7, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_49__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_17CCuspNeighborhood_49__setstate_cython__ = {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_49__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_17CCuspNeighborhood_49__setstate_cython__(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 3, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 3, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setstate_cython__", 0) < (0)) __PYX_ERR(7, 3, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, i); __PYX_ERR(7, 3, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 3, __pyx_L3_error)
    }
    __pyx_v___pyx_state = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setstate_cython__", 1, 1, 1, __pyx_nargs); __PYX_ERR(7, 3, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_17CCuspNeighborhood_48__setstate_cython__(((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)__pyx_v_self), __pyx_v___pyx_state);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_17CCuspNeighborhood_48__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6SnapPy_CCuspNeighborhood *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"             # <<<<<<<<<<<<<<
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_TypeError))), __pyx_mstate_global->__pyx_kp_u_no_default___reduce___due_to_non, 0, 0);
  __PYX_ERR(7, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("SnapPy.CCuspNeighborhood.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/pickle.pyx":31
 * cdef IS_COMPLETE = <unsigned char> 1 << 5
 * 
 * cdef pickle_triangulation(c_Triangulation *tri):             # <<<<<<<<<<<<<<
 *     """
 *     Pickle a Triangulation by constructing a TriangulationData structure
*/

static PyObject *__pyx_f_6SnapPy_pickle_triangulation(Triangulation *__pyx_v_tri) {
  TriangulationData *__pyx_v_tri_data;
  int __pyx_v_i;
  int __pyx_v_flag;
  int __pyx_v_is_complete;
  int __pyx_v_num_cusps;
  unsigned char __pyx_v_buf[7];
  signed char __pyx_v_filling[2];
  PyObject *__pyx_v_result = NULL;
  int __pyx_v_j;
  double __pyx_v_M;
  double __pyx_v_L;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  long __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  unsigned char __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  double __pyx_t_9;
  double __pyx_t_10;
  int __pyx_t_11;
  size_t __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pickle_triangulation", 0);

  /* "cython/core/pickle.pyx":41
 *     cdef signed char filling[2]
 * 
 *     triangulation_to_data(tri, &tri_data)             # <<<<<<<<<<<<<<
 * 
 *     # Every pickle starts with b'pickle:'
*/
  triangulation_to_data(__pyx_v_tri, (&__pyx_v_tri_data)); if (unlikely(PyErr_Occurred())) __PYX_ERR(12, 41, __pyx_L1_error)

  /* "cython/core/pickle.pyx":44
 * 
 *     # Every pickle starts with b'pickle:'
 *     result = b'pickle:'             # <<<<<<<<<<<<<<
 * 
 *     # The first byte uses the two least significant bits to indicate the
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_b_pickle);
  __pyx_v_result = __pyx_mstate_global->__pyx_kp_b_pickle;

  /* "cython/core/pickle.pyx":48
 *     # The first byte uses the two least significant bits to indicate the
 *     # orientability type and other bits as flags.
 *     buf[0] = <unsigned char>tri_data.orientability             # <<<<<<<<<<<<<<
 *     # NOTE: tri_data.num_tetrahedra is a positive signed int.
 *     if tri_data.num_tetrahedra > 65535:
*/
  (__pyx_v_buf[0]) = ((unsigned char)__pyx_v_tri_data->orientability);

  /* "cython/core/pickle.pyx":50
 *     buf[0] = <unsigned char>tri_data.orientability
 *     # NOTE: tri_data.num_tetrahedra is a positive signed int.
 *     if tri_data.num_tetrahedra > 65535:             # <<<<<<<<<<<<<<
 *         flag = IS_HUGE
 *         buf[0] |= IS_HUGE
*/
  __pyx_t_1 = (__pyx_v_tri_data->num_tetrahedra > 0xFFFF);
  if (__pyx_t_1) {

    /* "cython/core/pickle.pyx":51
 *     # NOTE: tri_data.num_tetrahedra is a positive signed int.
 *     if tri_data.num_tetrahedra > 65535:
 *         flag = IS_HUGE             # <<<<<<<<<<<<<<
 *         buf[0] |= IS_HUGE
 *         buf[1] = tri_data.num_tetrahedra >> 24
*/
    __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_v_6SnapPy_IS_HUGE); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 51, __pyx_L1_error)
    __pyx_v_flag = __pyx_t_2;

    /* "cython/core/pickle.pyx":52
 *     if tri_data.num_tetrahedra > 65535:
 *         flag = IS_HUGE
 *         buf[0] |= IS_HUGE             # <<<<<<<<<<<<<<
 *         buf[1] = tri_data.num_tetrahedra >> 24
 *         buf[2] = (tri_data.num_tetrahedra >> 16) & 0xff
*/
    __pyx_t_3 = 0;
    __pyx_t_4 = __Pyx_PyLong_From_unsigned_char((__pyx_v_buf[__pyx_t_3])); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 52, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyNumber_InPlaceOr(__pyx_t_4, __pyx_v_6SnapPy_IS_HUGE); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 52, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_char(__pyx_t_5); if (unlikely((__pyx_t_6 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(12, 52, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    (__pyx_v_buf[__pyx_t_3]) = __pyx_t_6;

    /* "cython/core/pickle.pyx":53
 *         flag = IS_HUGE
 *         buf[0] |= IS_HUGE
 *         buf[1] = tri_data.num_tetrahedra >> 24             # <<<<<<<<<<<<<<
 *         buf[2] = (tri_data.num_tetrahedra >> 16) & 0xff
 *         buf[3] = (tri_data.num_tetrahedra >> 8) & 0xff
*/
    (__pyx_v_buf[1]) = (__pyx_v_tri_data->num_tetrahedra >> 24);

    /* "cython/core/pickle.pyx":54
 *         buf[0] |= IS_HUGE
 *         buf[1] = tri_data.num_tetrahedra >> 24
 *         buf[2] = (tri_data.num_tetrahedra >> 16) & 0xff             # <<<<<<<<<<<<<<
 *         buf[3] = (tri_data.num_tetrahedra >> 8) & 0xff
 *         buf[4] = tri_data.num_tetrahedra & 0xff
*/
    (__pyx_v_buf[2]) = ((__pyx_v_tri_data->num_tetrahedra >> 16) & 0xff);

    /* "cython/core/pickle.pyx":55
 *         buf[1] = tri_data.num_tetrahedra >> 24
 *         buf[2] = (tri_data.num_tetrahedra >> 16) & 0xff
 *         buf[3] = (tri_data.num_tetrahedra >> 8) & 0xff             # <<<<<<<<<<<<<<
 *         buf[4] = tri_data.num_tetrahedra & 0xff
 *         i = 5
*/
    (__pyx_v_buf[3]) = ((__pyx_v_tri_data->num_tetrahedra >> 8) & 0xff);

    /* "cython/core/pickle.pyx":56
 *         buf[2] = (tri_data.num_tetrahedra >> 16) & 0xff
 *         buf[3] = (tri_data.num_tetrahedra >> 8) & 0xff
 *         buf[4] = tri_data.num_tetrahedra & 0xff             # <<<<<<<<<<<<<<
 *         i = 5
 *     elif tri_data.num_tetrahedra > 255:
*/
    (__pyx_v_buf[4]) = (__pyx_v_tri_data->num_tetrahedra & 0xff);

    /* "cython/core/pickle.pyx":57
 *         buf[3] = (tri_data.num_tetrahedra >> 8) & 0xff
 *         buf[4] = tri_data.num_tetrahedra & 0xff
 *         i = 5             # <<<<<<<<<<<<<<
 *     elif tri_data.num_tetrahedra > 255:
 *         flag = IS_BIG
*/
    __pyx_v_i = 5;

    /* "cython/core/pickle.pyx":50
 *     buf[0] = <unsigned char>tri_data.orientability
 *     # NOTE: tri_data.num_tetrahedra is a positive signed int.
 *     if tri_data.num_tetrahedra > 65535:             # <<<<<<<<<<<<<<
 *         flag = IS_HUGE
 *         buf[0] |= IS_HUGE
*/
    goto __pyx_L3;
  }

  /* "cython/core/pickle.pyx":58
 *         buf[4] = tri_data.num_tetrahedra & 0xff
 *         i = 5
 *     elif tri_data.num_tetrahedra > 255:             # <<<<<<<<<<<<<<
 *         flag = IS_BIG
 *         buf[0] |= IS_BIG
*/
  __pyx_t_1 = (__pyx_v_tri_data->num_tetrahedra > 0xFF);
  if (__pyx_t_1) {

    /* "cython/core/pickle.pyx":59
 *         i = 5
 *     elif tri_data.num_tetrahedra > 255:
 *         flag = IS_BIG             # <<<<<<<<<<<<<<
 *         buf[0] |= IS_BIG
 *         buf[1] = tri_data.num_tetrahedra >> 8
*/
    __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_v_6SnapPy_IS_BIG); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 59, __pyx_L1_error)
    __pyx_v_flag = __pyx_t_2;

    /* "cython/core/pickle.pyx":60
 *     elif tri_data.num_tetrahedra > 255:
 *         flag = IS_BIG
 *         buf[0] |= IS_BIG             # <<<<<<<<<<<<<<
 *         buf[1] = tri_data.num_tetrahedra >> 8
 *         buf[2] = tri_data.num_tetrahedra & 0xff
*/
    __pyx_t_3 = 0;
    __pyx_t_5 = __Pyx_PyLong_From_unsigned_char((__pyx_v_buf[__pyx_t_3])); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyNumber_InPlaceOr(__pyx_t_5, __pyx_v_6SnapPy_IS_BIG); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_6 = __Pyx_PyLong_As_unsigned_char(__pyx_t_4); if (unlikely((__pyx_t_6 == (unsigned char)-1) && PyErr_Occurred())) __PYX_ERR(12, 60, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    (__pyx_v_buf[__pyx_t_3]) = __pyx_t_6;

    /* "cython/core/pickle.pyx":61
 *         flag = IS_BIG
 *         buf[0] |= IS_BIG
 *         buf[1] = tri_data.num_tetrahedra >> 8             # <<<<<<<<<<<<<<
 *         buf[2] = tri_data.num_tetrahedra & 0xff
 *         i = 3
*/
    (__pyx_v_buf[1]) = (__pyx_v_tri_data->num_tetrahedra >> 8);

    /* "cython/core/pickle.pyx":62
 *         buf[0] |= IS_BIG
 *         buf[1] = tri_data.num_tetrahedra >> 8
 *         buf[2] = tri_data.num_tetrahedra & 0xff             # <<<<<<<<<<<<<<
 *         i = 3
 *     else:
*/
    (__pyx_v_buf[2]) = (__pyx_v_tri_data->num_tetrahedra & 0xff);

    /* "cython/core/pickle.pyx":63
 *         buf[1] = tri_data.num_tetrahedra >> 8
 *         buf[2] = tri_data.num_tetrahedra & 0xff
 *         i = 3             # <<<<<<<<<<<<<<
 *     else:
 *         flag = 0
*/
    __pyx_v_i = 3;

    /* "cython/core/pickle.pyx":58
 *         buf[4] = tri_data.num_tetrahedra & 0xff
 *         i = 5
 *     elif tri_data.num_tetrahedra > 255:             # <<<<<<<<<<<<<<
 *         flag = IS_BIG
 *         buf[0] |= IS_BIG
*/
    goto __pyx_L3;
  }

  /* "cython/core/pickle.pyx":65
 *         i = 3
 *     else:
 *         flag = 0             # <<<<<<<<<<<<<<
 *         buf[1] = tri_data.num_tetrahedra &0xff
 *         i = 2
*/
  /*else*/ {
    __pyx_v_flag = 0;

    /* "cython/core/pickle.pyx":66
 *     else:
 *         flag = 0
 *         buf[1] = tri_data.num_tetrahedra &0xff             # <<<<<<<<<<<<<<
 *         i = 2
 *     buf[i] = tri_data.num_or_cusps
*/
    (__pyx_v_buf[1]) = (__pyx_v_tri_data->num_tetrahedra & 0xff);

    /* "cython/core/pickle.pyx":67
 *         flag = 0
 *         buf[1] = tri_data.num_tetrahedra &0xff
 *         i = 2             # <<<<<<<<<<<<<<
 *     buf[i] = tri_data.num_or_cusps
 *     buf[i+1] = tri_data.num_nonor_cusps
*/
    __pyx_v_i = 2;
  }
  __pyx_L3:;

  /* "cython/core/pickle.pyx":68
 *         buf[1] = tri_data.num_tetrahedra &0xff
 *         i = 2
 *     buf[i] = tri_data.num_or_cusps             # <<<<<<<<<<<<<<
 *     buf[i+1] = tri_data.num_nonor_cusps
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
*/
  __pyx_t_2 = __pyx_v_tri_data->num_or_cusps;
  (__pyx_v_buf[__pyx_v_i]) = __pyx_t_2;

  /* "cython/core/pickle.pyx":69
 *         i = 2
 *     buf[i] = tri_data.num_or_cusps
 *     buf[i+1] = tri_data.num_nonor_cusps             # <<<<<<<<<<<<<<
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
 *     is_complete = IS_COMPLETE
*/
  __pyx_t_2 = __pyx_v_tri_data->num_nonor_cusps;
  (__pyx_v_buf[(__pyx_v_i + 1)]) = __pyx_t_2;

  /* "cython/core/pickle.pyx":70
 *     buf[i] = tri_data.num_or_cusps
 *     buf[i+1] = tri_data.num_nonor_cusps
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps             # <<<<<<<<<<<<<<
 *     is_complete = IS_COMPLETE
 *     for j in range(num_cusps):
*/
  __pyx_v_num_cusps = (__pyx_v_tri_data->num_or_cusps + __pyx_v_tri_data->num_nonor_cusps);

  /* "cython/core/pickle.pyx":71
 *     buf[i+1] = tri_data.num_nonor_cusps
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
 *     is_complete = IS_COMPLETE             # <<<<<<<<<<<<<<
 *     for j in range(num_cusps):
 *         M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l
*/
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_v_6SnapPy_IS_COMPLETE); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 71, __pyx_L1_error)
  __pyx_v_is_complete = __pyx_t_2;

  /* "cython/core/pickle.pyx":72
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
 *     is_complete = IS_COMPLETE
 *     for j in range(num_cusps):             # <<<<<<<<<<<<<<
 *         M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l
 *         if M != 0.0 or L != 0.0:
*/
  __pyx_t_2 = __pyx_v_num_cusps;
  __pyx_t_7 = __pyx_t_2;
  for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
    __pyx_v_j = __pyx_t_8;

    /* "cython/core/pickle.pyx":73
 *     is_complete = IS_COMPLETE
 *     for j in range(num_cusps):
 *         M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l             # <<<<<<<<<<<<<<
 *         if M != 0.0 or L != 0.0:
 *             is_complete = 0
*/
    __pyx_t_9 = ((double)(__pyx_v_tri_data->cusp_data[__pyx_v_j]).m);
    __pyx_t_10 = ((double)(__pyx_v_tri_data->cusp_data[__pyx_v_j]).l);
    __pyx_v_M = __pyx_t_9;
    __pyx_v_L = __pyx_t_10;

    /* "cython/core/pickle.pyx":74
 *     for j in range(num_cusps):
 *         M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l
 *         if M != 0.0 or L != 0.0:             # <<<<<<<<<<<<<<
 *             is_complete = 0
 *         if M != floor(M) or L != floor(L):
*/
    __pyx_t_11 = (__pyx_v_M != 0.0);
    if (!__pyx_t_11) {
    } else {
      __pyx_t_1 = __pyx_t_11;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_11 = (__pyx_v_L != 0.0);
    __pyx_t_1 = __pyx_t_11;
    __pyx_L7_bool_binop_done:;
    if (__pyx_t_1) {

      /* "cython/core/pickle.pyx":75
 *         M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l
 *         if M != 0.0 or L != 0.0:
 *             is_complete = 0             # <<<<<<<<<<<<<<
 *         if M != floor(M) or L != floor(L):
 *             raise ValueError('Manifold must be pickled with _to_string.')
*/
      __pyx_v_is_complete = 0;

      /* "cython/core/pickle.pyx":74
 *     for j in range(num_cusps):
 *         M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l
 *         if M != 0.0 or L != 0.0:             # <<<<<<<<<<<<<<
 *             is_complete = 0
 *         if M != floor(M) or L != floor(L):
*/
    }

    /* "cython/core/pickle.pyx":76
 *         if M != 0.0 or L != 0.0:
 *             is_complete = 0
 *         if M != floor(M) or L != floor(L):             # <<<<<<<<<<<<<<
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *         if M < -128 or M > 127 or L < -128 or L > 127:
*/
    __pyx_t_11 = (__pyx_v_M != floor(__pyx_v_M));
    if (!__pyx_t_11) {
    } else {
      __pyx_t_1 = __pyx_t_11;
      goto __pyx_L10_bool_binop_done;
    }
    __pyx_t_11 = (__pyx_v_L != floor(__pyx_v_L));
    __pyx_t_1 = __pyx_t_11;
    __pyx_L10_bool_binop_done:;
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/pickle.pyx":77
 *             is_complete = 0
 *         if M != floor(M) or L != floor(L):
 *             raise ValueError('Manifold must be pickled with _to_string.')             # <<<<<<<<<<<<<<
 *         if M < -128 or M > 127 or L < -128 or L > 127:
 *             raise ValueError('Manifold must be pickled with _to_string.')
*/
      __pyx_t_5 = NULL;
      __pyx_t_12 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Manifold_must_be_pickled_with__t};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 77, __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_ERR(12, 77, __pyx_L1_error)

      /* "cython/core/pickle.pyx":76
 *         if M != 0.0 or L != 0.0:
 *             is_complete = 0
 *         if M != floor(M) or L != floor(L):             # <<<<<<<<<<<<<<
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *         if M < -128 or M > 127 or L < -128 or L > 127:
*/
    }

    /* "cython/core/pickle.pyx":78
 *         if M != floor(M) or L != floor(L):
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *         if M < -128 or M > 127 or L < -128 or L > 127:             # <<<<<<<<<<<<<<
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *     buf[0] |= is_complete
*/
    __pyx_t_11 = (__pyx_v_M < -128.0);
    if (!__pyx_t_11) {
    } else {
      __pyx_t_1 = __pyx_t_11;
      goto __pyx_L13_bool_binop_done;
    }
    __pyx_t_11 = (__pyx_v_M > 127.0);
    if (!__pyx_t_11) {
    } else {
      __pyx_t_1 = __pyx_t_11;
      goto __pyx_L13_bool_binop_done;
    }
    __pyx_t_11 = (__pyx_v_L < -128.0);
    if (!__pyx_t_11) {
    } else {
      __pyx_t_1 = __pyx_t_11;
      goto __pyx_L13_bool_binop_done;
    }
    __pyx_t_11 = (__pyx_v_L > 127.0);
    __pyx_t_1 = __pyx_t_11;
    __pyx_L13_bool_binop_done:;
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/pickle.pyx":79
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *         if M < -128 or M > 127 or L < -128 or L > 127:
 *             raise ValueError('Manifold must be pickled with _to_string.')             # <<<<<<<<<<<<<<
 *     buf[0] |= is_complete
 *     result += buf[:i+2]
*/
      __pyx_t_5 = NULL;
      __pyx_t_12 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Manifold_must_be_pickled_with__t};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 79, __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_ERR(12, 79, __pyx_L1_error)

      /* "cython/core/pickle.pyx":78
 *         if M != floor(M) or L != floor(L):
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *         if M < -128 or M > 127 or L < -128 or L > 127:             # <<<<<<<<<<<<<<
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *     buf[0] |= is_complete
*/
    }
  }

  /* "cython/core/pickle.pyx":80
 *         if M < -128 or M > 127 or L < -128 or L > 127:
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *     buf[0] |= is_complete             # <<<<<<<<<<<<<<
 *     result += buf[:i+2]
 *     if not is_complete:
*/
  __pyx_t_3 = 0;
  (__pyx_v_buf[__pyx_t_3]) = ((__pyx_v_buf[__pyx_t_3]) | __pyx_v_is_complete);

  /* "cython/core/pickle.pyx":81
 *             raise ValueError('Manifold must be pickled with _to_string.')
 *     buf[0] |= is_complete
 *     result += buf[:i+2]             # <<<<<<<<<<<<<<
 *     if not is_complete:
 *         # Add the Dehn filling coefficients
*/
  __pyx_t_4 = __Pyx_PyBytes_FromStringAndSize(((char const *)__pyx_v_buf) + 0, (__pyx_v_i + 2) - 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_5);
  __pyx_t_5 = 0;

  /* "cython/core/pickle.pyx":82
 *     buf[0] |= is_complete
 *     result += buf[:i+2]
 *     if not is_complete:             # <<<<<<<<<<<<<<
 *         # Add the Dehn filling coefficients
 *         for j in range(num_cusps):
*/
  __pyx_t_1 = (!(__pyx_v_is_complete != 0));
  if (__pyx_t_1) {

    /* "cython/core/pickle.pyx":84
 *     if not is_complete:
 *         # Add the Dehn filling coefficients
 *         for j in range(num_cusps):             # <<<<<<<<<<<<<<
 *             # The quad double library doesn't support casting qd_real to char.
 *             M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l
*/
    __pyx_t_2 = __pyx_v_num_cusps;
    __pyx_t_7 = __pyx_t_2;
    for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
      __pyx_v_j = __pyx_t_8;

      /* "cython/core/pickle.pyx":86
 *         for j in range(num_cusps):
 *             # The quad double library doesn't support casting qd_real to char.
 *             M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l             # <<<<<<<<<<<<<<
 *             filling[0] = <signed char>M
 *             filling[1] = <signed char>L
*/
      __pyx_t_10 = ((double)(__pyx_v_tri_data->cusp_data[__pyx_v_j]).m);
      __pyx_t_9 = ((double)(__pyx_v_tri_data->cusp_data[__pyx_v_j]).l);
      __pyx_v_M = __pyx_t_10;
      __pyx_v_L = __pyx_t_9;

      /* "cython/core/pickle.pyx":87
 *             # The quad double library doesn't support casting qd_real to char.
 *             M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l
 *             filling[0] = <signed char>M             # <<<<<<<<<<<<<<
 *             filling[1] = <signed char>L
 *             result += filling[:2]
*/
      (__pyx_v_filling[0]) = ((signed char)__pyx_v_M);

      /* "cython/core/pickle.pyx":88
 *             M, L = <double>tri_data.cusp_data[j].m, <double>tri_data.cusp_data[j].l
 *             filling[0] = <signed char>M
 *             filling[1] = <signed char>L             # <<<<<<<<<<<<<<
 *             result += filling[:2]
 *     for j in range(tri_data.num_tetrahedra):
*/
      (__pyx_v_filling[1]) = ((signed char)__pyx_v_L);

      /* "cython/core/pickle.pyx":89
 *             filling[0] = <signed char>M
 *             filling[1] = <signed char>L
 *             result += filling[:2]             # <<<<<<<<<<<<<<
 *     for j in range(tri_data.num_tetrahedra):
 *         result += pickle_tetrahedron_data(&tri_data.tetrahedron_data[j], flag)
*/
      __pyx_t_5 = __Pyx_PyBytes_FromStringAndSize(((char const *)__pyx_v_filling) + 0, 2 - 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 89, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 89, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_4);
      __pyx_t_4 = 0;
    }

    /* "cython/core/pickle.pyx":82
 *     buf[0] |= is_complete
 *     result += buf[:i+2]
 *     if not is_complete:             # <<<<<<<<<<<<<<
 *         # Add the Dehn filling coefficients
 *         for j in range(num_cusps):
*/
  }

  /* "cython/core/pickle.pyx":90
 *             filling[1] = <signed char>L
 *             result += filling[:2]
 *     for j in range(tri_data.num_tetrahedra):             # <<<<<<<<<<<<<<
 *         result += pickle_tetrahedron_data(&tri_data.tetrahedron_data[j], flag)
 *     return result + bytes(tri_data.name)
*/
  __pyx_t_2 = __pyx_v_tri_data->num_tetrahedra;
  __pyx_t_7 = __pyx_t_2;
  for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
    __pyx_v_j = __pyx_t_8;

    /* "cython/core/pickle.pyx":91
 *             result += filling[:2]
 *     for j in range(tri_data.num_tetrahedra):
 *         result += pickle_tetrahedron_data(&tri_data.tetrahedron_data[j], flag)             # <<<<<<<<<<<<<<
 *     return result + bytes(tri_data.name)
 * 
*/
    __pyx_t_4 = __pyx_f_6SnapPy_pickle_tetrahedron_data((&(__pyx_v_tri_data->tetrahedron_data[__pyx_v_j])), __pyx_v_flag); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 91, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 91, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_5);
    __pyx_t_5 = 0;
  }

  /* "cython/core/pickle.pyx":92
 *     for j in range(tri_data.num_tetrahedra):
 *         result += pickle_tetrahedron_data(&tri_data.tetrahedron_data[j], flag)
 *     return result + bytes(tri_data.name)             # <<<<<<<<<<<<<<
 * 
 * cdef pickle_tetrahedron_data(c_TetrahedronData* data, int flag):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = NULL;
  __pyx_t_13 = __Pyx_PyBytes_FromString(__pyx_v_tri_data->name); if (unlikely(!__pyx_t_13)) __PYX_ERR(12, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_12 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_13};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(&PyBytes_Type), __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(12, 92, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_13 = PyNumber_Add(__pyx_v_result, __pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(12, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_13;
  __pyx_t_13 = 0;
  goto __pyx_L0;

  /* "cython/core/pickle.pyx":31
 * cdef IS_COMPLETE = <unsigned char> 1 << 5
 * 
 * cdef pickle_triangulation(c_Triangulation *tri):             # <<<<<<<<<<<<<<
 *     """
 *     Pickle a Triangulation by constructing a TriangulationData structure
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("SnapPy.pickle_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/pickle.pyx":94
 *     return result + bytes(tri_data.name)
 * 
 * cdef pickle_tetrahedron_data(c_TetrahedronData* data, int flag):             # <<<<<<<<<<<<<<
 *     cdef int i, j, v, f
 *     cdef Py_ssize_t n = 0
*/

static PyObject *__pyx_f_6SnapPy_pickle_tetrahedron_data(TetrahedronData *__pyx_v_data, int __pyx_v_flag) {
  int __pyx_v_i;
  int __pyx_v_j;
  int __pyx_v_v;
  int __pyx_v_f;
  Py_ssize_t __pyx_v_n;
  unsigned short __pyx_v_mask;
  unsigned short __pyx_v_bit;
  int __pyx_v_x;
  int __pyx_v_count;
  int __pyx_v_curve;
  signed char __pyx_v_curve_buf[16];
  unsigned char __pyx_v_buffer[16];
  PyObject *__pyx_v_result = NULL;
  int *__pyx_v_perm;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("pickle_tetrahedron_data", 0);

  /* "cython/core/pickle.pyx":96
 * cdef pickle_tetrahedron_data(c_TetrahedronData* data, int flag):
 *     cdef int i, j, v, f
 *     cdef Py_ssize_t n = 0             # <<<<<<<<<<<<<<
 *     cdef unsigned short mask, bit
 *     cdef int x, count, curve
*/
  __pyx_v_n = 0;

  /* "cython/core/pickle.pyx":102
 *     cdef unsigned char buffer[16]
 * 
 *     result = bytes()             # <<<<<<<<<<<<<<
 *     # If this tet is in a huge or big triangulation then we use 4 or 2
 *     # bytes in network order to represent the indices of neighbors.
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyBytes_Type), __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/pickle.pyx":105
 *     # If this tet is in a huge or big triangulation then we use 4 or 2
 *     # bytes in network order to represent the indices of neighbors.
 *     if flag & IS_HUGE:             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             x = data.neighbor_index[i]
*/
  __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_v_flag); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_And(__pyx_t_1, __pyx_v_6SnapPy_IS_HUGE); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(12, 105, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_4) {

    /* "cython/core/pickle.pyx":106
 *     # bytes in network order to represent the indices of neighbors.
 *     if flag & IS_HUGE:
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             x = data.neighbor_index[i]
 *             buffer[n] = (x >> 24)
*/
    for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cython/core/pickle.pyx":107
 *     if flag & IS_HUGE:
 *         for i in range(4):
 *             x = data.neighbor_index[i]             # <<<<<<<<<<<<<<
 *             buffer[n] = (x >> 24)
 *             buffer[n + 1] = (x >> 16) & 0xff
*/
      __pyx_v_x = (__pyx_v_data->neighbor_index[__pyx_v_i]);

      /* "cython/core/pickle.pyx":108
 *         for i in range(4):
 *             x = data.neighbor_index[i]
 *             buffer[n] = (x >> 24)             # <<<<<<<<<<<<<<
 *             buffer[n + 1] = (x >> 16) & 0xff
 *             buffer[n + 2] = (x >> 8) & 0xff
*/
      (__pyx_v_buffer[__pyx_v_n]) = (__pyx_v_x >> 24);

      /* "cython/core/pickle.pyx":109
 *             x = data.neighbor_index[i]
 *             buffer[n] = (x >> 24)
 *             buffer[n + 1] = (x >> 16) & 0xff             # <<<<<<<<<<<<<<
 *             buffer[n + 2] = (x >> 8) & 0xff
 *             buffer[n + 3] = x & 0xff
*/
      (__pyx_v_buffer[(__pyx_v_n + 1)]) = ((__pyx_v_x >> 16) & 0xff);

      /* "cython/core/pickle.pyx":110
 *             buffer[n] = (x >> 24)
 *             buffer[n + 1] = (x >> 16) & 0xff
 *             buffer[n + 2] = (x >> 8) & 0xff             # <<<<<<<<<<<<<<
 *             buffer[n + 3] = x & 0xff
 *             n += 4
*/
      (__pyx_v_buffer[(__pyx_v_n + 2)]) = ((__pyx_v_x >> 8) & 0xff);

      /* "cython/core/pickle.pyx":111
 *             buffer[n + 1] = (x >> 16) & 0xff
 *             buffer[n + 2] = (x >> 8) & 0xff
 *             buffer[n + 3] = x & 0xff             # <<<<<<<<<<<<<<
 *             n += 4
 *     elif flag & IS_BIG:
*/
      (__pyx_v_buffer[(__pyx_v_n + 3)]) = (__pyx_v_x & 0xff);

      /* "cython/core/pickle.pyx":112
 *             buffer[n + 2] = (x >> 8) & 0xff
 *             buffer[n + 3] = x & 0xff
 *             n += 4             # <<<<<<<<<<<<<<
 *     elif flag & IS_BIG:
 *         for i in range(4):
*/
      __pyx_v_n = (__pyx_v_n + 4);
    }

    /* "cython/core/pickle.pyx":105
 *     # If this tet is in a huge or big triangulation then we use 4 or 2
 *     # bytes in network order to represent the indices of neighbors.
 *     if flag & IS_HUGE:             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             x = data.neighbor_index[i]
*/
    goto __pyx_L3;
  }

  /* "cython/core/pickle.pyx":113
 *             buffer[n + 3] = x & 0xff
 *             n += 4
 *     elif flag & IS_BIG:             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             x = data.neighbor_index[i]
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_flag); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyNumber_And(__pyx_t_2, __pyx_v_6SnapPy_IS_BIG); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(12, 113, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cython/core/pickle.pyx":114
 *             n += 4
 *     elif flag & IS_BIG:
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             x = data.neighbor_index[i]
 *             buffer[n] = (x >> 8)
*/
    for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cython/core/pickle.pyx":115
 *     elif flag & IS_BIG:
 *         for i in range(4):
 *             x = data.neighbor_index[i]             # <<<<<<<<<<<<<<
 *             buffer[n] = (x >> 8)
 *             buffer[n + 1] = x & 0xff
*/
      __pyx_v_x = (__pyx_v_data->neighbor_index[__pyx_v_i]);

      /* "cython/core/pickle.pyx":116
 *         for i in range(4):
 *             x = data.neighbor_index[i]
 *             buffer[n] = (x >> 8)             # <<<<<<<<<<<<<<
 *             buffer[n + 1] = x & 0xff
 *             n += 2
*/
      (__pyx_v_buffer[__pyx_v_n]) = (__pyx_v_x >> 8);

      /* "cython/core/pickle.pyx":117
 *             x = data.neighbor_index[i]
 *             buffer[n] = (x >> 8)
 *             buffer[n + 1] = x & 0xff             # <<<<<<<<<<<<<<
 *             n += 2
 *     else:
*/
      (__pyx_v_buffer[(__pyx_v_n + 1)]) = (__pyx_v_x & 0xff);

      /* "cython/core/pickle.pyx":118
 *             buffer[n] = (x >> 8)
 *             buffer[n + 1] = x & 0xff
 *             n += 2             # <<<<<<<<<<<<<<
 *     else:
 *         for i in range(4):
*/
      __pyx_v_n = (__pyx_v_n + 2);
    }

    /* "cython/core/pickle.pyx":113
 *             buffer[n + 3] = x & 0xff
 *             n += 4
 *     elif flag & IS_BIG:             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             x = data.neighbor_index[i]
*/
    goto __pyx_L3;
  }

  /* "cython/core/pickle.pyx":120
 *             n += 2
 *     else:
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             buffer[n] = data.neighbor_index[i]
 *             n += 1
*/
  /*else*/ {
    for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cython/core/pickle.pyx":121
 *     else:
 *         for i in range(4):
 *             buffer[n] = data.neighbor_index[i]             # <<<<<<<<<<<<<<
 *             n += 1
 * 
*/
      (__pyx_v_buffer[__pyx_v_n]) = (__pyx_v_data->neighbor_index[__pyx_v_i]);

      /* "cython/core/pickle.pyx":122
 *         for i in range(4):
 *             buffer[n] = data.neighbor_index[i]
 *             n += 1             # <<<<<<<<<<<<<<
 * 
 *     # Pack each permutation into a byte, like SnapPea does.
*/
      __pyx_v_n = (__pyx_v_n + 1);
    }
  }
  __pyx_L3:;

  /* "cython/core/pickle.pyx":126
 *     # Pack each permutation into a byte, like SnapPea does.
 *     cdef int *perm
 *     for i in range(4):             # <<<<<<<<<<<<<<
 *         perm = &data.gluing[i][0]
 *         buffer[n] = perm[0] | perm[1]<<2 | perm[2]<<4 | perm[3]<<6
*/
  for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "cython/core/pickle.pyx":127
 *     cdef int *perm
 *     for i in range(4):
 *         perm = &data.gluing[i][0]             # <<<<<<<<<<<<<<
 *         buffer[n] = perm[0] | perm[1]<<2 | perm[2]<<4 | perm[3]<<6
 *         n += 1
*/
    __pyx_v_perm = (&((__pyx_v_data->gluing[__pyx_v_i])[0]));

    /* "cython/core/pickle.pyx":128
 *     for i in range(4):
 *         perm = &data.gluing[i][0]
 *         buffer[n] = perm[0] | perm[1]<<2 | perm[2]<<4 | perm[3]<<6             # <<<<<<<<<<<<<<
 *         n += 1
 * 
*/
    (__pyx_v_buffer[__pyx_v_n]) = ((((__pyx_v_perm[0]) | ((__pyx_v_perm[1]) << 2)) | ((__pyx_v_perm[2]) << 4)) | ((__pyx_v_perm[3]) << 6));

    /* "cython/core/pickle.pyx":129
 *         perm = &data.gluing[i][0]
 *         buffer[n] = perm[0] | perm[1]<<2 | perm[2]<<4 | perm[3]<<6
 *         n += 1             # <<<<<<<<<<<<<<
 * 
 *     # Use 1 byte per cusp index.  This assumes < 256 cusps.
*/
    __pyx_v_n = (__pyx_v_n + 1);
  }

  /* "cython/core/pickle.pyx":132
 * 
 *     # Use 1 byte per cusp index.  This assumes < 256 cusps.
 *     for i in range(4):             # <<<<<<<<<<<<<<
 *         buffer[n] = <unsigned char>data.cusp_index[i]
 *         n += 1
*/
  for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "cython/core/pickle.pyx":133
 *     # Use 1 byte per cusp index.  This assumes < 256 cusps.
 *     for i in range(4):
 *         buffer[n] = <unsigned char>data.cusp_index[i]             # <<<<<<<<<<<<<<
 *         n += 1
 *     result += buffer[:n]
*/
    (__pyx_v_buffer[__pyx_v_n]) = ((unsigned char)(__pyx_v_data->cusp_index[__pyx_v_i]));

    /* "cython/core/pickle.pyx":134
 *     for i in range(4):
 *         buffer[n] = <unsigned char>data.cusp_index[i]
 *         n += 1             # <<<<<<<<<<<<<<
 *     result += buffer[:n]
 * 
*/
    __pyx_v_n = (__pyx_v_n + 1);
  }

  /* "cython/core/pickle.pyx":135
 *         buffer[n] = <unsigned char>data.cusp_index[i]
 *         n += 1
 *     result += buffer[:n]             # <<<<<<<<<<<<<<
 * 
 *     # The curve data consists of 64 integers, which are often mostly
*/
  __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(((char const *)__pyx_v_buffer) + 0, __pyx_v_n - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF_SET(__pyx_v_result, ((PyObject*)__pyx_t_2));
  __pyx_t_2 = 0;

  /* "cython/core/pickle.pyx":143
 *     # network order, followed by one byte for each nonzero bit in the
 *     # mask.
 *     for i in range(2):             # <<<<<<<<<<<<<<
 *         for j in range(2):
 *             mask = 0
*/
  for (__pyx_t_5 = 0; __pyx_t_5 < 2; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "cython/core/pickle.pyx":144
 *     # mask.
 *     for i in range(2):
 *         for j in range(2):             # <<<<<<<<<<<<<<
 *             mask = 0
 *             count = 0
*/
    for (__pyx_t_6 = 0; __pyx_t_6 < 2; __pyx_t_6+=1) {
      __pyx_v_j = __pyx_t_6;

      /* "cython/core/pickle.pyx":145
 *     for i in range(2):
 *         for j in range(2):
 *             mask = 0             # <<<<<<<<<<<<<<
 *             count = 0
 *             bit = 1
*/
      __pyx_v_mask = 0;

      /* "cython/core/pickle.pyx":146
 *         for j in range(2):
 *             mask = 0
 *             count = 0             # <<<<<<<<<<<<<<
 *             bit = 1
 *             for v in range(4):
*/
      __pyx_v_count = 0;

      /* "cython/core/pickle.pyx":147
 *             mask = 0
 *             count = 0
 *             bit = 1             # <<<<<<<<<<<<<<
 *             for v in range(4):
 *                 for f in range(4):
*/
      __pyx_v_bit = 1;

      /* "cython/core/pickle.pyx":148
 *             count = 0
 *             bit = 1
 *             for v in range(4):             # <<<<<<<<<<<<<<
 *                 for f in range(4):
 *                     curve = data.curve[i][j][v][f]
*/
      for (__pyx_t_7 = 0; __pyx_t_7 < 4; __pyx_t_7+=1) {
        __pyx_v_v = __pyx_t_7;

        /* "cython/core/pickle.pyx":149
 *             bit = 1
 *             for v in range(4):
 *                 for f in range(4):             # <<<<<<<<<<<<<<
 *                     curve = data.curve[i][j][v][f]
 *                     if curve != 0:
*/
        for (__pyx_t_8 = 0; __pyx_t_8 < 4; __pyx_t_8+=1) {
          __pyx_v_f = __pyx_t_8;

          /* "cython/core/pickle.pyx":150
 *             for v in range(4):
 *                 for f in range(4):
 *                     curve = data.curve[i][j][v][f]             # <<<<<<<<<<<<<<
 *                     if curve != 0:
 *                         mask |= bit
*/
          __pyx_v_curve = ((((__pyx_v_data->curve[__pyx_v_i])[__pyx_v_j])[__pyx_v_v])[__pyx_v_f]);

          /* "cython/core/pickle.pyx":151
 *                 for f in range(4):
 *                     curve = data.curve[i][j][v][f]
 *                     if curve != 0:             # <<<<<<<<<<<<<<
 *                         mask |= bit
 *                         curve_buf[count] = <signed char>curve
*/
          __pyx_t_4 = (__pyx_v_curve != 0);
          if (__pyx_t_4) {

            /* "cython/core/pickle.pyx":152
 *                     curve = data.curve[i][j][v][f]
 *                     if curve != 0:
 *                         mask |= bit             # <<<<<<<<<<<<<<
 *                         curve_buf[count] = <signed char>curve
 *                         count += 1
*/
            __pyx_v_mask = (__pyx_v_mask | __pyx_v_bit);

            /* "cython/core/pickle.pyx":153
 *                     if curve != 0:
 *                         mask |= bit
 *                         curve_buf[count] = <signed char>curve             # <<<<<<<<<<<<<<
 *                         count += 1
 *                     bit = bit << 1
*/
            (__pyx_v_curve_buf[__pyx_v_count]) = ((signed char)__pyx_v_curve);

            /* "cython/core/pickle.pyx":154
 *                         mask |= bit
 *                         curve_buf[count] = <signed char>curve
 *                         count += 1             # <<<<<<<<<<<<<<
 *                     bit = bit << 1
 *             buffer[0] = mask >> 8
*/
            __pyx_v_count = (__pyx_v_count + 1);

            /* "cython/core/pickle.pyx":151
 *                 for f in range(4):
 *                     curve = data.curve[i][j][v][f]
 *                     if curve != 0:             # <<<<<<<<<<<<<<
 *                         mask |= bit
 *                         curve_buf[count] = <signed char>curve
*/
          }

          /* "cython/core/pickle.pyx":155
 *                         curve_buf[count] = <signed char>curve
 *                         count += 1
 *                     bit = bit << 1             # <<<<<<<<<<<<<<
 *             buffer[0] = mask >> 8
 *             buffer[1] = mask & 0xff
*/
          __pyx_v_bit = (__pyx_v_bit << 1);
        }
      }

      /* "cython/core/pickle.pyx":156
 *                         count += 1
 *                     bit = bit << 1
 *             buffer[0] = mask >> 8             # <<<<<<<<<<<<<<
 *             buffer[1] = mask & 0xff
 *             # Trust Cython to copy both chars and unsigned chars into our
*/
      (__pyx_v_buffer[0]) = (__pyx_v_mask >> 8);

      /* "cython/core/pickle.pyx":157
 *                     bit = bit << 1
 *             buffer[0] = mask >> 8
 *             buffer[1] = mask & 0xff             # <<<<<<<<<<<<<<
 *             # Trust Cython to copy both chars and unsigned chars into our
 *             # bytes object without changing any bits.
*/
      (__pyx_v_buffer[1]) = (__pyx_v_mask & 0xff);

      /* "cython/core/pickle.pyx":160
 *             # Trust Cython to copy both chars and unsigned chars into our
 *             # bytes object without changing any bits.
 *             result += buffer[:2]             # <<<<<<<<<<<<<<
 *             result += curve_buf[:count]
 *     return result
*/
      __pyx_t_2 = __Pyx_PyBytes_FromStringAndSize(((char const *)__pyx_v_buffer) + 0, 2 - 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 160, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 160, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF_SET(__pyx_v_result, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "cython/core/pickle.pyx":161
 *             # bytes object without changing any bits.
 *             result += buffer[:2]
 *             result += curve_buf[:count]             # <<<<<<<<<<<<<<
 *     return result
 * 
*/
      __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(((char const *)__pyx_v_curve_buf) + 0, __pyx_v_count - 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 161, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 161, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF_SET(__pyx_v_result, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;
    }
  }

  /* "cython/core/pickle.pyx":162
 *             result += buffer[:2]
 *             result += curve_buf[:count]
 *     return result             # <<<<<<<<<<<<<<
 * 
 * cdef c_Triangulation* unpickle_triangulation(bytes pickle) except *:
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cython/core/pickle.pyx":94
 *     return result + bytes(tri_data.name)
 * 
 * cdef pickle_tetrahedron_data(c_TetrahedronData* data, int flag):             # <<<<<<<<<<<<<<
 *     cdef int i, j, v, f
 *     cdef Py_ssize_t n = 0
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.pickle_tetrahedron_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/pickle.pyx":164
 *     return result
 * 
 * cdef c_Triangulation* unpickle_triangulation(bytes pickle) except *:             # <<<<<<<<<<<<<<
 *     """
 *     Unpickle a Triangulation by deserializing a TriangulationData structure
*/

static Triangulation *__pyx_f_6SnapPy_unpickle_triangulation(PyObject *__pyx_v_pickle) {
  TetrahedronData *__pyx_v_tets;
  CuspData *__pyx_v_cusps;
  Triangulation *__pyx_v_tri;
  unsigned char *__pyx_v_p;
  TriangulationData __pyx_v_tri_data;
  int __pyx_v_i;
  int __pyx_v_num_tets;
  int __pyx_v_num_cusps;
  int __pyx_v_M;
  int __pyx_v_L;
  int __pyx_v_n;
  PyObject *__pyx_v_header = NULL;
  PyObject *__pyx_v_tri_pickle = NULL;
  PyObject *__pyx_v_py_name = NULL;
  Triangulation *__pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  unsigned char *__pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  unsigned char __pyx_t_9;
  unsigned char __pyx_t_10;
  long __pyx_t_11;
  size_t __pyx_t_12;
  int __pyx_t_13;
  char *__pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("unpickle_triangulation", 0);

  /* "cython/core/pickle.pyx":169
 *     and then converting it to a Triangulation.
 *     """
 *     cdef c_TetrahedronData* tets = NULL             # <<<<<<<<<<<<<<
 *     cdef c_CuspData* cusps = NULL
 *     cdef c_Triangulation *tri
*/
  __pyx_v_tets = NULL;

  /* "cython/core/pickle.pyx":170
 *     """
 *     cdef c_TetrahedronData* tets = NULL
 *     cdef c_CuspData* cusps = NULL             # <<<<<<<<<<<<<<
 *     cdef c_Triangulation *tri
 *     cdef unsigned char* p
*/
  __pyx_v_cusps = NULL;

  /* "cython/core/pickle.pyx":175
 *     cdef TriangulationData tri_data
 *     cdef int i, num_tets, num_cusps, M, L
 *     cdef int n = 0             # <<<<<<<<<<<<<<
 * 
 *     header, tri_pickle = pickle.split(b':', 1)
*/
  __pyx_v_n = 0;

  /* "cython/core/pickle.pyx":177
 *     cdef int n = 0
 * 
 *     header, tri_pickle = pickle.split(b':', 1)             # <<<<<<<<<<<<<<
 *     assert header == b'pickle', 'Invalid pickle byte sequence'
 *     p = tri_pickle
*/
  __pyx_t_1 = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyBytes_Type__split, __pyx_v_pickle, __pyx_mstate_global->__pyx_kp_b__39, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (1) {
    PyObject* sequence = __pyx_t_1;
    Py_ssize_t size = __Pyx_PyList_GET_SIZE(sequence);
    if (unlikely(size != 2)) {
      if (size > 2) __Pyx_RaiseTooManyValuesError(2);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(12, 177, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
    if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 177, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
    if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 177, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_t_3);
    #else
    __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __pyx_v_header = __pyx_t_2;
  __pyx_t_2 = 0;
  __pyx_v_tri_pickle = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/pickle.pyx":178
 * 
 *     header, tri_pickle = pickle.split(b':', 1)
 *     assert header == b'pickle', 'Invalid pickle byte sequence'             # <<<<<<<<<<<<<<
 *     p = tri_pickle
 *     tri_data.solution_type = not_attempted
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_4 = (__Pyx_PyBytes_Equals(__pyx_v_header, __pyx_mstate_global->__pyx_n_b_pickle_2, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(12, 178, __pyx_L1_error)
    if (unlikely(!__pyx_t_4)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_mstate_global->__pyx_kp_u_Invalid_pickle_byte_sequence, 0, 0);
      __PYX_ERR(12, 178, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(12, 178, __pyx_L1_error)
  #endif

  /* "cython/core/pickle.pyx":179
 *     header, tri_pickle = pickle.split(b':', 1)
 *     assert header == b'pickle', 'Invalid pickle byte sequence'
 *     p = tri_pickle             # <<<<<<<<<<<<<<
 *     tri_data.solution_type = not_attempted
 *     tri_data.volume = <Real> 0.0
*/
  __pyx_t_5 = __Pyx_PyObject_AsWritableUString(__pyx_v_tri_pickle); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(12, 179, __pyx_L1_error)
  __pyx_v_p = __pyx_t_5;

  /* "cython/core/pickle.pyx":180
 *     assert header == b'pickle', 'Invalid pickle byte sequence'
 *     p = tri_pickle
 *     tri_data.solution_type = not_attempted             # <<<<<<<<<<<<<<
 *     tri_data.volume = <Real> 0.0
 *     tri_data.orientability = <c_Orientability>(p[0] & 0x3)
*/
  __pyx_v_tri_data.solution_type = not_attempted;

  /* "cython/core/pickle.pyx":181
 *     p = tri_pickle
 *     tri_data.solution_type = not_attempted
 *     tri_data.volume = <Real> 0.0             # <<<<<<<<<<<<<<
 *     tri_data.orientability = <c_Orientability>(p[0] & 0x3)
 *     n = 1
*/
  __pyx_v_tri_data.volume = ((__pyx_t_6SnapPy_Real)0.0);

  /* "cython/core/pickle.pyx":182
 *     tri_data.solution_type = not_attempted
 *     tri_data.volume = <Real> 0.0
 *     tri_data.orientability = <c_Orientability>(p[0] & 0x3)             # <<<<<<<<<<<<<<
 *     n = 1
 *     if p[0] & IS_HUGE:
*/
  __pyx_v_tri_data.orientability = ((Orientability)((__pyx_v_p[0]) & 0x3));

  /* "cython/core/pickle.pyx":183
 *     tri_data.volume = <Real> 0.0
 *     tri_data.orientability = <c_Orientability>(p[0] & 0x3)
 *     n = 1             # <<<<<<<<<<<<<<
 *     if p[0] & IS_HUGE:
 *         num_tets = (<int>p[n]) << 24 | (<int>p[n+1]) << 16 | (<int>p[n+2]) << 8 | (<int>p[n+3])
*/
  __pyx_v_n = 1;

  /* "cython/core/pickle.pyx":184
 *     tri_data.orientability = <c_Orientability>(p[0] & 0x3)
 *     n = 1
 *     if p[0] & IS_HUGE:             # <<<<<<<<<<<<<<
 *         num_tets = (<int>p[n]) << 24 | (<int>p[n+1]) << 16 | (<int>p[n+2]) << 8 | (<int>p[n+3])
 *         n += 4
*/
  __pyx_t_1 = __Pyx_PyLong_From_unsigned_char((__pyx_v_p[0])); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyNumber_And(__pyx_t_1, __pyx_v_6SnapPy_IS_HUGE); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(12, 184, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_4) {

    /* "cython/core/pickle.pyx":185
 *     n = 1
 *     if p[0] & IS_HUGE:
 *         num_tets = (<int>p[n]) << 24 | (<int>p[n+1]) << 16 | (<int>p[n+2]) << 8 | (<int>p[n+3])             # <<<<<<<<<<<<<<
 *         n += 4
 *     elif p[0] & IS_BIG:
*/
    __pyx_v_num_tets = ((((((int)(__pyx_v_p[__pyx_v_n])) << 24) | (((int)(__pyx_v_p[(__pyx_v_n + 1)])) << 16)) | (((int)(__pyx_v_p[(__pyx_v_n + 2)])) << 8)) | ((int)(__pyx_v_p[(__pyx_v_n + 3)])));

    /* "cython/core/pickle.pyx":186
 *     if p[0] & IS_HUGE:
 *         num_tets = (<int>p[n]) << 24 | (<int>p[n+1]) << 16 | (<int>p[n+2]) << 8 | (<int>p[n+3])
 *         n += 4             # <<<<<<<<<<<<<<
 *     elif p[0] & IS_BIG:
 *         num_tets = (<int>p[n]) << 8 | (<int>p[n+1])
*/
    __pyx_v_n = (__pyx_v_n + 4);

    /* "cython/core/pickle.pyx":184
 *     tri_data.orientability = <c_Orientability>(p[0] & 0x3)
 *     n = 1
 *     if p[0] & IS_HUGE:             # <<<<<<<<<<<<<<
 *         num_tets = (<int>p[n]) << 24 | (<int>p[n+1]) << 16 | (<int>p[n+2]) << 8 | (<int>p[n+3])
 *         n += 4
*/
    goto __pyx_L3;
  }

  /* "cython/core/pickle.pyx":187
 *         num_tets = (<int>p[n]) << 24 | (<int>p[n+1]) << 16 | (<int>p[n+2]) << 8 | (<int>p[n+3])
 *         n += 4
 *     elif p[0] & IS_BIG:             # <<<<<<<<<<<<<<
 *         num_tets = (<int>p[n]) << 8 | (<int>p[n+1])
 *         n += 2
*/
  __pyx_t_3 = __Pyx_PyLong_From_unsigned_char((__pyx_v_p[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = PyNumber_And(__pyx_t_3, __pyx_v_6SnapPy_IS_BIG); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(12, 187, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "cython/core/pickle.pyx":188
 *         n += 4
 *     elif p[0] & IS_BIG:
 *         num_tets = (<int>p[n]) << 8 | (<int>p[n+1])             # <<<<<<<<<<<<<<
 *         n += 2
 *     else:
*/
    __pyx_v_num_tets = ((((int)(__pyx_v_p[__pyx_v_n])) << 8) | ((int)(__pyx_v_p[(__pyx_v_n + 1)])));

    /* "cython/core/pickle.pyx":189
 *     elif p[0] & IS_BIG:
 *         num_tets = (<int>p[n]) << 8 | (<int>p[n+1])
 *         n += 2             # <<<<<<<<<<<<<<
 *     else:
 *         num_tets = p[n]
*/
    __pyx_v_n = (__pyx_v_n + 2);

    /* "cython/core/pickle.pyx":187
 *         num_tets = (<int>p[n]) << 24 | (<int>p[n+1]) << 16 | (<int>p[n+2]) << 8 | (<int>p[n+3])
 *         n += 4
 *     elif p[0] & IS_BIG:             # <<<<<<<<<<<<<<
 *         num_tets = (<int>p[n]) << 8 | (<int>p[n+1])
 *         n += 2
*/
    goto __pyx_L3;
  }

  /* "cython/core/pickle.pyx":191
 *         n += 2
 *     else:
 *         num_tets = p[n]             # <<<<<<<<<<<<<<
 *         n += 1
 *     tri_data.num_tetrahedra = num_tets
*/
  /*else*/ {
    __pyx_v_num_tets = (__pyx_v_p[__pyx_v_n]);

    /* "cython/core/pickle.pyx":192
 *     else:
 *         num_tets = p[n]
 *         n += 1             # <<<<<<<<<<<<<<
 *     tri_data.num_tetrahedra = num_tets
 *     tri_data.num_or_cusps = p[n]
*/
    __pyx_v_n = (__pyx_v_n + 1);
  }
  __pyx_L3:;

  /* "cython/core/pickle.pyx":193
 *         num_tets = p[n]
 *         n += 1
 *     tri_data.num_tetrahedra = num_tets             # <<<<<<<<<<<<<<
 *     tri_data.num_or_cusps = p[n]
 *     tri_data.num_nonor_cusps = p[n+1]
*/
  __pyx_v_tri_data.num_tetrahedra = __pyx_v_num_tets;

  /* "cython/core/pickle.pyx":194
 *         n += 1
 *     tri_data.num_tetrahedra = num_tets
 *     tri_data.num_or_cusps = p[n]             # <<<<<<<<<<<<<<
 *     tri_data.num_nonor_cusps = p[n+1]
 *     tri_data.CS_value_is_known = 0
*/
  __pyx_v_tri_data.num_or_cusps = (__pyx_v_p[__pyx_v_n]);

  /* "cython/core/pickle.pyx":195
 *     tri_data.num_tetrahedra = num_tets
 *     tri_data.num_or_cusps = p[n]
 *     tri_data.num_nonor_cusps = p[n+1]             # <<<<<<<<<<<<<<
 *     tri_data.CS_value_is_known = 0
 *     tri_data.CS_value = <Real>0.0
*/
  __pyx_v_tri_data.num_nonor_cusps = (__pyx_v_p[(__pyx_v_n + 1)]);

  /* "cython/core/pickle.pyx":196
 *     tri_data.num_or_cusps = p[n]
 *     tri_data.num_nonor_cusps = p[n+1]
 *     tri_data.CS_value_is_known = 0             # <<<<<<<<<<<<<<
 *     tri_data.CS_value = <Real>0.0
 *     n += 2
*/
  __pyx_v_tri_data.CS_value_is_known = 0;

  /* "cython/core/pickle.pyx":197
 *     tri_data.num_nonor_cusps = p[n+1]
 *     tri_data.CS_value_is_known = 0
 *     tri_data.CS_value = <Real>0.0             # <<<<<<<<<<<<<<
 *     n += 2
 * 
*/
  __pyx_v_tri_data.CS_value = ((__pyx_t_6SnapPy_Real)0.0);

  /* "cython/core/pickle.pyx":198
 *     tri_data.CS_value_is_known = 0
 *     tri_data.CS_value = <Real>0.0
 *     n += 2             # <<<<<<<<<<<<<<
 * 
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
*/
  __pyx_v_n = (__pyx_v_n + 2);

  /* "cython/core/pickle.pyx":200
 *     n += 2
 * 
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps             # <<<<<<<<<<<<<<
 *     if num_cusps > 0:
 *         # Use malloc (not mymalloc) to allocate memory for the cusp
*/
  __pyx_v_num_cusps = (__pyx_v_tri_data.num_or_cusps + __pyx_v_tri_data.num_nonor_cusps);

  /* "cython/core/pickle.pyx":201
 * 
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
 *     if num_cusps > 0:             # <<<<<<<<<<<<<<
 *         # Use malloc (not mymalloc) to allocate memory for the cusp
 *         # data.  We free the memory before returning.
*/
  __pyx_t_4 = (__pyx_v_num_cusps > 0);
  if (__pyx_t_4) {

    /* "cython/core/pickle.pyx":204
 *         # Use malloc (not mymalloc) to allocate memory for the cusp
 *         # data.  We free the memory before returning.
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))             # <<<<<<<<<<<<<<
 *         if cusps:
 *             if p[0] & IS_COMPLETE:
*/
    __pyx_v_cusps = ((CuspData *)malloc((__pyx_v_num_cusps * (sizeof(CuspData)))));

    /* "cython/core/pickle.pyx":205
 *         # data.  We free the memory before returning.
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))
 *         if cusps:             # <<<<<<<<<<<<<<
 *             if p[0] & IS_COMPLETE:
 *                 for i in range(tri_data.num_or_cusps):
*/
    __pyx_t_4 = (__pyx_v_cusps != 0);
    if (likely(__pyx_t_4)) {

      /* "cython/core/pickle.pyx":206
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))
 *         if cusps:
 *             if p[0] & IS_COMPLETE:             # <<<<<<<<<<<<<<
 *                 for i in range(tri_data.num_or_cusps):
 *                     cusps[i].topology = torus_cusp
*/
      __pyx_t_1 = __Pyx_PyLong_From_unsigned_char((__pyx_v_p[0])); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 206, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = PyNumber_And(__pyx_t_1, __pyx_v_6SnapPy_IS_COMPLETE); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 206, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(12, 206, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_4) {

        /* "cython/core/pickle.pyx":207
 *         if cusps:
 *             if p[0] & IS_COMPLETE:
 *                 for i in range(tri_data.num_or_cusps):             # <<<<<<<<<<<<<<
 *                     cusps[i].topology = torus_cusp
 *                     cusps[i].m = <Real>0.0
*/
        __pyx_t_6 = __pyx_v_tri_data.num_or_cusps;
        __pyx_t_7 = __pyx_t_6;
        for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
          __pyx_v_i = __pyx_t_8;

          /* "cython/core/pickle.pyx":208
 *             if p[0] & IS_COMPLETE:
 *                 for i in range(tri_data.num_or_cusps):
 *                     cusps[i].topology = torus_cusp             # <<<<<<<<<<<<<<
 *                     cusps[i].m = <Real>0.0
 *                     cusps[i].l = <Real>0.0
*/
          (__pyx_v_cusps[__pyx_v_i]).topology = torus_cusp;

          /* "cython/core/pickle.pyx":209
 *                 for i in range(tri_data.num_or_cusps):
 *                     cusps[i].topology = torus_cusp
 *                     cusps[i].m = <Real>0.0             # <<<<<<<<<<<<<<
 *                     cusps[i].l = <Real>0.0
 *                 for i in range(tri_data.num_or_cusps, num_cusps):
*/
          (__pyx_v_cusps[__pyx_v_i]).m = ((__pyx_t_6SnapPy_Real)0.0);

          /* "cython/core/pickle.pyx":210
 *                     cusps[i].topology = torus_cusp
 *                     cusps[i].m = <Real>0.0
 *                     cusps[i].l = <Real>0.0             # <<<<<<<<<<<<<<
 *                 for i in range(tri_data.num_or_cusps, num_cusps):
 *                     cusps[i].topology = Klein_cusp
*/
          (__pyx_v_cusps[__pyx_v_i]).l = ((__pyx_t_6SnapPy_Real)0.0);
        }

        /* "cython/core/pickle.pyx":211
 *                     cusps[i].m = <Real>0.0
 *                     cusps[i].l = <Real>0.0
 *                 for i in range(tri_data.num_or_cusps, num_cusps):             # <<<<<<<<<<<<<<
 *                     cusps[i].topology = Klein_cusp
 *                     cusps[i].m = <Real>0.0
*/
        __pyx_t_6 = __pyx_v_num_cusps;
        __pyx_t_7 = __pyx_t_6;
        for (__pyx_t_8 = __pyx_v_tri_data.num_or_cusps; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
          __pyx_v_i = __pyx_t_8;

          /* "cython/core/pickle.pyx":212
 *                     cusps[i].l = <Real>0.0
 *                 for i in range(tri_data.num_or_cusps, num_cusps):
 *                     cusps[i].topology = Klein_cusp             # <<<<<<<<<<<<<<
 *                     cusps[i].m = <Real>0.0
 *                     cusps[i].l = <Real>0.0
*/
          (__pyx_v_cusps[__pyx_v_i]).topology = Klein_cusp;

          /* "cython/core/pickle.pyx":213
 *                 for i in range(tri_data.num_or_cusps, num_cusps):
 *                     cusps[i].topology = Klein_cusp
 *                     cusps[i].m = <Real>0.0             # <<<<<<<<<<<<<<
 *                     cusps[i].l = <Real>0.0
 *             else:
*/
          (__pyx_v_cusps[__pyx_v_i]).m = ((__pyx_t_6SnapPy_Real)0.0);

          /* "cython/core/pickle.pyx":214
 *                     cusps[i].topology = Klein_cusp
 *                     cusps[i].m = <Real>0.0
 *                     cusps[i].l = <Real>0.0             # <<<<<<<<<<<<<<
 *             else:
 *                 for i in range(tri_data.num_or_cusps):
*/
          (__pyx_v_cusps[__pyx_v_i]).l = ((__pyx_t_6SnapPy_Real)0.0);
        }

        /* "cython/core/pickle.pyx":206
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))
 *         if cusps:
 *             if p[0] & IS_COMPLETE:             # <<<<<<<<<<<<<<
 *                 for i in range(tri_data.num_or_cusps):
 *                     cusps[i].topology = torus_cusp
*/
        goto __pyx_L6;
      }

      /* "cython/core/pickle.pyx":216
 *                     cusps[i].l = <Real>0.0
 *             else:
 *                 for i in range(tri_data.num_or_cusps):             # <<<<<<<<<<<<<<
 *                     M, L, n = p[n], p[n+1], n + 2
 *                     cusps[i].topology = torus_cusp
*/
      /*else*/ {
        __pyx_t_6 = __pyx_v_tri_data.num_or_cusps;
        __pyx_t_7 = __pyx_t_6;
        for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
          __pyx_v_i = __pyx_t_8;

          /* "cython/core/pickle.pyx":217
 *             else:
 *                 for i in range(tri_data.num_or_cusps):
 *                     M, L, n = p[n], p[n+1], n + 2             # <<<<<<<<<<<<<<
 *                     cusps[i].topology = torus_cusp
 *                     cusps[i].m = <Real>M
*/
          __pyx_t_9 = (__pyx_v_p[__pyx_v_n]);
          __pyx_t_10 = (__pyx_v_p[(__pyx_v_n + 1)]);
          __pyx_t_11 = (__pyx_v_n + 2);
          __pyx_v_M = __pyx_t_9;
          __pyx_v_L = __pyx_t_10;
          __pyx_v_n = __pyx_t_11;

          /* "cython/core/pickle.pyx":218
 *                 for i in range(tri_data.num_or_cusps):
 *                     M, L, n = p[n], p[n+1], n + 2
 *                     cusps[i].topology = torus_cusp             # <<<<<<<<<<<<<<
 *                     cusps[i].m = <Real>M
 *                     cusps[i].l = <Real>L
*/
          (__pyx_v_cusps[__pyx_v_i]).topology = torus_cusp;

          /* "cython/core/pickle.pyx":219
 *                     M, L, n = p[n], p[n+1], n + 2
 *                     cusps[i].topology = torus_cusp
 *                     cusps[i].m = <Real>M             # <<<<<<<<<<<<<<
 *                     cusps[i].l = <Real>L
 *                 for i in range(tri_data.num_or_cusps, num_cusps):
*/
          (__pyx_v_cusps[__pyx_v_i]).m = ((__pyx_t_6SnapPy_Real)__pyx_v_M);

          /* "cython/core/pickle.pyx":220
 *                     cusps[i].topology = torus_cusp
 *                     cusps[i].m = <Real>M
 *                     cusps[i].l = <Real>L             # <<<<<<<<<<<<<<
 *                 for i in range(tri_data.num_or_cusps, num_cusps):
 *                     M, L, n = p[n], p[n+1], n + 2
*/
          (__pyx_v_cusps[__pyx_v_i]).l = ((__pyx_t_6SnapPy_Real)__pyx_v_L);
        }

        /* "cython/core/pickle.pyx":221
 *                     cusps[i].m = <Real>M
 *                     cusps[i].l = <Real>L
 *                 for i in range(tri_data.num_or_cusps, num_cusps):             # <<<<<<<<<<<<<<
 *                     M, L, n = p[n], p[n+1], n + 2
 *                     cusps[i].topology = Klein_cusp
*/
        __pyx_t_6 = __pyx_v_num_cusps;
        __pyx_t_7 = __pyx_t_6;
        for (__pyx_t_8 = __pyx_v_tri_data.num_or_cusps; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
          __pyx_v_i = __pyx_t_8;

          /* "cython/core/pickle.pyx":222
 *                     cusps[i].l = <Real>L
 *                 for i in range(tri_data.num_or_cusps, num_cusps):
 *                     M, L, n = p[n], p[n+1], n + 2             # <<<<<<<<<<<<<<
 *                     cusps[i].topology = Klein_cusp
 *                     cusps[i].m = <Real>M
*/
          __pyx_t_10 = (__pyx_v_p[__pyx_v_n]);
          __pyx_t_9 = (__pyx_v_p[(__pyx_v_n + 1)]);
          __pyx_t_11 = (__pyx_v_n + 2);
          __pyx_v_M = __pyx_t_10;
          __pyx_v_L = __pyx_t_9;
          __pyx_v_n = __pyx_t_11;

          /* "cython/core/pickle.pyx":223
 *                 for i in range(tri_data.num_or_cusps, num_cusps):
 *                     M, L, n = p[n], p[n+1], n + 2
 *                     cusps[i].topology = Klein_cusp             # <<<<<<<<<<<<<<
 *                     cusps[i].m = <Real>M
 *                     cusps[i].l = <Real>L
*/
          (__pyx_v_cusps[__pyx_v_i]).topology = Klein_cusp;

          /* "cython/core/pickle.pyx":224
 *                     M, L, n = p[n], p[n+1], n + 2
 *                     cusps[i].topology = Klein_cusp
 *                     cusps[i].m = <Real>M             # <<<<<<<<<<<<<<
 *                     cusps[i].l = <Real>L
 *         else:
*/
          (__pyx_v_cusps[__pyx_v_i]).m = ((__pyx_t_6SnapPy_Real)__pyx_v_M);

          /* "cython/core/pickle.pyx":225
 *                     cusps[i].topology = Klein_cusp
 *                     cusps[i].m = <Real>M
 *                     cusps[i].l = <Real>L             # <<<<<<<<<<<<<<
 *         else:
 *             raise RuntimeError('Failed to allocate memory for cusps')
*/
          (__pyx_v_cusps[__pyx_v_i]).l = ((__pyx_t_6SnapPy_Real)__pyx_v_L);
        }
      }
      __pyx_L6:;

      /* "cython/core/pickle.pyx":205
 *         # data.  We free the memory before returning.
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))
 *         if cusps:             # <<<<<<<<<<<<<<
 *             if p[0] & IS_COMPLETE:
 *                 for i in range(tri_data.num_or_cusps):
*/
      goto __pyx_L5;
    }

    /* "cython/core/pickle.pyx":227
 *                     cusps[i].l = <Real>L
 *         else:
 *             raise RuntimeError('Failed to allocate memory for cusps')             # <<<<<<<<<<<<<<
 *     tri_data.cusp_data = cusps
 * 
*/
    /*else*/ {
      __pyx_t_1 = NULL;
      __pyx_t_12 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_memory_for_cu};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 227, __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_ERR(12, 227, __pyx_L1_error)
    }
    __pyx_L5:;

    /* "cython/core/pickle.pyx":201
 * 
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
 *     if num_cusps > 0:             # <<<<<<<<<<<<<<
 *         # Use malloc (not mymalloc) to allocate memory for the cusp
 *         # data.  We free the memory before returning.
*/
  }

  /* "cython/core/pickle.pyx":228
 *         else:
 *             raise RuntimeError('Failed to allocate memory for cusps')
 *     tri_data.cusp_data = cusps             # <<<<<<<<<<<<<<
 * 
 *     # Use malloc (not mymalloc) to allocate memory for the tetrahedra
*/
  __pyx_v_tri_data.cusp_data = __pyx_v_cusps;

  /* "cython/core/pickle.pyx":232
 *     # Use malloc (not mymalloc) to allocate memory for the tetrahedra
 *     # data.  We free the memory before returning.
 *     tets = <c_TetrahedronData*>malloc(num_tets*sizeof(c_TetrahedronData))             # <<<<<<<<<<<<<<
 *     if tets == NULL:
 *         free(cusps)
*/
  __pyx_v_tets = ((TetrahedronData *)malloc((__pyx_v_num_tets * (sizeof(TetrahedronData)))));

  /* "cython/core/pickle.pyx":233
 *     # data.  We free the memory before returning.
 *     tets = <c_TetrahedronData*>malloc(num_tets*sizeof(c_TetrahedronData))
 *     if tets == NULL:             # <<<<<<<<<<<<<<
 *         free(cusps)
 *         raise RuntimeError('Failed to allocate memory for tets.')
*/
  __pyx_t_4 = (__pyx_v_tets == NULL);
  if (unlikely(__pyx_t_4)) {

    /* "cython/core/pickle.pyx":234
 *     tets = <c_TetrahedronData*>malloc(num_tets*sizeof(c_TetrahedronData))
 *     if tets == NULL:
 *         free(cusps)             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Failed to allocate memory for tets.')
 *     for i in range(tri_data.num_tetrahedra):
*/
    free(__pyx_v_cusps);

    /* "cython/core/pickle.pyx":235
 *     if tets == NULL:
 *         free(cusps)
 *         raise RuntimeError('Failed to allocate memory for tets.')             # <<<<<<<<<<<<<<
 *     for i in range(tri_data.num_tetrahedra):
 *         n = unpickle_tetrahedron_data(&tets[i], tri_pickle, n, p[0])
*/
    __pyx_t_1 = NULL;
    __pyx_t_12 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_memory_for_te};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 235, __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_ERR(12, 235, __pyx_L1_error)

    /* "cython/core/pickle.pyx":233
 *     # data.  We free the memory before returning.
 *     tets = <c_TetrahedronData*>malloc(num_tets*sizeof(c_TetrahedronData))
 *     if tets == NULL:             # <<<<<<<<<<<<<<
 *         free(cusps)
 *         raise RuntimeError('Failed to allocate memory for tets.')
*/
  }

  /* "cython/core/pickle.pyx":236
 *         free(cusps)
 *         raise RuntimeError('Failed to allocate memory for tets.')
 *     for i in range(tri_data.num_tetrahedra):             # <<<<<<<<<<<<<<
 *         n = unpickle_tetrahedron_data(&tets[i], tri_pickle, n, p[0])
 *     tri_data.tetrahedron_data = tets
*/
  __pyx_t_6 = __pyx_v_tri_data.num_tetrahedra;
  __pyx_t_7 = __pyx_t_6;
  for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
    __pyx_v_i = __pyx_t_8;

    /* "cython/core/pickle.pyx":237
 *         raise RuntimeError('Failed to allocate memory for tets.')
 *     for i in range(tri_data.num_tetrahedra):
 *         n = unpickle_tetrahedron_data(&tets[i], tri_pickle, n, p[0])             # <<<<<<<<<<<<<<
 *     tri_data.tetrahedron_data = tets
 * 
*/
    __pyx_t_3 = __pyx_v_tri_pickle;
    __Pyx_INCREF(__pyx_t_3);
    if (!(likely(PyBytes_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("bytes", __pyx_t_3))) __PYX_ERR(12, 237, __pyx_L1_error)
    __pyx_t_13 = __pyx_f_6SnapPy_unpickle_tetrahedron_data((&(__pyx_v_tets[__pyx_v_i])), ((PyObject*)__pyx_t_3), __pyx_v_n, (__pyx_v_p[0])); if (unlikely(__pyx_t_13 == ((int)-1) && PyErr_Occurred())) __PYX_ERR(12, 237, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_n = __pyx_t_13;
  }

  /* "cython/core/pickle.pyx":238
 *     for i in range(tri_data.num_tetrahedra):
 *         n = unpickle_tetrahedron_data(&tets[i], tri_pickle, n, p[0])
 *     tri_data.tetrahedron_data = tets             # <<<<<<<<<<<<<<
 * 
 *     # Create a new bytes object py_name containing the triangulation name,
*/
  __pyx_v_tri_data.tetrahedron_data = __pyx_v_tets;

  /* "cython/core/pickle.pyx":241
 * 
 *     # Create a new bytes object py_name containing the triangulation name,
 *     py_name = tri_pickle[n:]             # <<<<<<<<<<<<<<
 *     # then set tri_data.name to point to the internal buffer of py_name.
 *     tri_data.name = py_name
*/
  __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_v_tri_pickle, __pyx_v_n, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_py_name = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/pickle.pyx":243
 *     py_name = tri_pickle[n:]
 *     # then set tri_data.name to point to the internal buffer of py_name.
 *     tri_data.name = py_name             # <<<<<<<<<<<<<<
 *     # Hopefully, Cython takes care of the details.
 * 
*/
  __pyx_t_14 = __Pyx_PyObject_AsWritableString(__pyx_v_py_name); if (unlikely((!__pyx_t_14) && PyErr_Occurred())) __PYX_ERR(12, 243, __pyx_L1_error)
  __pyx_v_tri_data.name = __pyx_t_14;

  /* "cython/core/pickle.pyx":246
 *     # Hopefully, Cython takes care of the details.
 * 
 *     data_to_triangulation(&tri_data, &tri)             # <<<<<<<<<<<<<<
 *     free(tets)
 *     free(cusps)
*/
  data_to_triangulation((&__pyx_v_tri_data), (&__pyx_v_tri)); if (unlikely(PyErr_Occurred())) __PYX_ERR(12, 246, __pyx_L1_error)

  /* "cython/core/pickle.pyx":247
 * 
 *     data_to_triangulation(&tri_data, &tri)
 *     free(tets)             # <<<<<<<<<<<<<<
 *     free(cusps)
 *     return tri
*/
  free(__pyx_v_tets);

  /* "cython/core/pickle.pyx":248
 *     data_to_triangulation(&tri_data, &tri)
 *     free(tets)
 *     free(cusps)             # <<<<<<<<<<<<<<
 *     return tri
 * 
*/
  free(__pyx_v_cusps);

  /* "cython/core/pickle.pyx":249
 *     free(tets)
 *     free(cusps)
 *     return tri             # <<<<<<<<<<<<<<
 * 
 * cdef int unpickle_tetrahedron_data(c_TetrahedronData *data, bytes pickle,
*/
  __pyx_r = __pyx_v_tri;
  goto __pyx_L0;

  /* "cython/core/pickle.pyx":164
 *     return result
 * 
 * cdef c_Triangulation* unpickle_triangulation(bytes pickle) except *:             # <<<<<<<<<<<<<<
 *     """
 *     Unpickle a Triangulation by deserializing a TriangulationData structure
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.unpickle_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_header);
  __Pyx_XDECREF(__pyx_v_tri_pickle);
  __Pyx_XDECREF(__pyx_v_py_name);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/pickle.pyx":251
 *     return tri
 * 
 * cdef int unpickle_tetrahedron_data(c_TetrahedronData *data, bytes pickle,             # <<<<<<<<<<<<<<
 *                                    int start, int flag) except *:
 *     cdef int i, j, v, f
*/

static int __pyx_f_6SnapPy_unpickle_tetrahedron_data(TetrahedronData *__pyx_v_data, PyObject *__pyx_v_pickle, int __pyx_v_start, int __pyx_v_flag) {
  int __pyx_v_i;
  int __pyx_v_j;
  int __pyx_v_v;
  int __pyx_v_f;
  int __pyx_v_n;
  unsigned char __pyx_v_perm;
  unsigned short __pyx_v_mask;
  unsigned short __pyx_v_bit;
  unsigned char *__pyx_v_p;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned char *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("unpickle_tetrahedron_data", 0);

  /* "cython/core/pickle.pyx":254
 *                                    int start, int flag) except *:
 *     cdef int i, j, v, f
 *     cdef int n = start             # <<<<<<<<<<<<<<
 *     cdef unsigned char perm
 *     cdef unsigned short mask, bit
*/
  __pyx_v_n = __pyx_v_start;

  /* "cython/core/pickle.pyx":258
 *     cdef unsigned short mask, bit
 *     # Cython magic to allow using the internal buffer of the bytes object.
 *     cdef unsigned char* p = pickle             # <<<<<<<<<<<<<<
 * 
 *     # Get the neighbors.
*/
  if (unlikely(__pyx_v_pickle == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(12, 258, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableUString(__pyx_v_pickle); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(12, 258, __pyx_L1_error)
  __pyx_v_p = __pyx_t_1;

  /* "cython/core/pickle.pyx":261
 * 
 *     # Get the neighbors.
 *     if flag & IS_HUGE:             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             data.neighbor_index[i] = ((<int>p[n]) << 24 | (<int>p[n+1]) << 16 |
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(__pyx_v_flag); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_And(__pyx_t_2, __pyx_v_6SnapPy_IS_HUGE); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(12, 261, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_4) {

    /* "cython/core/pickle.pyx":262
 *     # Get the neighbors.
 *     if flag & IS_HUGE:
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             data.neighbor_index[i] = ((<int>p[n]) << 24 | (<int>p[n+1]) << 16 |
 *                                       (<int>p[n+2]) << 8 | (<int>p[n+3]))
*/
    for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cython/core/pickle.pyx":263
 *     if flag & IS_HUGE:
 *         for i in range(4):
 *             data.neighbor_index[i] = ((<int>p[n]) << 24 | (<int>p[n+1]) << 16 |             # <<<<<<<<<<<<<<
 *                                       (<int>p[n+2]) << 8 | (<int>p[n+3]))
 *             n += 4
*/
      (__pyx_v_data->neighbor_index[__pyx_v_i]) = ((((((int)(__pyx_v_p[__pyx_v_n])) << 24) | (((int)(__pyx_v_p[(__pyx_v_n + 1)])) << 16)) | (((int)(__pyx_v_p[(__pyx_v_n + 2)])) << 8)) | ((int)(__pyx_v_p[(__pyx_v_n + 3)])));

      /* "cython/core/pickle.pyx":265
 *             data.neighbor_index[i] = ((<int>p[n]) << 24 | (<int>p[n+1]) << 16 |
 *                                       (<int>p[n+2]) << 8 | (<int>p[n+3]))
 *             n += 4             # <<<<<<<<<<<<<<
 *     elif flag & IS_BIG:
 *         for i in range(4):
*/
      __pyx_v_n = (__pyx_v_n + 4);
    }

    /* "cython/core/pickle.pyx":261
 * 
 *     # Get the neighbors.
 *     if flag & IS_HUGE:             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             data.neighbor_index[i] = ((<int>p[n]) << 24 | (<int>p[n+1]) << 16 |
*/
    goto __pyx_L3;
  }

  /* "cython/core/pickle.pyx":266
 *                                       (<int>p[n+2]) << 8 | (<int>p[n+3]))
 *             n += 4
 *     elif flag & IS_BIG:             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             data.neighbor_index[i] = (<int>p[n] << 8) | (<int>p[n+1])
*/
  __pyx_t_3 = __Pyx_PyLong_From_int(__pyx_v_flag); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_And(__pyx_t_3, __pyx_v_6SnapPy_IS_BIG); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(12, 266, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_4) {

    /* "cython/core/pickle.pyx":267
 *             n += 4
 *     elif flag & IS_BIG:
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             data.neighbor_index[i] = (<int>p[n] << 8) | (<int>p[n+1])
 *             n += 2
*/
    for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cython/core/pickle.pyx":268
 *     elif flag & IS_BIG:
 *         for i in range(4):
 *             data.neighbor_index[i] = (<int>p[n] << 8) | (<int>p[n+1])             # <<<<<<<<<<<<<<
 *             n += 2
 *     else:
*/
      (__pyx_v_data->neighbor_index[__pyx_v_i]) = ((((int)(__pyx_v_p[__pyx_v_n])) << 8) | ((int)(__pyx_v_p[(__pyx_v_n + 1)])));

      /* "cython/core/pickle.pyx":269
 *         for i in range(4):
 *             data.neighbor_index[i] = (<int>p[n] << 8) | (<int>p[n+1])
 *             n += 2             # <<<<<<<<<<<<<<
 *     else:
 *         for i in range(4):
*/
      __pyx_v_n = (__pyx_v_n + 2);
    }

    /* "cython/core/pickle.pyx":266
 *                                       (<int>p[n+2]) << 8 | (<int>p[n+3]))
 *             n += 4
 *     elif flag & IS_BIG:             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             data.neighbor_index[i] = (<int>p[n] << 8) | (<int>p[n+1])
*/
    goto __pyx_L3;
  }

  /* "cython/core/pickle.pyx":271
 *             n += 2
 *     else:
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             data.neighbor_index[i] = <int>p[n]
 *             n += 1
*/
  /*else*/ {
    for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "cython/core/pickle.pyx":272
 *     else:
 *         for i in range(4):
 *             data.neighbor_index[i] = <int>p[n]             # <<<<<<<<<<<<<<
 *             n += 1
 * 
*/
      (__pyx_v_data->neighbor_index[__pyx_v_i]) = ((int)(__pyx_v_p[__pyx_v_n]));

      /* "cython/core/pickle.pyx":273
 *         for i in range(4):
 *             data.neighbor_index[i] = <int>p[n]
 *             n += 1             # <<<<<<<<<<<<<<
 * 
 *     # Get the gluing permutations.
*/
      __pyx_v_n = (__pyx_v_n + 1);
    }
  }
  __pyx_L3:;

  /* "cython/core/pickle.pyx":276
 * 
 *     # Get the gluing permutations.
 *     for i in range(4):             # <<<<<<<<<<<<<<
 *         perm = <unsigned char>p[n]
 *         for j in range(4):
*/
  for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "cython/core/pickle.pyx":277
 *     # Get the gluing permutations.
 *     for i in range(4):
 *         perm = <unsigned char>p[n]             # <<<<<<<<<<<<<<
 *         for j in range(4):
 *             data.gluing[i][j] = <int>(perm & 0x3)
*/
    __pyx_v_perm = ((unsigned char)(__pyx_v_p[__pyx_v_n]));

    /* "cython/core/pickle.pyx":278
 *     for i in range(4):
 *         perm = <unsigned char>p[n]
 *         for j in range(4):             # <<<<<<<<<<<<<<
 *             data.gluing[i][j] = <int>(perm & 0x3)
 *             perm = perm >> 2
*/
    for (__pyx_t_6 = 0; __pyx_t_6 < 4; __pyx_t_6+=1) {
      __pyx_v_j = __pyx_t_6;

      /* "cython/core/pickle.pyx":279
 *         perm = <unsigned char>p[n]
 *         for j in range(4):
 *             data.gluing[i][j] = <int>(perm & 0x3)             # <<<<<<<<<<<<<<
 *             perm = perm >> 2
 *         n += 1
*/
      ((__pyx_v_data->gluing[__pyx_v_i])[__pyx_v_j]) = ((int)(__pyx_v_perm & 0x3));

      /* "cython/core/pickle.pyx":280
 *         for j in range(4):
 *             data.gluing[i][j] = <int>(perm & 0x3)
 *             perm = perm >> 2             # <<<<<<<<<<<<<<
 *         n += 1
 * 
*/
      __pyx_v_perm = (__pyx_v_perm >> 2);
    }

    /* "cython/core/pickle.pyx":281
 *             data.gluing[i][j] = <int>(perm & 0x3)
 *             perm = perm >> 2
 *         n += 1             # <<<<<<<<<<<<<<
 * 
 *     # Get the cusp indices.
*/
    __pyx_v_n = (__pyx_v_n + 1);
  }

  /* "cython/core/pickle.pyx":284
 * 
 *     # Get the cusp indices.
 *     for i in range(4):             # <<<<<<<<<<<<<<
 *         data.cusp_index[i] = <int>p[n]
 *         n += 1
*/
  for (__pyx_t_5 = 0; __pyx_t_5 < 4; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "cython/core/pickle.pyx":285
 *     # Get the cusp indices.
 *     for i in range(4):
 *         data.cusp_index[i] = <int>p[n]             # <<<<<<<<<<<<<<
 *         n += 1
 * 
*/
    (__pyx_v_data->cusp_index[__pyx_v_i]) = ((int)(__pyx_v_p[__pyx_v_n]));

    /* "cython/core/pickle.pyx":286
 *     for i in range(4):
 *         data.cusp_index[i] = <int>p[n]
 *         n += 1             # <<<<<<<<<<<<<<
 * 
 *     # Get the curve data
*/
    __pyx_v_n = (__pyx_v_n + 1);
  }

  /* "cython/core/pickle.pyx":289
 * 
 *     # Get the curve data
 *     for i in range(2):             # <<<<<<<<<<<<<<
 *         for j in range(2):
 *             bit = 1
*/
  for (__pyx_t_5 = 0; __pyx_t_5 < 2; __pyx_t_5+=1) {
    __pyx_v_i = __pyx_t_5;

    /* "cython/core/pickle.pyx":290
 *     # Get the curve data
 *     for i in range(2):
 *         for j in range(2):             # <<<<<<<<<<<<<<
 *             bit = 1
 *             mask = <unsigned char>p[n] << 8 | <unsigned char>p[n+1]
*/
    for (__pyx_t_6 = 0; __pyx_t_6 < 2; __pyx_t_6+=1) {
      __pyx_v_j = __pyx_t_6;

      /* "cython/core/pickle.pyx":291
 *     for i in range(2):
 *         for j in range(2):
 *             bit = 1             # <<<<<<<<<<<<<<
 *             mask = <unsigned char>p[n] << 8 | <unsigned char>p[n+1]
 *             n += 2
*/
      __pyx_v_bit = 1;

      /* "cython/core/pickle.pyx":292
 *         for j in range(2):
 *             bit = 1
 *             mask = <unsigned char>p[n] << 8 | <unsigned char>p[n+1]             # <<<<<<<<<<<<<<
 *             n += 2
 *             for v in range(4):
*/
      __pyx_v_mask = ((((unsigned char)(__pyx_v_p[__pyx_v_n])) << 8) | ((unsigned char)(__pyx_v_p[(__pyx_v_n + 1)])));

      /* "cython/core/pickle.pyx":293
 *             bit = 1
 *             mask = <unsigned char>p[n] << 8 | <unsigned char>p[n+1]
 *             n += 2             # <<<<<<<<<<<<<<
 *             for v in range(4):
 *                 for f in range(4):
*/
      __pyx_v_n = (__pyx_v_n + 2);

      /* "cython/core/pickle.pyx":294
 *             mask = <unsigned char>p[n] << 8 | <unsigned char>p[n+1]
 *             n += 2
 *             for v in range(4):             # <<<<<<<<<<<<<<
 *                 for f in range(4):
 *                     if mask & bit:
*/
      for (__pyx_t_7 = 0; __pyx_t_7 < 4; __pyx_t_7+=1) {
        __pyx_v_v = __pyx_t_7;

        /* "cython/core/pickle.pyx":295
 *             n += 2
 *             for v in range(4):
 *                 for f in range(4):             # <<<<<<<<<<<<<<
 *                     if mask & bit:
 *                         # Curve weights are signed.  The effect of
*/
        for (__pyx_t_8 = 0; __pyx_t_8 < 4; __pyx_t_8+=1) {
          __pyx_v_f = __pyx_t_8;

          /* "cython/core/pickle.pyx":296
 *             for v in range(4):
 *                 for f in range(4):
 *                     if mask & bit:             # <<<<<<<<<<<<<<
 *                         # Curve weights are signed.  The effect of
 *                         # casting an unsigned char to a signed char is
*/
          __pyx_t_4 = ((__pyx_v_mask & __pyx_v_bit) != 0);
          if (__pyx_t_4) {

            /* "cython/core/pickle.pyx":302
 *                         # will break if any bits are changed by the
 *                         # cast.
 *                         data.curve[i][j][v][f] = <signed char>p[n]             # <<<<<<<<<<<<<<
 *                         n += 1
 *                     else:
*/
            ((((__pyx_v_data->curve[__pyx_v_i])[__pyx_v_j])[__pyx_v_v])[__pyx_v_f]) = ((signed char)(__pyx_v_p[__pyx_v_n]));

            /* "cython/core/pickle.pyx":303
 *                         # cast.
 *                         data.curve[i][j][v][f] = <signed char>p[n]
 *                         n += 1             # <<<<<<<<<<<<<<
 *                     else:
 *                         data.curve[i][j][v][f] = 0
*/
            __pyx_v_n = (__pyx_v_n + 1);

            /* "cython/core/pickle.pyx":296
 *             for v in range(4):
 *                 for f in range(4):
 *                     if mask & bit:             # <<<<<<<<<<<<<<
 *                         # Curve weights are signed.  The effect of
 *                         # casting an unsigned char to a signed char is
*/
            goto __pyx_L24;
          }

          /* "cython/core/pickle.pyx":305
 *                         n += 1
 *                     else:
 *                         data.curve[i][j][v][f] = 0             # <<<<<<<<<<<<<<
 *                     bit = bit << 1
 * 
*/
          /*else*/ {
            ((((__pyx_v_data->curve[__pyx_v_i])[__pyx_v_j])[__pyx_v_v])[__pyx_v_f]) = 0;
          }
          __pyx_L24:;

          /* "cython/core/pickle.pyx":306
 *                     else:
 *                         data.curve[i][j][v][f] = 0
 *                     bit = bit << 1             # <<<<<<<<<<<<<<
 * 
 *     # Return the position of the next char.
*/
          __pyx_v_bit = (__pyx_v_bit << 1);
        }
      }
    }
  }

  /* "cython/core/pickle.pyx":309
 * 
 *     # Return the position of the next char.
 *     return n             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = __pyx_v_n;
  goto __pyx_L0;

  /* "cython/core/pickle.pyx":251
 *     return tri
 * 
 * cdef int unpickle_tetrahedron_data(c_TetrahedronData *data, bytes pickle,             # <<<<<<<<<<<<<<
 *                                    int start, int flag) except *:
 *     cdef int i, j, v, f
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.unpickle_tetrahedron_data", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/pickle.pyx":312
 * 
 * 
 * cdef c_Triangulation* listlike_to_triangulation(listlike,             # <<<<<<<<<<<<<<
 *                                                 num_or_cusps=0,
 *                                                 num_nonor_cusps=0,
*/

static Triangulation *__pyx_f_6SnapPy_listlike_to_triangulation(PyObject *__pyx_v_listlike, struct __pyx_opt_args_6SnapPy_listlike_to_triangulation *__pyx_optional_args) {
  PyObject *__pyx_v_num_or_cusps = ((PyObject *)__pyx_mstate_global->__pyx_int_0);
  PyObject *__pyx_v_num_nonor_cusps = ((PyObject *)__pyx_mstate_global->__pyx_int_0);

  /* "cython/core/pickle.pyx":315
 *                                                 num_or_cusps=0,
 *                                                 num_nonor_cusps=0,
 *                                                 cusp_indices=None,             # <<<<<<<<<<<<<<
 *                                                 peripheral_curves=None) except *:
 *     cdef c_TetrahedronData* tets = NULL
*/
  PyObject *__pyx_v_cusp_indices = ((PyObject *)Py_None);

  /* "cython/core/pickle.pyx":316
 *                                                 num_nonor_cusps=0,
 *                                                 cusp_indices=None,
 *                                                 peripheral_curves=None) except *:             # <<<<<<<<<<<<<<
 *     cdef c_TetrahedronData* tets = NULL
 *     cdef c_CuspData* cusps = NULL
*/
  PyObject *__pyx_v_peripheral_curves = ((PyObject *)Py_None);
  TetrahedronData *__pyx_v_tets;
  CuspData *__pyx_v_cusps;
  Triangulation *__pyx_v_tri;
  TriangulationData __pyx_v_tri_data;
  int __pyx_v_i;
  int __pyx_v_j;
  int __pyx_v_t;
  int __pyx_v_a;
  int __pyx_v_b;
  int __pyx_v_v;
  int __pyx_v_f;
  int __pyx_v_num_tets;
  int __pyx_v_num_cusps;
  PyObject *__pyx_v_first0 = NULL;
  PyObject *__pyx_v_first1 = NULL;
  PyObject *__pyx_v_py_name = NULL;
  PyObject *__pyx_v_neighbors = NULL;
  PyObject *__pyx_v_gluings = NULL;
  PyObject *__pyx_9genexpr93__pyx_v_x = NULL;
  Triangulation *__pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  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)(PyObject *);
  int __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_t_14;
  PyObject *(*__pyx_t_15)(PyObject *);
  Py_ssize_t __pyx_t_16;
  char *__pyx_t_17;
  int __pyx_t_18;
  int __pyx_t_19;
  long __pyx_t_20;
  int __pyx_t_21;
  int __pyx_t_22;
  int __pyx_t_23;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("listlike_to_triangulation", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_num_or_cusps = __pyx_optional_args->num_or_cusps;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_num_nonor_cusps = __pyx_optional_args->num_nonor_cusps;
        if (__pyx_optional_args->__pyx_n > 2) {
          __pyx_v_cusp_indices = __pyx_optional_args->cusp_indices;
          if (__pyx_optional_args->__pyx_n > 3) {
            __pyx_v_peripheral_curves = __pyx_optional_args->peripheral_curves;
          }
        }
      }
    }
  }
  __Pyx_INCREF(__pyx_v_peripheral_curves);

  /* "cython/core/pickle.pyx":317
 *                                                 cusp_indices=None,
 *                                                 peripheral_curves=None) except *:
 *     cdef c_TetrahedronData* tets = NULL             # <<<<<<<<<<<<<<
 *     cdef c_CuspData* cusps = NULL
 *     cdef c_Triangulation *tri
*/
  __pyx_v_tets = NULL;

  /* "cython/core/pickle.pyx":318
 *                                                 peripheral_curves=None) except *:
 *     cdef c_TetrahedronData* tets = NULL
 *     cdef c_CuspData* cusps = NULL             # <<<<<<<<<<<<<<
 *     cdef c_Triangulation *tri
 *     cdef TriangulationData tri_data
*/
  __pyx_v_cusps = NULL;

  /* "cython/core/pickle.pyx":323
 *     cdef int i, j, t, a, b, v, f, num_tets, num_cusps
 * 
 *     num_tets = len(listlike)             # <<<<<<<<<<<<<<
 *     if num_tets == 0:
 *         raise ValueError('No tetrahedra data provided')
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_listlike); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(12, 323, __pyx_L1_error)
  __pyx_v_num_tets = __pyx_t_1;

  /* "cython/core/pickle.pyx":324
 * 
 *     num_tets = len(listlike)
 *     if num_tets == 0:             # <<<<<<<<<<<<<<
 *         raise ValueError('No tetrahedra data provided')
 * 
*/
  __pyx_t_2 = (__pyx_v_num_tets == 0);
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/pickle.pyx":325
 *     num_tets = len(listlike)
 *     if num_tets == 0:
 *         raise ValueError('No tetrahedra data provided')             # <<<<<<<<<<<<<<
 * 
 *     try:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_No_tetrahedra_data_provided};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 325, __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_ERR(12, 325, __pyx_L1_error)

    /* "cython/core/pickle.pyx":324
 * 
 *     num_tets = len(listlike)
 *     if num_tets == 0:             # <<<<<<<<<<<<<<
 *         raise ValueError('No tetrahedra data provided')
 * 
*/
  }

  /* "cython/core/pickle.pyx":327
 *         raise ValueError('No tetrahedra data provided')
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         first0, first1 = listlike[0]
 *     except ValueError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cython/core/pickle.pyx":328
 * 
 *     try:
 *         first0, first1 = listlike[0]             # <<<<<<<<<<<<<<
 *     except ValueError:
 *         raise ValueError('Tetrahedra data appears invalid')
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_listlike, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 328, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_3);
      if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
        PyObject* sequence = __pyx_t_3;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(12, 328, __pyx_L4_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_9);
        } else {
          __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 328, __pyx_L4_error)
          __Pyx_XGOTREF(__pyx_t_4);
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_9)) __PYX_ERR(12, 328, __pyx_L4_error)
          __Pyx_XGOTREF(__pyx_t_9);
        }
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 328, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(12, 328, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_9);
        #endif
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_10 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 328, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
        index = 0; __pyx_t_4 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_4)) goto __pyx_L10_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_4);
        index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L10_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < (0)) __PYX_ERR(12, 328, __pyx_L4_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L11_unpacking_done;
        __pyx_L10_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(12, 328, __pyx_L4_error)
        __pyx_L11_unpacking_done:;
      }
      __pyx_v_first0 = __pyx_t_4;
      __pyx_t_4 = 0;
      __pyx_v_first1 = __pyx_t_9;
      __pyx_t_9 = 0;

      /* "cython/core/pickle.pyx":327
 *         raise ValueError('No tetrahedra data provided')
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         first0, first1 = listlike[0]
 *     except ValueError:
*/
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "cython/core/pickle.pyx":329
 *     try:
 *         first0, first1 = listlike[0]
 *     except ValueError:             # <<<<<<<<<<<<<<
 *         raise ValueError('Tetrahedra data appears invalid')
 *     if len(first0) != 4 or [len(x) for x in first1] != [4, 4, 4, 4]:
*/
    __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
    if (__pyx_t_12) {
      __Pyx_AddTraceback("SnapPy.listlike_to_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_9, &__pyx_t_4) < 0) __PYX_ERR(12, 329, __pyx_L6_except_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_4);

      /* "cython/core/pickle.pyx":330
 *         first0, first1 = listlike[0]
 *     except ValueError:
 *         raise ValueError('Tetrahedra data appears invalid')             # <<<<<<<<<<<<<<
 *     if len(first0) != 4 or [len(x) for x in first1] != [4, 4, 4, 4]:
 *         raise ValueError('Tetrahedra data appears invalid')
*/
      __pyx_t_13 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_Tetrahedra_data_appears_invalid};
        __pyx_t_10 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
        if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 330, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_10);
      }
      __Pyx_Raise(__pyx_t_10, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __PYX_ERR(12, 330, __pyx_L6_except_error)
    }
    goto __pyx_L6_except_error;

    /* "cython/core/pickle.pyx":327
 *         raise ValueError('No tetrahedra data provided')
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         first0, first1 = listlike[0]
 *     except ValueError:
*/
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L9_try_end:;
  }

  /* "cython/core/pickle.pyx":331
 *     except ValueError:
 *         raise ValueError('Tetrahedra data appears invalid')
 *     if len(first0) != 4 or [len(x) for x in first1] != [4, 4, 4, 4]:             # <<<<<<<<<<<<<<
 *         raise ValueError('Tetrahedra data appears invalid')
 * 
*/
  __pyx_t_1 = PyObject_Length(__pyx_v_first0); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(12, 331, __pyx_L1_error)
  __pyx_t_14 = (__pyx_t_1 != 4);
  if (!__pyx_t_14) {
  } else {
    __pyx_t_2 = __pyx_t_14;
    goto __pyx_L15_bool_binop_done;
  }
  { /* enter inner scope */
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 331, __pyx_L19_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (likely(PyList_CheckExact(__pyx_v_first1)) || PyTuple_CheckExact(__pyx_v_first1)) {
      __pyx_t_9 = __pyx_v_first1; __Pyx_INCREF(__pyx_t_9);
      __pyx_t_1 = 0;
      __pyx_t_15 = NULL;
    } else {
      __pyx_t_1 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_v_first1); if (unlikely(!__pyx_t_9)) __PYX_ERR(12, 331, __pyx_L19_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_15 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_15)) __PYX_ERR(12, 331, __pyx_L19_error)
    }
    for (;;) {
      if (likely(!__pyx_t_15)) {
        if (likely(PyList_CheckExact(__pyx_t_9))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(12, 331, __pyx_L19_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_1;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_9);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(12, 331, __pyx_L19_error)
            #endif
            if (__pyx_t_1 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_1));
          #else
          __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_9, __pyx_t_1);
          #endif
          ++__pyx_t_1;
        }
        if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 331, __pyx_L19_error)
      } else {
        __pyx_t_3 = __pyx_t_15(__pyx_t_9);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(12, 331, __pyx_L19_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_9genexpr93__pyx_v_x, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_16 = PyObject_Length(__pyx_9genexpr93__pyx_v_x); if (unlikely(__pyx_t_16 == ((Py_ssize_t)-1))) __PYX_ERR(12, 331, __pyx_L19_error)
      __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_16); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 331, __pyx_L19_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_t_3))) __PYX_ERR(12, 331, __pyx_L19_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_9genexpr93__pyx_v_x); __pyx_9genexpr93__pyx_v_x = 0;
    goto __pyx_L23_exit_scope;
    __pyx_L19_error:;
    __Pyx_XDECREF(__pyx_9genexpr93__pyx_v_x); __pyx_9genexpr93__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L23_exit_scope:;
  } /* exit inner scope */
  __pyx_t_9 = PyList_New(4); if (unlikely(!__pyx_t_9)) __PYX_ERR(12, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_4);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_4);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_int_4) != (0)) __PYX_ERR(12, 331, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_4);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_4);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 1, __pyx_mstate_global->__pyx_int_4) != (0)) __PYX_ERR(12, 331, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_4);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_4);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 2, __pyx_mstate_global->__pyx_int_4) != (0)) __PYX_ERR(12, 331, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_4);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_4);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_9, 3, __pyx_mstate_global->__pyx_int_4) != (0)) __PYX_ERR(12, 331, __pyx_L1_error);
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_9, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(12, 331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __pyx_t_14;
  __pyx_L15_bool_binop_done:;
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/pickle.pyx":332
 *         raise ValueError('Tetrahedra data appears invalid')
 *     if len(first0) != 4 or [len(x) for x in first1] != [4, 4, 4, 4]:
 *         raise ValueError('Tetrahedra data appears invalid')             # <<<<<<<<<<<<<<
 * 
 *     py_name = b'from_data'
*/
    __pyx_t_9 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Tetrahedra_data_appears_invalid};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 332, __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_ERR(12, 332, __pyx_L1_error)

    /* "cython/core/pickle.pyx":331
 *     except ValueError:
 *         raise ValueError('Tetrahedra data appears invalid')
 *     if len(first0) != 4 or [len(x) for x in first1] != [4, 4, 4, 4]:             # <<<<<<<<<<<<<<
 *         raise ValueError('Tetrahedra data appears invalid')
 * 
*/
  }

  /* "cython/core/pickle.pyx":334
 *         raise ValueError('Tetrahedra data appears invalid')
 * 
 *     py_name = b'from_data'             # <<<<<<<<<<<<<<
 *     tri_data.name = py_name
 *     tri_data.solution_type = not_attempted
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_b_from_data);
  __pyx_v_py_name = __pyx_mstate_global->__pyx_n_b_from_data;

  /* "cython/core/pickle.pyx":335
 * 
 *     py_name = b'from_data'
 *     tri_data.name = py_name             # <<<<<<<<<<<<<<
 *     tri_data.solution_type = not_attempted
 *     tri_data.volume = <Real> 0.0
*/
  __pyx_t_17 = __Pyx_PyBytes_AsWritableString(__pyx_v_py_name); if (unlikely((!__pyx_t_17) && PyErr_Occurred())) __PYX_ERR(12, 335, __pyx_L1_error)
  __pyx_v_tri_data.name = __pyx_t_17;

  /* "cython/core/pickle.pyx":336
 *     py_name = b'from_data'
 *     tri_data.name = py_name
 *     tri_data.solution_type = not_attempted             # <<<<<<<<<<<<<<
 *     tri_data.volume = <Real> 0.0
 *     tri_data.orientability = unknown_orientability
*/
  __pyx_v_tri_data.solution_type = not_attempted;

  /* "cython/core/pickle.pyx":337
 *     tri_data.name = py_name
 *     tri_data.solution_type = not_attempted
 *     tri_data.volume = <Real> 0.0             # <<<<<<<<<<<<<<
 *     tri_data.orientability = unknown_orientability
 *     tri_data.num_tetrahedra = num_tets
*/
  __pyx_v_tri_data.volume = ((__pyx_t_6SnapPy_Real)0.0);

  /* "cython/core/pickle.pyx":338
 *     tri_data.solution_type = not_attempted
 *     tri_data.volume = <Real> 0.0
 *     tri_data.orientability = unknown_orientability             # <<<<<<<<<<<<<<
 *     tri_data.num_tetrahedra = num_tets
 *     tri_data.num_or_cusps = num_or_cusps
*/
  __pyx_v_tri_data.orientability = unknown_orientability;

  /* "cython/core/pickle.pyx":339
 *     tri_data.volume = <Real> 0.0
 *     tri_data.orientability = unknown_orientability
 *     tri_data.num_tetrahedra = num_tets             # <<<<<<<<<<<<<<
 *     tri_data.num_or_cusps = num_or_cusps
 *     tri_data.num_nonor_cusps = num_nonor_cusps
*/
  __pyx_v_tri_data.num_tetrahedra = __pyx_v_num_tets;

  /* "cython/core/pickle.pyx":340
 *     tri_data.orientability = unknown_orientability
 *     tri_data.num_tetrahedra = num_tets
 *     tri_data.num_or_cusps = num_or_cusps             # <<<<<<<<<<<<<<
 *     tri_data.num_nonor_cusps = num_nonor_cusps
 *     tri_data.cusp_data = NULL
*/
  __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_v_num_or_cusps); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 340, __pyx_L1_error)
  __pyx_v_tri_data.num_or_cusps = __pyx_t_12;

  /* "cython/core/pickle.pyx":341
 *     tri_data.num_tetrahedra = num_tets
 *     tri_data.num_or_cusps = num_or_cusps
 *     tri_data.num_nonor_cusps = num_nonor_cusps             # <<<<<<<<<<<<<<
 *     tri_data.cusp_data = NULL
 *     tri_data.CS_value_is_known = 0
*/
  __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_v_num_nonor_cusps); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 341, __pyx_L1_error)
  __pyx_v_tri_data.num_nonor_cusps = __pyx_t_12;

  /* "cython/core/pickle.pyx":342
 *     tri_data.num_or_cusps = num_or_cusps
 *     tri_data.num_nonor_cusps = num_nonor_cusps
 *     tri_data.cusp_data = NULL             # <<<<<<<<<<<<<<
 *     tri_data.CS_value_is_known = 0
 *     tri_data.CS_value = <Real>0.0
*/
  __pyx_v_tri_data.cusp_data = NULL;

  /* "cython/core/pickle.pyx":343
 *     tri_data.num_nonor_cusps = num_nonor_cusps
 *     tri_data.cusp_data = NULL
 *     tri_data.CS_value_is_known = 0             # <<<<<<<<<<<<<<
 *     tri_data.CS_value = <Real>0.0
 * 
*/
  __pyx_v_tri_data.CS_value_is_known = 0;

  /* "cython/core/pickle.pyx":344
 *     tri_data.cusp_data = NULL
 *     tri_data.CS_value_is_known = 0
 *     tri_data.CS_value = <Real>0.0             # <<<<<<<<<<<<<<
 * 
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
*/
  __pyx_v_tri_data.CS_value = ((__pyx_t_6SnapPy_Real)0.0);

  /* "cython/core/pickle.pyx":346
 *     tri_data.CS_value = <Real>0.0
 * 
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps             # <<<<<<<<<<<<<<
 *     if num_cusps > 0:
 *         # Use malloc (not mymalloc) to allocate memory for the cusp
*/
  __pyx_v_num_cusps = (__pyx_v_tri_data.num_or_cusps + __pyx_v_tri_data.num_nonor_cusps);

  /* "cython/core/pickle.pyx":347
 * 
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
 *     if num_cusps > 0:             # <<<<<<<<<<<<<<
 *         # Use malloc (not mymalloc) to allocate memory for the cusp
 *         # data.  We free the memory before returning.
*/
  __pyx_t_2 = (__pyx_v_num_cusps > 0);
  if (__pyx_t_2) {

    /* "cython/core/pickle.pyx":350
 *         # Use malloc (not mymalloc) to allocate memory for the cusp
 *         # data.  We free the memory before returning.
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))             # <<<<<<<<<<<<<<
 *         if cusps:
 *             for i in range(tri_data.num_or_cusps):
*/
    __pyx_v_cusps = ((CuspData *)malloc((__pyx_v_num_cusps * (sizeof(CuspData)))));

    /* "cython/core/pickle.pyx":351
 *         # data.  We free the memory before returning.
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))
 *         if cusps:             # <<<<<<<<<<<<<<
 *             for i in range(tri_data.num_or_cusps):
 *                 cusps[i].topology = torus_cusp
*/
    __pyx_t_2 = (__pyx_v_cusps != 0);
    if (likely(__pyx_t_2)) {

      /* "cython/core/pickle.pyx":352
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))
 *         if cusps:
 *             for i in range(tri_data.num_or_cusps):             # <<<<<<<<<<<<<<
 *                 cusps[i].topology = torus_cusp
 *                 cusps[i].m = <Real>0.0
*/
      __pyx_t_12 = __pyx_v_tri_data.num_or_cusps;
      __pyx_t_18 = __pyx_t_12;
      for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) {
        __pyx_v_i = __pyx_t_19;

        /* "cython/core/pickle.pyx":353
 *         if cusps:
 *             for i in range(tri_data.num_or_cusps):
 *                 cusps[i].topology = torus_cusp             # <<<<<<<<<<<<<<
 *                 cusps[i].m = <Real>0.0
 *                 cusps[i].l = <Real>0.0
*/
        (__pyx_v_cusps[__pyx_v_i]).topology = torus_cusp;

        /* "cython/core/pickle.pyx":354
 *             for i in range(tri_data.num_or_cusps):
 *                 cusps[i].topology = torus_cusp
 *                 cusps[i].m = <Real>0.0             # <<<<<<<<<<<<<<
 *                 cusps[i].l = <Real>0.0
 *             for i in range(tri_data.num_or_cusps, num_cusps):
*/
        (__pyx_v_cusps[__pyx_v_i]).m = ((__pyx_t_6SnapPy_Real)0.0);

        /* "cython/core/pickle.pyx":355
 *                 cusps[i].topology = torus_cusp
 *                 cusps[i].m = <Real>0.0
 *                 cusps[i].l = <Real>0.0             # <<<<<<<<<<<<<<
 *             for i in range(tri_data.num_or_cusps, num_cusps):
 *                 cusps[i].topology = Klein_cusp
*/
        (__pyx_v_cusps[__pyx_v_i]).l = ((__pyx_t_6SnapPy_Real)0.0);
      }

      /* "cython/core/pickle.pyx":356
 *                 cusps[i].m = <Real>0.0
 *                 cusps[i].l = <Real>0.0
 *             for i in range(tri_data.num_or_cusps, num_cusps):             # <<<<<<<<<<<<<<
 *                 cusps[i].topology = Klein_cusp
 *                 cusps[i].m = <Real>0.0
*/
      __pyx_t_12 = __pyx_v_num_cusps;
      __pyx_t_18 = __pyx_t_12;
      for (__pyx_t_19 = __pyx_v_tri_data.num_or_cusps; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) {
        __pyx_v_i = __pyx_t_19;

        /* "cython/core/pickle.pyx":357
 *                 cusps[i].l = <Real>0.0
 *             for i in range(tri_data.num_or_cusps, num_cusps):
 *                 cusps[i].topology = Klein_cusp             # <<<<<<<<<<<<<<
 *                 cusps[i].m = <Real>0.0
 *                 cusps[i].l = <Real>0.0
*/
        (__pyx_v_cusps[__pyx_v_i]).topology = Klein_cusp;

        /* "cython/core/pickle.pyx":358
 *             for i in range(tri_data.num_or_cusps, num_cusps):
 *                 cusps[i].topology = Klein_cusp
 *                 cusps[i].m = <Real>0.0             # <<<<<<<<<<<<<<
 *                 cusps[i].l = <Real>0.0
 *         else:
*/
        (__pyx_v_cusps[__pyx_v_i]).m = ((__pyx_t_6SnapPy_Real)0.0);

        /* "cython/core/pickle.pyx":359
 *                 cusps[i].topology = Klein_cusp
 *                 cusps[i].m = <Real>0.0
 *                 cusps[i].l = <Real>0.0             # <<<<<<<<<<<<<<
 *         else:
 *             raise RuntimeError('Failed to allocate memory for cusps')
*/
        (__pyx_v_cusps[__pyx_v_i]).l = ((__pyx_t_6SnapPy_Real)0.0);
      }

      /* "cython/core/pickle.pyx":351
 *         # data.  We free the memory before returning.
 *         cusps = <c_CuspData*>malloc(num_cusps*sizeof(c_CuspData))
 *         if cusps:             # <<<<<<<<<<<<<<
 *             for i in range(tri_data.num_or_cusps):
 *                 cusps[i].topology = torus_cusp
*/
      goto __pyx_L25;
    }

    /* "cython/core/pickle.pyx":361
 *                 cusps[i].l = <Real>0.0
 *         else:
 *             raise RuntimeError('Failed to allocate memory for cusps')             # <<<<<<<<<<<<<<
 *     tri_data.cusp_data = cusps
 * 
*/
    /*else*/ {
      __pyx_t_9 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_memory_for_cu};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 361, __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_ERR(12, 361, __pyx_L1_error)
    }
    __pyx_L25:;

    /* "cython/core/pickle.pyx":347
 * 
 *     num_cusps = tri_data.num_or_cusps + tri_data.num_nonor_cusps
 *     if num_cusps > 0:             # <<<<<<<<<<<<<<
 *         # Use malloc (not mymalloc) to allocate memory for the cusp
 *         # data.  We free the memory before returning.
*/
  }

  /* "cython/core/pickle.pyx":362
 *         else:
 *             raise RuntimeError('Failed to allocate memory for cusps')
 *     tri_data.cusp_data = cusps             # <<<<<<<<<<<<<<
 * 
 *     if peripheral_curves is None:
*/
  __pyx_v_tri_data.cusp_data = __pyx_v_cusps;

  /* "cython/core/pickle.pyx":364
 *     tri_data.cusp_data = cusps
 * 
 *     if peripheral_curves is None:             # <<<<<<<<<<<<<<
 *         peripheral_curves = (4*num_tets)*[16*[0]]
 * 
*/
  __pyx_t_2 = (__pyx_v_peripheral_curves == Py_None);
  if (__pyx_t_2) {

    /* "cython/core/pickle.pyx":365
 * 
 *     if peripheral_curves is None:
 *         peripheral_curves = (4*num_tets)*[16*[0]]             # <<<<<<<<<<<<<<
 * 
 *     # Use malloc (not mymalloc) to allocate memory for the tetrahedra
*/
    __pyx_t_3 = PyList_New(1 * 16); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    { Py_ssize_t __pyx_temp;
      for (__pyx_temp=0; __pyx_temp < 16; __pyx_temp++) {
        __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_3, __pyx_temp, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(12, 365, __pyx_L1_error);
      }
    }
    __pyx_t_20 = (4 * __pyx_v_num_tets);
    __pyx_t_9 = PyList_New(1 * ((__pyx_t_20<0) ? 0:__pyx_t_20)); if (unlikely(!__pyx_t_9)) __PYX_ERR(12, 365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    { Py_ssize_t __pyx_temp;
      for (__pyx_temp=0; __pyx_temp < __pyx_t_20; __pyx_temp++) {
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_3);
        if (__Pyx_PyList_SET_ITEM(__pyx_t_9, __pyx_temp, __pyx_t_3) != (0)) __PYX_ERR(12, 365, __pyx_L1_error);
      }
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_peripheral_curves, __pyx_t_9);
    __pyx_t_9 = 0;

    /* "cython/core/pickle.pyx":364
 *     tri_data.cusp_data = cusps
 * 
 *     if peripheral_curves is None:             # <<<<<<<<<<<<<<
 *         peripheral_curves = (4*num_tets)*[16*[0]]
 * 
*/
  }

  /* "cython/core/pickle.pyx":369
 *     # Use malloc (not mymalloc) to allocate memory for the tetrahedra
 *     # data.  We free the memory before returning.
 *     tets = <c_TetrahedronData*>malloc(num_tets*sizeof(c_TetrahedronData))             # <<<<<<<<<<<<<<
 *     if tets == NULL:
 *         raise RuntimeError('Failed to allocate memory for tets.')
*/
  __pyx_v_tets = ((TetrahedronData *)malloc((__pyx_v_num_tets * (sizeof(TetrahedronData)))));

  /* "cython/core/pickle.pyx":370
 *     # data.  We free the memory before returning.
 *     tets = <c_TetrahedronData*>malloc(num_tets*sizeof(c_TetrahedronData))
 *     if tets == NULL:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Failed to allocate memory for tets.')
 *     tri_data.tetrahedron_data = tets
*/
  __pyx_t_2 = (__pyx_v_tets == NULL);
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/pickle.pyx":371
 *     tets = <c_TetrahedronData*>malloc(num_tets*sizeof(c_TetrahedronData))
 *     if tets == NULL:
 *         raise RuntimeError('Failed to allocate memory for tets.')             # <<<<<<<<<<<<<<
 *     tri_data.tetrahedron_data = tets
 * 
*/
    __pyx_t_3 = NULL;
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Failed_to_allocate_memory_for_te};
      __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(12, 371, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
    }
    __Pyx_Raise(__pyx_t_9, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __PYX_ERR(12, 371, __pyx_L1_error)

    /* "cython/core/pickle.pyx":370
 *     # data.  We free the memory before returning.
 *     tets = <c_TetrahedronData*>malloc(num_tets*sizeof(c_TetrahedronData))
 *     if tets == NULL:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Failed to allocate memory for tets.')
 *     tri_data.tetrahedron_data = tets
*/
  }

  /* "cython/core/pickle.pyx":372
 *     if tets == NULL:
 *         raise RuntimeError('Failed to allocate memory for tets.')
 *     tri_data.tetrahedron_data = tets             # <<<<<<<<<<<<<<
 * 
 *     for t, (neighbors, gluings) in enumerate(listlike):
*/
  __pyx_v_tri_data.tetrahedron_data = __pyx_v_tets;

  /* "cython/core/pickle.pyx":374
 *     tri_data.tetrahedron_data = tets
 * 
 *     for t, (neighbors, gluings) in enumerate(listlike):             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             tets[t].neighbor_index[i] = neighbors[i]
*/
  __pyx_t_12 = 0;
  if (likely(PyList_CheckExact(__pyx_v_listlike)) || PyTuple_CheckExact(__pyx_v_listlike)) {
    __pyx_t_9 = __pyx_v_listlike; __Pyx_INCREF(__pyx_t_9);
    __pyx_t_1 = 0;
    __pyx_t_15 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_v_listlike); if (unlikely(!__pyx_t_9)) __PYX_ERR(12, 374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_15 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_15)) __PYX_ERR(12, 374, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_15)) {
      if (likely(PyList_CheckExact(__pyx_t_9))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(12, 374, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_1, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_1;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_9);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(12, 374, __pyx_L1_error)
          #endif
          if (__pyx_t_1 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_1));
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_9, __pyx_t_1);
        #endif
        ++__pyx_t_1;
      }
      if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 374, __pyx_L1_error)
    } else {
      __pyx_t_3 = __pyx_t_15(__pyx_t_9);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(12, 374, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_3);
    if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
      PyObject* sequence = __pyx_t_3;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(12, 374, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_10);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 374, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_10 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 374, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_10);
      }
      #else
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(12, 374, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 374, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      #endif
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_13 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_13)) __PYX_ERR(12, 374, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_13);
      index = 0; __pyx_t_4 = __pyx_t_11(__pyx_t_13); if (unlikely(!__pyx_t_4)) goto __pyx_L34_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_10 = __pyx_t_11(__pyx_t_13); if (unlikely(!__pyx_t_10)) goto __pyx_L34_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_10);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_13), 2) < (0)) __PYX_ERR(12, 374, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      goto __pyx_L35_unpacking_done;
      __pyx_L34_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(12, 374, __pyx_L1_error)
      __pyx_L35_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_neighbors, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_gluings, __pyx_t_10);
    __pyx_t_10 = 0;
    __pyx_v_t = __pyx_t_12;
    __pyx_t_12 = (__pyx_t_12 + 1);

    /* "cython/core/pickle.pyx":375
 * 
 *     for t, (neighbors, gluings) in enumerate(listlike):
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             tets[t].neighbor_index[i] = neighbors[i]
 *             for j in range(4):
*/
    for (__pyx_t_18 = 0; __pyx_t_18 < 4; __pyx_t_18+=1) {
      __pyx_v_i = __pyx_t_18;

      /* "cython/core/pickle.pyx":376
 *     for t, (neighbors, gluings) in enumerate(listlike):
 *         for i in range(4):
 *             tets[t].neighbor_index[i] = neighbors[i]             # <<<<<<<<<<<<<<
 *             for j in range(4):
 *                 tets[t].gluing[i][j] = gluings[i][j]
*/
      __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_neighbors, __pyx_v_i, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 376, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_19 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_19 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 376, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      ((__pyx_v_tets[__pyx_v_t]).neighbor_index[__pyx_v_i]) = __pyx_t_19;

      /* "cython/core/pickle.pyx":377
 *         for i in range(4):
 *             tets[t].neighbor_index[i] = neighbors[i]
 *             for j in range(4):             # <<<<<<<<<<<<<<
 *                 tets[t].gluing[i][j] = gluings[i][j]
 *             if cusp_indices:
*/
      for (__pyx_t_19 = 0; __pyx_t_19 < 4; __pyx_t_19+=1) {
        __pyx_v_j = __pyx_t_19;

        /* "cython/core/pickle.pyx":378
 *             tets[t].neighbor_index[i] = neighbors[i]
 *             for j in range(4):
 *                 tets[t].gluing[i][j] = gluings[i][j]             # <<<<<<<<<<<<<<
 *             if cusp_indices:
 *                 tets[t].cusp_index[i] = cusp_indices[t][i]
*/
        __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_gluings, __pyx_v_i, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 378, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_10 = __Pyx_GetItemInt(__pyx_t_3, __pyx_v_j, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 378, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_21 = __Pyx_PyLong_As_int(__pyx_t_10); if (unlikely((__pyx_t_21 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 378, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        (((__pyx_v_tets[__pyx_v_t]).gluing[__pyx_v_i])[__pyx_v_j]) = __pyx_t_21;
      }

      /* "cython/core/pickle.pyx":379
 *             for j in range(4):
 *                 tets[t].gluing[i][j] = gluings[i][j]
 *             if cusp_indices:             # <<<<<<<<<<<<<<
 *                 tets[t].cusp_index[i] = cusp_indices[t][i]
 * 
*/
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_cusp_indices); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(12, 379, __pyx_L1_error)
      if (__pyx_t_2) {

        /* "cython/core/pickle.pyx":380
 *                 tets[t].gluing[i][j] = gluings[i][j]
 *             if cusp_indices:
 *                 tets[t].cusp_index[i] = cusp_indices[t][i]             # <<<<<<<<<<<<<<
 * 
 *         if cusp_indices:
*/
        __pyx_t_10 = __Pyx_GetItemInt(__pyx_v_cusp_indices, __pyx_v_t, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 380, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_10, __pyx_v_i, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 380, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_19 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_19 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 380, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        ((__pyx_v_tets[__pyx_v_t]).cusp_index[__pyx_v_i]) = __pyx_t_19;

        /* "cython/core/pickle.pyx":379
 *             for j in range(4):
 *                 tets[t].gluing[i][j] = gluings[i][j]
 *             if cusp_indices:             # <<<<<<<<<<<<<<
 *                 tets[t].cusp_index[i] = cusp_indices[t][i]
 * 
*/
      }
    }

    /* "cython/core/pickle.pyx":382
 *                 tets[t].cusp_index[i] = cusp_indices[t][i]
 * 
 *         if cusp_indices:             # <<<<<<<<<<<<<<
 *             for a in range(2):
 *                 for b in range(2):
*/
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_cusp_indices); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(12, 382, __pyx_L1_error)
    if (__pyx_t_2) {

      /* "cython/core/pickle.pyx":383
 * 
 *         if cusp_indices:
 *             for a in range(2):             # <<<<<<<<<<<<<<
 *                 for b in range(2):
 *                     for v in range(4):
*/
      for (__pyx_t_18 = 0; __pyx_t_18 < 2; __pyx_t_18+=1) {
        __pyx_v_a = __pyx_t_18;

        /* "cython/core/pickle.pyx":384
 *         if cusp_indices:
 *             for a in range(2):
 *                 for b in range(2):             # <<<<<<<<<<<<<<
 *                     for v in range(4):
 *                         for f in range(4):
*/
        for (__pyx_t_19 = 0; __pyx_t_19 < 2; __pyx_t_19+=1) {
          __pyx_v_b = __pyx_t_19;

          /* "cython/core/pickle.pyx":385
 *             for a in range(2):
 *                 for b in range(2):
 *                     for v in range(4):             # <<<<<<<<<<<<<<
 *                         for f in range(4):
 *                             tets[t].curve[a][b][v][f] = peripheral_curves[4*t + 2*a + b][4*v + f]
*/
          for (__pyx_t_21 = 0; __pyx_t_21 < 4; __pyx_t_21+=1) {
            __pyx_v_v = __pyx_t_21;

            /* "cython/core/pickle.pyx":386
 *                 for b in range(2):
 *                     for v in range(4):
 *                         for f in range(4):             # <<<<<<<<<<<<<<
 *                             tets[t].curve[a][b][v][f] = peripheral_curves[4*t + 2*a + b][4*v + f]
 * 
*/
            for (__pyx_t_22 = 0; __pyx_t_22 < 4; __pyx_t_22+=1) {
              __pyx_v_f = __pyx_t_22;

              /* "cython/core/pickle.pyx":387
 *                     for v in range(4):
 *                         for f in range(4):
 *                             tets[t].curve[a][b][v][f] = peripheral_curves[4*t + 2*a + b][4*v + f]             # <<<<<<<<<<<<<<
 * 
 *     data_to_triangulation(&tri_data, &tri)
*/
              __pyx_t_20 = (((4 * __pyx_v_t) + (2 * __pyx_v_a)) + __pyx_v_b);
              __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_peripheral_curves, __pyx_t_20, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(12, 387, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
              __pyx_t_20 = ((4 * __pyx_v_v) + __pyx_v_f);
              __pyx_t_10 = __Pyx_GetItemInt(__pyx_t_3, __pyx_t_20, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_10)) __PYX_ERR(12, 387, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_10);
              __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
              __pyx_t_23 = __Pyx_PyLong_As_int(__pyx_t_10); if (unlikely((__pyx_t_23 == (int)-1) && PyErr_Occurred())) __PYX_ERR(12, 387, __pyx_L1_error)
              __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
              (((((__pyx_v_tets[__pyx_v_t]).curve[__pyx_v_a])[__pyx_v_b])[__pyx_v_v])[__pyx_v_f]) = __pyx_t_23;
            }
          }
        }
      }

      /* "cython/core/pickle.pyx":382
 *                 tets[t].cusp_index[i] = cusp_indices[t][i]
 * 
 *         if cusp_indices:             # <<<<<<<<<<<<<<
 *             for a in range(2):
 *                 for b in range(2):
*/
    }

    /* "cython/core/pickle.pyx":374
 *     tri_data.tetrahedron_data = tets
 * 
 *     for t, (neighbors, gluings) in enumerate(listlike):             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             tets[t].neighbor_index[i] = neighbors[i]
*/
  }
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "cython/core/pickle.pyx":389
 *                             tets[t].curve[a][b][v][f] = peripheral_curves[4*t + 2*a + b][4*v + f]
 * 
 *     data_to_triangulation(&tri_data, &tri)             # <<<<<<<<<<<<<<
 *     free(tets)
 *     if cusps:
*/
  data_to_triangulation((&__pyx_v_tri_data), (&__pyx_v_tri)); if (unlikely(PyErr_Occurred())) __PYX_ERR(12, 389, __pyx_L1_error)

  /* "cython/core/pickle.pyx":390
 * 
 *     data_to_triangulation(&tri_data, &tri)
 *     free(tets)             # <<<<<<<<<<<<<<
 *     if cusps:
 *         free(cusps)
*/
  free(__pyx_v_tets);

  /* "cython/core/pickle.pyx":391
 *     data_to_triangulation(&tri_data, &tri)
 *     free(tets)
 *     if cusps:             # <<<<<<<<<<<<<<
 *         free(cusps)
 *     return tri
*/
  __pyx_t_2 = (__pyx_v_cusps != 0);
  if (__pyx_t_2) {

    /* "cython/core/pickle.pyx":392
 *     free(tets)
 *     if cusps:
 *         free(cusps)             # <<<<<<<<<<<<<<
 *     return tri
*/
    free(__pyx_v_cusps);

    /* "cython/core/pickle.pyx":391
 *     data_to_triangulation(&tri_data, &tri)
 *     free(tets)
 *     if cusps:             # <<<<<<<<<<<<<<
 *         free(cusps)
 *     return tri
*/
  }

  /* "cython/core/pickle.pyx":393
 *     if cusps:
 *         free(cusps)
 *     return tri             # <<<<<<<<<<<<<<
*/
  __pyx_r = __pyx_v_tri;
  goto __pyx_L0;

  /* "cython/core/pickle.pyx":312
 * 
 * 
 * cdef c_Triangulation* listlike_to_triangulation(listlike,             # <<<<<<<<<<<<<<
 *                                                 num_or_cusps=0,
 *                                                 num_nonor_cusps=0,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("SnapPy.listlike_to_triangulation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_first0);
  __Pyx_XDECREF(__pyx_v_first1);
  __Pyx_XDECREF(__pyx_v_py_name);
  __Pyx_XDECREF(__pyx_v_neighbors);
  __Pyx_XDECREF(__pyx_v_gluings);
  __Pyx_XDECREF(__pyx_9genexpr93__pyx_v_x);
  __Pyx_XDECREF(__pyx_v_peripheral_curves);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":29
 * 
 * 
 * def bundle_from_string(desc):             # <<<<<<<<<<<<<<
 *     desc = desc.replace(' ', '')
 *     m = is_twister_bundle.match(desc)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_47bundle_from_string(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_47bundle_from_string = {"bundle_from_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_47bundle_from_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_47bundle_from_string(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_desc = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("bundle_from_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_desc,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 29, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 29, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "bundle_from_string", 0) < (0)) __PYX_ERR(2, 29, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("bundle_from_string", 1, 1, 1, i); __PYX_ERR(2, 29, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 29, __pyx_L3_error)
    }
    __pyx_v_desc = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("bundle_from_string", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 29, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.bundle_from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_46bundle_from_string(__pyx_self, __pyx_v_desc);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_46bundle_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc) {
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_g = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_monodromy = NULL;
  PyObject *__pyx_v_surface = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("bundle_from_string", 0);
  __Pyx_INCREF(__pyx_v_desc);

  /* "cython/core/tail.pyx":30
 * 
 * def bundle_from_string(desc):
 *     desc = desc.replace(' ', '')             # <<<<<<<<<<<<<<
 *     m = is_twister_bundle.match(desc)
 *     if m:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_desc, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[0], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF_SET(__pyx_v_desc, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":31
 * def bundle_from_string(desc):
 *     desc = desc.replace(' ', '')
 *     m = is_twister_bundle.match(desc)             # <<<<<<<<<<<<<<
 *     if m:
 *         g, n, monodromy = m.groups()
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_is_twister_bundle); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_desc};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 31, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_m = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":32
 *     desc = desc.replace(' ', '')
 *     m = is_twister_bundle.match(desc)
 *     if m:             # <<<<<<<<<<<<<<
 *         g, n, monodromy = m.groups()
 *         g, n = int(g), int(n)
*/
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_m); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(2, 32, __pyx_L1_error)
  if (__pyx_t_6) {

    /* "cython/core/tail.pyx":33
 *     m = is_twister_bundle.match(desc)
 *     if m:
 *         g, n, monodromy = m.groups()             # <<<<<<<<<<<<<<
 *         g, n = int(g), int(n)
 *         monodromy = monodromy.replace(',', '*').replace('_', '')
*/
    __pyx_t_4 = __pyx_v_m;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_groups, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 33, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(2, 33, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_3);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 33, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 33, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 33, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_3);
      }
      #else
      __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 33, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 33, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 33, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_7 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 33, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7);
      index = 0; __pyx_t_4 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_4)) goto __pyx_L4_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_1 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_1)) goto __pyx_L4_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_1);
      index = 2; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L4_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_3);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 3) < (0)) __PYX_ERR(2, 33, __pyx_L1_error)
      __pyx_t_8 = NULL;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L5_unpacking_done;
      __pyx_L4_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(2, 33, __pyx_L1_error)
      __pyx_L5_unpacking_done:;
    }
    __pyx_v_g = __pyx_t_4;
    __pyx_t_4 = 0;
    __pyx_v_n = __pyx_t_1;
    __pyx_t_1 = 0;
    __pyx_v_monodromy = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":34
 *     if m:
 *         g, n, monodromy = m.groups()
 *         g, n = int(g), int(n)             # <<<<<<<<<<<<<<
 *         monodromy = monodromy.replace(',', '*').replace('_', '')
 *         surface = twister.Surface((g, n))
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_g); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 34, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyNumber_Int(__pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 34, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_g, __pyx_t_2);
    __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_n, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":35
 *         g, n, monodromy = m.groups()
 *         g, n = int(g), int(n)
 *         monodromy = monodromy.replace(',', '*').replace('_', '')             # <<<<<<<<<<<<<<
 *         surface = twister.Surface((g, n))
 *         return surface.bundle(monodromy, return_type='string')
*/
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_monodromy, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 35, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_mstate_global->__pyx_tuple[24], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 35, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 35, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_mstate_global->__pyx_tuple[25], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 35, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF_SET(__pyx_v_monodromy, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":36
 *         g, n = int(g), int(n)
 *         monodromy = monodromy.replace(',', '*').replace('_', '')
 *         surface = twister.Surface((g, n))             # <<<<<<<<<<<<<<
 *         return surface.bundle(monodromy, return_type='string')
 * 
*/
    __pyx_t_3 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_twister); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 36, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_Surface); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 36, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 36, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_g);
    __Pyx_GIVEREF(__pyx_v_g);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_g) != (0)) __PYX_ERR(2, 36, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_n);
    __Pyx_GIVEREF(__pyx_v_n);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_n) != (0)) __PYX_ERR(2, 36, __pyx_L1_error);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_3);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_1};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 36, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_surface = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":37
 *         monodromy = monodromy.replace(',', '*').replace('_', '')
 *         surface = twister.Surface((g, n))
 *         return surface.bundle(monodromy, return_type='string')             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __pyx_v_surface;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_4, __pyx_v_monodromy};
      __pyx_t_1 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 37, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_return_type, __pyx_mstate_global->__pyx_n_u_string, __pyx_t_1, __pyx_callargs+2, 0) < (0)) __PYX_ERR(2, 37, __pyx_L1_error)
      __pyx_t_2 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_bundle, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_1);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 37, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":32
 *     desc = desc.replace(' ', '')
 *     m = is_twister_bundle.match(desc)
 *     if m:             # <<<<<<<<<<<<<<
 *         g, n, monodromy = m.groups()
 *         g, n = int(g), int(n)
*/
  }

  /* "cython/core/tail.pyx":29
 * 
 * 
 * def bundle_from_string(desc):             # <<<<<<<<<<<<<<
 *     desc = desc.replace(' ', '')
 *     m = is_twister_bundle.match(desc)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_7);
  __Pyx_AddTraceback("SnapPy.bundle_from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_g);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_monodromy);
  __Pyx_XDECREF(__pyx_v_surface);
  __Pyx_XDECREF(__pyx_v_desc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":40
 * 
 * 
 * def splitting_from_string(desc):             # <<<<<<<<<<<<<<
 *     desc = desc.replace(' ', '')
 *     m = is_twister_splitting.match(desc)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_49splitting_from_string(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_49splitting_from_string = {"splitting_from_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_49splitting_from_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_49splitting_from_string(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_desc = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("splitting_from_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_desc,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 40, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 40, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "splitting_from_string", 0) < (0)) __PYX_ERR(2, 40, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("splitting_from_string", 1, 1, 1, i); __PYX_ERR(2, 40, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 40, __pyx_L3_error)
    }
    __pyx_v_desc = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("splitting_from_string", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 40, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.splitting_from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_48splitting_from_string(__pyx_self, __pyx_v_desc);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_48splitting_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_desc) {
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_g = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_gluing = NULL;
  PyObject *__pyx_v_handles = NULL;
  PyObject *__pyx_v_surface = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("splitting_from_string", 0);
  __Pyx_INCREF(__pyx_v_desc);

  /* "cython/core/tail.pyx":41
 * 
 * def splitting_from_string(desc):
 *     desc = desc.replace(' ', '')             # <<<<<<<<<<<<<<
 *     m = is_twister_splitting.match(desc)
 *     if m:
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_desc, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_mstate_global->__pyx_tuple[0], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF_SET(__pyx_v_desc, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":42
 * def splitting_from_string(desc):
 *     desc = desc.replace(' ', '')
 *     m = is_twister_splitting.match(desc)             # <<<<<<<<<<<<<<
 *     if m:
 *         g, n, gluing, handles = m.groups()
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_is_twister_splitting); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 42, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_match); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 42, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_desc};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 42, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_m = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":43
 *     desc = desc.replace(' ', '')
 *     m = is_twister_splitting.match(desc)
 *     if m:             # <<<<<<<<<<<<<<
 *         g, n, gluing, handles = m.groups()
 *         g, n = int(g), int(n)
*/
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_m); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(2, 43, __pyx_L1_error)
  if (__pyx_t_6) {

    /* "cython/core/tail.pyx":44
 *     m = is_twister_splitting.match(desc)
 *     if m:
 *         g, n, gluing, handles = m.groups()             # <<<<<<<<<<<<<<
 *         g, n = int(g), int(n)
 *         gluing = gluing.replace(',', '*').replace('_', '')
*/
    __pyx_t_4 = __pyx_v_m;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_groups, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 44, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 4)) {
        if (size > 4) __Pyx_RaiseTooManyValuesError(4);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(2, 44, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = PyTuple_GET_ITEM(sequence, 2);
        __Pyx_INCREF(__pyx_t_3);
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 3);
        __Pyx_INCREF(__pyx_t_7);
      } else {
        __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 44, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_4);
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 44, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_1);
        __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 44, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_3);
        __pyx_t_7 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
        if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 44, __pyx_L1_error)
        __Pyx_XGOTREF(__pyx_t_7);
      }
      #else
      {
        Py_ssize_t i;
        PyObject** temps[4] = {&__pyx_t_4,&__pyx_t_1,&__pyx_t_3,&__pyx_t_7};
        for (i=0; i < 4; i++) {
          PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(2, 44, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[4] = {&__pyx_t_4,&__pyx_t_1,&__pyx_t_3,&__pyx_t_7};
      __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 44, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
      for (index=0; index < 4; index++) {
        PyObject* item = __pyx_t_9(__pyx_t_8); if (unlikely(!item)) goto __pyx_L4_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 4) < (0)) __PYX_ERR(2, 44, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L5_unpacking_done;
      __pyx_L4_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(2, 44, __pyx_L1_error)
      __pyx_L5_unpacking_done:;
    }
    __pyx_v_g = __pyx_t_4;
    __pyx_t_4 = 0;
    __pyx_v_n = __pyx_t_1;
    __pyx_t_1 = 0;
    __pyx_v_gluing = __pyx_t_3;
    __pyx_t_3 = 0;
    __pyx_v_handles = __pyx_t_7;
    __pyx_t_7 = 0;

    /* "cython/core/tail.pyx":45
 *     if m:
 *         g, n, gluing, handles = m.groups()
 *         g, n = int(g), int(n)             # <<<<<<<<<<<<<<
 *         gluing = gluing.replace(',', '*').replace('_', '')
 *         handles = handles.replace(',', '*').replace('_', '')
*/
    __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_g); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 45, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyNumber_Int(__pyx_v_n); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 45, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF_SET(__pyx_v_g, __pyx_t_2);
    __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_n, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "cython/core/tail.pyx":46
 *         g, n, gluing, handles = m.groups()
 *         g, n = int(g), int(n)
 *         gluing = gluing.replace(',', '*').replace('_', '')             # <<<<<<<<<<<<<<
 *         handles = handles.replace(',', '*').replace('_', '')
 *         surface = twister.Surface((g, n))
*/
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_gluing, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 46, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[24], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 46, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 46, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_mstate_global->__pyx_tuple[25], NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 46, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF_SET(__pyx_v_gluing, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":47
 *         g, n = int(g), int(n)
 *         gluing = gluing.replace(',', '*').replace('_', '')
 *         handles = handles.replace(',', '*').replace('_', '')             # <<<<<<<<<<<<<<
 *         surface = twister.Surface((g, n))
 *         return surface.splitting(gluing, handles, return_type='string')
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_handles, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 47, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[24], NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 47, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_replace); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 47, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[25], NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 47, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_handles, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "cython/core/tail.pyx":48
 *         gluing = gluing.replace(',', '*').replace('_', '')
 *         handles = handles.replace(',', '*').replace('_', '')
 *         surface = twister.Surface((g, n))             # <<<<<<<<<<<<<<
 *         return surface.splitting(gluing, handles, return_type='string')
 * 
*/
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_twister); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 48, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Surface); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 48, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 48, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_g);
    __Pyx_GIVEREF(__pyx_v_g);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_g) != (0)) __PYX_ERR(2, 48, __pyx_L1_error);
    __Pyx_INCREF(__pyx_v_n);
    __Pyx_GIVEREF(__pyx_v_n);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_n) != (0)) __PYX_ERR(2, 48, __pyx_L1_error);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_3};
      __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 48, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_v_surface = __pyx_t_7;
    __pyx_t_7 = 0;

    /* "cython/core/tail.pyx":49
 *         handles = handles.replace(',', '*').replace('_', '')
 *         surface = twister.Surface((g, n))
 *         return surface.splitting(gluing, handles, return_type='string')             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_v_surface;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[3 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_1, __pyx_v_gluing, __pyx_v_handles};
      __pyx_t_3 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 49, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_return_type, __pyx_mstate_global->__pyx_n_u_string, __pyx_t_3, __pyx_callargs+3, 0) < (0)) __PYX_ERR(2, 49, __pyx_L1_error)
      __pyx_t_7 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_splitting, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 49, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_r = __pyx_t_7;
    __pyx_t_7 = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":43
 *     desc = desc.replace(' ', '')
 *     m = is_twister_splitting.match(desc)
 *     if m:             # <<<<<<<<<<<<<<
 *         g, n, gluing, handles = m.groups()
 *         g, n = int(g), int(n)
*/
  }

  /* "cython/core/tail.pyx":40
 * 
 * 
 * def splitting_from_string(desc):             # <<<<<<<<<<<<<<
 *     desc = desc.replace(' ', '')
 *     m = is_twister_splitting.match(desc)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.splitting_from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_g);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_gluing);
  __Pyx_XDECREF(__pyx_v_handles);
  __Pyx_XDECREF(__pyx_v_surface);
  __Pyx_XDECREF(__pyx_v_desc);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":65
 *     """
 * 
 * cdef c_Triangulation* triangulation_from_bytes(bytestring) except ? NULL:             # <<<<<<<<<<<<<<
 *     cdef c_Triangulation* c_triangulation = NULL
 *     cdef TerseTriangulation c_terse
*/

static Triangulation *__pyx_f_6SnapPy_triangulation_from_bytes(PyObject *__pyx_v_bytestring) {
  Triangulation *__pyx_v_c_triangulation;
  TerseTriangulation __pyx_v_c_terse;
  int __pyx_v_N;
  int __pyx_v_n;
  int __pyx_v_m;
  PyObject *__pyx_v_byteseq = NULL;
  PyObject *__pyx_v_bit = NULL;
  Triangulation *__pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_t_4;
  long __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  Triangulation *__pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("triangulation_from_bytes", 0);

  /* "cython/core/tail.pyx":66
 * 
 * cdef c_Triangulation* triangulation_from_bytes(bytestring) except ? NULL:
 *     cdef c_Triangulation* c_triangulation = NULL             # <<<<<<<<<<<<<<
 *     cdef TerseTriangulation c_terse
 *     cdef int N=0, n=0, m=1
*/
  __pyx_v_c_triangulation = NULL;

  /* "cython/core/tail.pyx":68
 *     cdef c_Triangulation* c_triangulation = NULL
 *     cdef TerseTriangulation c_terse
 *     cdef int N=0, n=0, m=1             # <<<<<<<<<<<<<<
 *     byteseq = bytearray(bytestring)
 *     c_terse.num_tetrahedra = N = byteseq[0]
*/
  __pyx_v_N = 0;
  __pyx_v_n = 0;
  __pyx_v_m = 1;

  /* "cython/core/tail.pyx":69
 *     cdef TerseTriangulation c_terse
 *     cdef int N=0, n=0, m=1
 *     byteseq = bytearray(bytestring)             # <<<<<<<<<<<<<<
 *     c_terse.num_tetrahedra = N = byteseq[0]
 *     c_terse.glues_to_old_tet = <Boolean*>malloc(2*N*sizeof(Boolean))
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_bytestring};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyByteArray_Type), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_byteseq = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":70
 *     cdef int N=0, n=0, m=1
 *     byteseq = bytearray(bytestring)
 *     c_terse.num_tetrahedra = N = byteseq[0]             # <<<<<<<<<<<<<<
 *     c_terse.glues_to_old_tet = <Boolean*>malloc(2*N*sizeof(Boolean))
 *     c_terse.which_old_tet = <int*>malloc((N+1)*sizeof(int))
*/
  __pyx_t_4 = __Pyx_GetItemInt_ByteArray(__pyx_v_byteseq, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 70, __pyx_L1_error)
  __pyx_v_c_terse.num_tetrahedra = __pyx_t_4;
  __pyx_v_N = __pyx_t_4;

  /* "cython/core/tail.pyx":71
 *     byteseq = bytearray(bytestring)
 *     c_terse.num_tetrahedra = N = byteseq[0]
 *     c_terse.glues_to_old_tet = <Boolean*>malloc(2*N*sizeof(Boolean))             # <<<<<<<<<<<<<<
 *     c_terse.which_old_tet = <int*>malloc((N+1)*sizeof(int))
 *     c_terse.which_gluing = <Permutation*>malloc((N+1)*sizeof(Permutation))
*/
  __pyx_v_c_terse.glues_to_old_tet = ((Boolean *)malloc(((2 * __pyx_v_N) * (sizeof(Boolean)))));

  /* "cython/core/tail.pyx":72
 *     c_terse.num_tetrahedra = N = byteseq[0]
 *     c_terse.glues_to_old_tet = <Boolean*>malloc(2*N*sizeof(Boolean))
 *     c_terse.which_old_tet = <int*>malloc((N+1)*sizeof(int))             # <<<<<<<<<<<<<<
 *     c_terse.which_gluing = <Permutation*>malloc((N+1)*sizeof(Permutation))
 *     bit = 0
*/
  __pyx_v_c_terse.which_old_tet = ((int *)malloc(((__pyx_v_N + 1) * (sizeof(int)))));

  /* "cython/core/tail.pyx":73
 *     c_terse.glues_to_old_tet = <Boolean*>malloc(2*N*sizeof(Boolean))
 *     c_terse.which_old_tet = <int*>malloc((N+1)*sizeof(int))
 *     c_terse.which_gluing = <Permutation*>malloc((N+1)*sizeof(Permutation))             # <<<<<<<<<<<<<<
 *     bit = 0
 *     for n from 0 <= n < 2*N:
*/
  __pyx_v_c_terse.which_gluing = ((Permutation *)malloc(((__pyx_v_N + 1) * (sizeof(Permutation)))));

  /* "cython/core/tail.pyx":74
 *     c_terse.which_old_tet = <int*>malloc((N+1)*sizeof(int))
 *     c_terse.which_gluing = <Permutation*>malloc((N+1)*sizeof(Permutation))
 *     bit = 0             # <<<<<<<<<<<<<<
 *     for n from 0 <= n < 2*N:
 *         if byteseq[m] & (1 << bit):
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_v_bit = __pyx_mstate_global->__pyx_int_0;

  /* "cython/core/tail.pyx":75
 *     c_terse.which_gluing = <Permutation*>malloc((N+1)*sizeof(Permutation))
 *     bit = 0
 *     for n from 0 <= n < 2*N:             # <<<<<<<<<<<<<<
 *         if byteseq[m] & (1 << bit):
 *             c_terse.glues_to_old_tet[n] = 1
*/
  __pyx_t_5 = (2 * __pyx_v_N);
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_5; __pyx_v_n++) {

    /* "cython/core/tail.pyx":76
 *     bit = 0
 *     for n from 0 <= n < 2*N:
 *         if byteseq[m] & (1 << bit):             # <<<<<<<<<<<<<<
 *             c_terse.glues_to_old_tet[n] = 1
 *         else:
*/
    __pyx_t_4 = __Pyx_GetItemInt_ByteArray(__pyx_v_byteseq, __pyx_v_m, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 76, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyLong_From_int(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 76, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyNumber_Lshift(__pyx_mstate_global->__pyx_int_1, __pyx_v_bit); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 76, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = PyNumber_And(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 76, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(2, 76, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__pyx_t_7) {

      /* "cython/core/tail.pyx":77
 *     for n from 0 <= n < 2*N:
 *         if byteseq[m] & (1 << bit):
 *             c_terse.glues_to_old_tet[n] = 1             # <<<<<<<<<<<<<<
 *         else:
 *             c_terse.glues_to_old_tet[n] = 0
*/
      (__pyx_v_c_terse.glues_to_old_tet[__pyx_v_n]) = 1;

      /* "cython/core/tail.pyx":76
 *     bit = 0
 *     for n from 0 <= n < 2*N:
 *         if byteseq[m] & (1 << bit):             # <<<<<<<<<<<<<<
 *             c_terse.glues_to_old_tet[n] = 1
 *         else:
*/
      goto __pyx_L5;
    }

    /* "cython/core/tail.pyx":79
 *             c_terse.glues_to_old_tet[n] = 1
 *         else:
 *             c_terse.glues_to_old_tet[n] = 0             # <<<<<<<<<<<<<<
 *         bit += 1
 *         if bit % 8 == 0:
*/
    /*else*/ {
      (__pyx_v_c_terse.glues_to_old_tet[__pyx_v_n]) = 0;
    }
    __pyx_L5:;

    /* "cython/core/tail.pyx":80
 *         else:
 *             c_terse.glues_to_old_tet[n] = 0
 *         bit += 1             # <<<<<<<<<<<<<<
 *         if bit % 8 == 0:
 *             m += 1
*/
    __pyx_t_6 = __Pyx_PyLong_AddObjC(__pyx_v_bit, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 80, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF_SET(__pyx_v_bit, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "cython/core/tail.pyx":81
 *             c_terse.glues_to_old_tet[n] = 0
 *         bit += 1
 *         if bit % 8 == 0:             # <<<<<<<<<<<<<<
 *             m += 1
 *             bit = 0
*/
    __pyx_t_6 = __Pyx_PyLong_RemainderObjC(__pyx_v_bit, __pyx_mstate_global->__pyx_int_8, 8, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 81, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_6, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(2, 81, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (__pyx_t_7) {

      /* "cython/core/tail.pyx":82
 *         bit += 1
 *         if bit % 8 == 0:
 *             m += 1             # <<<<<<<<<<<<<<
 *             bit = 0
 *     if bit:
*/
      __pyx_v_m = (__pyx_v_m + 1);

      /* "cython/core/tail.pyx":83
 *         if bit % 8 == 0:
 *             m += 1
 *             bit = 0             # <<<<<<<<<<<<<<
 *     if bit:
 *         m += 1
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __Pyx_DECREF_SET(__pyx_v_bit, __pyx_mstate_global->__pyx_int_0);

      /* "cython/core/tail.pyx":81
 *             c_terse.glues_to_old_tet[n] = 0
 *         bit += 1
 *         if bit % 8 == 0:             # <<<<<<<<<<<<<<
 *             m += 1
 *             bit = 0
*/
    }
  }

  /* "cython/core/tail.pyx":84
 *             m += 1
 *             bit = 0
 *     if bit:             # <<<<<<<<<<<<<<
 *         m += 1
 *     for n from 0 <= n < 1 + N:
*/
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_bit); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(2, 84, __pyx_L1_error)
  if (__pyx_t_7) {

    /* "cython/core/tail.pyx":85
 *             bit = 0
 *     if bit:
 *         m += 1             # <<<<<<<<<<<<<<
 *     for n from 0 <= n < 1 + N:
 *         c_terse.which_old_tet[n] = int(byteseq[m])
*/
    __pyx_v_m = (__pyx_v_m + 1);

    /* "cython/core/tail.pyx":84
 *             m += 1
 *             bit = 0
 *     if bit:             # <<<<<<<<<<<<<<
 *         m += 1
 *     for n from 0 <= n < 1 + N:
*/
  }

  /* "cython/core/tail.pyx":86
 *     if bit:
 *         m += 1
 *     for n from 0 <= n < 1 + N:             # <<<<<<<<<<<<<<
 *         c_terse.which_old_tet[n] = int(byteseq[m])
 *         m += 1
*/
  __pyx_t_5 = (1 + __pyx_v_N);
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_5; __pyx_v_n++) {

    /* "cython/core/tail.pyx":87
 *         m += 1
 *     for n from 0 <= n < 1 + N:
 *         c_terse.which_old_tet[n] = int(byteseq[m])             # <<<<<<<<<<<<<<
 *         m += 1
 *     for n from 0 <= n < 1 + N:
*/
    __pyx_t_4 = __Pyx_GetItemInt_ByteArray(__pyx_v_byteseq, __pyx_v_m, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 87, __pyx_L1_error)
    (__pyx_v_c_terse.which_old_tet[__pyx_v_n]) = __pyx_t_4;

    /* "cython/core/tail.pyx":88
 *     for n from 0 <= n < 1 + N:
 *         c_terse.which_old_tet[n] = int(byteseq[m])
 *         m += 1             # <<<<<<<<<<<<<<
 *     for n from 0 <= n < 1 + N:
 *         c_terse.which_gluing[n] = int(byteseq[m])
*/
    __pyx_v_m = (__pyx_v_m + 1);
  }

  /* "cython/core/tail.pyx":89
 *         c_terse.which_old_tet[n] = int(byteseq[m])
 *         m += 1
 *     for n from 0 <= n < 1 + N:             # <<<<<<<<<<<<<<
 *         c_terse.which_gluing[n] = int(byteseq[m])
 *         m += 1
*/
  __pyx_t_5 = (1 + __pyx_v_N);
  for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_5; __pyx_v_n++) {

    /* "cython/core/tail.pyx":90
 *         m += 1
 *     for n from 0 <= n < 1 + N:
 *         c_terse.which_gluing[n] = int(byteseq[m])             # <<<<<<<<<<<<<<
 *         m += 1
 *     c_triangulation = terse_to_tri(&c_terse)
*/
    __pyx_t_4 = __Pyx_GetItemInt_ByteArray(__pyx_v_byteseq, __pyx_v_m, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(2, 90, __pyx_L1_error)
    (__pyx_v_c_terse.which_gluing[__pyx_v_n]) = ((Permutation)__pyx_t_4);

    /* "cython/core/tail.pyx":91
 *     for n from 0 <= n < 1 + N:
 *         c_terse.which_gluing[n] = int(byteseq[m])
 *         m += 1             # <<<<<<<<<<<<<<
 *     c_triangulation = terse_to_tri(&c_terse)
 *     free(c_terse.glues_to_old_tet)
*/
    __pyx_v_m = (__pyx_v_m + 1);
  }

  /* "cython/core/tail.pyx":92
 *         c_terse.which_gluing[n] = int(byteseq[m])
 *         m += 1
 *     c_triangulation = terse_to_tri(&c_terse)             # <<<<<<<<<<<<<<
 *     free(c_terse.glues_to_old_tet)
 *     free(c_terse.which_old_tet)
*/
  __pyx_t_8 = terse_to_tri((&__pyx_v_c_terse)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 92, __pyx_L1_error)
  __pyx_v_c_triangulation = __pyx_t_8;

  /* "cython/core/tail.pyx":93
 *         m += 1
 *     c_triangulation = terse_to_tri(&c_terse)
 *     free(c_terse.glues_to_old_tet)             # <<<<<<<<<<<<<<
 *     free(c_terse.which_old_tet)
 *     free(c_terse.which_gluing)
*/
  free(__pyx_v_c_terse.glues_to_old_tet);

  /* "cython/core/tail.pyx":94
 *     c_triangulation = terse_to_tri(&c_terse)
 *     free(c_terse.glues_to_old_tet)
 *     free(c_terse.which_old_tet)             # <<<<<<<<<<<<<<
 *     free(c_terse.which_gluing)
 *     return c_triangulation
*/
  free(__pyx_v_c_terse.which_old_tet);

  /* "cython/core/tail.pyx":95
 *     free(c_terse.glues_to_old_tet)
 *     free(c_terse.which_old_tet)
 *     free(c_terse.which_gluing)             # <<<<<<<<<<<<<<
 *     return c_triangulation
 * 
*/
  free(__pyx_v_c_terse.which_gluing);

  /* "cython/core/tail.pyx":96
 *     free(c_terse.which_old_tet)
 *     free(c_terse.which_gluing)
 *     return c_triangulation             # <<<<<<<<<<<<<<
 * 
 * cdef int set_cusps(c_Triangulation* c_triangulation, fillings) except -1:
*/
  __pyx_r = __pyx_v_c_triangulation;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":65
 *     """
 * 
 * cdef c_Triangulation* triangulation_from_bytes(bytestring) except ? NULL:             # <<<<<<<<<<<<<<
 *     cdef c_Triangulation* c_triangulation = NULL
 *     cdef TerseTriangulation c_terse
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.triangulation_from_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_byteseq);
  __Pyx_XDECREF(__pyx_v_bit);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":98
 *     return c_triangulation
 * 
 * cdef int set_cusps(c_Triangulation* c_triangulation, fillings) except -1:             # <<<<<<<<<<<<<<
 *     if c_triangulation == NULL:
 *         return 0
*/

static int __pyx_f_6SnapPy_set_cusps(Triangulation *__pyx_v_c_triangulation, PyObject *__pyx_v_fillings) {
  int __pyx_v_num_cusps;
  Py_ssize_t __pyx_v_i;
  PyObject *__pyx_v_meridian = NULL;
  PyObject *__pyx_v_longitude = NULL;
  PyObject *__pyx_v_is_complete = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  Boolean __pyx_t_12;
  __pyx_t_6SnapPy_Real __pyx_t_13;
  __pyx_t_6SnapPy_Real __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_cusps", 0);

  /* "cython/core/tail.pyx":99
 * 
 * cdef int set_cusps(c_Triangulation* c_triangulation, fillings) except -1:
 *     if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *         return 0
 *     if len(fillings) > 0:
*/
  __pyx_t_1 = (__pyx_v_c_triangulation == NULL);
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":100
 * cdef int set_cusps(c_Triangulation* c_triangulation, fillings) except -1:
 *     if c_triangulation == NULL:
 *         return 0             # <<<<<<<<<<<<<<
 *     if len(fillings) > 0:
 *         num_cusps = get_num_cusps(c_triangulation)
*/
    __pyx_r = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":99
 * 
 * cdef int set_cusps(c_Triangulation* c_triangulation, fillings) except -1:
 *     if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *         return 0
 *     if len(fillings) > 0:
*/
  }

  /* "cython/core/tail.pyx":101
 *     if c_triangulation == NULL:
 *         return 0
 *     if len(fillings) > 0:             # <<<<<<<<<<<<<<
 *         num_cusps = get_num_cusps(c_triangulation)
 *         if len(fillings) > num_cusps:
*/
  __pyx_t_2 = PyObject_Length(__pyx_v_fillings); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(2, 101, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 > 0);
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":102
 *         return 0
 *     if len(fillings) > 0:
 *         num_cusps = get_num_cusps(c_triangulation)             # <<<<<<<<<<<<<<
 *         if len(fillings) > num_cusps:
 *             raise ValueError('The number of fillings specified exceeds '
*/
    __pyx_t_3 = get_num_cusps(__pyx_v_c_triangulation); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 102, __pyx_L1_error)
    __pyx_v_num_cusps = __pyx_t_3;

    /* "cython/core/tail.pyx":103
 *     if len(fillings) > 0:
 *         num_cusps = get_num_cusps(c_triangulation)
 *         if len(fillings) > num_cusps:             # <<<<<<<<<<<<<<
 *             raise ValueError('The number of fillings specified exceeds '
 *                              'the number of cusps.')
*/
    __pyx_t_2 = PyObject_Length(__pyx_v_fillings); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(2, 103, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 > __pyx_v_num_cusps);
    if (unlikely(__pyx_t_1)) {

      /* "cython/core/tail.pyx":104
 *         num_cusps = get_num_cusps(c_triangulation)
 *         if len(fillings) > num_cusps:
 *             raise ValueError('The number of fillings specified exceeds '             # <<<<<<<<<<<<<<
 *                              'the number of cusps.')
 *         for i in range(len(fillings)):
*/
      __pyx_t_5 = NULL;
      __pyx_t_6 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_The_number_of_fillings_specified};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 104, __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_ERR(2, 104, __pyx_L1_error)

      /* "cython/core/tail.pyx":103
 *     if len(fillings) > 0:
 *         num_cusps = get_num_cusps(c_triangulation)
 *         if len(fillings) > num_cusps:             # <<<<<<<<<<<<<<
 *             raise ValueError('The number of fillings specified exceeds '
 *                              'the number of cusps.')
*/
    }

    /* "cython/core/tail.pyx":106
 *             raise ValueError('The number of fillings specified exceeds '
 *                              'the number of cusps.')
 *         for i in range(len(fillings)):             # <<<<<<<<<<<<<<
 *             meridian, longitude = fillings[i]
 *             is_complete = (meridian == 0 and longitude == 0)
*/
    __pyx_t_2 = PyObject_Length(__pyx_v_fillings); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(2, 106, __pyx_L1_error)
    __pyx_t_7 = __pyx_t_2;
    for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) {
      __pyx_v_i = __pyx_t_8;

      /* "cython/core/tail.pyx":107
 *                              'the number of cusps.')
 *         for i in range(len(fillings)):
 *             meridian, longitude = fillings[i]             # <<<<<<<<<<<<<<
 *             is_complete = (meridian == 0 and longitude == 0)
 *             set_cusp_info(c_triangulation, <int>i,
*/
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_fillings, __pyx_v_i, Py_ssize_t, 1, PyLong_FromSsize_t, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 107, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
        PyObject* sequence = __pyx_t_4;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(2, 107, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_5);
          __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_9);
        } else {
          __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 107, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_5);
          __pyx_t_9 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 107, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_9);
        }
        #else
        __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 107, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 107, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        #endif
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_10 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 107, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
        index = 0; __pyx_t_5 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_5)) goto __pyx_L8_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_5);
        index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L8_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_9);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < (0)) __PYX_ERR(2, 107, __pyx_L1_error)
        __pyx_t_11 = NULL;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L9_unpacking_done;
        __pyx_L8_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_11 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(2, 107, __pyx_L1_error)
        __pyx_L9_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_v_meridian, __pyx_t_5);
      __pyx_t_5 = 0;
      __Pyx_XDECREF_SET(__pyx_v_longitude, __pyx_t_9);
      __pyx_t_9 = 0;

      /* "cython/core/tail.pyx":108
 *         for i in range(len(fillings)):
 *             meridian, longitude = fillings[i]
 *             is_complete = (meridian == 0 and longitude == 0)             # <<<<<<<<<<<<<<
 *             set_cusp_info(c_triangulation, <int>i,
 *                           is_complete,
*/
      __pyx_t_9 = __Pyx_PyLong_EqObjC(__pyx_v_meridian, __pyx_mstate_global->__pyx_int_0, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 108, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 108, __pyx_L1_error)
      if (__pyx_t_1) {
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      } else {
        __Pyx_INCREF(__pyx_t_9);
        __pyx_t_4 = __pyx_t_9;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        goto __pyx_L10_bool_binop_done;
      }
      __pyx_t_9 = __Pyx_PyLong_EqObjC(__pyx_v_longitude, __pyx_mstate_global->__pyx_int_0, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 108, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_4 = __pyx_t_9;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_L10_bool_binop_done:;
      __Pyx_XDECREF_SET(__pyx_v_is_complete, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "cython/core/tail.pyx":110
 *             is_complete = (meridian == 0 and longitude == 0)
 *             set_cusp_info(c_triangulation, <int>i,
 *                           is_complete,             # <<<<<<<<<<<<<<
 *                           Object2Real(meridian),
 *                           Object2Real(longitude))
*/
      __pyx_t_12 = __Pyx_PyLong_As_Boolean(__pyx_v_is_complete); if (unlikely((__pyx_t_12 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(2, 110, __pyx_L1_error)

      /* "cython/core/tail.pyx":111
 *             set_cusp_info(c_triangulation, <int>i,
 *                           is_complete,
 *                           Object2Real(meridian),             # <<<<<<<<<<<<<<
 *                           Object2Real(longitude))
 *     return 0
*/
      __pyx_t_13 = __pyx_f_6SnapPy_Object2Real(__pyx_v_meridian); if (unlikely(__pyx_t_13 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(2, 111, __pyx_L1_error)

      /* "cython/core/tail.pyx":112
 *                           is_complete,
 *                           Object2Real(meridian),
 *                           Object2Real(longitude))             # <<<<<<<<<<<<<<
 *     return 0
 * 
*/
      __pyx_t_14 = __pyx_f_6SnapPy_Object2Real(__pyx_v_longitude); if (unlikely(__pyx_t_14 == ((__pyx_t_6SnapPy_Real)-1) && PyErr_Occurred())) __PYX_ERR(2, 112, __pyx_L1_error)

      /* "cython/core/tail.pyx":109
 *             meridian, longitude = fillings[i]
 *             is_complete = (meridian == 0 and longitude == 0)
 *             set_cusp_info(c_triangulation, <int>i,             # <<<<<<<<<<<<<<
 *                           is_complete,
 *                           Object2Real(meridian),
*/
      set_cusp_info(__pyx_v_c_triangulation, ((int)__pyx_v_i), __pyx_t_12, __pyx_t_13, __pyx_t_14); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 109, __pyx_L1_error)
    }

    /* "cython/core/tail.pyx":101
 *     if c_triangulation == NULL:
 *         return 0
 *     if len(fillings) > 0:             # <<<<<<<<<<<<<<
 *         num_cusps = get_num_cusps(c_triangulation)
 *         if len(fillings) > num_cusps:
*/
  }

  /* "cython/core/tail.pyx":113
 *                           Object2Real(meridian),
 *                           Object2Real(longitude))
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_r = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":98
 *     return c_triangulation
 * 
 * cdef int set_cusps(c_Triangulation* c_triangulation, fillings) except -1:             # <<<<<<<<<<<<<<
 *     if c_triangulation == NULL:
 *         return 0
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("SnapPy.set_cusps", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_meridian);
  __Pyx_XDECREF(__pyx_v_longitude);
  __Pyx_XDECREF(__pyx_v_is_complete);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":117
 * 
 * # Testing code for get_triangulation
 * def get_triangulation_tester():             # <<<<<<<<<<<<<<
 *     """
 *     >>> get_triangulation_tester() # doctest: +NUMERIC6
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_51get_triangulation_tester(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_6SnapPy_50get_triangulation_tester, "\n    >>> get_triangulation_tester() # doctest: +NUMERIC6\n    L13n9331(0,0)(0,0)(0,0) 16.64369585 Z + Z + Z\n    m003(0,0) 2.02988321 Z/5 + Z\n    m004(0,0) 2.02988321 Z\n    v1205(2,3) 4.70744340 Z/40\n    x012(0,0)(0,0) 3.54972978 Z/2 + Z\n    y123(0,0) 5.02755480 Z\n    L13n9331(3,4)(2,3)(2,1) 14.60215339 Z/53\n    K7_1(0,0) 3.57388254 Z\n    6_1(0,0) 3.16396323 Z\n    5^2_1(3,4)(1,-2) 2.73300075 Z/3\n    8^3_3(0,0)(0,0)(0,0) 8.96736085 Z + Z + Z\n    4_1(0,0) 2.02988321 Z\n    12n123(0,0) 18.15036328 Z\n    16n1235(0,0) 21.29383093 Z\n    b++RL(0,0) 2.02988321 Z\n    b-+RRL(0,0) 2.40690959 Z/3 + Z\n    b+-RL(0,0) 2.02988321 Z/5 + Z\n    b--RRL(0,0) 2.40690959 Z/3 + Z\n    Braid:[1, 2, -1, -2](0,0)(0,0) 4.05976643 Z + Z\n    DT:[(8, 10, -14), (2, 6, 20), (-4, 22, 24, 12, 26, 18, 16)](0,0)(0,0)(0,0) 16.64369585 Z + Z + Z\n    DT[4,6,2](0,0) 0.0 Z\n    DT[mcccgdeGacjBklfmih](0,0)(0,0)(0,0) 16.64369585 Z + Z + Z\n    DT:mcccgdeGacjBklfmih(0,0)(0,0)(0,0) 16.64369585 Z + Z + Z\n    a0*B1(0,0) 2.02988321 Z\n    b1*A0 a0*B1(1,0) 0.0 Z/2\n    dLQbcccdxwb(0,0) 2.56897060 Z/3 + Z\n    L13n9331(0,0)(0,0)(0,0) Z + Z + Z\n    m003(0,0) Z/5 + Z\n    m004(0,0) Z\n    v1205(2,3) Z/40\n    x012(0,0)(0,0) Z/2 + Z\n    y123(0,0) Z\n    L13n9331(3,4)(2,3)(2,1) Z/53\n    K7_1(0,0) Z\n    6_1(0,0) Z\n    5^2_1(3,4)(1,-2) Z/3\n    8^3_3(0,0)(0,0)(0,0) Z + Z + Z\n    4_1(0,0) Z\n    12n123(0,0) Z\n    16n1235(0,0) Z\n    b++RL(0,0) Z\n    b-+RRL(0,0) Z/3 + Z\n    b+-RL(0,0) Z/5 + Z\n    b--RRL(0,0) Z/3 + Z\n    Braid:[1, 2, -1, -2](0,0)(0,0) Z + Z\n    DT:[(8, 10, -14), (2, 6, 20), (-4, 22, 24, 12, 26, 18, 16)](0,0)(0,0)(0,0) Z + Z + Z\n    DT[4,6,2](0,0) Z\n    DT[mcccgdeGacjBklfmih](0,0)(0,0)(0,0) Z + Z + Z\n    DT:mcccgdeGacjBklfmih(0,0)(0,0)(0,0) Z + Z + Z\n    a0*B1(0,0) Z\n    b1*A0 a0*B1(1,0) Z/2\n    dLQbcccdxwb(0,0) Z/3 + Z\n    ");
static PyMethodDef __pyx_mdef_6SnapPy_51get_triangulation_tester = {"get_triangulation_tester", (PyCFunction)__pyx_pw_6SnapPy_51get_triangulation_tester, METH_NOARGS, __pyx_doc_6SnapPy_50get_triangulation_tester};
static PyObject *__pyx_pw_6SnapPy_51get_triangulation_tester(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_triangulation_tester (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6SnapPy_50get_triangulation_tester(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_50get_triangulation_tester(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_v_M = NULL;
  PyObject *__pyx_v_specs = NULL;
  PyObject *__pyx_v_spec = NULL;
  PyObject *__pyx_v_vol = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_triangulation_tester", 0);

  /* "cython/core/tail.pyx":174
 *     """
 * 
 *     M = database.HTLinkExteriors['L13n9331']             # <<<<<<<<<<<<<<
 *     specs = [M._to_string(), 'm003', 'm004', 'v1205(2,3)', 'x012', 'y123',
 *              'L13n9331(3,4)(2,3)(2,1)', 'K7_1', '6_1',
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_database); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_HTLinkExteriors); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_L13n9331); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_M = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":175
 * 
 *     M = database.HTLinkExteriors['L13n9331']
 *     specs = [M._to_string(), 'm003', 'm004', 'v1205(2,3)', 'x012', 'y123',             # <<<<<<<<<<<<<<
 *              'L13n9331(3,4)(2,3)(2,1)', 'K7_1', '6_1',
 *              '5^2_1(3,4)(1,-2)', '8_3^3', 'L104001', '12n123', '16n1235',
*/
  __pyx_t_2 = __pyx_v_M;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_to_string, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 175, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }

  /* "cython/core/tail.pyx":179
 *              '5^2_1(3,4)(1,-2)', '8_3^3', 'L104001', '12n123', '16n1235',
 *              'b++RL', 'b-+RRL', 'b+-RL', 'b--RRL',
 *              'Braid[1,2,-1,-2]', 'DT:'+repr(M.DT_code()), 'DT[4,6,2]',             # <<<<<<<<<<<<<<
 *              'DT['+M.DT_code(alpha=True) + ']',
 *              'DT:'+M.DT_code(alpha=True),
*/
  __pyx_t_4 = __pyx_v_M;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_4 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_DT, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/tail.pyx":180
 *              'b++RL', 'b-+RRL', 'b+-RL', 'b--RRL',
 *              'Braid[1,2,-1,-2]', 'DT:'+repr(M.DT_code()), 'DT[4,6,2]',
 *              'DT['+M.DT_code(alpha=True) + ']',             # <<<<<<<<<<<<<<
 *              'DT:'+M.DT_code(alpha=True),
 *              'Bundle(S_{1,1}, [a0, B1])', 'Splitting(S_{1,0}, [b1, A0], [a0,B1])',
*/
  __pyx_t_5 = __pyx_v_M;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_alpha, Py_True, __pyx_t_6, __pyx_callargs+1, 0) < (0)) __PYX_ERR(2, 180, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_6 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u_DT_2, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyNumber_Add(__pyx_t_6, __pyx_mstate_global->__pyx_kp_u__5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":181
 *              'Braid[1,2,-1,-2]', 'DT:'+repr(M.DT_code()), 'DT[4,6,2]',
 *              'DT['+M.DT_code(alpha=True) + ']',
 *              'DT:'+M.DT_code(alpha=True),             # <<<<<<<<<<<<<<
 *              'Bundle(S_{1,1}, [a0, B1])', 'Splitting(S_{1,0}, [b1, A0], [a0,B1])',
 *              'dLQbcccdxwb']
*/
  __pyx_t_5 = __pyx_v_M;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_5, NULL};
    __pyx_t_7 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_alpha, Py_True, __pyx_t_7, __pyx_callargs+1, 0) < (0)) __PYX_ERR(2, 181, __pyx_L1_error)
    __pyx_t_6 = __Pyx_Object_VectorcallMethod_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_n_u_DT_code, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_7 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u_DT, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":175
 * 
 *     M = database.HTLinkExteriors['L13n9331']
 *     specs = [M._to_string(), 'm003', 'm004', 'v1205(2,3)', 'x012', 'y123',             # <<<<<<<<<<<<<<
 *              'L13n9331(3,4)(2,3)(2,1)', 'K7_1', '6_1',
 *              '5^2_1(3,4)(1,-2)', '8_3^3', 'L104001', '12n123', '16n1235',
*/
  __pyx_t_6 = PyList_New(26); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_1) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_m003);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_m003);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 1, __pyx_mstate_global->__pyx_n_u_m003) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_m004);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_m004);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 2, __pyx_mstate_global->__pyx_n_u_m004) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_v1205_2_3);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_v1205_2_3);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 3, __pyx_mstate_global->__pyx_kp_u_v1205_2_3) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_x012);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_x012);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 4, __pyx_mstate_global->__pyx_n_u_x012) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_y123);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_y123);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 5, __pyx_mstate_global->__pyx_n_u_y123) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_L13n9331_3_4_2_3_2_1);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_L13n9331_3_4_2_3_2_1);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 6, __pyx_mstate_global->__pyx_kp_u_L13n9331_3_4_2_3_2_1) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_K7_1);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_K7_1);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 7, __pyx_mstate_global->__pyx_n_u_K7_1) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_6_1);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_6_1);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 8, __pyx_mstate_global->__pyx_kp_u_6_1) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_5_2_1_3_4_1_2);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_5_2_1_3_4_1_2);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 9, __pyx_mstate_global->__pyx_kp_u_5_2_1_3_4_1_2) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_8_3_3);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_8_3_3);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 10, __pyx_mstate_global->__pyx_kp_u_8_3_3) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_L104001);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_L104001);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 11, __pyx_mstate_global->__pyx_n_u_L104001) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_12n123);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_12n123);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 12, __pyx_mstate_global->__pyx_kp_u_12n123) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_16n1235);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_16n1235);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 13, __pyx_mstate_global->__pyx_kp_u_16n1235) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_b_RL);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_b_RL);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 14, __pyx_mstate_global->__pyx_kp_u_b_RL) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_b_RRL);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_b_RRL);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 15, __pyx_mstate_global->__pyx_kp_u_b_RRL) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_b_RL_2);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_b_RL_2);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 16, __pyx_mstate_global->__pyx_kp_u_b_RL_2) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_b_RRL_2);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_b_RRL_2);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 17, __pyx_mstate_global->__pyx_kp_u_b_RRL_2) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Braid_1_2_1_2);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_Braid_1_2_1_2);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 18, __pyx_mstate_global->__pyx_kp_u_Braid_1_2_1_2) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 19, __pyx_t_2) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_DT_4_6_2);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_DT_4_6_2);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 20, __pyx_mstate_global->__pyx_kp_u_DT_4_6_2) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_4);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 21, __pyx_t_4) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_7);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 22, __pyx_t_7) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Bundle_S__1_1_a0_B1);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_Bundle_S__1_1_a0_B1);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 23, __pyx_mstate_global->__pyx_kp_u_Bundle_S__1_1_a0_B1) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Splitting_S__1_0_b1_A0_a0_B1);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u_Splitting_S__1_0_b1_A0_a0_B1);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 24, __pyx_mstate_global->__pyx_kp_u_Splitting_S__1_0_b1_A0_a0_B1) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_dLQbcccdxwb);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_dLQbcccdxwb);
  if (__Pyx_PyList_SET_ITEM(__pyx_t_6, 25, __pyx_mstate_global->__pyx_n_u_dLQbcccdxwb) != (0)) __PYX_ERR(2, 175, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_7 = 0;
  __pyx_v_specs = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":185
 *              'dLQbcccdxwb']
 * 
 *     for spec in specs:             # <<<<<<<<<<<<<<
 *         M = Manifold(spec)
 *         vol = M.volume()
*/
  __pyx_t_6 = __pyx_v_specs; __Pyx_INCREF(__pyx_t_6);
  __pyx_t_8 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 185, __pyx_L1_error)
      #endif
      if (__pyx_t_8 >= __pyx_temp) break;
    }
    __pyx_t_7 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_8;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 185, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_XDECREF_SET(__pyx_v_spec, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "cython/core/tail.pyx":186
 * 
 *     for spec in specs:
 *         M = Manifold(spec)             # <<<<<<<<<<<<<<
 *         vol = M.volume()
 *         if abs(vol) < 0.1:
*/
    __pyx_t_4 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_spec};
      __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 186, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_7);
    }
    __Pyx_DECREF_SET(__pyx_v_M, ((PyObject *)__pyx_t_7));
    __pyx_t_7 = 0;

    /* "cython/core/tail.pyx":187
 *     for spec in specs:
 *         M = Manifold(spec)
 *         vol = M.volume()             # <<<<<<<<<<<<<<
 *         if abs(vol) < 0.1:
 *             vol = 0.0
*/
    __pyx_t_4 = __pyx_v_M;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_volume, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 187, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __Pyx_XDECREF_SET(__pyx_v_vol, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "cython/core/tail.pyx":188
 *         M = Manifold(spec)
 *         vol = M.volume()
 *         if abs(vol) < 0.1:             # <<<<<<<<<<<<<<
 *             vol = 0.0
 *         print(M, vol, M.homology())
*/
    __pyx_t_7 = __Pyx_PyNumber_Absolute(__pyx_v_vol); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_4 = PyObject_RichCompare(__pyx_t_7, __pyx_mstate_global->__pyx_float_0_1, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 188, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(2, 188, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (__pyx_t_9) {

      /* "cython/core/tail.pyx":189
 *         vol = M.volume()
 *         if abs(vol) < 0.1:
 *             vol = 0.0             # <<<<<<<<<<<<<<
 *         print(M, vol, M.homology())
 * 
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_float_0_0);
      __Pyx_DECREF_SET(__pyx_v_vol, __pyx_mstate_global->__pyx_float_0_0);

      /* "cython/core/tail.pyx":188
 *         M = Manifold(spec)
 *         vol = M.volume()
 *         if abs(vol) < 0.1:             # <<<<<<<<<<<<<<
 *             vol = 0.0
 *         print(M, vol, M.homology())
*/
    }

    /* "cython/core/tail.pyx":190
 *         if abs(vol) < 0.1:
 *             vol = 0.0
 *         print(M, vol, M.homology())             # <<<<<<<<<<<<<<
 * 
 *     for spec in specs:
*/
    __pyx_t_7 = NULL;
    __pyx_t_1 = __pyx_v_M;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_homology, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 190, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_7, __pyx_v_M, __pyx_v_vol, __pyx_t_2};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_3, (4-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 190, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":185
 *              'dLQbcccdxwb']
 * 
 *     for spec in specs:             # <<<<<<<<<<<<<<
 *         M = Manifold(spec)
 *         vol = M.volume()
*/
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":192
 *         print(M, vol, M.homology())
 * 
 *     for spec in specs:             # <<<<<<<<<<<<<<
 *         M = Triangulation(spec)
 *         print(M, M.homology())
*/
  __pyx_t_6 = __pyx_v_specs; __Pyx_INCREF(__pyx_t_6);
  __pyx_t_8 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_6);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 192, __pyx_L1_error)
      #endif
      if (__pyx_t_8 >= __pyx_temp) break;
    }
    __pyx_t_4 = __Pyx_PyList_GetItemRefFast(__pyx_t_6, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_8;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_spec, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":193
 * 
 *     for spec in specs:
 *         M = Triangulation(spec)             # <<<<<<<<<<<<<<
 *         print(M, M.homology())
 * 
*/
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_spec};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 193, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __Pyx_DECREF_SET(__pyx_v_M, ((PyObject *)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":194
 *     for spec in specs:
 *         M = Triangulation(spec)
 *         print(M, M.homology())             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __pyx_t_2 = NULL;
    __pyx_t_1 = __pyx_v_M;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
      __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_homology, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
    }
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_M, __pyx_t_7};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":192
 *         print(M, vol, M.homology())
 * 
 *     for spec in specs:             # <<<<<<<<<<<<<<
 *         M = Triangulation(spec)
 *         print(M, M.homology())
*/
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":117
 * 
 * # Testing code for get_triangulation
 * def get_triangulation_tester():             # <<<<<<<<<<<<<<
 *     """
 *     >>> get_triangulation_tester() # doctest: +NUMERIC6
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("SnapPy.get_triangulation_tester", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_M);
  __Pyx_XDECREF(__pyx_v_specs);
  __Pyx_XDECREF(__pyx_v_spec);
  __Pyx_XDECREF(__pyx_v_vol);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":227
 * 
 * 
 * def extract_HT_knot(record, crossings, alternation):             # <<<<<<<<<<<<<<
 *     DT = []
 *     size = (1+crossings)//2
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_53extract_HT_knot(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_53extract_HT_knot = {"extract_HT_knot", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_53extract_HT_knot, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_53extract_HT_knot(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_record = 0;
  PyObject *__pyx_v_crossings = 0;
  PyObject *__pyx_v_alternation = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("extract_HT_knot (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_record,&__pyx_mstate_global->__pyx_n_u_crossings,&__pyx_mstate_global->__pyx_n_u_alternation,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 227, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 227, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 227, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 227, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "extract_HT_knot", 0) < (0)) __PYX_ERR(2, 227, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("extract_HT_knot", 1, 3, 3, i); __PYX_ERR(2, 227, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 227, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 227, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 227, __pyx_L3_error)
    }
    __pyx_v_record = values[0];
    __pyx_v_crossings = values[1];
    __pyx_v_alternation = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("extract_HT_knot", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 227, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.extract_HT_knot", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_52extract_HT_knot(__pyx_self, __pyx_v_record, __pyx_v_crossings, __pyx_v_alternation);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_52extract_HT_knot(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_record, PyObject *__pyx_v_crossings, PyObject *__pyx_v_alternation) {
  PyObject *__pyx_v_DT = NULL;
  PyObject *__pyx_v_size = NULL;
  PyObject *__pyx_v_byte = NULL;
  PyObject *__pyx_v_first_nybble = NULL;
  PyObject *__pyx_v_second_nybble = NULL;
  PyObject *__pyx_v_signs = NULL;
  PyObject *__pyx_v_mask = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  size_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("extract_HT_knot", 0);

  /* "cython/core/tail.pyx":228
 * 
 * def extract_HT_knot(record, crossings, alternation):
 *     DT = []             # <<<<<<<<<<<<<<
 *     size = (1+crossings)//2
 *     for byte in record[:size]:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_DT = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":229
 * def extract_HT_knot(record, crossings, alternation):
 *     DT = []
 *     size = (1+crossings)//2             # <<<<<<<<<<<<<<
 *     for byte in record[:size]:
 *         first_nybble = (byte & 0xf0) >> 4
*/
  __pyx_t_1 = __Pyx_PyLong_AddCObj(__pyx_mstate_global->__pyx_int_1, __pyx_v_crossings, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_FloorDivideObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_size = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":230
 *     DT = []
 *     size = (1+crossings)//2
 *     for byte in record[:size]:             # <<<<<<<<<<<<<<
 *         first_nybble = (byte & 0xf0) >> 4
 *         if first_nybble == 0:
*/
  __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_record, 0, 0, NULL, &__pyx_v_size, NULL, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
    __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 230, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 230, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        __pyx_t_2 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_3;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 230, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_2 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3));
        #else
        __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_3);
        #endif
        ++__pyx_t_3;
      }
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 230, __pyx_L1_error)
    } else {
      __pyx_t_2 = __pyx_t_4(__pyx_t_1);
      if (unlikely(!__pyx_t_2)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 230, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_byte, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":231
 *     size = (1+crossings)//2
 *     for byte in record[:size]:
 *         first_nybble = (byte & 0xf0) >> 4             # <<<<<<<<<<<<<<
 *         if first_nybble == 0:
 *             first_nybble = 16
*/
    __pyx_t_2 = __Pyx_PyLong_AndObjC(__pyx_v_byte, __pyx_mstate_global->__pyx_int_240, 0xf0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 231, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_PyLong_RshiftObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_4, 4, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 231, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF_SET(__pyx_v_first_nybble, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":232
 *     for byte in record[:size]:
 *         first_nybble = (byte & 0xf0) >> 4
 *         if first_nybble == 0:             # <<<<<<<<<<<<<<
 *             first_nybble = 16
 *         DT.append(2*first_nybble)
*/
    __pyx_t_6 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_first_nybble, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(2, 232, __pyx_L1_error)
    if (__pyx_t_6) {

      /* "cython/core/tail.pyx":233
 *         first_nybble = (byte & 0xf0) >> 4
 *         if first_nybble == 0:
 *             first_nybble = 16             # <<<<<<<<<<<<<<
 *         DT.append(2*first_nybble)
 *         second_nybble = byte & 0x0f
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_16);
      __Pyx_DECREF_SET(__pyx_v_first_nybble, __pyx_mstate_global->__pyx_int_16);

      /* "cython/core/tail.pyx":232
 *     for byte in record[:size]:
 *         first_nybble = (byte & 0xf0) >> 4
 *         if first_nybble == 0:             # <<<<<<<<<<<<<<
 *             first_nybble = 16
 *         DT.append(2*first_nybble)
*/
    }

    /* "cython/core/tail.pyx":234
 *         if first_nybble == 0:
 *             first_nybble = 16
 *         DT.append(2*first_nybble)             # <<<<<<<<<<<<<<
 *         second_nybble = byte & 0x0f
 *         if second_nybble == 0:
*/
    __pyx_t_5 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_2, __pyx_v_first_nybble, 2, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 234, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_DT, __pyx_t_5); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 234, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":235
 *             first_nybble = 16
 *         DT.append(2*first_nybble)
 *         second_nybble = byte & 0x0f             # <<<<<<<<<<<<<<
 *         if second_nybble == 0:
 *             second_nybble = 16
*/
    __pyx_t_5 = __Pyx_PyLong_AndObjC(__pyx_v_byte, __pyx_mstate_global->__pyx_int_15, 0x0f, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_second_nybble, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":236
 *         DT.append(2*first_nybble)
 *         second_nybble = byte & 0x0f
 *         if second_nybble == 0:             # <<<<<<<<<<<<<<
 *             second_nybble = 16
 *         DT.append(2*second_nybble)
*/
    __pyx_t_6 = (__Pyx_PyLong_BoolEqObjC(__pyx_v_second_nybble, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(2, 236, __pyx_L1_error)
    if (__pyx_t_6) {

      /* "cython/core/tail.pyx":237
 *         second_nybble = byte & 0x0f
 *         if second_nybble == 0:
 *             second_nybble = 16             # <<<<<<<<<<<<<<
 *         DT.append(2*second_nybble)
 *     if alternation == 'n':
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_16);
      __Pyx_DECREF_SET(__pyx_v_second_nybble, __pyx_mstate_global->__pyx_int_16);

      /* "cython/core/tail.pyx":236
 *         DT.append(2*first_nybble)
 *         second_nybble = byte & 0x0f
 *         if second_nybble == 0:             # <<<<<<<<<<<<<<
 *             second_nybble = 16
 *         DT.append(2*second_nybble)
*/
    }

    /* "cython/core/tail.pyx":238
 *         if second_nybble == 0:
 *             second_nybble = 16
 *         DT.append(2*second_nybble)             # <<<<<<<<<<<<<<
 *     if alternation == 'n':
 *         signs = record[-2]<<8 | record[-1]
*/
    __pyx_t_5 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_2, __pyx_v_second_nybble, 2, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 238, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_DT, __pyx_t_5); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 238, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":230
 *     DT = []
 *     size = (1+crossings)//2
 *     for byte in record[:size]:             # <<<<<<<<<<<<<<
 *         first_nybble = (byte & 0xf0) >> 4
 *         if first_nybble == 0:
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":239
 *             second_nybble = 16
 *         DT.append(2*second_nybble)
 *     if alternation == 'n':             # <<<<<<<<<<<<<<
 *         signs = record[-2]<<8 | record[-1]
 *         mask = 0x8000
*/
  __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_v_alternation, __pyx_mstate_global->__pyx_n_u_n, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(2, 239, __pyx_L1_error)
  if (__pyx_t_6) {

    /* "cython/core/tail.pyx":240
 *         DT.append(2*second_nybble)
 *     if alternation == 'n':
 *         signs = record[-2]<<8 | record[-1]             # <<<<<<<<<<<<<<
 *         mask = 0x8000
 *         for i in range(crossings):
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_record, -2L, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyLong_LshiftObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_8, 8, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_record, -1L, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyNumber_Or(__pyx_t_5, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_signs = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":241
 *     if alternation == 'n':
 *         signs = record[-2]<<8 | record[-1]
 *         mask = 0x8000             # <<<<<<<<<<<<<<
 *         for i in range(crossings):
 *             if (signs & (mask >> i)) == 0:
*/
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_32768);
    __pyx_v_mask = __pyx_mstate_global->__pyx_int_32768;

    /* "cython/core/tail.pyx":242
 *         signs = record[-2]<<8 | record[-1]
 *         mask = 0x8000
 *         for i in range(crossings):             # <<<<<<<<<<<<<<
 *             if (signs & (mask >> i)) == 0:
 *                 DT[i] = -DT[i]
*/
    __pyx_t_1 = NULL;
    __pyx_t_8 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_crossings};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 242, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 242, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    for (;;) {
      {
        __pyx_t_2 = __pyx_t_4(__pyx_t_1);
        if (unlikely(!__pyx_t_2)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 242, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/tail.pyx":243
 *         mask = 0x8000
 *         for i in range(crossings):
 *             if (signs & (mask >> i)) == 0:             # <<<<<<<<<<<<<<
 *                 DT[i] = -DT[i]
 *     return DT[:crossings]
*/
      __pyx_t_2 = PyNumber_Rshift(__pyx_v_mask, __pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 243, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = PyNumber_And(__pyx_v_signs, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 243, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_6 = (__Pyx_PyLong_BoolEqObjC(__pyx_t_5, __pyx_mstate_global->__pyx_int_0, 0, 0)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(2, 243, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_6) {

        /* "cython/core/tail.pyx":244
 *         for i in range(crossings):
 *             if (signs & (mask >> i)) == 0:
 *                 DT[i] = -DT[i]             # <<<<<<<<<<<<<<
 *     return DT[:crossings]
 * 
*/
        __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_v_DT, __pyx_v_i); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 244, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_2 = PyNumber_Negative(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 244, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely((PyObject_SetItem(__pyx_v_DT, __pyx_v_i, __pyx_t_2) < 0))) __PYX_ERR(2, 244, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        /* "cython/core/tail.pyx":243
 *         mask = 0x8000
 *         for i in range(crossings):
 *             if (signs & (mask >> i)) == 0:             # <<<<<<<<<<<<<<
 *                 DT[i] = -DT[i]
 *     return DT[:crossings]
*/
      }

      /* "cython/core/tail.pyx":242
 *         signs = record[-2]<<8 | record[-1]
 *         mask = 0x8000
 *         for i in range(crossings):             # <<<<<<<<<<<<<<
 *             if (signs & (mask >> i)) == 0:
 *                 DT[i] = -DT[i]
*/
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/tail.pyx":239
 *             second_nybble = 16
 *         DT.append(2*second_nybble)
 *     if alternation == 'n':             # <<<<<<<<<<<<<<
 *         signs = record[-2]<<8 | record[-1]
 *         mask = 0x8000
*/
  }

  /* "cython/core/tail.pyx":245
 *             if (signs & (mask >> i)) == 0:
 *                 DT[i] = -DT[i]
 *     return DT[:crossings]             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_crossings);
  __pyx_t_1 = __pyx_v_crossings;
  __pyx_t_6 = (__pyx_t_1 == Py_None);
  if (__pyx_t_6) {
    __pyx_t_3 = PY_SSIZE_T_MAX;
  } else {
    __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 245, __pyx_L1_error)
    __pyx_t_3 = __pyx_t_9;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyList_GetSlice(__pyx_v_DT, 0, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":227
 * 
 * 
 * def extract_HT_knot(record, crossings, alternation):             # <<<<<<<<<<<<<<
 *     DT = []
 *     size = (1+crossings)//2
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.extract_HT_knot", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_DT);
  __Pyx_XDECREF(__pyx_v_size);
  __Pyx_XDECREF(__pyx_v_byte);
  __Pyx_XDECREF(__pyx_v_first_nybble);
  __Pyx_XDECREF(__pyx_v_second_nybble);
  __Pyx_XDECREF(__pyx_v_signs);
  __Pyx_XDECREF(__pyx_v_mask);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":248
 * 
 * 
 * def get_HT_knot_DT(crossings, alternation, index):             # <<<<<<<<<<<<<<
 *     size = (1 + crossings) // 2
 *     index -= 1
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_55get_HT_knot_DT(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_55get_HT_knot_DT = {"get_HT_knot_DT", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_55get_HT_knot_DT, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_55get_HT_knot_DT(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_crossings = 0;
  PyObject *__pyx_v_alternation = 0;
  PyObject *__pyx_v_index = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_HT_knot_DT (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_crossings,&__pyx_mstate_global->__pyx_n_u_alternation,&__pyx_mstate_global->__pyx_n_u_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 248, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 248, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 248, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 248, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_HT_knot_DT", 0) < (0)) __PYX_ERR(2, 248, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_HT_knot_DT", 1, 3, 3, i); __PYX_ERR(2, 248, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 248, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 248, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 248, __pyx_L3_error)
    }
    __pyx_v_crossings = values[0];
    __pyx_v_alternation = values[1];
    __pyx_v_index = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_HT_knot_DT", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 248, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.get_HT_knot_DT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_54get_HT_knot_DT(__pyx_self, __pyx_v_crossings, __pyx_v_alternation, __pyx_v_index);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_54get_HT_knot_DT(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_crossings, PyObject *__pyx_v_alternation, PyObject *__pyx_v_index) {
  PyObject *__pyx_v_size = NULL;
  PyObject *__pyx_v_offset = NULL;
  PyObject *__pyx_v_data = NULL;
  PyObject *__pyx_v_record = NULL;
  PyObject *__pyx_v_DT = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_HT_knot_DT", 0);
  __Pyx_INCREF(__pyx_v_index);

  /* "cython/core/tail.pyx":249
 * 
 * def get_HT_knot_DT(crossings, alternation, index):
 *     size = (1 + crossings) // 2             # <<<<<<<<<<<<<<
 *     index -= 1
 *     if (alternation == 'a'
*/
  __pyx_t_1 = __Pyx_PyLong_AddCObj(__pyx_mstate_global->__pyx_int_1, __pyx_v_crossings, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_FloorDivideObjC(__pyx_t_1, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_size = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":250
 * def get_HT_knot_DT(crossings, alternation, index):
 *     size = (1 + crossings) // 2
 *     index -= 1             # <<<<<<<<<<<<<<
 *     if (alternation == 'a'
 *             and crossings in Alternating_numbers
*/
  __pyx_t_2 = __Pyx_PyLong_SubtractObjC(__pyx_v_index, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF_SET(__pyx_v_index, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":251
 *     size = (1 + crossings) // 2
 *     index -= 1
 *     if (alternation == 'a'             # <<<<<<<<<<<<<<
 *             and crossings in Alternating_numbers
 *             and 0 <= index < Alternating_numbers[crossings]):
*/
  __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_alternation, __pyx_mstate_global->__pyx_n_u_a_2, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(2, 251, __pyx_L1_error)
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }

  /* "cython/core/tail.pyx":252
 *     index -= 1
 *     if (alternation == 'a'
 *             and crossings in Alternating_numbers             # <<<<<<<<<<<<<<
 *             and 0 <= index < Alternating_numbers[crossings]):
 *         offset = 8*(Alternating_offsets[crossings] + index)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Alternating_numbers); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_v_crossings, __pyx_t_2, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(2, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }

  /* "cython/core/tail.pyx":253
 *     if (alternation == 'a'
 *             and crossings in Alternating_numbers
 *             and 0 <= index < Alternating_numbers[crossings]):             # <<<<<<<<<<<<<<
 *         offset = 8*(Alternating_offsets[crossings] + index)
 *         Alternating_table.seek(offset)
*/
  __pyx_t_2 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_index, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 253, __pyx_L1_error)
  if (__Pyx_PyObject_IsTrue(__pyx_t_2)) {
    __Pyx_DECREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_Alternating_numbers); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_crossings); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_index, __pyx_t_5, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 253, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(2, 253, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __pyx_t_4;
  __pyx_L4_bool_binop_done:;

  /* "cython/core/tail.pyx":251
 *     size = (1 + crossings) // 2
 *     index -= 1
 *     if (alternation == 'a'             # <<<<<<<<<<<<<<
 *             and crossings in Alternating_numbers
 *             and 0 <= index < Alternating_numbers[crossings]):
*/
  if (__pyx_t_3) {

    /* "cython/core/tail.pyx":254
 *             and crossings in Alternating_numbers
 *             and 0 <= index < Alternating_numbers[crossings]):
 *         offset = 8*(Alternating_offsets[crossings] + index)             # <<<<<<<<<<<<<<
 *         Alternating_table.seek(offset)
 *         data = Alternating_table.read(size)
*/
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Alternating_offsets); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_v_crossings); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Add(__pyx_t_5, __pyx_v_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_8, __pyx_t_2, 8, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_offset = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":255
 *             and 0 <= index < Alternating_numbers[crossings]):
 *         offset = 8*(Alternating_offsets[crossings] + index)
 *         Alternating_table.seek(offset)             # <<<<<<<<<<<<<<
 *         data = Alternating_table.read(size)
 *         record = struct.unpack('%dB' % size, data)
*/
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_Alternating_table); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_seek); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_offset};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 255, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":256
 *         offset = 8*(Alternating_offsets[crossings] + index)
 *         Alternating_table.seek(offset)
 *         data = Alternating_table.read(size)             # <<<<<<<<<<<<<<
 *         record = struct.unpack('%dB' % size, data)
 *     elif (alternation == 'n'
*/
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Alternating_table); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_size};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 256, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_v_data = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":257
 *         Alternating_table.seek(offset)
 *         data = Alternating_table.read(size)
 *         record = struct.unpack('%dB' % size, data)             # <<<<<<<<<<<<<<
 *     elif (alternation == 'n'
 *           and crossings in Nonalternating_numbers
*/
    __pyx_t_1 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_struct); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 257, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_unpack); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 257, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_dB, __pyx_v_size); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 257, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
      assert(__pyx_t_1);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_t_6, __pyx_v_data};
      __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __pyx_v_record = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":251
 *     size = (1 + crossings) // 2
 *     index -= 1
 *     if (alternation == 'a'             # <<<<<<<<<<<<<<
 *             and crossings in Alternating_numbers
 *             and 0 <= index < Alternating_numbers[crossings]):
*/
    goto __pyx_L3;
  }

  /* "cython/core/tail.pyx":258
 *         data = Alternating_table.read(size)
 *         record = struct.unpack('%dB' % size, data)
 *     elif (alternation == 'n'             # <<<<<<<<<<<<<<
 *           and crossings in Nonalternating_numbers
 *           and 0 <= index < Nonalternating_numbers[crossings]):
*/
  __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_v_alternation, __pyx_mstate_global->__pyx_n_u_n, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(2, 258, __pyx_L1_error)
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L7_bool_binop_done;
  }

  /* "cython/core/tail.pyx":259
 *         record = struct.unpack('%dB' % size, data)
 *     elif (alternation == 'n'
 *           and crossings in Nonalternating_numbers             # <<<<<<<<<<<<<<
 *           and 0 <= index < Nonalternating_numbers[crossings]):
 *         offset = 10*(Nonalternating_offsets[crossings] + index)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Nonalternating_numbers); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_v_crossings, __pyx_t_5, Py_EQ)); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(2, 259, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L7_bool_binop_done;
  }

  /* "cython/core/tail.pyx":260
 *     elif (alternation == 'n'
 *           and crossings in Nonalternating_numbers
 *           and 0 <= index < Nonalternating_numbers[crossings]):             # <<<<<<<<<<<<<<
 *         offset = 10*(Nonalternating_offsets[crossings] + index)
 *         Nonalternating_table.seek(offset)
*/
  __pyx_t_5 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_0, __pyx_v_index, Py_LE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 260, __pyx_L1_error)
  if (__Pyx_PyObject_IsTrue(__pyx_t_5)) {
    __Pyx_DECREF(__pyx_t_5);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Nonalternating_numbers); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_v_crossings); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_5 = PyObject_RichCompare(__pyx_v_index, __pyx_t_6, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 260, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(2, 260, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = __pyx_t_4;
  __pyx_L7_bool_binop_done:;

  /* "cython/core/tail.pyx":258
 *         data = Alternating_table.read(size)
 *         record = struct.unpack('%dB' % size, data)
 *     elif (alternation == 'n'             # <<<<<<<<<<<<<<
 *           and crossings in Nonalternating_numbers
 *           and 0 <= index < Nonalternating_numbers[crossings]):
*/
  if (likely(__pyx_t_3)) {

    /* "cython/core/tail.pyx":261
 *           and crossings in Nonalternating_numbers
 *           and 0 <= index < Nonalternating_numbers[crossings]):
 *         offset = 10*(Nonalternating_offsets[crossings] + index)             # <<<<<<<<<<<<<<
 *         Nonalternating_table.seek(offset)
 *         data = Nonalternating_table.read(size+2)
*/
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Nonalternating_offsets); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetItem(__pyx_t_5, __pyx_v_crossings); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Add(__pyx_t_6, __pyx_v_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyLong_MultiplyCObj(__pyx_mstate_global->__pyx_int_10, __pyx_t_5, 10, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_offset = __pyx_t_6;
    __pyx_t_6 = 0;

    /* "cython/core/tail.pyx":262
 *           and 0 <= index < Nonalternating_numbers[crossings]):
 *         offset = 10*(Nonalternating_offsets[crossings] + index)
 *         Nonalternating_table.seek(offset)             # <<<<<<<<<<<<<<
 *         data = Nonalternating_table.read(size+2)
 *         record = struct.unpack('%dB' % (size+2), data)
*/
    __pyx_t_5 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Nonalternating_table); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_seek); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
      assert(__pyx_t_5);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_offset};
      __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 262, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/tail.pyx":263
 *         offset = 10*(Nonalternating_offsets[crossings] + index)
 *         Nonalternating_table.seek(offset)
 *         data = Nonalternating_table.read(size+2)             # <<<<<<<<<<<<<<
 *         record = struct.unpack('%dB' % (size+2), data)
 *     else:
*/
    __pyx_t_1 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Nonalternating_table); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_read); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_v_size, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
      assert(__pyx_t_1);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_5};
      __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_v_data = __pyx_t_6;
    __pyx_t_6 = 0;

    /* "cython/core/tail.pyx":264
 *         Nonalternating_table.seek(offset)
 *         data = Nonalternating_table.read(size+2)
 *         record = struct.unpack('%dB' % (size+2), data)             # <<<<<<<<<<<<<<
 *     else:
 *         raise ValueError('You have specified a Hoste-Thistlethwaite '
*/
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_struct); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_unpack); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyLong_AddObjC(__pyx_v_size, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_8 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_dB, __pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_8, __pyx_v_data};
      __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __pyx_v_record = __pyx_t_6;
    __pyx_t_6 = 0;

    /* "cython/core/tail.pyx":258
 *         data = Alternating_table.read(size)
 *         record = struct.unpack('%dB' % size, data)
 *     elif (alternation == 'n'             # <<<<<<<<<<<<<<
 *           and crossings in Nonalternating_numbers
 *           and 0 <= index < Nonalternating_numbers[crossings]):
*/
    goto __pyx_L3;
  }

  /* "cython/core/tail.pyx":266
 *         record = struct.unpack('%dB' % (size+2), data)
 *     else:
 *         raise ValueError('You have specified a Hoste-Thistlethwaite '             # <<<<<<<<<<<<<<
 *                          'knot with an \n'
 *                          'inappropriate index or number of crossings.')
*/
  /*else*/ {
    __pyx_t_1 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_You_have_specified_a_Hoste_Thist};
      __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 266, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    __Pyx_Raise(__pyx_t_6, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __PYX_ERR(2, 266, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cython/core/tail.pyx":270
 *                          'inappropriate index or number of crossings.')
 * 
 *     DT = extract_HT_knot(record, crossings, alternation)             # <<<<<<<<<<<<<<
 *     return DT
 * 
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_extract_HT_knot); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_v_record, __pyx_v_crossings, __pyx_v_alternation};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 270, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_v_DT = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":271
 * 
 *     DT = extract_HT_knot(record, crossings, alternation)
 *     return DT             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_DT);
  __pyx_r = __pyx_v_DT;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":248
 * 
 * 
 * def get_HT_knot_DT(crossings, alternation, index):             # <<<<<<<<<<<<<<
 *     size = (1 + crossings) // 2
 *     index -= 1
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.get_HT_knot_DT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_size);
  __Pyx_XDECREF(__pyx_v_offset);
  __Pyx_XDECREF(__pyx_v_data);
  __Pyx_XDECREF(__pyx_v_record);
  __Pyx_XDECREF(__pyx_v_DT);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":274
 * 
 * 
 * def get_HT_knot_by_index(alternation, index, manifold_class):             # <<<<<<<<<<<<<<
 *     crossings = 16
 *     if alternation == 'a':
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_57get_HT_knot_by_index(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_57get_HT_knot_by_index = {"get_HT_knot_by_index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_57get_HT_knot_by_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_57get_HT_knot_by_index(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_alternation = 0;
  PyObject *__pyx_v_index = 0;
  PyObject *__pyx_v_manifold_class = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_HT_knot_by_index (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_alternation,&__pyx_mstate_global->__pyx_n_u_index,&__pyx_mstate_global->__pyx_n_u_manifold_class_2,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 274, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 274, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 274, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 274, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_HT_knot_by_index", 0) < (0)) __PYX_ERR(2, 274, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_HT_knot_by_index", 1, 3, 3, i); __PYX_ERR(2, 274, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 274, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 274, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 274, __pyx_L3_error)
    }
    __pyx_v_alternation = values[0];
    __pyx_v_index = values[1];
    __pyx_v_manifold_class = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_HT_knot_by_index", 1, 3, 3, __pyx_nargs); __PYX_ERR(2, 274, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.get_HT_knot_by_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_56get_HT_knot_by_index(__pyx_self, __pyx_v_alternation, __pyx_v_index, __pyx_v_manifold_class);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_56get_HT_knot_by_index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_alternation, PyObject *__pyx_v_index, PyObject *__pyx_v_manifold_class) {
  PyObject *__pyx_v_crossings = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_index_within_crossings = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_HT_knot_by_index", 0);

  /* "cython/core/tail.pyx":275
 * 
 * def get_HT_knot_by_index(alternation, index, manifold_class):
 *     crossings = 16             # <<<<<<<<<<<<<<
 *     if alternation == 'a':
 *         for i in range(3, 17):
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_16);
  __pyx_v_crossings = __pyx_mstate_global->__pyx_int_16;

  /* "cython/core/tail.pyx":276
 * def get_HT_knot_by_index(alternation, index, manifold_class):
 *     crossings = 16
 *     if alternation == 'a':             # <<<<<<<<<<<<<<
 *         for i in range(3, 17):
 *             if Alternating_offsets[i] > index:
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_alternation, __pyx_mstate_global->__pyx_n_u_a_2, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 276, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":277
 *     crossings = 16
 *     if alternation == 'a':
 *         for i in range(3, 17):             # <<<<<<<<<<<<<<
 *             if Alternating_offsets[i] > index:
 *                 crossings = i-1
*/
    for (__pyx_t_2 = 3; __pyx_t_2 < 17; __pyx_t_2+=1) {
      __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/tail.pyx":278
 *     if alternation == 'a':
 *         for i in range(3, 17):
 *             if Alternating_offsets[i] > index:             # <<<<<<<<<<<<<<
 *                 crossings = i-1
 *                 break
*/
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Alternating_offsets); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 278, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 278, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_v_index, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 278, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 278, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_1) {

        /* "cython/core/tail.pyx":279
 *         for i in range(3, 17):
 *             if Alternating_offsets[i] > index:
 *                 crossings = i-1             # <<<<<<<<<<<<<<
 *                 break
 *         index_within_crossings = index - Alternating_offsets[crossings]
*/
        __pyx_t_3 = __Pyx_PyLong_SubtractObjC(__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF_SET(__pyx_v_crossings, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "cython/core/tail.pyx":280
 *             if Alternating_offsets[i] > index:
 *                 crossings = i-1
 *                 break             # <<<<<<<<<<<<<<
 *         index_within_crossings = index - Alternating_offsets[crossings]
 *     elif alternation == 'n':
*/
        goto __pyx_L5_break;

        /* "cython/core/tail.pyx":278
 *     if alternation == 'a':
 *         for i in range(3, 17):
 *             if Alternating_offsets[i] > index:             # <<<<<<<<<<<<<<
 *                 crossings = i-1
 *                 break
*/
      }
    }
    __pyx_L5_break:;

    /* "cython/core/tail.pyx":281
 *                 crossings = i-1
 *                 break
 *         index_within_crossings = index - Alternating_offsets[crossings]             # <<<<<<<<<<<<<<
 *     elif alternation == 'n':
 *         for i in range(8, 17):
*/
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Alternating_offsets); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_crossings); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Subtract(__pyx_v_index, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_index_within_crossings = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":276
 * def get_HT_knot_by_index(alternation, index, manifold_class):
 *     crossings = 16
 *     if alternation == 'a':             # <<<<<<<<<<<<<<
 *         for i in range(3, 17):
 *             if Alternating_offsets[i] > index:
*/
    goto __pyx_L3;
  }

  /* "cython/core/tail.pyx":282
 *                 break
 *         index_within_crossings = index - Alternating_offsets[crossings]
 *     elif alternation == 'n':             # <<<<<<<<<<<<<<
 *         for i in range(8, 17):
 *             if Nonalternating_offsets[i] > index:
*/
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_alternation, __pyx_mstate_global->__pyx_n_u_n, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 282, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":283
 *         index_within_crossings = index - Alternating_offsets[crossings]
 *     elif alternation == 'n':
 *         for i in range(8, 17):             # <<<<<<<<<<<<<<
 *             if Nonalternating_offsets[i] > index:
 *                 crossings = i-1
*/
    for (__pyx_t_2 = 8; __pyx_t_2 < 17; __pyx_t_2+=1) {
      __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 283, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/tail.pyx":284
 *     elif alternation == 'n':
 *         for i in range(8, 17):
 *             if Nonalternating_offsets[i] > index:             # <<<<<<<<<<<<<<
 *                 crossings = i-1
 *                 break
*/
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Nonalternating_offsets); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 284, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_i); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 284, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_v_index, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 284, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 284, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_1) {

        /* "cython/core/tail.pyx":285
 *         for i in range(8, 17):
 *             if Nonalternating_offsets[i] > index:
 *                 crossings = i-1             # <<<<<<<<<<<<<<
 *                 break
 *         index_within_crossings = index - Nonalternating_offsets[crossings]
*/
        __pyx_t_3 = __Pyx_PyLong_SubtractObjC(__pyx_v_i, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 285, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF_SET(__pyx_v_crossings, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "cython/core/tail.pyx":286
 *             if Nonalternating_offsets[i] > index:
 *                 crossings = i-1
 *                 break             # <<<<<<<<<<<<<<
 *         index_within_crossings = index - Nonalternating_offsets[crossings]
 *     name = '%d' % crossings + alternation + '%d' % (index_within_crossings + 1)
*/
        goto __pyx_L8_break;

        /* "cython/core/tail.pyx":284
 *     elif alternation == 'n':
 *         for i in range(8, 17):
 *             if Nonalternating_offsets[i] > index:             # <<<<<<<<<<<<<<
 *                 crossings = i-1
 *                 break
*/
      }
    }
    __pyx_L8_break:;

    /* "cython/core/tail.pyx":287
 *                 crossings = i-1
 *                 break
 *         index_within_crossings = index - Nonalternating_offsets[crossings]             # <<<<<<<<<<<<<<
 *     name = '%d' % crossings + alternation + '%d' % (index_within_crossings + 1)
 *     return manifold_class(name)
*/
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Nonalternating_offsets); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_crossings); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Subtract(__pyx_v_index, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_index_within_crossings = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":282
 *                 break
 *         index_within_crossings = index - Alternating_offsets[crossings]
 *     elif alternation == 'n':             # <<<<<<<<<<<<<<
 *         for i in range(8, 17):
 *             if Nonalternating_offsets[i] > index:
*/
  }
  __pyx_L3:;

  /* "cython/core/tail.pyx":288
 *                 break
 *         index_within_crossings = index - Nonalternating_offsets[crossings]
 *     name = '%d' % crossings + alternation + '%d' % (index_within_crossings + 1)             # <<<<<<<<<<<<<<
 *     return manifold_class(name)
 * 
*/
  __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d, __pyx_v_crossings); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_v_alternation); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_v_index_within_crossings)) { __Pyx_RaiseUnboundLocalError("index_within_crossings"); __PYX_ERR(2, 288, __pyx_L1_error) }
  __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_v_index_within_crossings, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_v_name = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cython/core/tail.pyx":289
 *         index_within_crossings = index - Nonalternating_offsets[crossings]
 *     name = '%d' % crossings + alternation + '%d' % (index_within_crossings + 1)
 *     return manifold_class(name)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_5 = NULL;
  __Pyx_INCREF(__pyx_v_manifold_class);
  __pyx_t_4 = __pyx_v_manifold_class; 
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_name};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":274
 * 
 * 
 * def get_HT_knot_by_index(alternation, index, manifold_class):             # <<<<<<<<<<<<<<
 *     crossings = 16
 *     if alternation == 'a':
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.get_HT_knot_by_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_crossings);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_index_within_crossings);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":301
 *     length = 0
 * 
 *     def __init__(self, indices=(0, 0, 0)):             # <<<<<<<<<<<<<<
 *         myslice = slice(*indices)
 *         self.start, self.stop, self.step = myslice.indices(self.length)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_6Census_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_6Census_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_6Census_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_6Census_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_indices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 301, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 301, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 301, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 301, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_tuple[26])));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, i); __PYX_ERR(2, 301, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 301, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 301, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_tuple[26])));
    }
    __pyx_v_self = values[0];
    __pyx_v_indices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, __pyx_nargs); __PYX_ERR(2, 301, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Census.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_6Census___init__(__pyx_self, __pyx_v_self, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_6Census___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices) {
  PyObject *__pyx_v_myslice = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":302
 * 
 *     def __init__(self, indices=(0, 0, 0)):
 *         myslice = slice(*indices)             # <<<<<<<<<<<<<<
 *         self.start, self.stop, self.step = myslice.indices(self.length)
 *         self.index = self.start
*/
  __pyx_t_1 = __Pyx_PySequence_Tuple(__pyx_v_indices); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PySlice_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_myslice = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":303
 *     def __init__(self, indices=(0, 0, 0)):
 *         myslice = slice(*indices)
 *         self.start, self.stop, self.step = myslice.indices(self.length)             # <<<<<<<<<<<<<<
 *         self.index = self.start
 * 
*/
  __pyx_t_1 = __pyx_v_myslice;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_3};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_indices, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(2, 303, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_5);
    } else {
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 303, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 303, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 303, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
    }
    #else
    __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_6 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6);
    index = 0; __pyx_t_3 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    index = 1; __pyx_t_1 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_1)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_1);
    index = 2; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 3) < (0)) __PYX_ERR(2, 303, __pyx_L1_error)
    __pyx_t_7 = NULL;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(2, 303, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_start, __pyx_t_3) < (0)) __PYX_ERR(2, 303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_stop, __pyx_t_1) < (0)) __PYX_ERR(2, 303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_step, __pyx_t_5) < (0)) __PYX_ERR(2, 303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/tail.pyx":304
 *         myslice = slice(*indices)
 *         self.start, self.stop, self.step = myslice.indices(self.length)
 *         self.index = self.start             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_start); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_2) < (0)) __PYX_ERR(2, 304, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":301
 *     length = 0
 * 
 *     def __init__(self, indices=(0, 0, 0)):             # <<<<<<<<<<<<<<
 *         myslice = slice(*indices)
 *         self.start, self.stop, self.step = myslice.indices(self.length)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("SnapPy.Census.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_myslice);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":306
 *         self.index = self.start
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_6Census_3__iter__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_6Census_3__iter__ = {"__iter__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_6Census_3__iter__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_6Census_3__iter__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 306, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 306, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__iter__", 0) < (0)) __PYX_ERR(2, 306, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__iter__", 1, 1, 1, i); __PYX_ERR(2, 306, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 306, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__iter__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 306, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Census.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_6Census_2__iter__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_6Census_2__iter__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "cython/core/tail.pyx":307
 * 
 *     def __iter__(self):
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def __contains__(self, item):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self);
  __pyx_r = __pyx_v_self;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":306
 *         self.index = self.start
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":309
 *         return self
 * 
 *     def __contains__(self, item):             # <<<<<<<<<<<<<<
 *         raise NotImplementedError("This census does not support manifold lookup")
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_6Census_5__contains__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_6Census_5__contains__ = {"__contains__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_6Census_5__contains__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_6Census_5__contains__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  CYTHON_UNUSED PyObject *__pyx_v_item = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__contains__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_item,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 309, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 309, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 309, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__contains__", 0) < (0)) __PYX_ERR(2, 309, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__contains__", 1, 2, 2, i); __PYX_ERR(2, 309, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 309, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 309, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_item = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__contains__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 309, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Census.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_6Census_4__contains__(__pyx_self, __pyx_v_self, __pyx_v_item);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_6Census_4__contains__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_item) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__contains__", 0);

  /* "cython/core/tail.pyx":310
 * 
 *     def __contains__(self, item):
 *         raise NotImplementedError("This census does not support manifold lookup")             # <<<<<<<<<<<<<<
 * 
 *     def next(self):
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_This_census_does_not_support_man};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_NotImplementedError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 310, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(2, 310, __pyx_L1_error)

  /* "cython/core/tail.pyx":309
 *         return self
 * 
 *     def __contains__(self, item):             # <<<<<<<<<<<<<<
 *         raise NotImplementedError("This census does not support manifold lookup")
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.Census.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":312
 *         raise NotImplementedError("This census does not support manifold lookup")
 * 
 *     def next(self):             # <<<<<<<<<<<<<<
 *         if self.index >= self.stop:
 *             raise StopIteration
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_6Census_7next(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_6Census_7next = {"next", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_6Census_7next, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_6Census_7next(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("next (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 312, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 312, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "next", 0) < (0)) __PYX_ERR(2, 312, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("next", 1, 1, 1, i); __PYX_ERR(2, 312, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 312, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("next", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 312, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Census.next", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_6Census_6next(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_6Census_6next(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("next", 0);

  /* "cython/core/tail.pyx":313
 * 
 *     def next(self):
 *         if self.index >= self.stop:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 *         self.index = self.index + self.step
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_stop); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_GE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 313, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(2, 313, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(__pyx_t_4)) {

    /* "cython/core/tail.pyx":314
 *     def next(self):
 *         if self.index >= self.stop:
 *             raise StopIteration             # <<<<<<<<<<<<<<
 *         self.index = self.index + self.step
 *         return self[self.index-self.step]
*/
    __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_StopIteration))), 0, 0, 0);
    __PYX_ERR(2, 314, __pyx_L1_error)

    /* "cython/core/tail.pyx":313
 * 
 *     def next(self):
 *         if self.index >= self.stop:             # <<<<<<<<<<<<<<
 *             raise StopIteration
 *         self.index = self.index + self.step
*/
  }

  /* "cython/core/tail.pyx":315
 *         if self.index >= self.stop:
 *             raise StopIteration
 *         self.index = self.index + self.step             # <<<<<<<<<<<<<<
 *         return self[self.index-self.step]
 * 
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_step); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index, __pyx_t_1) < (0)) __PYX_ERR(2, 315, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":316
 *             raise StopIteration
 *         self.index = self.index + self.step
 *         return self[self.index-self.step]             # <<<<<<<<<<<<<<
 * 
 *     __next__ = next
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_step); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_self, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":312
 *         raise NotImplementedError("This census does not support manifold lookup")
 * 
 *     def next(self):             # <<<<<<<<<<<<<<
 *         if self.index >= self.stop:
 *             raise StopIteration
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.Census.next", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":320
 *     __next__ = next
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return self.length
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_6Census_9__len__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_6Census_9__len__ = {"__len__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_6Census_9__len__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_6Census_9__len__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 320, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__len__", 0) < (0)) __PYX_ERR(2, 320, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__len__", 1, 1, 1, i); __PYX_ERR(2, 320, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 320, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__len__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 320, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Census.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_6Census_8__len__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_6Census_8__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  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("__len__", 0);

  /* "cython/core/tail.pyx":321
 * 
 *     def __len__(self):
 *         return self.length             # <<<<<<<<<<<<<<
 * 
 *     # subclasses override this
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 321, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":320
 *     __next__ = next
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return self.length
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.Census.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":324
 * 
 *     # subclasses override this
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_6Census_11__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_6Census_11__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_6Census_11__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_6Census_11__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  CYTHON_UNUSED PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 324, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 324, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 324, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(2, 324, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(2, 324, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 324, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 324, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 324, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.Census.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_6Census_10__getitem__(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_6Census_10__getitem__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_n) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":376
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, length, 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 *         self.Census_Morwen8 = tarfile.open(os.path.join(manifold_path, 'morwen8.tgz'), 'r:*')
*/

static PyObject *__pyx_pf_6SnapPy_62__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__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("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(2, 376, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(2, 376, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(2, 376, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12CuspedCensus_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_12CuspedCensus_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12CuspedCensus_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_12CuspedCensus_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_indices,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 376, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 376, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, i); __PYX_ERR(2, 376, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 376, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_self = values[0];
    __pyx_v_indices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, __pyx_nargs); __PYX_ERR(2, 376, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CuspedCensus.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_12CuspedCensus___init__(__pyx_self, __pyx_v_self, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12CuspedCensus___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":377
 * 
 *     def __init__(self, indices=(0, length, 1)):
 *         Census.__init__(self, indices)             # <<<<<<<<<<<<<<
 *         self.Census_Morwen8 = tarfile.open(os.path.join(manifold_path, 'morwen8.tgz'), 'r:*')
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_self, __pyx_v_indices};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":378
 *     def __init__(self, indices=(0, length, 1)):
 *         Census.__init__(self, indices)
 *         self.Census_Morwen8 = tarfile.open(os.path.join(manifold_path, 'morwen8.tgz'), 'r:*')             # <<<<<<<<<<<<<<
 * 
 *     # Override
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tarfile); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_open); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_6 = __pyx_t_8;
  __Pyx_INCREF(__pyx_t_6);
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_morwen8_tgz};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_t_2, __pyx_mstate_global->__pyx_kp_u_r_2};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_Census_Morwen8, __pyx_t_1) < (0)) __PYX_ERR(2, 378, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":376
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, length, 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 *         self.Census_Morwen8 = tarfile.open(os.path.join(manifold_path, 'morwen8.tgz'), 'r:*')
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.CuspedCensus.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":381
 * 
 *     # Override
 *     def lookup(self, n):             # <<<<<<<<<<<<<<
 *         return five_tet_orientable[n]
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12CuspedCensus_3lookup(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_12CuspedCensus_3lookup = {"lookup", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12CuspedCensus_3lookup, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_12CuspedCensus_3lookup(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("lookup (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 381, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 381, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 381, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "lookup", 0) < (0)) __PYX_ERR(2, 381, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("lookup", 1, 2, 2, i); __PYX_ERR(2, 381, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 381, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 381, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("lookup", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 381, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CuspedCensus.lookup", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_12CuspedCensus_2lookup(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12CuspedCensus_2lookup(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_n) {
  PyObject *__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("lookup", 0);

  /* "cython/core/tail.pyx":382
 *     # Override
 *     def lookup(self, n):
 *         return five_tet_orientable[n]             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, n):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_five_tet_orientable); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":381
 * 
 *     # Override
 *     def lookup(self, n):             # <<<<<<<<<<<<<<
 *         return five_tet_orientable[n]
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.CuspedCensus.lookup", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":384
 *         return five_tet_orientable[n]
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_12CuspedCensus_5__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_12CuspedCensus_5__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12CuspedCensus_5__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_12CuspedCensus_5__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 384, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 384, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 384, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(2, 384, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(2, 384, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 384, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 384, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 384, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.CuspedCensus.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_12CuspedCensus_4__getitem__(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_12CuspedCensus_4__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n) {
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_result = 0;
  long __pyx_v_num_tet;
  PyObject *__pyx_v_census_index = NULL;
  PyObject *__pyx_v_num = NULL;
  PyObject *__pyx_v_spec = NULL;
  PyObject *__pyx_v_tarpath = NULL;
  PyObject *__pyx_v_filedata = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  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;
  size_t __pyx_t_7;
  int __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  char *__pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  Orientability __pyx_t_15;
  int __pyx_t_16;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);
  __Pyx_INCREF(__pyx_v_n);

  /* "cython/core/tail.pyx":387
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         if n < 0:
*/
  __pyx_t_1 = PySlice_Check(__pyx_v_n); 
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":388
 *         cdef Manifold result
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))             # <<<<<<<<<<<<<<
 *         if n < 0:
 *             n = self.length - n
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = __pyx_v_n;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 388, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_indices, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 388, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 388, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":387
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         if n < 0:
*/
  }

  /* "cython/core/tail.pyx":389
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
 *         if n < 0:             # <<<<<<<<<<<<<<
 *             n = self.length - n
 *         if n < self.five_length:
*/
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_n, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 389, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 389, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":390
 *             return self.__class__(n.indices(self.length))
 *         if n < 0:
 *             n = self.length - n             # <<<<<<<<<<<<<<
 *         if n < self.five_length:
 *             num_tet = 5
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 390, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 390, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_n, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":389
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
 *         if n < 0:             # <<<<<<<<<<<<<<
 *             n = self.length - n
 *         if n < self.five_length:
*/
  }

  /* "cython/core/tail.pyx":391
 *         if n < 0:
 *             n = self.length - n
 *         if n < self.five_length:             # <<<<<<<<<<<<<<
 *             num_tet = 5
 *             census_index = self.lookup(n)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_five_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_n, __pyx_t_4, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 391, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 391, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":392
 *             n = self.length - n
 *         if n < self.five_length:
 *             num_tet = 5             # <<<<<<<<<<<<<<
 *             census_index = self.lookup(n)
 *         elif n - self.five_length < self.six_length:
*/
    __pyx_v_num_tet = 5;

    /* "cython/core/tail.pyx":393
 *         if n < self.five_length:
 *             num_tet = 5
 *             census_index = self.lookup(n)             # <<<<<<<<<<<<<<
 *         elif n - self.five_length < self.six_length:
 *             num_tet = 6
*/
    __pyx_t_4 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_n};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lookup, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 393, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_census_index = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":391
 *         if n < 0:
 *             n = self.length - n
 *         if n < self.five_length:             # <<<<<<<<<<<<<<
 *             num_tet = 5
 *             census_index = self.lookup(n)
*/
    goto __pyx_L5;
  }

  /* "cython/core/tail.pyx":394
 *             num_tet = 5
 *             census_index = self.lookup(n)
 *         elif n - self.five_length < self.six_length:             # <<<<<<<<<<<<<<
 *             num_tet = 6
 *             census_index = n - self.five_length
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_five_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyNumber_Subtract(__pyx_v_n, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_six_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_2, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 394, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 394, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":395
 *             census_index = self.lookup(n)
 *         elif n - self.five_length < self.six_length:
 *             num_tet = 6             # <<<<<<<<<<<<<<
 *             census_index = n - self.five_length
 *         elif n - self.five_length - self.six_length < self.seven_length:
*/
    __pyx_v_num_tet = 6;

    /* "cython/core/tail.pyx":396
 *         elif n - self.five_length < self.six_length:
 *             num_tet = 6
 *             census_index = n - self.five_length             # <<<<<<<<<<<<<<
 *         elif n - self.five_length - self.six_length < self.seven_length:
 *             num_tet = 7
*/
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_five_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyNumber_Subtract(__pyx_v_n, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_census_index = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":394
 *             num_tet = 5
 *             census_index = self.lookup(n)
 *         elif n - self.five_length < self.six_length:             # <<<<<<<<<<<<<<
 *             num_tet = 6
 *             census_index = n - self.five_length
*/
    goto __pyx_L5;
  }

  /* "cython/core/tail.pyx":397
 *             num_tet = 6
 *             census_index = n - self.five_length
 *         elif n - self.five_length - self.six_length < self.seven_length:             # <<<<<<<<<<<<<<
 *             num_tet = 7
 *             census_index = n - self.five_length - self.six_length
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_five_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_v_n, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_six_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyNumber_Subtract(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_seven_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_2, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 397, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 397, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":398
 *             census_index = n - self.five_length
 *         elif n - self.five_length - self.six_length < self.seven_length:
 *             num_tet = 7             # <<<<<<<<<<<<<<
 *             census_index = n - self.five_length - self.six_length
 *         elif (self.orientability == Orientability.index('orientable')
*/
    __pyx_v_num_tet = 7;

    /* "cython/core/tail.pyx":399
 *         elif n - self.five_length - self.six_length < self.seven_length:
 *             num_tet = 7
 *             census_index = n - self.five_length - self.six_length             # <<<<<<<<<<<<<<
 *         elif (self.orientability == Orientability.index('orientable')
 *               and (n - self.five_length - self.six_length -
*/
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_five_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyNumber_Subtract(__pyx_v_n, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_six_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 399, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_census_index = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":397
 *             num_tet = 6
 *             census_index = n - self.five_length
 *         elif n - self.five_length - self.six_length < self.seven_length:             # <<<<<<<<<<<<<<
 *             num_tet = 7
 *             census_index = n - self.five_length - self.six_length
*/
    goto __pyx_L5;
  }

  /* "cython/core/tail.pyx":400
 *             num_tet = 7
 *             census_index = n - self.five_length - self.six_length
 *         elif (self.orientability == Orientability.index('orientable')             # <<<<<<<<<<<<<<
 *               and (n - self.five_length - self.six_length -
 *                    self.seven_length < self.eight_length)):
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_orientability); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_Orientability); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_n_u_orientable};
    __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_5 = PyObject_RichCompare(__pyx_t_4, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 400, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(2, 400, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__pyx_t_8) {
  } else {
    __pyx_t_1 = __pyx_t_8;
    goto __pyx_L6_bool_binop_done;
  }

  /* "cython/core/tail.pyx":401
 *             census_index = n - self.five_length - self.six_length
 *         elif (self.orientability == Orientability.index('orientable')
 *               and (n - self.five_length - self.six_length -             # <<<<<<<<<<<<<<
 *                    self.seven_length < self.eight_length)):
 *             census_index = (n - self.five_length - self.six_length
*/
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_five_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = PyNumber_Subtract(__pyx_v_n, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_six_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyNumber_Subtract(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/tail.pyx":402
 *         elif (self.orientability == Orientability.index('orientable')
 *               and (n - self.five_length - self.six_length -
 *                    self.seven_length < self.eight_length)):             # <<<<<<<<<<<<<<
 *             census_index = (n - self.five_length - self.six_length
 *                             - self.seven_length)
*/
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_seven_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "cython/core/tail.pyx":401
 *             census_index = n - self.five_length - self.six_length
 *         elif (self.orientability == Orientability.index('orientable')
 *               and (n - self.five_length - self.six_length -             # <<<<<<<<<<<<<<
 *                    self.seven_length < self.eight_length)):
 *             census_index = (n - self.five_length - self.six_length
*/
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/tail.pyx":402
 *         elif (self.orientability == Orientability.index('orientable')
 *               and (n - self.five_length - self.six_length -
 *                    self.seven_length < self.eight_length)):             # <<<<<<<<<<<<<<
 *             census_index = (n - self.five_length - self.six_length
 *                             - self.seven_length)
*/
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_eight_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_t_5, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 402, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(2, 402, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_1 = __pyx_t_8;
  __pyx_L6_bool_binop_done:;

  /* "cython/core/tail.pyx":400
 *             num_tet = 7
 *             census_index = n - self.five_length - self.six_length
 *         elif (self.orientability == Orientability.index('orientable')             # <<<<<<<<<<<<<<
 *               and (n - self.five_length - self.six_length -
 *                    self.seven_length < self.eight_length)):
*/
  if (likely(__pyx_t_1)) {

    /* "cython/core/tail.pyx":403
 *               and (n - self.five_length - self.six_length -
 *                    self.seven_length < self.eight_length)):
 *             census_index = (n - self.five_length - self.six_length             # <<<<<<<<<<<<<<
 *                             - self.seven_length)
 *             # Make this work without passing the spec to Manifold()
*/
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_five_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyNumber_Subtract(__pyx_v_n, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_six_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyNumber_Subtract(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":404
 *                    self.seven_length < self.eight_length)):
 *             census_index = (n - self.five_length - self.six_length
 *                             - self.seven_length)             # <<<<<<<<<<<<<<
 *             # Make this work without passing the spec to Manifold()
 *             num = repr(census_index)
*/
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_seven_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyNumber_Subtract(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_census_index = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":406
 *                             - self.seven_length)
 *             # Make this work without passing the spec to Manifold()
 *             num = repr(census_index)             # <<<<<<<<<<<<<<
 *             spec = "t" + "0"*(5 - len(num)) + num
 *             tarpath = "morwen8/" + spec
*/
    __pyx_t_5 = PyObject_Repr(__pyx_v_census_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 406, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_v_num = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":407
 *             # Make this work without passing the spec to Manifold()
 *             num = repr(census_index)
 *             spec = "t" + "0"*(5 - len(num)) + num             # <<<<<<<<<<<<<<
 *             tarpath = "morwen8/" + spec
 *             try:
*/
    if (unlikely(__pyx_v_num == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
      __PYX_ERR(2, 407, __pyx_L1_error)
    }
    __pyx_t_9 = __Pyx_PyUnicode_GET_LENGTH(__pyx_v_num); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(2, 407, __pyx_L1_error)
    __pyx_t_5 = __Pyx_PySequence_Multiply(__pyx_mstate_global->__pyx_kp_u_0, (5 - __pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_n_u_t, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlaceSafe(__pyx_t_4, __pyx_v_num); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_spec = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":408
 *             num = repr(census_index)
 *             spec = "t" + "0"*(5 - len(num)) + num
 *             tarpath = "morwen8/" + spec             # <<<<<<<<<<<<<<
 *             try:
 *                 filedata = self.Census_Morwen8.extractfile(tarpath).read()
*/
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_morwen8, __pyx_v_spec); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 408, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_v_tarpath = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":409
 *             spec = "t" + "0"*(5 - len(num)) + num
 *             tarpath = "morwen8/" + spec
 *             try:             # <<<<<<<<<<<<<<
 *                 filedata = self.Census_Morwen8.extractfile(tarpath).read()
 *                 c_triangulation = read_triangulation_from_string(filedata)
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "cython/core/tail.pyx":410
 *             tarpath = "morwen8/" + spec
 *             try:
 *                 filedata = self.Census_Morwen8.extractfile(tarpath).read()             # <<<<<<<<<<<<<<
 *                 c_triangulation = read_triangulation_from_string(filedata)
 *             except:
*/
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_Census_Morwen8); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 410, __pyx_L8_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __pyx_t_6;
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_7 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_tarpath};
          __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_extractfile, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 410, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __pyx_t_4 = __pyx_t_3;
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_7 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_read, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 410, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __pyx_v_filedata = __pyx_t_5;
        __pyx_t_5 = 0;

        /* "cython/core/tail.pyx":411
 *             try:
 *                 filedata = self.Census_Morwen8.extractfile(tarpath).read()
 *                 c_triangulation = read_triangulation_from_string(filedata)             # <<<<<<<<<<<<<<
 *             except:
 *                 raise IOError('The Morwen 8 tetrahedra manifold %s '
*/
        __pyx_t_13 = __Pyx_PyObject_AsWritableString(__pyx_v_filedata); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(2, 411, __pyx_L8_error)
        __pyx_v_c_triangulation = read_triangulation_from_string(__pyx_t_13);

        /* "cython/core/tail.pyx":409
 *             spec = "t" + "0"*(5 - len(num)) + num
 *             tarpath = "morwen8/" + spec
 *             try:             # <<<<<<<<<<<<<<
 *                 filedata = self.Census_Morwen8.extractfile(tarpath).read()
 *                 c_triangulation = read_triangulation_from_string(filedata)
*/
      }
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      goto __pyx_L13_try_end;
      __pyx_L8_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/tail.pyx":412
 *                 filedata = self.Census_Morwen8.extractfile(tarpath).read()
 *                 c_triangulation = read_triangulation_from_string(filedata)
 *             except:             # <<<<<<<<<<<<<<
 *                 raise IOError('The Morwen 8 tetrahedra manifold %s '
 *                               'was not found.' % spec)
*/
      /*except:*/ {
        __Pyx_AddTraceback("SnapPy.CuspedCensus.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_3, &__pyx_t_4) < 0) __PYX_ERR(2, 412, __pyx_L10_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_4);

        /* "cython/core/tail.pyx":413
 *                 c_triangulation = read_triangulation_from_string(filedata)
 *             except:
 *                 raise IOError('The Morwen 8 tetrahedra manifold %s '             # <<<<<<<<<<<<<<
 *                               'was not found.' % spec)
 *             result = Manifold(spec='empty')
*/
        __pyx_t_2 = NULL;

        /* "cython/core/tail.pyx":414
 *             except:
 *                 raise IOError('The Morwen 8 tetrahedra manifold %s '
 *                               'was not found.' % spec)             # <<<<<<<<<<<<<<
 *             result = Manifold(spec='empty')
 *             result.set_c_triangulation(c_triangulation)
*/
        __pyx_t_14 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_The_Morwen_8_tetrahedra_manifold, __pyx_v_spec); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 414, __pyx_L10_except_error)
        __Pyx_GOTREF(__pyx_t_14);
        __pyx_t_7 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_14};
          __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IOError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 413, __pyx_L10_except_error)
          __Pyx_GOTREF(__pyx_t_6);
        }
        __Pyx_Raise(__pyx_t_6, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __PYX_ERR(2, 413, __pyx_L10_except_error)
      }

      /* "cython/core/tail.pyx":409
 *             spec = "t" + "0"*(5 - len(num)) + num
 *             tarpath = "morwen8/" + spec
 *             try:             # <<<<<<<<<<<<<<
 *                 filedata = self.Census_Morwen8.extractfile(tarpath).read()
 *                 c_triangulation = read_triangulation_from_string(filedata)
*/
      __pyx_L10_except_error:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L13_try_end:;
    }

    /* "cython/core/tail.pyx":415
 *                 raise IOError('The Morwen 8 tetrahedra manifold %s '
 *                               'was not found.' % spec)
 *             result = Manifold(spec='empty')             # <<<<<<<<<<<<<<
 *             result.set_c_triangulation(c_triangulation)
 *             return result
*/
    __pyx_t_3 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
      __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 415, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_spec, __pyx_mstate_global->__pyx_n_u_empty, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(2, 415, __pyx_L1_error)
      __pyx_t_4 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 415, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_4);
    }
    __pyx_v_result = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":416
 *                               'was not found.' % spec)
 *             result = Manifold(spec='empty')
 *             result.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *             return result
 *             # return Manifold('t%d' % census_index)
*/
    __pyx_t_4 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_result->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_result), __pyx_v_c_triangulation); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":417
 *             result = Manifold(spec='empty')
 *             result.set_c_triangulation(c_triangulation)
 *             return result             # <<<<<<<<<<<<<<
 *             # return Manifold('t%d' % census_index)
 *         else:
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_result);
    __pyx_r = ((PyObject *)__pyx_v_result);
    goto __pyx_L0;

    /* "cython/core/tail.pyx":400
 *             num_tet = 7
 *             census_index = n - self.five_length - self.six_length
 *         elif (self.orientability == Orientability.index('orientable')             # <<<<<<<<<<<<<<
 *               and (n - self.five_length - self.six_length -
 *                    self.seven_length < self.eight_length)):
*/
  }

  /* "cython/core/tail.pyx":420
 *             # return Manifold('t%d' % census_index)
 *         else:
 *             raise IndexError('Index is out of range.')             # <<<<<<<<<<<<<<
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, num_tet, self.orientability, census_index)
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Index_is_out_of_range};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 420, __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_ERR(2, 420, __pyx_L1_error)
  }
  __pyx_L5:;

  /* "cython/core/tail.pyx":422
 *             raise IndexError('Index is out of range.')
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, num_tet, self.orientability, census_index)             # <<<<<<<<<<<<<<
 *         if c_triangulation == NULL:
 *             print(num_tet, census_index)
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_13 = __Pyx_PyObject_AsWritableString(__pyx_t_4); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(2, 422, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_orientability); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_15 = ((Orientability)__Pyx_PyLong_As_Orientability(__pyx_t_5)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_16 = __Pyx_PyLong_As_int(__pyx_v_census_index); if (unlikely((__pyx_t_16 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 422, __pyx_L1_error)

  /* "cython/core/tail.pyx":421
 *         else:
 *             raise IndexError('Index is out of range.')
 *         c_triangulation = GetCuspedCensusManifold(             # <<<<<<<<<<<<<<
 *             self.path, num_tet, self.orientability, census_index)
 *         if c_triangulation == NULL:
*/
  __pyx_v_c_triangulation = GetCuspedCensusManifold(__pyx_t_13, __pyx_v_num_tet, __pyx_t_15, __pyx_t_16);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/tail.pyx":423
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, num_tet, self.orientability, census_index)
 *         if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             print(num_tet, census_index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
*/
  __pyx_t_1 = (__pyx_v_c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/tail.pyx":424
 *             self.path, num_tet, self.orientability, census_index)
 *         if c_triangulation == NULL:
 *             print(num_tet, census_index)             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Manifold(spec='empty')
*/
    __pyx_t_5 = NULL;
    __pyx_t_3 = __Pyx_PyLong_From_long(__pyx_v_num_tet); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 424, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_3, __pyx_v_census_index};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 424, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":425
 *         if c_triangulation == NULL:
 *             print(num_tet, census_index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')             # <<<<<<<<<<<<<<
 *         result = Manifold(spec='empty')
 *         result.set_c_triangulation(c_triangulation)
*/
    __pyx_t_3 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_SnapPea_failed_to_read_the_censu};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 425, __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_ERR(2, 425, __pyx_L1_error)

    /* "cython/core/tail.pyx":423
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, num_tet, self.orientability, census_index)
 *         if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             print(num_tet, census_index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
*/
  }

  /* "cython/core/tail.pyx":426
 *             print(num_tet, census_index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Manifold(spec='empty')             # <<<<<<<<<<<<<<
 *         result.set_c_triangulation(c_triangulation)
 *         return result
*/
  __pyx_t_3 = NULL;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_3, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 426, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_spec, __pyx_mstate_global->__pyx_n_u_empty, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(2, 426, __pyx_L1_error)
    __pyx_t_4 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 426, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_4);
  }
  __pyx_v_result = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "cython/core/tail.pyx":427
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Manifold(spec='empty')
 *         result.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
  __pyx_t_4 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_result->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_result), __pyx_v_c_triangulation); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/core/tail.pyx":428
 *         result = Manifold(spec='empty')
 *         result.set_c_triangulation(c_triangulation)
 *         return result             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_result);
  __pyx_r = ((PyObject *)__pyx_v_result);
  goto __pyx_L0;

  /* "cython/core/tail.pyx":384
 *         return five_tet_orientable[n]
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/

  /* function exit code */
  __pyx_L1_error:;
  __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_14);
  __Pyx_AddTraceback("SnapPy.CuspedCensus.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_census_index);
  __Pyx_XDECREF(__pyx_v_num);
  __Pyx_XDECREF(__pyx_v_spec);
  __Pyx_XDECREF(__pyx_v_tarpath);
  __Pyx_XDECREF(__pyx_v_filedata);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":444
 *     orientability = Orientability.index('nonorientable')
 * 
 *     def __init__(self, indices=(0, length, 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/

static PyObject *__pyx_pf_6SnapPy_64__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__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("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(2, 444, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(2, 444, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(2, 444, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_28ObsNonorientableCuspedCensus_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_28ObsNonorientableCuspedCensus_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_28ObsNonorientableCuspedCensus_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_28ObsNonorientableCuspedCensus_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_indices,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 444, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 444, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 444, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 444, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, i); __PYX_ERR(2, 444, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 444, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 444, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_self = values[0];
    __pyx_v_indices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, __pyx_nargs); __PYX_ERR(2, 444, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsNonorientableCuspedCensus.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_28ObsNonorientableCuspedCensus___init__(__pyx_self, __pyx_v_self, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_28ObsNonorientableCuspedCensus___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":445
 * 
 *     def __init__(self, indices=(0, length, 1)):
 *         Census.__init__(self, indices)             # <<<<<<<<<<<<<<
 * 
 *     def lookup(self, n):
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_self, __pyx_v_indices};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":444
 *     orientability = Orientability.index('nonorientable')
 * 
 *     def __init__(self, indices=(0, length, 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_AddTraceback("SnapPy.ObsNonorientableCuspedCensus.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":447
 *         Census.__init__(self, indices)
 * 
 *     def lookup(self, n):             # <<<<<<<<<<<<<<
 *         return five_tet_nonorientable[n]
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_28ObsNonorientableCuspedCensus_3lookup(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_28ObsNonorientableCuspedCensus_3lookup = {"lookup", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_28ObsNonorientableCuspedCensus_3lookup, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_28ObsNonorientableCuspedCensus_3lookup(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("lookup (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 447, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 447, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 447, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "lookup", 0) < (0)) __PYX_ERR(2, 447, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("lookup", 1, 2, 2, i); __PYX_ERR(2, 447, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 447, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 447, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("lookup", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 447, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsNonorientableCuspedCensus.lookup", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_28ObsNonorientableCuspedCensus_2lookup(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_28ObsNonorientableCuspedCensus_2lookup(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, PyObject *__pyx_v_n) {
  PyObject *__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("lookup", 0);

  /* "cython/core/tail.pyx":448
 * 
 *     def lookup(self, n):
 *         return five_tet_nonorientable[n]             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_five_tet_nonorientable); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":447
 *         Census.__init__(self, indices)
 * 
 *     def lookup(self, n):             # <<<<<<<<<<<<<<
 *         return five_tet_nonorientable[n]
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.ObsNonorientableCuspedCensus.lookup", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":461
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 11031, 1)):             # <<<<<<<<<<<<<<
 *         if ObsOrientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_25ObsOrientableClosedCensus_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_25ObsOrientableClosedCensus_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_25ObsOrientableClosedCensus_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_25ObsOrientableClosedCensus_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_indices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 461, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 461, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 461, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 461, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_tuple[27])));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, i); __PYX_ERR(2, 461, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 461, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 461, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_tuple[27])));
    }
    __pyx_v_self = values[0];
    __pyx_v_indices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, __pyx_nargs); __PYX_ERR(2, 461, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsOrientableClosedCensus.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_25ObsOrientableClosedCensus___init__(__pyx_self, __pyx_v_self, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_25ObsOrientableClosedCensus___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices) {
  PyObject *__pyx_v_datafile = NULL;
  PyObject *__pyx_v_closed_orientable = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":462
 * 
 *     def __init__(self, indices=(0, 11031, 1)):
 *         if ObsOrientableClosedCensus.data is None:             # <<<<<<<<<<<<<<
 *             datafile = os.path.join(closed_census_directory,
 *                                     'ClosedOrientableDistinct.txt')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 == Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cython/core/tail.pyx":463
 *     def __init__(self, indices=(0, 11031, 1)):
 *         if ObsOrientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,             # <<<<<<<<<<<<<<
 *                                     'ClosedOrientableDistinct.txt')
 *             closed_orientable = open(datafile)
*/
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_1 = __pyx_t_5;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_closed_census_directory); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_ClosedOrientableDistinct_txt};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 463, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_datafile = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":465
 *             datafile = os.path.join(closed_census_directory,
 *                                     'ClosedOrientableDistinct.txt')
 *             closed_orientable = open(datafile)             # <<<<<<<<<<<<<<
 *             ObsOrientableClosedCensus.data = closed_orientable.readlines()
 *             closed_orientable.close()
*/
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_datafile};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 465, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_closed_orientable = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":466
 *                                     'ClosedOrientableDistinct.txt')
 *             closed_orientable = open(datafile)
 *             ObsOrientableClosedCensus.data = closed_orientable.readlines()             # <<<<<<<<<<<<<<
 *             closed_orientable.close()
 *         self.length = len(ObsOrientableClosedCensus.data)
*/
    __pyx_t_5 = __pyx_v_closed_orientable;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_readlines, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 466, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_data, __pyx_t_2) < (0)) __PYX_ERR(2, 466, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":467
 *             closed_orientable = open(datafile)
 *             ObsOrientableClosedCensus.data = closed_orientable.readlines()
 *             closed_orientable.close()             # <<<<<<<<<<<<<<
 *         self.length = len(ObsOrientableClosedCensus.data)
 *         Census.__init__(self, indices)
*/
    __pyx_t_2 = __pyx_v_closed_orientable;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_close, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 467, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":462
 * 
 *     def __init__(self, indices=(0, 11031, 1)):
 *         if ObsOrientableClosedCensus.data is None:             # <<<<<<<<<<<<<<
 *             datafile = os.path.join(closed_census_directory,
 *                                     'ClosedOrientableDistinct.txt')
*/
  }

  /* "cython/core/tail.pyx":468
 *             ObsOrientableClosedCensus.data = closed_orientable.readlines()
 *             closed_orientable.close()
 *         self.length = len(ObsOrientableClosedCensus.data)             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_7 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(2, 468, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_2) < (0)) __PYX_ERR(2, 468, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":469
 *             closed_orientable.close()
 *         self.length = len(ObsOrientableClosedCensus.data)
 *         Census.__init__(self, indices)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, n):
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_self, __pyx_v_indices};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":461
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 11031, 1)):             # <<<<<<<<<<<<<<
 *         if ObsOrientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.ObsOrientableClosedCensus.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_datafile);
  __Pyx_XDECREF(__pyx_v_closed_orientable);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":471
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_25ObsOrientableClosedCensus_3__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_25ObsOrientableClosedCensus_3__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_25ObsOrientableClosedCensus_3__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_25ObsOrientableClosedCensus_3__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 471, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 471, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 471, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(2, 471, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(2, 471, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 471, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 471, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 471, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsOrientableClosedCensus.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_25ObsOrientableClosedCensus_2__getitem__(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_25ObsOrientableClosedCensus_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n) {
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_result = 0;
  CYTHON_UNUSED PyObject *__pyx_v__ = NULL;
  PyObject *__pyx_v_num_tet = NULL;
  PyObject *__pyx_v_index = NULL;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  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;
  size_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  char *__pyx_t_11;
  int __pyx_t_12;
  Orientability __pyx_t_13;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cython/core/tail.pyx":474
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         _, num_tet, index, m, l = ObsOrientableClosedCensus.data[n].split()
*/
  __pyx_t_1 = PySlice_Check(__pyx_v_n); 
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":475
 *         cdef Manifold result
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))             # <<<<<<<<<<<<<<
 *         _, num_tet, index, m, l = ObsOrientableClosedCensus.data[n].split()
 *         c_triangulation = GetCuspedCensusManifold(
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = __pyx_v_n;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_indices, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 475, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 475, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":474
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         _, num_tet, index, m, l = ObsOrientableClosedCensus.data[n].split()
*/
  }

  /* "cython/core/tail.pyx":476
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
 *         _, num_tet, index, m, l = ObsOrientableClosedCensus.data[n].split()             # <<<<<<<<<<<<<<
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, int(num_tet), self.orientability, int(index))
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_data); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_4 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_split, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 476, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 5)) {
      if (size > 5) __Pyx_RaiseTooManyValuesError(5);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(2, 476, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 3);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_8 = PyTuple_GET_ITEM(sequence, 4);
      __Pyx_INCREF(__pyx_t_8);
    } else {
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 476, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 476, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 476, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 476, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 476, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_8);
    }
    #else
    {
      Py_ssize_t i;
      PyObject** temps[5] = {&__pyx_t_3,&__pyx_t_4,&__pyx_t_6,&__pyx_t_5,&__pyx_t_8};
      for (i=0; i < 5; i++) {
        PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(2, 476, __pyx_L1_error)
        __Pyx_GOTREF(item);
        *(temps[i]) = item;
      }
    }
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    PyObject** temps[5] = {&__pyx_t_3,&__pyx_t_4,&__pyx_t_6,&__pyx_t_5,&__pyx_t_8};
    __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 476, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
    for (index=0; index < 5; index++) {
      PyObject* item = __pyx_t_10(__pyx_t_9); if (unlikely(!item)) goto __pyx_L4_unpacking_failed;
      __Pyx_GOTREF(item);
      *(temps[index]) = item;
    }
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 5) < (0)) __PYX_ERR(2, 476, __pyx_L1_error)
    __pyx_t_10 = NULL;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    goto __pyx_L5_unpacking_done;
    __pyx_L4_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_10 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(2, 476, __pyx_L1_error)
    __pyx_L5_unpacking_done:;
  }
  __pyx_v__ = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_v_num_tet = __pyx_t_4;
  __pyx_t_4 = 0;
  __pyx_v_index = __pyx_t_6;
  __pyx_t_6 = 0;
  __pyx_v_m = __pyx_t_5;
  __pyx_t_5 = 0;
  __pyx_v_l = __pyx_t_8;
  __pyx_t_8 = 0;

  /* "cython/core/tail.pyx":478
 *         _, num_tet, index, m, l = ObsOrientableClosedCensus.data[n].split()
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, int(num_tet), self.orientability, int(index))             # <<<<<<<<<<<<<<
 *         if c_triangulation == NULL:
 *             print(num_tet, index)
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_11 = __Pyx_PyObject_AsWritableString(__pyx_t_2); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(2, 478, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_v_num_tet); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_8); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 478, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_orientability); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_13 = ((Orientability)__Pyx_PyLong_As_Orientability(__pyx_t_8)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 478, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_v_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_14 = __Pyx_PyLong_As_int(__pyx_t_8); if (unlikely((__pyx_t_14 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 478, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "cython/core/tail.pyx":477
 *             return self.__class__(n.indices(self.length))
 *         _, num_tet, index, m, l = ObsOrientableClosedCensus.data[n].split()
 *         c_triangulation = GetCuspedCensusManifold(             # <<<<<<<<<<<<<<
 *             self.path, int(num_tet), self.orientability, int(index))
 *         if c_triangulation == NULL:
*/
  __pyx_v_c_triangulation = GetCuspedCensusManifold(__pyx_t_11, __pyx_t_12, __pyx_t_13, __pyx_t_14);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":479
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, int(num_tet), self.orientability, int(index))
 *         if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             print(num_tet, index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
*/
  __pyx_t_1 = (__pyx_v_c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/tail.pyx":480
 *             self.path, int(num_tet), self.orientability, int(index))
 *         if c_triangulation == NULL:
 *             print(num_tet, index)             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Triangulation(spec='empty')
*/
    __pyx_t_8 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_8, __pyx_v_num_tet, __pyx_v_index};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 480, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":481
 *         if c_triangulation == NULL:
 *             print(num_tet, index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')             # <<<<<<<<<<<<<<
 *         result = Triangulation(spec='empty')
 *         result.set_c_triangulation(c_triangulation)
*/
    __pyx_t_8 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_kp_u_SnapPea_failed_to_read_the_censu};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 481, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(2, 481, __pyx_L1_error)

    /* "cython/core/tail.pyx":479
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, int(num_tet), self.orientability, int(index))
 *         if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             print(num_tet, index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
*/
  }

  /* "cython/core/tail.pyx":482
 *             print(num_tet, index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Triangulation(spec='empty')             # <<<<<<<<<<<<<<
 *         result.set_c_triangulation(c_triangulation)
 *         result.dehn_fill((int(m), int(l)))
*/
  __pyx_t_8 = NULL;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_spec, __pyx_mstate_global->__pyx_n_u_empty, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(2, 482, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 482, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  if (!(likely(((((PyObject *)__pyx_t_2)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_t_2), __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(2, 482, __pyx_L1_error)
  __pyx_v_result = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":483
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Triangulation(spec='empty')
 *         result.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         result.dehn_fill((int(m), int(l)))
 *         return result.with_hyperbolic_structure()
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_result->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_result), __pyx_v_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":484
 *         result = Triangulation(spec='empty')
 *         result.set_c_triangulation(c_triangulation)
 *         result.dehn_fill((int(m), int(l)))             # <<<<<<<<<<<<<<
 *         return result.with_hyperbolic_structure()
 * 
*/
  __pyx_t_5 = ((PyObject *)__pyx_v_result);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_v_m); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_v_l); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(2, 484, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6) != (0)) __PYX_ERR(2, 484, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 484, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":485
 *         result.set_c_triangulation(c_triangulation)
 *         result.dehn_fill((int(m), int(l)))
 *         return result.with_hyperbolic_structure()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = ((PyObject *)__pyx_v_result);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_with_hyperbolic_structure, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 485, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":471
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/

  /* function exit code */
  __pyx_L1_error:;
  __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_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.ObsOrientableClosedCensus.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XDECREF(__pyx_v__);
  __Pyx_XDECREF(__pyx_v_num_tet);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":496
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 17, 1)):             # <<<<<<<<<<<<<<
 *         if ObsNonorientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_28ObsNonorientableClosedCensus_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_28ObsNonorientableClosedCensus_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_28ObsNonorientableClosedCensus_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_28ObsNonorientableClosedCensus_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_indices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 496, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 496, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 496, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 496, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_tuple[28])));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, i); __PYX_ERR(2, 496, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 496, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 496, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_tuple[28])));
    }
    __pyx_v_self = values[0];
    __pyx_v_indices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, __pyx_nargs); __PYX_ERR(2, 496, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsNonorientableClosedCensus.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_28ObsNonorientableClosedCensus___init__(__pyx_self, __pyx_v_self, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_28ObsNonorientableClosedCensus___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices) {
  PyObject *__pyx_v_datafile = NULL;
  PyObject *__pyx_v_closed_nonorientable = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":497
 * 
 *     def __init__(self, indices=(0, 17, 1)):
 *         if ObsNonorientableClosedCensus.data is None:             # <<<<<<<<<<<<<<
 *             datafile = os.path.join(closed_census_directory,
 *                                     'ClosedNonorientableDistinct.txt')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 == Py_None);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {

    /* "cython/core/tail.pyx":498
 *     def __init__(self, indices=(0, 17, 1)):
 *         if ObsNonorientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,             # <<<<<<<<<<<<<<
 *                                     'ClosedNonorientableDistinct.txt')
 *             closed_nonorientable = open(datafile)
*/
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 498, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 498, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_1 = __pyx_t_5;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_closed_census_directory); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 498, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_ClosedNonorientableDistinct_txt};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 498, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_datafile = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":500
 *             datafile = os.path.join(closed_census_directory,
 *                                     'ClosedNonorientableDistinct.txt')
 *             closed_nonorientable = open(datafile)             # <<<<<<<<<<<<<<
 *             ObsNonorientableClosedCensus.data = closed_nonorientable.readlines()
 *             closed_nonorientable.close()
*/
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_datafile};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 500, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_closed_nonorientable = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":501
 *                                     'ClosedNonorientableDistinct.txt')
 *             closed_nonorientable = open(datafile)
 *             ObsNonorientableClosedCensus.data = closed_nonorientable.readlines()             # <<<<<<<<<<<<<<
 *             closed_nonorientable.close()
 *         self.length = len(ObsNonorientableClosedCensus.data)
*/
    __pyx_t_5 = __pyx_v_closed_nonorientable;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_readlines, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 501, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_PyObject_SetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_data, __pyx_t_2) < (0)) __PYX_ERR(2, 501, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":502
 *             closed_nonorientable = open(datafile)
 *             ObsNonorientableClosedCensus.data = closed_nonorientable.readlines()
 *             closed_nonorientable.close()             # <<<<<<<<<<<<<<
 *         self.length = len(ObsNonorientableClosedCensus.data)
 *         Census.__init__(self, indices)
*/
    __pyx_t_2 = __pyx_v_closed_nonorientable;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_6 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
      __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_close, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 502, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "cython/core/tail.pyx":497
 * 
 *     def __init__(self, indices=(0, 17, 1)):
 *         if ObsNonorientableClosedCensus.data is None:             # <<<<<<<<<<<<<<
 *             datafile = os.path.join(closed_census_directory,
 *                                     'ClosedNonorientableDistinct.txt')
*/
  }

  /* "cython/core/tail.pyx":503
 *             ObsNonorientableClosedCensus.data = closed_nonorientable.readlines()
 *             closed_nonorientable.close()
 *         self.length = len(ObsNonorientableClosedCensus.data)             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_data); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_7 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(2, 503, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_2) < (0)) __PYX_ERR(2, 503, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":504
 *             closed_nonorientable.close()
 *         self.length = len(ObsNonorientableClosedCensus.data)
 *         Census.__init__(self, indices)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, n):
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_self, __pyx_v_indices};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 504, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":496
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 17, 1)):             # <<<<<<<<<<<<<<
 *         if ObsNonorientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("SnapPy.ObsNonorientableClosedCensus.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_datafile);
  __Pyx_XDECREF(__pyx_v_closed_nonorientable);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":506
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_28ObsNonorientableClosedCensus_3__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_28ObsNonorientableClosedCensus_3__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_28ObsNonorientableClosedCensus_3__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_28ObsNonorientableClosedCensus_3__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 506, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 506, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 506, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(2, 506, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(2, 506, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 506, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 506, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 506, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsNonorientableClosedCensus.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_28ObsNonorientableClosedCensus_2__getitem__(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_28ObsNonorientableClosedCensus_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n) {
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_result = 0;
  CYTHON_UNUSED PyObject *__pyx_v__ = NULL;
  PyObject *__pyx_v_num_tet = NULL;
  PyObject *__pyx_v_index = NULL;
  PyObject *__pyx_v_m = NULL;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  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;
  size_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  char *__pyx_t_11;
  int __pyx_t_12;
  Orientability __pyx_t_13;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cython/core/tail.pyx":509
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         _, num_tet, index, m, l = ObsNonorientableClosedCensus.data[n].split()
*/
  __pyx_t_1 = PySlice_Check(__pyx_v_n); 
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":510
 *         cdef Manifold result
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))             # <<<<<<<<<<<<<<
 *         _, num_tet, index, m, l = ObsNonorientableClosedCensus.data[n].split()
 *         c_triangulation = GetCuspedCensusManifold(
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = __pyx_v_n;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 510, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_indices, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 510, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 510, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":509
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         _, num_tet, index, m, l = ObsNonorientableClosedCensus.data[n].split()
*/
  }

  /* "cython/core/tail.pyx":511
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
 *         _, num_tet, index, m, l = ObsNonorientableClosedCensus.data[n].split()             # <<<<<<<<<<<<<<
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, int(num_tet), self.orientability, int(index))
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_data); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_4 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_split, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 5)) {
      if (size > 5) __Pyx_RaiseTooManyValuesError(5);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(2, 511, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_6 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 3);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_8 = PyTuple_GET_ITEM(sequence, 4);
      __Pyx_INCREF(__pyx_t_8);
    } else {
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 511, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 511, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __pyx_t_6 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 511, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 511, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __pyx_t_8 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 511, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_8);
    }
    #else
    {
      Py_ssize_t i;
      PyObject** temps[5] = {&__pyx_t_3,&__pyx_t_4,&__pyx_t_6,&__pyx_t_5,&__pyx_t_8};
      for (i=0; i < 5; i++) {
        PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(2, 511, __pyx_L1_error)
        __Pyx_GOTREF(item);
        *(temps[i]) = item;
      }
    }
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    PyObject** temps[5] = {&__pyx_t_3,&__pyx_t_4,&__pyx_t_6,&__pyx_t_5,&__pyx_t_8};
    __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
    for (index=0; index < 5; index++) {
      PyObject* item = __pyx_t_10(__pyx_t_9); if (unlikely(!item)) goto __pyx_L4_unpacking_failed;
      __Pyx_GOTREF(item);
      *(temps[index]) = item;
    }
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 5) < (0)) __PYX_ERR(2, 511, __pyx_L1_error)
    __pyx_t_10 = NULL;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    goto __pyx_L5_unpacking_done;
    __pyx_L4_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_10 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(2, 511, __pyx_L1_error)
    __pyx_L5_unpacking_done:;
  }
  __pyx_v__ = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_v_num_tet = __pyx_t_4;
  __pyx_t_4 = 0;
  __pyx_v_index = __pyx_t_6;
  __pyx_t_6 = 0;
  __pyx_v_m = __pyx_t_5;
  __pyx_t_5 = 0;
  __pyx_v_l = __pyx_t_8;
  __pyx_t_8 = 0;

  /* "cython/core/tail.pyx":513
 *         _, num_tet, index, m, l = ObsNonorientableClosedCensus.data[n].split()
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, int(num_tet), self.orientability, int(index))             # <<<<<<<<<<<<<<
 *         if c_triangulation == NULL:
 *             print(num_tet, index)
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_11 = __Pyx_PyObject_AsWritableString(__pyx_t_2); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) __PYX_ERR(2, 513, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_v_num_tet); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_12 = __Pyx_PyLong_As_int(__pyx_t_8); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_orientability); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_13 = ((Orientability)__Pyx_PyLong_As_Orientability(__pyx_t_8)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_v_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_14 = __Pyx_PyLong_As_int(__pyx_t_8); if (unlikely((__pyx_t_14 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "cython/core/tail.pyx":512
 *             return self.__class__(n.indices(self.length))
 *         _, num_tet, index, m, l = ObsNonorientableClosedCensus.data[n].split()
 *         c_triangulation = GetCuspedCensusManifold(             # <<<<<<<<<<<<<<
 *             self.path, int(num_tet), self.orientability, int(index))
 *         if c_triangulation == NULL:
*/
  __pyx_v_c_triangulation = GetCuspedCensusManifold(__pyx_t_11, __pyx_t_12, __pyx_t_13, __pyx_t_14);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":514
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, int(num_tet), self.orientability, int(index))
 *         if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             print(num_tet, index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
*/
  __pyx_t_1 = (__pyx_v_c_triangulation == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "cython/core/tail.pyx":515
 *             self.path, int(num_tet), self.orientability, int(index))
 *         if c_triangulation == NULL:
 *             print(num_tet, index)             # <<<<<<<<<<<<<<
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Triangulation(spec='empty')
*/
    __pyx_t_8 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_8, __pyx_v_num_tet, __pyx_v_index};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 515, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":516
 *         if c_triangulation == NULL:
 *             print(num_tet, index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')             # <<<<<<<<<<<<<<
 *         result = Triangulation(spec='empty')
 *         result.set_c_triangulation(c_triangulation)
*/
    __pyx_t_8 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_mstate_global->__pyx_kp_u_SnapPea_failed_to_read_the_censu};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 516, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(2, 516, __pyx_L1_error)

    /* "cython/core/tail.pyx":514
 *         c_triangulation = GetCuspedCensusManifold(
 *             self.path, int(num_tet), self.orientability, int(index))
 *         if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *             print(num_tet, index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
*/
  }

  /* "cython/core/tail.pyx":517
 *             print(num_tet, index)
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Triangulation(spec='empty')             # <<<<<<<<<<<<<<
 *         result.set_c_triangulation(c_triangulation)
 *         result.dehn_fill((int(m), int(l)))
*/
  __pyx_t_8 = NULL;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_8, NULL};
    __pyx_t_5 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_spec, __pyx_mstate_global->__pyx_n_u_empty, __pyx_t_5, __pyx_callargs+1, 0) < (0)) __PYX_ERR(2, 517, __pyx_L1_error)
    __pyx_t_2 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 517, __pyx_L1_error)
    __Pyx_GOTREF((PyObject *)__pyx_t_2);
  }
  if (!(likely(((((PyObject *)__pyx_t_2)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_t_2), __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold))))) __PYX_ERR(2, 517, __pyx_L1_error)
  __pyx_v_result = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":518
 *             raise RuntimeError('SnapPea failed to read the census manifold.')
 *         result = Triangulation(spec='empty')
 *         result.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *         result.dehn_fill((int(m), int(l)))
 *         return result.with_hyperbolic_structure()
*/
  __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Manifold *)__pyx_v_result->__pyx_base.__pyx_vtab)->__pyx_base.set_c_triangulation(((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_v_result), __pyx_v_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":519
 *         result = Triangulation(spec='empty')
 *         result.set_c_triangulation(c_triangulation)
 *         result.dehn_fill((int(m), int(l)))             # <<<<<<<<<<<<<<
 *         return result.with_hyperbolic_structure()
 * 
*/
  __pyx_t_5 = ((PyObject *)__pyx_v_result);
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_v_m); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_v_l); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_8) != (0)) __PYX_ERR(2, 519, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_6);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6) != (0)) __PYX_ERR(2, 519, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":520
 *         result.set_c_triangulation(c_triangulation)
 *         result.dehn_fill((int(m), int(l)))
 *         return result.with_hyperbolic_structure()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = ((PyObject *)__pyx_v_result);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_with_hyperbolic_structure, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 520, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":506
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/

  /* function exit code */
  __pyx_L1_error:;
  __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_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.ObsNonorientableClosedCensus.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XDECREF(__pyx_v__);
  __Pyx_XDECREF(__pyx_v_num_tet);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XDECREF(__pyx_v_m);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":533
 *     alternation = 'a'
 * 
 *     def __init__(self, indices=(0, sum(Alternating_numbers.values()), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/

static PyObject *__pyx_pf_6SnapPy_66__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__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("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(2, 533, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(2, 533, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(2, 533, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13KnotExteriors_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13KnotExteriors_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13KnotExteriors_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13KnotExteriors_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_indices,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 533, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 533, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 533, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 533, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, i); __PYX_ERR(2, 533, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 533, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 533, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_self = values[0];
    __pyx_v_indices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, __pyx_nargs); __PYX_ERR(2, 533, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.KnotExteriors.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13KnotExteriors___init__(__pyx_self, __pyx_v_self, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13KnotExteriors___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":534
 * 
 *     def __init__(self, indices=(0, sum(Alternating_numbers.values()), 1)):
 *         Census.__init__(self, indices)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, n):
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_self, __pyx_v_indices};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":533
 *     alternation = 'a'
 * 
 *     def __init__(self, indices=(0, sum(Alternating_numbers.values()), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_AddTraceback("SnapPy.KnotExteriors.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":536
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_13KnotExteriors_3__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_13KnotExteriors_3__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13KnotExteriors_3__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_13KnotExteriors_3__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 536, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 536, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 536, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(2, 536, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(2, 536, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 536, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 536, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 536, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.KnotExteriors.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_13KnotExteriors_2__getitem__(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_13KnotExteriors_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  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;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cython/core/tail.pyx":537
 * 
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         else:
*/
  __pyx_t_1 = PySlice_Check(__pyx_v_n); 
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":538
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))             # <<<<<<<<<<<<<<
 *         else:
 *             return get_HT_knot_by_index(self.alternation, n, _manifold_class)
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = __pyx_v_n;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_indices, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 538, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 538, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":537
 * 
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         else:
*/
  }

  /* "cython/core/tail.pyx":540
 *             return self.__class__(n.indices(self.length))
 *         else:
 *             return get_HT_knot_by_index(self.alternation, n, _manifold_class)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_get_HT_knot_by_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_alternation); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_manifold_class); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_t_6, __pyx_v_n, __pyx_t_5};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 540, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "cython/core/tail.pyx":536
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
*/

  /* function exit code */
  __pyx_L1_error:;
  __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_AddTraceback("SnapPy.KnotExteriors.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":558
 *     alternation = 'n'
 * 
 *     def __init__(self, indices=(0, sum(Nonalternating_numbers.values()), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/

static PyObject *__pyx_pf_6SnapPy_68__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__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("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(2, 558, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(2, 558, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(2, 558, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_27NonalternatingKnotExteriors_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_27NonalternatingKnotExteriors_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_27NonalternatingKnotExteriors_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_27NonalternatingKnotExteriors_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_indices,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 558, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 558, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, i); __PYX_ERR(2, 558, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 558, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 558, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_self = values[0];
    __pyx_v_indices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, __pyx_nargs); __PYX_ERR(2, 558, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.NonalternatingKnotExteriors.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_27NonalternatingKnotExteriors___init__(__pyx_self, __pyx_v_self, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_27NonalternatingKnotExteriors___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":559
 * 
 *     def __init__(self, indices=(0, sum(Nonalternating_numbers.values()), 1)):
 *         Census.__init__(self, indices)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_self, __pyx_v_indices};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":558
 *     alternation = 'n'
 * 
 *     def __init__(self, indices=(0, sum(Nonalternating_numbers.values()), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_AddTraceback("SnapPy.NonalternatingKnotExteriors.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":571
 *     length = sum(census_knot_numbers)
 * 
 *     def __init__(self, indices=(0, sum(census_knot_numbers), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 *         self.Census_Knots = tarfile.open(census_knot_archive, 'r:*')
*/

static PyObject *__pyx_pf_6SnapPy_70__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__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("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(2, 571, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(2, 571, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(2, 571, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14ObsCensusKnots_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14ObsCensusKnots_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14ObsCensusKnots_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14ObsCensusKnots_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_indices,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 571, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 571, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 571, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 571, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, i); __PYX_ERR(2, 571, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 571, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 571, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_self = values[0];
    __pyx_v_indices = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, __pyx_nargs); __PYX_ERR(2, 571, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsCensusKnots.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14ObsCensusKnots___init__(__pyx_self, __pyx_v_self, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14ObsCensusKnots___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_indices) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":572
 * 
 *     def __init__(self, indices=(0, sum(census_knot_numbers), 1)):
 *         Census.__init__(self, indices)             # <<<<<<<<<<<<<<
 *         self.Census_Knots = tarfile.open(census_knot_archive, 'r:*')
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_self, __pyx_v_indices};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 572, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":573
 *     def __init__(self, indices=(0, sum(census_knot_numbers), 1)):
 *         Census.__init__(self, indices)
 *         self.Census_Knots = tarfile.open(census_knot_archive, 'r:*')             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tarfile); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_open); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_census_knot_archive); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_4);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_t_2, __pyx_mstate_global->__pyx_kp_u_r_2};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_Census_Knots, __pyx_t_1) < (0)) __PYX_ERR(2, 573, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":571
 *     length = sum(census_knot_numbers)
 * 
 *     def __init__(self, indices=(0, sum(census_knot_numbers), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 *         self.Census_Knots = tarfile.open(census_knot_archive, 'r:*')
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_AddTraceback("SnapPy.ObsCensusKnots.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":575
 *         self.Census_Knots = tarfile.open(census_knot_archive, 'r:*')
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return 'Knots in S^3 which appear in the SnapPea Census'
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14ObsCensusKnots_3__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14ObsCensusKnots_3__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14ObsCensusKnots_3__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14ObsCensusKnots_3__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 575, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 575, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(2, 575, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(2, 575, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 575, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 575, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsCensusKnots.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14ObsCensusKnots_2__repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14ObsCensusKnots_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cython/core/tail.pyx":576
 * 
 *     def __repr__(self):
 *         return 'Knots in S^3 which appear in the SnapPea Census'             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, n):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_Knots_in_S_3_which_appear_in_the);
  __pyx_r = __pyx_mstate_global->__pyx_kp_u_Knots_in_S_3_which_appear_in_the;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":575
 *         self.Census_Knots = tarfile.open(census_knot_archive, 'r:*')
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return 'Knots in S^3 which appear in the SnapPea Census'
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":578
 *         return 'Knots in S^3 which appear in the SnapPea Census'
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14ObsCensusKnots_5__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14ObsCensusKnots_5__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14ObsCensusKnots_5__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14ObsCensusKnots_5__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 578, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 578, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 578, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(2, 578, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(2, 578, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 578, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 578, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 578, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsCensusKnots.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14ObsCensusKnots_4__getitem__(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14ObsCensusKnots_4__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n) {
  PyObject *__pyx_v_total = NULL;
  long __pyx_v_m;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_tarpath = NULL;
  PyObject *__pyx_v_filedata = NULL;
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  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;
  size_t __pyx_t_7;
  long __pyx_t_8;
  PyObject *__pyx_t_9[4];
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  char *__pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cython/core/tail.pyx":579
 * 
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         else:
*/
  __pyx_t_1 = PySlice_Check(__pyx_v_n); 
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":580
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))             # <<<<<<<<<<<<<<
 *         else:
 *             total = 0
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = __pyx_v_n;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_indices, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":579
 * 
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(n.indices(self.length))
 *         else:
*/
  }

  /* "cython/core/tail.pyx":582
 *             return self.__class__(n.indices(self.length))
 *         else:
 *             total = 0             # <<<<<<<<<<<<<<
 *             for m in range(2, 8):
 *                 if total + census_knot_numbers[m] <= n:
*/
  /*else*/ {
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __pyx_v_total = __pyx_mstate_global->__pyx_int_0;

    /* "cython/core/tail.pyx":583
 *         else:
 *             total = 0
 *             for m in range(2, 8):             # <<<<<<<<<<<<<<
 *                 if total + census_knot_numbers[m] <= n:
 *                     total += census_knot_numbers[m]
*/
    for (__pyx_t_8 = 2; __pyx_t_8 < 8; __pyx_t_8+=1) {
      __pyx_v_m = __pyx_t_8;

      /* "cython/core/tail.pyx":584
 *             total = 0
 *             for m in range(2, 8):
 *                 if total + census_knot_numbers[m] <= n:             # <<<<<<<<<<<<<<
 *                     total += census_knot_numbers[m]
 *                     continue
*/
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_census_knot_numbers); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 584, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_2, __pyx_v_m, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 584, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = PyNumber_Add(__pyx_v_total, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 584, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_v_n, Py_LE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 584, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 584, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_1) {

        /* "cython/core/tail.pyx":585
 *             for m in range(2, 8):
 *                 if total + census_knot_numbers[m] <= n:
 *                     total += census_knot_numbers[m]             # <<<<<<<<<<<<<<
 *                     continue
 *                 else:
*/
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_census_knot_numbers); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 585, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_4, __pyx_v_m, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 585, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_total, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 585, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_total, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "cython/core/tail.pyx":586
 *                 if total + census_knot_numbers[m] <= n:
 *                     total += census_knot_numbers[m]
 *                     continue             # <<<<<<<<<<<<<<
 *                 else:
 *                     name = 'K%s_%s' % (m, n - total + 1)
*/
        goto __pyx_L4_continue;

        /* "cython/core/tail.pyx":584
 *             total = 0
 *             for m in range(2, 8):
 *                 if total + census_knot_numbers[m] <= n:             # <<<<<<<<<<<<<<
 *                     total += census_knot_numbers[m]
 *                     continue
*/
      }

      /* "cython/core/tail.pyx":588
 *                     continue
 *                 else:
 *                     name = 'K%s_%s' % (m, n - total + 1)             # <<<<<<<<<<<<<<
 *                     break
 *             if name:
*/
      /*else*/ {
        __pyx_t_4 = __Pyx_PyUnicode_From_long(__pyx_v_m, 0, ' ', 'd'); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 588, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_2 = PyNumber_Subtract(__pyx_v_n, __pyx_v_total); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 588, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_t_2, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 588, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_3), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 588, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_9[0] = __pyx_mstate_global->__pyx_n_u_K;
        __pyx_t_9[1] = __pyx_t_4;
        __pyx_t_9[2] = __pyx_mstate_global->__pyx_n_u__21;
        __pyx_t_9[3] = __pyx_t_2;
        __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_9, 4, 1 * 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2));
        if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 588, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_v_name = ((PyObject*)__pyx_t_3);
        __pyx_t_3 = 0;

        /* "cython/core/tail.pyx":589
 *                 else:
 *                     name = 'K%s_%s' % (m, n - total + 1)
 *                     break             # <<<<<<<<<<<<<<
 *             if name:
 *                 tarpath = 'CensusKnots/%s' % name
*/
        goto __pyx_L5_break;
      }
      __pyx_L4_continue:;
    }
    __pyx_L5_break:;

    /* "cython/core/tail.pyx":590
 *                     name = 'K%s_%s' % (m, n - total + 1)
 *                     break
 *             if name:             # <<<<<<<<<<<<<<
 *                 tarpath = 'CensusKnots/%s' % name
 *                 try:
*/
    if (unlikely(!__pyx_v_name)) { __Pyx_RaiseUnboundLocalError("name"); __PYX_ERR(2, 590, __pyx_L1_error) }
    {
      Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_v_name);
      if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(2, 590, __pyx_L1_error)
      __pyx_t_1 = (__pyx_temp != 0);
    }

    if (likely(__pyx_t_1)) {

      /* "cython/core/tail.pyx":591
 *                     break
 *             if name:
 *                 tarpath = 'CensusKnots/%s' % name             # <<<<<<<<<<<<<<
 *                 try:
 *                     filedata = self.Census_Knots.extractfile(tarpath).read()
*/
      if (unlikely(!__pyx_v_name)) { __Pyx_RaiseUnboundLocalError("name"); __PYX_ERR(2, 591, __pyx_L1_error) }
      __pyx_t_3 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_CensusKnots_s, __pyx_v_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 591, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_v_tarpath = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "cython/core/tail.pyx":592
 *             if name:
 *                 tarpath = 'CensusKnots/%s' % name
 *                 try:             # <<<<<<<<<<<<<<
 *                     filedata = self.Census_Knots.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)
*/
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_12);
        /*try:*/ {

          /* "cython/core/tail.pyx":593
 *                 tarpath = 'CensusKnots/%s' % name
 *                 try:
 *                     filedata = self.Census_Knots.extractfile(tarpath).read()             # <<<<<<<<<<<<<<
 *                     c_triangulation = read_triangulation_from_string(filedata)
 *                 except:
*/
          __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_Census_Knots); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 593, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_6 = __pyx_t_5;
          __Pyx_INCREF(__pyx_t_6);
          __pyx_t_7 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_tarpath};
            __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_extractfile, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 593, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          __pyx_t_2 = __pyx_t_4;
          __Pyx_INCREF(__pyx_t_2);
          __pyx_t_7 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
            __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_read, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 593, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __pyx_v_filedata = __pyx_t_3;
          __pyx_t_3 = 0;

          /* "cython/core/tail.pyx":594
 *                 try:
 *                     filedata = self.Census_Knots.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)             # <<<<<<<<<<<<<<
 *                 except:
 *                     raise IOError("The census knot %s was not found." % name)
*/
          __pyx_t_13 = __Pyx_PyObject_AsWritableString(__pyx_v_filedata); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(2, 594, __pyx_L8_error)
          __pyx_v_c_triangulation = read_triangulation_from_string(__pyx_t_13);

          /* "cython/core/tail.pyx":592
 *             if name:
 *                 tarpath = 'CensusKnots/%s' % name
 *                 try:             # <<<<<<<<<<<<<<
 *                     filedata = self.Census_Knots.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)
*/
        }
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        goto __pyx_L13_try_end;
        __pyx_L8_error:;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cython/core/tail.pyx":595
 *                     filedata = self.Census_Knots.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)
 *                 except:             # <<<<<<<<<<<<<<
 *                     raise IOError("The census knot %s was not found." % name)
 *                 result = Triangulation('empty')
*/
        /*except:*/ {
          __Pyx_AddTraceback("SnapPy.ObsCensusKnots.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_4, &__pyx_t_2) < 0) __PYX_ERR(2, 595, __pyx_L10_except_error)
          __Pyx_XGOTREF(__pyx_t_3);
          __Pyx_XGOTREF(__pyx_t_4);
          __Pyx_XGOTREF(__pyx_t_2);

          /* "cython/core/tail.pyx":596
 *                     c_triangulation = read_triangulation_from_string(filedata)
 *                 except:
 *                     raise IOError("The census knot %s was not found." % name)             # <<<<<<<<<<<<<<
 *                 result = Triangulation('empty')
 *                 result.set_c_triangulation(c_triangulation)
*/
          __pyx_t_6 = NULL;
          if (unlikely(!__pyx_v_name)) { __Pyx_RaiseUnboundLocalError("name"); __PYX_ERR(2, 596, __pyx_L10_except_error) }
          __pyx_t_14 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_The_census_knot_s_was_not_found, __pyx_v_name); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 596, __pyx_L10_except_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_7 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_14};
            __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IOError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 596, __pyx_L10_except_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          __Pyx_Raise(__pyx_t_5, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __PYX_ERR(2, 596, __pyx_L10_except_error)
        }

        /* "cython/core/tail.pyx":592
 *             if name:
 *                 tarpath = 'CensusKnots/%s' % name
 *                 try:             # <<<<<<<<<<<<<<
 *                     filedata = self.Census_Knots.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)
*/
        __pyx_L10_except_error:;
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_XGIVEREF(__pyx_t_12);
        __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
        goto __pyx_L1_error;
        __pyx_L13_try_end:;
      }

      /* "cython/core/tail.pyx":597
 *                 except:
 *                     raise IOError("The census knot %s was not found." % name)
 *                 result = Triangulation('empty')             # <<<<<<<<<<<<<<
 *                 result.set_c_triangulation(c_triangulation)
 *                 result.set_name(name)
*/
      __pyx_t_4 = NULL;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_n_u_empty};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 597, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_2);
      }
      __pyx_v_result = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/tail.pyx":598
 *                     raise IOError("The census knot %s was not found." % name)
 *                 result = Triangulation('empty')
 *                 result.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *                 result.set_name(name)
 *                 return result.with_hyperbolic_structure()
*/
      __pyx_t_2 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_result->__pyx_vtab)->set_c_triangulation(__pyx_v_result, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 598, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/tail.pyx":599
 *                 result = Triangulation('empty')
 *                 result.set_c_triangulation(c_triangulation)
 *                 result.set_name(name)             # <<<<<<<<<<<<<<
 *                 return result.with_hyperbolic_structure()
 *             else:
*/
      __pyx_t_4 = ((PyObject *)__pyx_v_result);
      __Pyx_INCREF(__pyx_t_4);
      if (unlikely(!__pyx_v_name)) { __Pyx_RaiseUnboundLocalError("name"); __PYX_ERR(2, 599, __pyx_L1_error) }
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_name};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 599, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/tail.pyx":600
 *                 result.set_c_triangulation(c_triangulation)
 *                 result.set_name(name)
 *                 return result.with_hyperbolic_structure()             # <<<<<<<<<<<<<<
 *             else:
 *                 raise IndexError('There are only 201 census knots.')
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = ((PyObject *)__pyx_v_result);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
        __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_with_hyperbolic_structure, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 600, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L0;

      /* "cython/core/tail.pyx":590
 *                     name = 'K%s_%s' % (m, n - total + 1)
 *                     break
 *             if name:             # <<<<<<<<<<<<<<
 *                 tarpath = 'CensusKnots/%s' % name
 *                 try:
*/
    }

    /* "cython/core/tail.pyx":602
 *                 return result.with_hyperbolic_structure()
 *             else:
 *                 raise IndexError('There are only 201 census knots.')             # <<<<<<<<<<<<<<
 * 
 * 
*/
    /*else*/ {
      __pyx_t_4 = NULL;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_There_are_only_201_census_knots};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 602, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(2, 602, __pyx_L1_error)
    }
  }

  /* "cython/core/tail.pyx":578
 *         return 'Knots in S^3 which appear in the SnapPea Census'
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
*/

  /* function exit code */
  __pyx_L1_error:;
  __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_14);
  __Pyx_AddTraceback("SnapPy.ObsCensusKnots.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_total);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_tarpath);
  __Pyx_XDECREF(__pyx_v_filedata);
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":619
 *     max_crossings = 11
 * 
 *     def __init__(self, components, indices=(0, 10000, 1)):             # <<<<<<<<<<<<<<
 *         self.Christy_links = tarfile.open(link_archive, 'r:*')
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16ObsLinkExteriors_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16ObsLinkExteriors_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16ObsLinkExteriors_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16ObsLinkExteriors_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_components = 0;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_components,&__pyx_mstate_global->__pyx_n_u_indices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 619, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 619, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 619, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 619, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 619, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_tuple[29])));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, i); __PYX_ERR(2, 619, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 619, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 619, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 619, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_tuple[29])));
    }
    __pyx_v_self = values[0];
    __pyx_v_components = values[1];
    __pyx_v_indices = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, __pyx_nargs); __PYX_ERR(2, 619, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsLinkExteriors.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16ObsLinkExteriors___init__(__pyx_self, __pyx_v_self, __pyx_v_components, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16ObsLinkExteriors___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_components, PyObject *__pyx_v_indices) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":620
 * 
 *     def __init__(self, components, indices=(0, 10000, 1)):
 *         self.Christy_links = tarfile.open(link_archive, 'r:*')             # <<<<<<<<<<<<<<
 * 
 *         if not (1 <= components < len(self.num_links)):
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_tarfile); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_open); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_link_archive); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_3, __pyx_mstate_global->__pyx_kp_u_r_2};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 620, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_Christy_links, __pyx_t_1) < (0)) __PYX_ERR(2, 620, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":622
 *         self.Christy_links = tarfile.open(link_archive, 'r:*')
 * 
 *         if not (1 <= components < len(self.num_links)):             # <<<<<<<<<<<<<<
 *             raise IndexError('SnapPy has no data on links with '
 *                              '%s components.' % components)
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_mstate_global->__pyx_int_1, __pyx_v_components, Py_LE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 622, __pyx_L1_error)
  if (__Pyx_PyObject_IsTrue(__pyx_t_1)) {
    __Pyx_DECREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_num_links); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = PyObject_Length(__pyx_t_4); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 622, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = PyObject_RichCompare(__pyx_v_components, __pyx_t_4, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 622, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(2, 622, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_8 = (!__pyx_t_7);
  if (unlikely(__pyx_t_8)) {

    /* "cython/core/tail.pyx":623
 * 
 *         if not (1 <= components < len(self.num_links)):
 *             raise IndexError('SnapPy has no data on links with '             # <<<<<<<<<<<<<<
 *                              '%s components.' % components)
 * 
*/
    __pyx_t_4 = NULL;

    /* "cython/core/tail.pyx":624
 *         if not (1 <= components < len(self.num_links)):
 *             raise IndexError('SnapPy has no data on links with '
 *                              '%s components.' % components)             # <<<<<<<<<<<<<<
 * 
 *         self.components = components
*/
    __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_SnapPy_has_no_data_on_links_with, __pyx_v_components); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 624, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IndexError)), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 623, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(2, 623, __pyx_L1_error)

    /* "cython/core/tail.pyx":622
 *         self.Christy_links = tarfile.open(link_archive, 'r:*')
 * 
 *         if not (1 <= components < len(self.num_links)):             # <<<<<<<<<<<<<<
 *             raise IndexError('SnapPy has no data on links with '
 *                              '%s components.' % components)
*/
  }

  /* "cython/core/tail.pyx":626
 *                              '%s components.' % components)
 * 
 *         self.components = components             # <<<<<<<<<<<<<<
 * 
 *         self.length = sum(self.num_links[components])
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_components, __pyx_v_components) < (0)) __PYX_ERR(2, 626, __pyx_L1_error)

  /* "cython/core/tail.pyx":628
 *         self.components = components
 * 
 *         self.length = sum(self.num_links[components])             # <<<<<<<<<<<<<<
 * 
 *         Census.__init__(self, (indices[0],
*/
  __pyx_t_3 = NULL;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_num_links); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_components); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_2};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 628, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_1) < (0)) __PYX_ERR(2, 628, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":630
 *         self.length = sum(self.num_links[components])
 * 
 *         Census.__init__(self, (indices[0],             # <<<<<<<<<<<<<<
 *                                min(self.length, indices[1]),
 *                                indices[2]))
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_indices, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "cython/core/tail.pyx":631
 * 
 *         Census.__init__(self, (indices[0],
 *                                min(self.length, indices[1]),             # <<<<<<<<<<<<<<
 *                                indices[2]))
 * 
*/
  __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_indices, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_12 = PyObject_RichCompare(__pyx_t_9, __pyx_t_10, Py_LT); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 631, __pyx_L1_error)
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(2, 631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  if (__pyx_t_8) {
    __Pyx_INCREF(__pyx_t_9);
    __pyx_t_11 = __pyx_t_9;
  } else {
    __Pyx_INCREF(__pyx_t_10);
    __pyx_t_11 = __pyx_t_10;
  }
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "cython/core/tail.pyx":632
 *         Census.__init__(self, (indices[0],
 *                                min(self.length, indices[1]),
 *                                indices[2]))             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_9 = __Pyx_GetItemInt(__pyx_v_indices, 2, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);

  /* "cython/core/tail.pyx":630
 *         self.length = sum(self.num_links[components])
 * 
 *         Census.__init__(self, (indices[0],             # <<<<<<<<<<<<<<
 *                                min(self.length, indices[1]),
 *                                indices[2]))
*/
  __pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3) != (0)) __PYX_ERR(2, 630, __pyx_L1_error);
  __Pyx_INCREF(__pyx_t_11);
  __Pyx_GIVEREF(__pyx_t_11);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_11) != (0)) __PYX_ERR(2, 630, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_9);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_9) != (0)) __PYX_ERR(2, 630, __pyx_L1_error);
  __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  __pyx_t_9 = 0;
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_self, __pyx_t_10};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":619
 *     max_crossings = 11
 * 
 *     def __init__(self, components, indices=(0, 10000, 1)):             # <<<<<<<<<<<<<<
 *         self.Christy_links = tarfile.open(link_archive, 'r:*')
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  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_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("SnapPy.ObsLinkExteriors.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":634
 *                                indices[2]))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ('Christy census of %s-component link complements '
 *                 'in S^3' % self.components)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16ObsLinkExteriors_3__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16ObsLinkExteriors_3__repr__ = {"__repr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16ObsLinkExteriors_3__repr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16ObsLinkExteriors_3__repr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 634, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 634, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__repr__", 0) < (0)) __PYX_ERR(2, 634, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, i); __PYX_ERR(2, 634, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 634, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__repr__", 1, 1, 1, __pyx_nargs); __PYX_ERR(2, 634, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsLinkExteriors.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16ObsLinkExteriors_2__repr__(__pyx_self, __pyx_v_self);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16ObsLinkExteriors_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__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("__repr__", 0);

  /* "cython/core/tail.pyx":635
 * 
 *     def __repr__(self):
 *         return ('Christy census of %s-component link complements '             # <<<<<<<<<<<<<<
 *                 'in S^3' % self.components)
 * 
*/
  __Pyx_XDECREF(__pyx_r);

  /* "cython/core/tail.pyx":636
 *     def __repr__(self):
 *         return ('Christy census of %s-component link complements '
 *                 'in S^3' % self.components)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, j):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_components); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Christy_census_of_s_component_li, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":634
 *                                indices[2]))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ('Christy census of %s-component link complements '
 *                 'in S^3' % self.components)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.ObsLinkExteriors.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":638
 *                 'in S^3' % self.components)
 * 
 *     def __getitem__(self, j):             # <<<<<<<<<<<<<<
 *         if isinstance(j, slice):
 *             return self.__class__(j.indices(self.length))
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_16ObsLinkExteriors_5__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_16ObsLinkExteriors_5__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16ObsLinkExteriors_5__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_16ObsLinkExteriors_5__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_j = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_j,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 638, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 638, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 638, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(2, 638, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(2, 638, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 638, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 638, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_j = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 638, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsLinkExteriors.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_16ObsLinkExteriors_4__getitem__(__pyx_self, __pyx_v_self, __pyx_v_j);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_16ObsLinkExteriors_4__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_j) {
  PyObject *__pyx_v_so_far = NULL;
  PyObject *__pyx_v_k = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_v_filename = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_tarpath = NULL;
  PyObject *__pyx_v_filedata = NULL;
  Triangulation *__pyx_v_c_triangulation;
  struct __pyx_obj_6SnapPy_Triangulation *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  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;
  size_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9[5];
  PyObject *__pyx_t_10[3];
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  char *__pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cython/core/tail.pyx":639
 * 
 *     def __getitem__(self, j):
 *         if isinstance(j, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(j.indices(self.length))
 *         so_far = 0
*/
  __pyx_t_1 = PySlice_Check(__pyx_v_j); 
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":640
 *     def __getitem__(self, j):
 *         if isinstance(j, slice):
 *             return self.__class__(j.indices(self.length))             # <<<<<<<<<<<<<<
 *         so_far = 0
 *         for k in range(self.max_crossings + 1):
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_5 = __pyx_v_j;
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_indices, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 640, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":639
 * 
 *     def __getitem__(self, j):
 *         if isinstance(j, slice):             # <<<<<<<<<<<<<<
 *             return self.__class__(j.indices(self.length))
 *         so_far = 0
*/
  }

  /* "cython/core/tail.pyx":641
 *         if isinstance(j, slice):
 *             return self.__class__(j.indices(self.length))
 *         so_far = 0             # <<<<<<<<<<<<<<
 *         for k in range(self.max_crossings + 1):
 *             n = self.num_links[self.components][k]
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_v_so_far = __pyx_mstate_global->__pyx_int_0;

  /* "cython/core/tail.pyx":642
 *             return self.__class__(j.indices(self.length))
 *         so_far = 0
 *         for k in range(self.max_crossings + 1):             # <<<<<<<<<<<<<<
 *             n = self.num_links[self.components][k]
 *             so_far = so_far + n
*/
  __pyx_t_4 = NULL;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_max_crossings); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_6};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 642, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_6 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 642, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    {
      __pyx_t_2 = __pyx_t_8(__pyx_t_6);
      if (unlikely(!__pyx_t_2)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 642, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":643
 *         so_far = 0
 *         for k in range(self.max_crossings + 1):
 *             n = self.num_links[self.components][k]             # <<<<<<<<<<<<<<
 *             so_far = so_far + n
 *             if so_far > j:
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_num_links); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_components); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_k); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":644
 *         for k in range(self.max_crossings + 1):
 *             n = self.num_links[self.components][k]
 *             so_far = so_far + n             # <<<<<<<<<<<<<<
 *             if so_far > j:
 *                 l = j - so_far + n + 1
*/
    __pyx_t_4 = PyNumber_Add(__pyx_v_so_far, __pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_so_far, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":645
 *             n = self.num_links[self.components][k]
 *             so_far = so_far + n
 *             if so_far > j:             # <<<<<<<<<<<<<<
 *                 l = j - so_far + n + 1
 *                 filename = 'L%d%.2d%.3d' % (self.components, k, l)
*/
    __pyx_t_4 = PyObject_RichCompare(__pyx_v_so_far, __pyx_v_j, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 645, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 645, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (__pyx_t_1) {

      /* "cython/core/tail.pyx":646
 *             so_far = so_far + n
 *             if so_far > j:
 *                 l = j - so_far + n + 1             # <<<<<<<<<<<<<<
 *                 filename = 'L%d%.2d%.3d' % (self.components, k, l)
 *                 if self.components > 1:
*/
      __pyx_t_4 = PyNumber_Subtract(__pyx_v_j, __pyx_v_so_far); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyNumber_Add(__pyx_t_4, __pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 646, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_l = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "cython/core/tail.pyx":647
 *             if so_far > j:
 *                 l = j - so_far + n + 1
 *                 filename = 'L%d%.2d%.3d' % (self.components, k, l)             # <<<<<<<<<<<<<<
 *                 if self.components > 1:
 *                     name = "%d^%d_%d" % (k, self.components, l)
*/
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_components); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 647, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 647, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_4);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(2, 647, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_k);
      __Pyx_GIVEREF(__pyx_v_k);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_k) != (0)) __PYX_ERR(2, 647, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_l);
      __Pyx_GIVEREF(__pyx_v_l);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_l) != (0)) __PYX_ERR(2, 647, __pyx_L1_error);
      __pyx_t_4 = 0;
      __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_L_d_2d_3d, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 647, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_filename = ((PyObject*)__pyx_t_4);
      __pyx_t_4 = 0;

      /* "cython/core/tail.pyx":648
 *                 l = j - so_far + n + 1
 *                 filename = 'L%d%.2d%.3d' % (self.components, k, l)
 *                 if self.components > 1:             # <<<<<<<<<<<<<<
 *                     name = "%d^%d_%d" % (k, self.components, l)
 *                 else:
*/
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_components); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 648, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_mstate_global->__pyx_int_1, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 648, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(2, 648, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_1) {

        /* "cython/core/tail.pyx":649
 *                 filename = 'L%d%.2d%.3d' % (self.components, k, l)
 *                 if self.components > 1:
 *                     name = "%d^%d_%d" % (k, self.components, l)             # <<<<<<<<<<<<<<
 *                 else:
 *                     name = "%d_%d" % (k, l)
*/
        __pyx_t_3 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_k), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 649, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_components); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 649, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_2 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_t_4), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 649, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_l), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 649, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_9[0] = __pyx_t_3;
        __pyx_t_9[1] = __pyx_mstate_global->__pyx_kp_u__20;
        __pyx_t_9[2] = __pyx_t_2;
        __pyx_t_9[3] = __pyx_mstate_global->__pyx_n_u__21;
        __pyx_t_9[4] = __pyx_t_4;
        __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_9, 5, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3) + 1 * 2 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_2) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_2) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4));
        if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 649, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_name = ((PyObject*)__pyx_t_5);
        __pyx_t_5 = 0;

        /* "cython/core/tail.pyx":648
 *                 l = j - so_far + n + 1
 *                 filename = 'L%d%.2d%.3d' % (self.components, k, l)
 *                 if self.components > 1:             # <<<<<<<<<<<<<<
 *                     name = "%d^%d_%d" % (k, self.components, l)
 *                 else:
*/
        goto __pyx_L7;
      }

      /* "cython/core/tail.pyx":651
 *                     name = "%d^%d_%d" % (k, self.components, l)
 *                 else:
 *                     name = "%d_%d" % (k, l)             # <<<<<<<<<<<<<<
 *                 tarpath = 'ChristyLinks/%s' % filename
 *                 try:
*/
      /*else*/ {
        __pyx_t_5 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_k), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 651, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __Pyx_PyObject_FormatAndDecref(__Pyx_PyNumber_Long(__pyx_v_l), __pyx_mstate_global->__pyx_n_u_d_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 651, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_10[0] = __pyx_t_5;
        __pyx_t_10[1] = __pyx_mstate_global->__pyx_n_u__21;
        __pyx_t_10[2] = __pyx_t_4;
        __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_10, 3, __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 1 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4), 127 | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) | __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4));
        if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 651, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_name = ((PyObject*)__pyx_t_2);
        __pyx_t_2 = 0;
      }
      __pyx_L7:;

      /* "cython/core/tail.pyx":652
 *                 else:
 *                     name = "%d_%d" % (k, l)
 *                 tarpath = 'ChristyLinks/%s' % filename             # <<<<<<<<<<<<<<
 *                 try:
 *                     filedata = self.Christy_links.extractfile(tarpath).read()
*/
      __pyx_t_2 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_ChristyLinks_s, __pyx_v_filename); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 652, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_tarpath = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "cython/core/tail.pyx":653
 *                     name = "%d_%d" % (k, l)
 *                 tarpath = 'ChristyLinks/%s' % filename
 *                 try:             # <<<<<<<<<<<<<<
 *                     filedata = self.Christy_links.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)
*/
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_12);
        __Pyx_XGOTREF(__pyx_t_13);
        /*try:*/ {

          /* "cython/core/tail.pyx":654
 *                 tarpath = 'ChristyLinks/%s' % filename
 *                 try:
 *                     filedata = self.Christy_links.extractfile(tarpath).read()             # <<<<<<<<<<<<<<
 *                     c_triangulation = read_triangulation_from_string(filedata)
 *                 except:
*/
          __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_Christy_links); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 654, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_3 = __pyx_t_14;
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_7 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_tarpath};
            __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_extractfile, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 654, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          __pyx_t_4 = __pyx_t_5;
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_7 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
            __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_read, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 654, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_2);
          }
          __pyx_v_filedata = __pyx_t_2;
          __pyx_t_2 = 0;

          /* "cython/core/tail.pyx":655
 *                 try:
 *                     filedata = self.Christy_links.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)             # <<<<<<<<<<<<<<
 *                 except:
 *                     raise IOError('The link complement %s was not '
*/
          __pyx_t_15 = __Pyx_PyObject_AsWritableString(__pyx_v_filedata); if (unlikely((!__pyx_t_15) && PyErr_Occurred())) __PYX_ERR(2, 655, __pyx_L8_error)
          __pyx_v_c_triangulation = read_triangulation_from_string(__pyx_t_15);

          /* "cython/core/tail.pyx":653
 *                     name = "%d_%d" % (k, l)
 *                 tarpath = 'ChristyLinks/%s' % filename
 *                 try:             # <<<<<<<<<<<<<<
 *                     filedata = self.Christy_links.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)
*/
        }
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
        goto __pyx_L15_try_end;
        __pyx_L8_error:;
        __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "cython/core/tail.pyx":656
 *                     filedata = self.Christy_links.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)
 *                 except:             # <<<<<<<<<<<<<<
 *                     raise IOError('The link complement %s was not '
 *                                   'found.' % filename)
*/
        /*except:*/ {
          __Pyx_AddTraceback("SnapPy.ObsLinkExteriors.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(2, 656, __pyx_L10_except_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __Pyx_XGOTREF(__pyx_t_5);
          __Pyx_XGOTREF(__pyx_t_4);

          /* "cython/core/tail.pyx":657
 *                     c_triangulation = read_triangulation_from_string(filedata)
 *                 except:
 *                     raise IOError('The link complement %s was not '             # <<<<<<<<<<<<<<
 *                                   'found.' % filename)
 *                 result = Triangulation('empty')
*/
          __pyx_t_3 = NULL;

          /* "cython/core/tail.pyx":658
 *                 except:
 *                     raise IOError('The link complement %s was not '
 *                                   'found.' % filename)             # <<<<<<<<<<<<<<
 *                 result = Triangulation('empty')
 *                 result.set_c_triangulation(c_triangulation)
*/
          __pyx_t_16 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_The_link_complement_s_was_not_fo, __pyx_v_filename); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 658, __pyx_L10_except_error)
          __Pyx_GOTREF(__pyx_t_16);
          __pyx_t_7 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_16};
            __pyx_t_14 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_IOError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
            if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 657, __pyx_L10_except_error)
            __Pyx_GOTREF(__pyx_t_14);
          }
          __Pyx_Raise(__pyx_t_14, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __PYX_ERR(2, 657, __pyx_L10_except_error)
        }

        /* "cython/core/tail.pyx":653
 *                     name = "%d_%d" % (k, l)
 *                 tarpath = 'ChristyLinks/%s' % filename
 *                 try:             # <<<<<<<<<<<<<<
 *                     filedata = self.Christy_links.extractfile(tarpath).read()
 *                     c_triangulation = read_triangulation_from_string(filedata)
*/
        __pyx_L10_except_error:;
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_XGIVEREF(__pyx_t_12);
        __Pyx_XGIVEREF(__pyx_t_13);
        __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13);
        goto __pyx_L1_error;
        __pyx_L15_try_end:;
      }

      /* "cython/core/tail.pyx":659
 *                     raise IOError('The link complement %s was not '
 *                                   'found.' % filename)
 *                 result = Triangulation('empty')             # <<<<<<<<<<<<<<
 *                 result.set_c_triangulation(c_triangulation)
 *                 result.set_name(name)
*/
      __pyx_t_5 = NULL;
      __pyx_t_7 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_empty};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 659, __pyx_L1_error)
        __Pyx_GOTREF((PyObject *)__pyx_t_4);
      }
      __pyx_v_result = ((struct __pyx_obj_6SnapPy_Triangulation *)__pyx_t_4);
      __pyx_t_4 = 0;

      /* "cython/core/tail.pyx":660
 *                                   'found.' % filename)
 *                 result = Triangulation('empty')
 *                 result.set_c_triangulation(c_triangulation)             # <<<<<<<<<<<<<<
 *                 result.set_name(name)
 *                 return result.with_hyperbolic_structure()
*/
      __pyx_t_4 = ((struct __pyx_vtabstruct_6SnapPy_Triangulation *)__pyx_v_result->__pyx_vtab)->set_c_triangulation(__pyx_v_result, __pyx_v_c_triangulation); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 660, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "cython/core/tail.pyx":661
 *                 result = Triangulation('empty')
 *                 result.set_c_triangulation(c_triangulation)
 *                 result.set_name(name)             # <<<<<<<<<<<<<<
 *                 return result.with_hyperbolic_structure()
 * 
*/
      __pyx_t_5 = ((PyObject *)__pyx_v_result);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_name};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 661, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "cython/core/tail.pyx":662
 *                 result.set_c_triangulation(c_triangulation)
 *                 result.set_name(name)
 *                 return result.with_hyperbolic_structure()             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = ((PyObject *)__pyx_v_result);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_with_hyperbolic_structure, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 662, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L0;

      /* "cython/core/tail.pyx":645
 *             n = self.num_links[self.components][k]
 *             so_far = so_far + n
 *             if so_far > j:             # <<<<<<<<<<<<<<
 *                 l = j - so_far + n + 1
 *                 filename = 'L%d%.2d%.3d' % (self.components, k, l)
*/
    }

    /* "cython/core/tail.pyx":642
 *             return self.__class__(j.indices(self.length))
 *         so_far = 0
 *         for k in range(self.max_crossings + 1):             # <<<<<<<<<<<<<<
 *             n = self.num_links[self.components][k]
 *             so_far = so_far + n
*/
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":638
 *                 'in S^3' % self.components)
 * 
 *     def __getitem__(self, j):             # <<<<<<<<<<<<<<
 *         if isinstance(j, slice):
 *             return self.__class__(j.indices(self.length))
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __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_14);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_AddTraceback("SnapPy.ObsLinkExteriors.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_so_far);
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XDECREF(__pyx_v_filename);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_tarpath);
  __Pyx_XDECREF(__pyx_v_filedata);
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":672
 * 
 * class MorwenLinks:
 *     def __init__(self, num_components, num_crossings = None):             # <<<<<<<<<<<<<<
 *         raise ValueError(
 *             'The MorwenLinks class has been replaced by HTLinkExteriors. '
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_11MorwenLinks_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_11MorwenLinks_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_11MorwenLinks_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_11MorwenLinks_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED PyObject *__pyx_v_self = 0;
  CYTHON_UNUSED PyObject *__pyx_v_num_components = 0;
  CYTHON_UNUSED PyObject *__pyx_v_num_crossings = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_num_components,&__pyx_mstate_global->__pyx_n_u_num_crossings,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 672, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 672, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 672, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 672, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 672, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, i); __PYX_ERR(2, 672, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 672, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 672, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 672, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_self = values[0];
    __pyx_v_num_components = values[1];
    __pyx_v_num_crossings = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, __pyx_nargs); __PYX_ERR(2, 672, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.MorwenLinks.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_11MorwenLinks___init__(__pyx_self, __pyx_v_self, __pyx_v_num_components, __pyx_v_num_crossings);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_11MorwenLinks___init__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_num_components, CYTHON_UNUSED PyObject *__pyx_v_num_crossings) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":673
 * class MorwenLinks:
 *     def __init__(self, num_components, num_crossings = None):
 *         raise ValueError(             # <<<<<<<<<<<<<<
 *             'The MorwenLinks class has been replaced by HTLinkExteriors. '
 *             'Please refer to the documentation for HTLinkExteriors.'
*/
  __pyx_t_2 = NULL;
  __pyx_t_3 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_The_MorwenLinks_class_has_been_r};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 673, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(2, 673, __pyx_L1_error)

  /* "cython/core/tail.pyx":672
 * 
 * class MorwenLinks:
 *     def __init__(self, num_components, num_crossings = None):             # <<<<<<<<<<<<<<
 *         raise ValueError(
 *             'The MorwenLinks class has been replaced by HTLinkExteriors. '
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("SnapPy.MorwenLinks.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":679
 * 
 * 
 * def left_pad_string(str,  length, pad=' '):             # <<<<<<<<<<<<<<
 *     return pad*(length - len(str)) + str
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_59left_pad_string(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_59left_pad_string = {"left_pad_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_59left_pad_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_59left_pad_string(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_str = 0;
  PyObject *__pyx_v_length = 0;
  PyObject *__pyx_v_pad = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("left_pad_string (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_str,&__pyx_mstate_global->__pyx_n_u_length,&__pyx_mstate_global->__pyx_n_u_pad,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 679, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 679, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 679, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 679, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "left_pad_string", 0) < (0)) __PYX_ERR(2, 679, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__9)));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("left_pad_string", 0, 2, 3, i); __PYX_ERR(2, 679, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 679, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 679, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 679, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_kp_u__9)));
    }
    __pyx_v_str = values[0];
    __pyx_v_length = values[1];
    __pyx_v_pad = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("left_pad_string", 0, 2, 3, __pyx_nargs); __PYX_ERR(2, 679, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.left_pad_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_58left_pad_string(__pyx_self, __pyx_v_str, __pyx_v_length, __pyx_v_pad);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_58left_pad_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_str, PyObject *__pyx_v_length, PyObject *__pyx_v_pad) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("left_pad_string", 0);

  /* "cython/core/tail.pyx":680
 * 
 * def left_pad_string(str,  length, pad=' '):
 *     return pad*(length - len(str)) + str             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyObject_Length(__pyx_v_str); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(2, 680, __pyx_L1_error)
  __pyx_t_2 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_v_length, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Multiply(__pyx_v_pad, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_2, __pyx_v_str); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":679
 * 
 * 
 * def left_pad_string(str,  length, pad=' '):             # <<<<<<<<<<<<<<
 *     return pad*(length - len(str)) + str
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.left_pad_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":687
 *     Obsolete.
 *     """
 *     def __init__(self, num_components, num_crossings = None):             # <<<<<<<<<<<<<<
 *         if num_components < 0:
 *             return
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14ObsMorwenLinks_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14ObsMorwenLinks_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14ObsMorwenLinks_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14ObsMorwenLinks_1__init__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_num_components = 0;
  PyObject *__pyx_v_num_crossings = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_num_components,&__pyx_mstate_global->__pyx_n_u_num_crossings,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 687, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(2, 687, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, i); __PYX_ERR(2, 687, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(2, 687, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 687, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 687, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_self = values[0];
    __pyx_v_num_components = values[1];
    __pyx_v_num_crossings = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, __pyx_nargs); __PYX_ERR(2, 687, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsMorwenLinks.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14ObsMorwenLinks___init__(__pyx_self, __pyx_v_self, __pyx_v_num_components, __pyx_v_num_crossings);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14ObsMorwenLinks___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_num_components, PyObject *__pyx_v_num_crossings) {
  PyObject *__pyx_v_crossings = NULL;
  PyObject *__pyx_v_files = NULL;
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_second_char = NULL;
  PyObject *__pyx_v_file = NULL;
  PyObject *__pyx_v_data = NULL;
  PyObject *__pyx_v_line = NULL;
  PyObject *__pyx_v_strline = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  Py_ssize_t __pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cython/core/tail.pyx":688
 *     """
 *     def __init__(self, num_components, num_crossings = None):
 *         if num_components < 0:             # <<<<<<<<<<<<<<
 *             return
 * 
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_num_components, __pyx_mstate_global->__pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 688, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 688, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cython/core/tail.pyx":689
 *     def __init__(self, num_components, num_crossings = None):
 *         if num_components < 0:
 *             return             # <<<<<<<<<<<<<<
 * 
 *         crossings = range(4, 15) if num_crossings is None else [num_crossings]
*/
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cython/core/tail.pyx":688
 *     """
 *     def __init__(self, num_components, num_crossings = None):
 *         if num_components < 0:             # <<<<<<<<<<<<<<
 *             return
 * 
*/
  }

  /* "cython/core/tail.pyx":691
 *             return
 * 
 *         crossings = range(4, 15) if num_crossings is None else [num_crossings]             # <<<<<<<<<<<<<<
 *         files = []
 *         for c in crossings:
*/
  __pyx_t_2 = (__pyx_v_num_crossings == Py_None);
  if (__pyx_t_2) {
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)(&PyRange_Type)), __pyx_mstate_global->__pyx_tuple[30], NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 691, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 691, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_num_crossings);
    __Pyx_GIVEREF(__pyx_v_num_crossings);
    if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_v_num_crossings) != (0)) __PYX_ERR(2, 691, __pyx_L1_error);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  }
  __pyx_v_crossings = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":692
 * 
 *         crossings = range(4, 15) if num_crossings is None else [num_crossings]
 *         files = []             # <<<<<<<<<<<<<<
 *         for c in crossings:
 *             n = left_pad_string('%d' % c, 2, '0')
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_files = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":693
 *         crossings = range(4, 15) if num_crossings is None else [num_crossings]
 *         files = []
 *         for c in crossings:             # <<<<<<<<<<<<<<
 *             n = left_pad_string('%d' % c, 2, '0')
 *             files.append('hyperbolic_data_%sa.gz' % n)
*/
  if (likely(PyList_CheckExact(__pyx_v_crossings)) || PyTuple_CheckExact(__pyx_v_crossings)) {
    __pyx_t_1 = __pyx_v_crossings; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_4 = 0;
    __pyx_t_5 = NULL;
  } else {
    __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_crossings); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 693, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 693, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_5)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 693, __pyx_L1_error)
          #endif
          if (__pyx_t_4 >= __pyx_temp) break;
        }
        __pyx_t_3 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_4;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 693, __pyx_L1_error)
          #endif
          if (__pyx_t_4 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4));
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_4);
        #endif
        ++__pyx_t_4;
      }
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 693, __pyx_L1_error)
    } else {
      __pyx_t_3 = __pyx_t_5(__pyx_t_1);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 693, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":694
 *         files = []
 *         for c in crossings:
 *             n = left_pad_string('%d' % c, 2, '0')             # <<<<<<<<<<<<<<
 *             files.append('hyperbolic_data_%sa.gz' % n)
 *             if c > 5:
*/
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_left_pad_string); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_d, __pyx_v_c); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_9 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_6, __pyx_t_8, __pyx_mstate_global->__pyx_int_2, __pyx_mstate_global->__pyx_kp_u_0};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (4-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 694, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":695
 *         for c in crossings:
 *             n = left_pad_string('%d' % c, 2, '0')
 *             files.append('hyperbolic_data_%sa.gz' % n)             # <<<<<<<<<<<<<<
 *             if c > 5:
 *                 files.append('hyperbolic_data_%sn.gz' % n)
*/
    __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_hyperbolic_data__sa_gz, __pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 695, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_files, __pyx_t_3); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 695, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":696
 *             n = left_pad_string('%d' % c, 2, '0')
 *             files.append('hyperbolic_data_%sa.gz' % n)
 *             if c > 5:             # <<<<<<<<<<<<<<
 *                 files.append('hyperbolic_data_%sn.gz' % n)
 * 
*/
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_c, __pyx_mstate_global->__pyx_int_5, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 696, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 696, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "cython/core/tail.pyx":697
 *             files.append('hyperbolic_data_%sa.gz' % n)
 *             if c > 5:
 *                 files.append('hyperbolic_data_%sn.gz' % n)             # <<<<<<<<<<<<<<
 * 
 *         self.files = files
*/
      __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_hyperbolic_data__sn_gz, __pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 697, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_files, __pyx_t_3); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 697, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "cython/core/tail.pyx":696
 *             n = left_pad_string('%d' % c, 2, '0')
 *             files.append('hyperbolic_data_%sa.gz' % n)
 *             if c > 5:             # <<<<<<<<<<<<<<
 *                 files.append('hyperbolic_data_%sn.gz' % n)
 * 
*/
    }

    /* "cython/core/tail.pyx":693
 *         crossings = range(4, 15) if num_crossings is None else [num_crossings]
 *         files = []
 *         for c in crossings:             # <<<<<<<<<<<<<<
 *             n = left_pad_string('%d' % c, 2, '0')
 *             files.append('hyperbolic_data_%sa.gz' % n)
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":699
 *                 files.append('hyperbolic_data_%sn.gz' % n)
 * 
 *         self.files = files             # <<<<<<<<<<<<<<
 * 
 *         self.DT_codes = []
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_files, __pyx_v_files) < (0)) __PYX_ERR(2, 699, __pyx_L1_error)

  /* "cython/core/tail.pyx":701
 *         self.files = files
 * 
 *         self.DT_codes = []             # <<<<<<<<<<<<<<
 *         second_char = string.ascii_lowercase[num_components-1]
 *         for file in files:
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_DT_codes, __pyx_t_1) < (0)) __PYX_ERR(2, 701, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cython/core/tail.pyx":702
 * 
 *         self.DT_codes = []
 *         second_char = string.ascii_lowercase[num_components-1]             # <<<<<<<<<<<<<<
 *         for file in files:
 *             data = gzip.open(morwen_link_directory + os.sep + file).readlines()
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_string); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_ascii_lowercase); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_SubtractObjC(__pyx_v_num_components, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_second_char = __pyx_t_7;
  __pyx_t_7 = 0;

  /* "cython/core/tail.pyx":703
 *         self.DT_codes = []
 *         second_char = string.ascii_lowercase[num_components-1]
 *         for file in files:             # <<<<<<<<<<<<<<
 *             data = gzip.open(morwen_link_directory + os.sep + file).readlines()
 *             for line in data:
*/
  __pyx_t_7 = __pyx_v_files; __Pyx_INCREF(__pyx_t_7);
  __pyx_t_4 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 703, __pyx_L1_error)
      #endif
      if (__pyx_t_4 >= __pyx_temp) break;
    }
    __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_7, __pyx_t_4, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_4;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_file, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/tail.pyx":704
 *         second_char = string.ascii_lowercase[num_components-1]
 *         for file in files:
 *             data = gzip.open(morwen_link_directory + os.sep + file).readlines()             # <<<<<<<<<<<<<<
 *             for line in data:
 *                 strline = line.decode()
*/
    __pyx_t_6 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_gzip); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_open); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_12);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_morwen_link_directory); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_sep); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_13 = PyNumber_Add(__pyx_t_11, __pyx_t_14); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    __pyx_t_14 = PyNumber_Add(__pyx_t_13, __pyx_v_file); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_14);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_9 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_12))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_12);
      assert(__pyx_t_6);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
      __pyx_t_9 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_14};
      __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 704, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
    }
    __pyx_t_3 = __pyx_t_8;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_9 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_readlines, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 704, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_data, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "cython/core/tail.pyx":705
 *         for file in files:
 *             data = gzip.open(morwen_link_directory + os.sep + file).readlines()
 *             for line in data:             # <<<<<<<<<<<<<<
 *                 strline = line.decode()
 *                 if strline[1] == second_char:
*/
    if (likely(PyList_CheckExact(__pyx_v_data)) || PyTuple_CheckExact(__pyx_v_data)) {
      __pyx_t_1 = __pyx_v_data; __Pyx_INCREF(__pyx_t_1);
      __pyx_t_15 = 0;
      __pyx_t_5 = NULL;
    } else {
      __pyx_t_15 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 705, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 705, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_5)) {
        if (likely(PyList_CheckExact(__pyx_t_1))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 705, __pyx_L1_error)
            #endif
            if (__pyx_t_15 >= __pyx_temp) break;
          }
          __pyx_t_8 = __Pyx_PyList_GetItemRefFast(__pyx_t_1, __pyx_t_15, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_15;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 705, __pyx_L1_error)
            #endif
            if (__pyx_t_15 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_8 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_15));
          #else
          __pyx_t_8 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_15);
          #endif
          ++__pyx_t_15;
        }
        if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 705, __pyx_L1_error)
      } else {
        __pyx_t_8 = __pyx_t_5(__pyx_t_1);
        if (unlikely(!__pyx_t_8)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 705, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_XDECREF_SET(__pyx_v_line, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "cython/core/tail.pyx":706
 *             data = gzip.open(morwen_link_directory + os.sep + file).readlines()
 *             for line in data:
 *                 strline = line.decode()             # <<<<<<<<<<<<<<
 *                 if strline[1] == second_char:
 *                     self.DT_codes.append(strline.strip())
*/
      __pyx_t_3 = __pyx_v_line;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_9 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_decode, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 706, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __Pyx_XDECREF_SET(__pyx_v_strline, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "cython/core/tail.pyx":707
 *             for line in data:
 *                 strline = line.decode()
 *                 if strline[1] == second_char:             # <<<<<<<<<<<<<<
 *                     self.DT_codes.append(strline.strip())
 * 
*/
      __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_strline, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 707, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_3 = PyObject_RichCompare(__pyx_t_8, __pyx_v_second_char, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 707, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 707, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_2) {

        /* "cython/core/tail.pyx":708
 *                 strline = line.decode()
 *                 if strline[1] == second_char:
 *                     self.DT_codes.append(strline.strip())             # <<<<<<<<<<<<<<
 * 
 *         self.length = len(self.DT_codes)
*/
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_DT_codes); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 708, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_12 = __pyx_v_strline;
        __Pyx_INCREF(__pyx_t_12);
        __pyx_t_9 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_12, NULL};
          __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 708, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        __pyx_t_10 = __Pyx_PyObject_Append(__pyx_t_3, __pyx_t_8); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 708, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

        /* "cython/core/tail.pyx":707
 *             for line in data:
 *                 strline = line.decode()
 *                 if strline[1] == second_char:             # <<<<<<<<<<<<<<
 *                     self.DT_codes.append(strline.strip())
 * 
*/
      }

      /* "cython/core/tail.pyx":705
 *         for file in files:
 *             data = gzip.open(morwen_link_directory + os.sep + file).readlines()
 *             for line in data:             # <<<<<<<<<<<<<<
 *                 strline = line.decode()
 *                 if strline[1] == second_char:
*/
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "cython/core/tail.pyx":703
 *         self.DT_codes = []
 *         second_char = string.ascii_lowercase[num_components-1]
 *         for file in files:             # <<<<<<<<<<<<<<
 *             data = gzip.open(morwen_link_directory + os.sep + file).readlines()
 *             for line in data:
*/
  }
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/tail.pyx":710
 *                     self.DT_codes.append(strline.strip())
 * 
 *         self.length = len(self.DT_codes)             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices=(0, len(self.DT_codes), 1))
 * 
*/
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_DT_codes); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_4 = PyObject_Length(__pyx_t_7); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyLong_FromSsize_t(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_7) < (0)) __PYX_ERR(2, 710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/tail.pyx":711
 * 
 *         self.length = len(self.DT_codes)
 *         Census.__init__(self, indices=(0, len(self.DT_codes), 1))             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, n):
*/
  __pyx_t_1 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_DT_codes); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_4 = PyObject_Length(__pyx_t_8); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(2, 711, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyLong_FromSsize_t(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_12 = PyTuple_New(3); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(2, 711, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_8);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_12, 1, __pyx_t_8) != (0)) __PYX_ERR(2, 711, __pyx_L1_error);
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(2, 711, __pyx_L1_error);
  __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_1, __pyx_v_self};
    __pyx_t_8 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_indices, __pyx_t_12, __pyx_t_8, __pyx_callargs+2, 0) < (0)) __PYX_ERR(2, 711, __pyx_L1_error)
    __pyx_t_7 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
  }
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cython/core/tail.pyx":687
 *     Obsolete.
 *     """
 *     def __init__(self, num_components, num_crossings = None):             # <<<<<<<<<<<<<<
 *         if num_components < 0:
 *             return
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("SnapPy.ObsMorwenLinks.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_crossings);
  __Pyx_XDECREF(__pyx_v_files);
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_second_char);
  __Pyx_XDECREF(__pyx_v_file);
  __Pyx_XDECREF(__pyx_v_data);
  __Pyx_XDECREF(__pyx_v_line);
  __Pyx_XDECREF(__pyx_v_strline);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":713
 *         Census.__init__(self, indices=(0, len(self.DT_codes), 1))
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             SC = self.__class__(-1)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_14ObsMorwenLinks_3__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_14ObsMorwenLinks_3__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14ObsMorwenLinks_3__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_14ObsMorwenLinks_3__getitem__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_n = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(2, 713, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 713, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 713, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(2, 713, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(2, 713, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(2, 713, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(2, 713, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_n = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(2, 713, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.ObsMorwenLinks.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6SnapPy_14ObsMorwenLinks_2__getitem__(__pyx_self, __pyx_v_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_14ObsMorwenLinks_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_n) {
  PyObject *__pyx_v_SC = NULL;
  PyObject *__pyx_v_name = NULL;
  struct __pyx_obj_6SnapPy_Manifold *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cython/core/tail.pyx":714
 * 
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             SC = self.__class__(-1)
 *             SC.DT_codes = self.DT_codes[n]
*/
  __pyx_t_1 = PySlice_Check(__pyx_v_n); 
  if (__pyx_t_1) {

    /* "cython/core/tail.pyx":715
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):
 *             SC = self.__class__(-1)             # <<<<<<<<<<<<<<
 *             SC.DT_codes = self.DT_codes[n]
 *             SC.length = len(SC.DT_codes)
*/
    __pyx_t_3 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_int_neg_1};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 715, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_v_SC = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "cython/core/tail.pyx":716
 *         if isinstance(n, slice):
 *             SC = self.__class__(-1)
 *             SC.DT_codes = self.DT_codes[n]             # <<<<<<<<<<<<<<
 *             SC.length = len(SC.DT_codes)
 *             Census.__init__(SC, indices=(0, len(SC.DT_codes), 1))
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_DT_codes); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 716, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 716, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_SC, __pyx_mstate_global->__pyx_n_u_DT_codes, __pyx_t_3) < (0)) __PYX_ERR(2, 716, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":717
 *             SC = self.__class__(-1)
 *             SC.DT_codes = self.DT_codes[n]
 *             SC.length = len(SC.DT_codes)             # <<<<<<<<<<<<<<
 *             Census.__init__(SC, indices=(0, len(SC.DT_codes), 1))
 *             return SC
*/
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_SC, __pyx_mstate_global->__pyx_n_u_DT_codes); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyObject_Length(__pyx_t_3); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 717, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PyLong_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_SC, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_3) < (0)) __PYX_ERR(2, 717, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":718
 *             SC.DT_codes = self.DT_codes[n]
 *             SC.length = len(SC.DT_codes)
 *             Census.__init__(SC, indices=(0, len(SC.DT_codes), 1))             # <<<<<<<<<<<<<<
 *             return SC
 *         else:
*/
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_init); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_SC, __pyx_mstate_global->__pyx_n_u_DT_codes); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = PyObject_Length(__pyx_t_6); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 718, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyLong_FromSsize_t(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_0);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_mstate_global->__pyx_int_0) != (0)) __PYX_ERR(2, 718, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6) != (0)) __PYX_ERR(2, 718, __pyx_L1_error);
    __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
    __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(2, 718, __pyx_L1_error);
    __pyx_t_6 = 0;
    __pyx_t_4 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
      assert(__pyx_t_2);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
      __pyx_t_4 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2 + ((CYTHON_VECTORCALL) ? 1 : 0)] = {__pyx_t_2, __pyx_v_SC};
      __pyx_t_6 = __Pyx_MakeVectorcallBuilderKwds(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 718, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (__Pyx_VectorcallBuilder_AddArg(__pyx_mstate_global->__pyx_n_u_indices, __pyx_t_8, __pyx_t_6, __pyx_callargs+2, 0) < (0)) __PYX_ERR(2, 718, __pyx_L1_error)
      __pyx_t_3 = __Pyx_Object_Vectorcall_CallFromBuilder((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 718, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":719
 *             SC.length = len(SC.DT_codes)
 *             Census.__init__(SC, indices=(0, len(SC.DT_codes), 1))
 *             return SC             # <<<<<<<<<<<<<<
 *         else:
 *             name = str('DT:%s' % self.DT_codes[n])
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_SC);
    __pyx_r = __pyx_v_SC;
    goto __pyx_L0;

    /* "cython/core/tail.pyx":714
 * 
 *     def __getitem__(self, n):
 *         if isinstance(n, slice):             # <<<<<<<<<<<<<<
 *             SC = self.__class__(-1)
 *             SC.DT_codes = self.DT_codes[n]
*/
  }

  /* "cython/core/tail.pyx":721
 *             return SC
 *         else:
 *             name = str('DT:%s' % self.DT_codes[n])             # <<<<<<<<<<<<<<
 *             result = Manifold(name)
 *             result.set_name(name)
*/
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_DT_codes); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_n); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_DT_s, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_v_name = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":722
 *         else:
 *             name = str('DT:%s' % self.DT_codes[n])
 *             result = Manifold(name)             # <<<<<<<<<<<<<<
 *             result.set_name(name)
 *             return result
*/
    __pyx_t_7 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_name};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 722, __pyx_L1_error)
      __Pyx_GOTREF((PyObject *)__pyx_t_3);
    }
    __pyx_v_result = ((struct __pyx_obj_6SnapPy_Manifold *)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":723
 *             name = str('DT:%s' % self.DT_codes[n])
 *             result = Manifold(name)
 *             result.set_name(name)             # <<<<<<<<<<<<<<
 *             return result
 * 
*/
    __pyx_t_7 = ((PyObject *)__pyx_v_result);
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_name};
      __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 723, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":724
 *             result = Manifold(name)
 *             result.set_name(name)
 *             return result             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF((PyObject *)__pyx_v_result);
    __pyx_r = ((PyObject *)__pyx_v_result);
    goto __pyx_L0;
  }

  /* "cython/core/tail.pyx":713
 *         Census.__init__(self, indices=(0, len(self.DT_codes), 1))
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             SC = self.__class__(-1)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("SnapPy.ObsMorwenLinks.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_SC);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":729
 * # Creating fibered manifolds from braids
 * 
 * cdef c_Triangulation* get_fibered_manifold_associated_to_braid(num_strands,             # <<<<<<<<<<<<<<
 *                                                                braid_word):
 *     if num_strands < 2:
*/

static Triangulation *__pyx_f_6SnapPy_get_fibered_manifold_associated_to_braid(PyObject *__pyx_v_num_strands, PyObject *__pyx_v_braid_word) {
  PyObject *__pyx_v_allowed_letters = NULL;
  int *__pyx_v_word;
  Triangulation *__pyx_v_c_triangulation;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_w = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_9genexpr94__pyx_v_x = NULL;
  PyObject *__pyx_9genexpr95__pyx_v_x = NULL;
  PyObject *__pyx_9genexpr96__pyx_v_b = NULL;
  Triangulation *__pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  Py_ssize_t __pyx_t_10;
  int __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  int __pyx_t_13;
  Triangulation *__pyx_t_14;
  char *__pyx_t_15;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_fibered_manifold_associated_to_braid", 0);

  /* "cython/core/tail.pyx":731
 * cdef c_Triangulation* get_fibered_manifold_associated_to_braid(num_strands,
 *                                                                braid_word):
 *     if num_strands < 2:             # <<<<<<<<<<<<<<
 *         raise ValueError('Braids must have at least 2 strands.')
 *     allowed_letters = ([x for x in range(1, num_strands)] +
*/
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_num_strands, __pyx_mstate_global->__pyx_int_2, Py_LT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 731, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 731, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/tail.pyx":732
 *                                                                braid_word):
 *     if num_strands < 2:
 *         raise ValueError('Braids must have at least 2 strands.')             # <<<<<<<<<<<<<<
 *     allowed_letters = ([x for x in range(1, num_strands)] +
 *                        [x for x in range(-num_strands+1, 0)])
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Braids_must_have_at_least_2_stra};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 732, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(2, 732, __pyx_L1_error)

    /* "cython/core/tail.pyx":731
 * cdef c_Triangulation* get_fibered_manifold_associated_to_braid(num_strands,
 *                                                                braid_word):
 *     if num_strands < 2:             # <<<<<<<<<<<<<<
 *         raise ValueError('Braids must have at least 2 strands.')
 *     allowed_letters = ([x for x in range(1, num_strands)] +
*/
  }

  /* "cython/core/tail.pyx":733
 *     if num_strands < 2:
 *         raise ValueError('Braids must have at least 2 strands.')
 *     allowed_letters = ([x for x in range(1, num_strands)] +             # <<<<<<<<<<<<<<
 *                        [x for x in range(-num_strands+1, 0)])
 *     if False in [b in allowed_letters for b in braid_word]:
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 733, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_mstate_global->__pyx_int_1, __pyx_v_num_strands};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 733, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_5 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 733, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 733, __pyx_L6_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      {
        __pyx_t_3 = __pyx_t_6(__pyx_t_5);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 733, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_9genexpr94__pyx_v_x, __pyx_t_3);
      __pyx_t_3 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_9genexpr94__pyx_v_x))) __PYX_ERR(2, 733, __pyx_L6_error)
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_9genexpr94__pyx_v_x); __pyx_9genexpr94__pyx_v_x = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_9genexpr94__pyx_v_x); __pyx_9genexpr94__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  { /* enter inner scope */

    /* "cython/core/tail.pyx":734
 *         raise ValueError('Braids must have at least 2 strands.')
 *     allowed_letters = ([x for x in range(1, num_strands)] +
 *                        [x for x in range(-num_strands+1, 0)])             # <<<<<<<<<<<<<<
 *     if False in [b in allowed_letters for b in braid_word]:
 *         raise ValueError('The braid word is invalid.')
*/
    __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 734, __pyx_L13_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = NULL;
    __pyx_t_8 = PyNumber_Negative(__pyx_v_num_strands); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 734, __pyx_L13_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyLong_AddObjC(__pyx_t_8, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 734, __pyx_L13_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_t_9, __pyx_mstate_global->__pyx_int_0};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 734, __pyx_L13_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_9 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 734, __pyx_L13_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 734, __pyx_L13_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      {
        __pyx_t_3 = __pyx_t_6(__pyx_t_9);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 734, __pyx_L13_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_9genexpr95__pyx_v_x, __pyx_t_3);
      __pyx_t_3 = 0;
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_5, (PyObject*)__pyx_9genexpr95__pyx_v_x))) __PYX_ERR(2, 734, __pyx_L13_error)
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_x); __pyx_9genexpr95__pyx_v_x = 0;
    goto __pyx_L17_exit_scope;
    __pyx_L13_error:;
    __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_x); __pyx_9genexpr95__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L17_exit_scope:;
  } /* exit inner scope */

  /* "cython/core/tail.pyx":733
 *     if num_strands < 2:
 *         raise ValueError('Braids must have at least 2 strands.')
 *     allowed_letters = ([x for x in range(1, num_strands)] +             # <<<<<<<<<<<<<<
 *                        [x for x in range(-num_strands+1, 0)])
 *     if False in [b in allowed_letters for b in braid_word]:
*/
  __pyx_t_9 = PyNumber_Add(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_v_allowed_letters = ((PyObject*)__pyx_t_9);
  __pyx_t_9 = 0;

  /* "cython/core/tail.pyx":735
 *     allowed_letters = ([x for x in range(1, num_strands)] +
 *                        [x for x in range(-num_strands+1, 0)])
 *     if False in [b in allowed_letters for b in braid_word]:             # <<<<<<<<<<<<<<
 *         raise ValueError('The braid word is invalid.')
 * 
*/
  { /* enter inner scope */
    __pyx_t_9 = PyList_New(0); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 735, __pyx_L21_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (likely(PyList_CheckExact(__pyx_v_braid_word)) || PyTuple_CheckExact(__pyx_v_braid_word)) {
      __pyx_t_5 = __pyx_v_braid_word; __Pyx_INCREF(__pyx_t_5);
      __pyx_t_10 = 0;
      __pyx_t_6 = NULL;
    } else {
      __pyx_t_10 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_braid_word); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 735, __pyx_L21_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 735, __pyx_L21_error)
    }
    for (;;) {
      if (likely(!__pyx_t_6)) {
        if (likely(PyList_CheckExact(__pyx_t_5))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 735, __pyx_L21_error)
            #endif
            if (__pyx_t_10 >= __pyx_temp) break;
          }
          __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_5, __pyx_t_10, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_10;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 735, __pyx_L21_error)
            #endif
            if (__pyx_t_10 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_10));
          #else
          __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_10);
          #endif
          ++__pyx_t_10;
        }
        if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 735, __pyx_L21_error)
      } else {
        __pyx_t_1 = __pyx_t_6(__pyx_t_5);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 735, __pyx_L21_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_9genexpr96__pyx_v_b, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_9genexpr96__pyx_v_b, __pyx_v_allowed_letters, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 735, __pyx_L21_error)
      __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 735, __pyx_L21_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_9, (PyObject*)__pyx_t_1))) __PYX_ERR(2, 735, __pyx_L21_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_9genexpr96__pyx_v_b); __pyx_9genexpr96__pyx_v_b = 0;
    goto __pyx_L25_exit_scope;
    __pyx_L21_error:;
    __Pyx_XDECREF(__pyx_9genexpr96__pyx_v_b); __pyx_9genexpr96__pyx_v_b = 0;
    goto __pyx_L1_error;
    __pyx_L25_exit_scope:;
  } /* exit inner scope */
  __pyx_t_2 = (__Pyx_PySequence_ContainsTF(Py_False, __pyx_t_9, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(2, 735, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (unlikely(__pyx_t_2)) {

    /* "cython/core/tail.pyx":736
 *                        [x for x in range(-num_strands+1, 0)])
 *     if False in [b in allowed_letters for b in braid_word]:
 *         raise ValueError('The braid word is invalid.')             # <<<<<<<<<<<<<<
 * 
 *     cdef int* word
*/
    __pyx_t_5 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_The_braid_word_is_invalid};
      __pyx_t_9 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 736, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
    }
    __Pyx_Raise(__pyx_t_9, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __PYX_ERR(2, 736, __pyx_L1_error)

    /* "cython/core/tail.pyx":735
 *     allowed_letters = ([x for x in range(1, num_strands)] +
 *                        [x for x in range(-num_strands+1, 0)])
 *     if False in [b in allowed_letters for b in braid_word]:             # <<<<<<<<<<<<<<
 *         raise ValueError('The braid word is invalid.')
 * 
*/
  }

  /* "cython/core/tail.pyx":741
 *     cdef c_Triangulation* c_triangulation
 * 
 *     n = len(braid_word)             # <<<<<<<<<<<<<<
 *     word = <int*>malloc(n*sizeof(int))
 *     for  i, w in enumerate(braid_word):
*/
  __pyx_t_10 = PyObject_Length(__pyx_v_braid_word); if (unlikely(__pyx_t_10 == ((Py_ssize_t)-1))) __PYX_ERR(2, 741, __pyx_L1_error)
  __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_v_n = __pyx_t_9;
  __pyx_t_9 = 0;

  /* "cython/core/tail.pyx":742
 * 
 *     n = len(braid_word)
 *     word = <int*>malloc(n*sizeof(int))             # <<<<<<<<<<<<<<
 *     for  i, w in enumerate(braid_word):
 *         word[i] = w
*/
  __pyx_t_9 = __Pyx_PyLong_FromSize_t((sizeof(int))); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_5 = PyNumber_Multiply(__pyx_v_n, __pyx_t_9); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_5); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 742, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_v_word = ((int *)malloc(__pyx_t_4));

  /* "cython/core/tail.pyx":743
 *     n = len(braid_word)
 *     word = <int*>malloc(n*sizeof(int))
 *     for  i, w in enumerate(braid_word):             # <<<<<<<<<<<<<<
 *         word[i] = w
 *     c_triangulation = fibered_manifold_associated_to_braid(num_strands, n, word)
*/
  __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
  __pyx_t_5 = __pyx_mstate_global->__pyx_int_0;
  if (likely(PyList_CheckExact(__pyx_v_braid_word)) || PyTuple_CheckExact(__pyx_v_braid_word)) {
    __pyx_t_9 = __pyx_v_braid_word; __Pyx_INCREF(__pyx_t_9);
    __pyx_t_10 = 0;
    __pyx_t_6 = NULL;
  } else {
    __pyx_t_10 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_v_braid_word); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 743, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_6)) {
      if (likely(PyList_CheckExact(__pyx_t_9))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_9);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 743, __pyx_L1_error)
          #endif
          if (__pyx_t_10 >= __pyx_temp) break;
        }
        __pyx_t_1 = __Pyx_PyList_GetItemRefFast(__pyx_t_9, __pyx_t_10, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_10;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_9);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(2, 743, __pyx_L1_error)
          #endif
          if (__pyx_t_10 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_10));
        #else
        __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_9, __pyx_t_10);
        #endif
        ++__pyx_t_10;
      }
      if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 743, __pyx_L1_error)
    } else {
      __pyx_t_1 = __pyx_t_6(__pyx_t_9);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(2, 743, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_w, __pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
    __pyx_t_1 = __Pyx_PyLong_AddObjC(__pyx_t_5, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5);
    __pyx_t_5 = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "cython/core/tail.pyx":744
 *     word = <int*>malloc(n*sizeof(int))
 *     for  i, w in enumerate(braid_word):
 *         word[i] = w             # <<<<<<<<<<<<<<
 *     c_triangulation = fibered_manifold_associated_to_braid(num_strands, n, word)
 *     free(word)
*/
    __pyx_t_11 = __Pyx_PyLong_As_int(__pyx_v_w); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 744, __pyx_L1_error)
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 744, __pyx_L1_error)
    (__pyx_v_word[__pyx_t_12]) = __pyx_t_11;

    /* "cython/core/tail.pyx":743
 *     n = len(braid_word)
 *     word = <int*>malloc(n*sizeof(int))
 *     for  i, w in enumerate(braid_word):             # <<<<<<<<<<<<<<
 *         word[i] = w
 *     c_triangulation = fibered_manifold_associated_to_braid(num_strands, n, word)
*/
  }
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/tail.pyx":745
 *     for  i, w in enumerate(braid_word):
 *         word[i] = w
 *     c_triangulation = fibered_manifold_associated_to_braid(num_strands, n, word)             # <<<<<<<<<<<<<<
 *     free(word)
 *     name = to_byte_str('Braid:' + repr(braid_word))
*/
  __pyx_t_11 = __Pyx_PyLong_As_int(__pyx_v_num_strands); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 745, __pyx_L1_error)
  __pyx_t_13 = __Pyx_PyLong_As_int(__pyx_v_n); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 745, __pyx_L1_error)
  __pyx_t_14 = fibered_manifold_associated_to_braid(__pyx_t_11, __pyx_t_13, __pyx_v_word); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 745, __pyx_L1_error)
  __pyx_v_c_triangulation = __pyx_t_14;

  /* "cython/core/tail.pyx":746
 *         word[i] = w
 *     c_triangulation = fibered_manifold_associated_to_braid(num_strands, n, word)
 *     free(word)             # <<<<<<<<<<<<<<
 *     name = to_byte_str('Braid:' + repr(braid_word))
 *     set_triangulation_name(c_triangulation, name)
*/
  free(__pyx_v_word);

  /* "cython/core/tail.pyx":747
 *     c_triangulation = fibered_manifold_associated_to_braid(num_strands, n, word)
 *     free(word)
 *     name = to_byte_str('Braid:' + repr(braid_word))             # <<<<<<<<<<<<<<
 *     set_triangulation_name(c_triangulation, name)
 *     return c_triangulation
*/
  __pyx_t_9 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyObject_Repr(__pyx_v_braid_word); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_7 = __Pyx_PyUnicode_ConcatSafe(__pyx_mstate_global->__pyx_kp_u_Braid, __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1);
    assert(__pyx_t_9);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_9);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_t_7};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_v_name = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "cython/core/tail.pyx":748
 *     free(word)
 *     name = to_byte_str('Braid:' + repr(braid_word))
 *     set_triangulation_name(c_triangulation, name)             # <<<<<<<<<<<<<<
 *     return c_triangulation
 * 
*/
  __pyx_t_15 = __Pyx_PyObject_AsWritableString(__pyx_v_name); if (unlikely((!__pyx_t_15) && PyErr_Occurred())) __PYX_ERR(2, 748, __pyx_L1_error)
  set_triangulation_name(__pyx_v_c_triangulation, __pyx_t_15); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 748, __pyx_L1_error)

  /* "cython/core/tail.pyx":749
 *     name = to_byte_str('Braid:' + repr(braid_word))
 *     set_triangulation_name(c_triangulation, name)
 *     return c_triangulation             # <<<<<<<<<<<<<<
 * 
 * # Link Editor support
*/
  __pyx_r = __pyx_v_c_triangulation;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":729
 * # Creating fibered manifolds from braids
 * 
 * cdef c_Triangulation* get_fibered_manifold_associated_to_braid(num_strands,             # <<<<<<<<<<<<<<
 *                                                                braid_word):
 *     if num_strands < 2:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("SnapPy.get_fibered_manifold_associated_to_braid", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_allowed_letters);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_w);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_9genexpr94__pyx_v_x);
  __Pyx_XDECREF(__pyx_9genexpr95__pyx_v_x);
  __Pyx_XDECREF(__pyx_9genexpr96__pyx_v_b);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cython/core/tail.pyx":756
 * signtype = {'R': KLPHalfTwistCL, 'L': KLPHalfTwistCCL}
 * 
 * cdef c_Triangulation* get_triangulation_from_PythonKLP(pythonklp, remove_finite_vertices=True) except *:             # <<<<<<<<<<<<<<
 *     cdef KLPProjection P
 *     cdef c_Triangulation *c_triangulation
*/

static Triangulation *__pyx_f_6SnapPy_get_triangulation_from_PythonKLP(PyObject *__pyx_v_pythonklp, struct __pyx_opt_args_6SnapPy_get_triangulation_from_PythonKLP *__pyx_optional_args) {
  PyObject *__pyx_v_remove_finite_vertices = ((PyObject *)Py_True);
  KLPProjection __pyx_v_P;
  Triangulation *__pyx_v_c_triangulation;
  PyObject *__pyx_v_Pycrossings = NULL;
  int __pyx_v_i;
  PyObject *__pyx_v_cr_dict = NULL;
  PyObject *__pyx_v_neighbor = NULL;
  PyObject *__pyx_v_strand = NULL;
  PyObject *__pyx_v_sign = NULL;
  PyObject *__pyx_v_tri_name = NULL;
  Triangulation *__pyx_r;
  __Pyx_RefNannyDeclarations
  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)(PyObject *);
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  size_t __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  KLPStrandType __pyx_t_13;
  KLPCrossingType __pyx_t_14;
  int __pyx_t_15;
  Boolean __pyx_t_16;
  Triangulation *__pyx_t_17;
  char *__pyx_t_18;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_triangulation_from_PythonKLP", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_remove_finite_vertices = __pyx_optional_args->remove_finite_vertices;
    }
  }

  /* "cython/core/tail.pyx":760
 *     cdef c_Triangulation *c_triangulation
 * 
 *     P.num_crossings, P.num_free_loops, P.num_components, Pycrossings = pythonklp             # <<<<<<<<<<<<<<
 *     P.crossings = <KLPCrossing *>malloc(P.num_crossings * sizeof(KLPCrossing))
 *     if P.crossings == NULL:
*/
  if ((likely(PyTuple_CheckExact(__pyx_v_pythonklp))) || (PyList_CheckExact(__pyx_v_pythonklp))) {
    PyObject* sequence = __pyx_v_pythonklp;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 4)) {
      if (size > 4) __Pyx_RaiseTooManyValuesError(4);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(2, 760, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 3);
      __Pyx_INCREF(__pyx_t_4);
    } else {
      __pyx_t_1 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 760, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 760, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 760, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 760, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_4);
    }
    #else
    {
      Py_ssize_t i;
      PyObject** temps[4] = {&__pyx_t_1,&__pyx_t_2,&__pyx_t_3,&__pyx_t_4};
      for (i=0; i < 4; i++) {
        PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(2, 760, __pyx_L1_error)
        __Pyx_GOTREF(item);
        *(temps[i]) = item;
      }
    }
    #endif
  } else {
    Py_ssize_t index = -1;
    PyObject** temps[4] = {&__pyx_t_1,&__pyx_t_2,&__pyx_t_3,&__pyx_t_4};
    __pyx_t_5 = PyObject_GetIter(__pyx_v_pythonklp); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5);
    for (index=0; index < 4; index++) {
      PyObject* item = __pyx_t_6(__pyx_t_5); if (unlikely(!item)) goto __pyx_L3_unpacking_failed;
      __Pyx_GOTREF(item);
      *(temps[index]) = item;
    }
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 4) < (0)) __PYX_ERR(2, 760, __pyx_L1_error)
    __pyx_t_6 = NULL;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_6 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(2, 760, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }
  __pyx_t_7 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_8 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_9 = __Pyx_PyLong_As_int(__pyx_t_3); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_P.num_crossings = __pyx_t_7;
  __pyx_v_P.num_free_loops = __pyx_t_8;
  __pyx_v_P.num_components = __pyx_t_9;
  __pyx_v_Pycrossings = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "cython/core/tail.pyx":761
 * 
 *     P.num_crossings, P.num_free_loops, P.num_components, Pycrossings = pythonklp
 *     P.crossings = <KLPCrossing *>malloc(P.num_crossings * sizeof(KLPCrossing))             # <<<<<<<<<<<<<<
 *     if P.crossings == NULL:
 *         raise RuntimeError('Could not allocate a crossing table.')
*/
  __pyx_v_P.crossings = ((KLPCrossing *)malloc((__pyx_v_P.num_crossings * (sizeof(KLPCrossing)))));

  /* "cython/core/tail.pyx":762
 *     P.num_crossings, P.num_free_loops, P.num_components, Pycrossings = pythonklp
 *     P.crossings = <KLPCrossing *>malloc(P.num_crossings * sizeof(KLPCrossing))
 *     if P.crossings == NULL:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Could not allocate a crossing table.')
 * 
*/
  __pyx_t_10 = (__pyx_v_P.crossings == NULL);
  if (unlikely(__pyx_t_10)) {

    /* "cython/core/tail.pyx":763
 *     P.crossings = <KLPCrossing *>malloc(P.num_crossings * sizeof(KLPCrossing))
 *     if P.crossings == NULL:
 *         raise RuntimeError('Could not allocate a crossing table.')             # <<<<<<<<<<<<<<
 * 
 *     for i in range(P.num_crossings):
*/
    __pyx_t_3 = NULL;
    __pyx_t_11 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Could_not_allocate_a_crossing_ta};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 763, __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_ERR(2, 763, __pyx_L1_error)

    /* "cython/core/tail.pyx":762
 *     P.num_crossings, P.num_free_loops, P.num_components, Pycrossings = pythonklp
 *     P.crossings = <KLPCrossing *>malloc(P.num_crossings * sizeof(KLPCrossing))
 *     if P.crossings == NULL:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Could not allocate a crossing table.')
 * 
*/
  }

  /* "cython/core/tail.pyx":765
 *         raise RuntimeError('Could not allocate a crossing table.')
 * 
 *     for i in range(P.num_crossings):             # <<<<<<<<<<<<<<
 *         cr_dict = Pycrossings[i]
 *         neighbor = cr_dict['Xbackward_neighbor']
*/
  __pyx_t_9 = __pyx_v_P.num_crossings;
  __pyx_t_8 = __pyx_t_9;
  for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_8; __pyx_t_7+=1) {
    __pyx_v_i = __pyx_t_7;

    /* "cython/core/tail.pyx":766
 * 
 *     for i in range(P.num_crossings):
 *         cr_dict = Pycrossings[i]             # <<<<<<<<<<<<<<
 *         neighbor = cr_dict['Xbackward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPBackward] = &P.crossings[neighbor]
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_Pycrossings, __pyx_v_i, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_cr_dict, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":767
 *     for i in range(P.num_crossings):
 *         cr_dict = Pycrossings[i]
 *         neighbor = cr_dict['Xbackward_neighbor']             # <<<<<<<<<<<<<<
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPBackward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Xforward_neighbor']
*/
    __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Xbackward_neighbor); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 767, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_neighbor, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":768
 *         cr_dict = Pycrossings[i]
 *         neighbor = cr_dict['Xbackward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPBackward] = &P.crossings[neighbor]             # <<<<<<<<<<<<<<
 *         neighbor = cr_dict['Xforward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPForward] = &P.crossings[neighbor]
*/
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_neighbor); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 768, __pyx_L1_error)
    (((__pyx_v_P.crossings[__pyx_v_i]).neighbor[((int)KLPStrandX)])[((int)KLPBackward)]) = (&(__pyx_v_P.crossings[__pyx_t_12]));

    /* "cython/core/tail.pyx":769
 *         neighbor = cr_dict['Xbackward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPBackward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Xforward_neighbor']             # <<<<<<<<<<<<<<
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPForward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Ybackward_neighbor']
*/
    __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Xforward_neighbor); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_neighbor, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":770
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPBackward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Xforward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPForward] = &P.crossings[neighbor]             # <<<<<<<<<<<<<<
 *         neighbor = cr_dict['Ybackward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPBackward] = &P.crossings[neighbor]
*/
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_neighbor); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 770, __pyx_L1_error)
    (((__pyx_v_P.crossings[__pyx_v_i]).neighbor[((int)KLPStrandX)])[((int)KLPForward)]) = (&(__pyx_v_P.crossings[__pyx_t_12]));

    /* "cython/core/tail.pyx":771
 *         neighbor = cr_dict['Xforward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPForward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Ybackward_neighbor']             # <<<<<<<<<<<<<<
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPBackward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Yforward_neighbor']
*/
    __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Ybackward_neighbor); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 771, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_neighbor, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":772
 *         P.crossings[i].neighbor[<int>KLPStrandX][<int>KLPForward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Ybackward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPBackward] = &P.crossings[neighbor]             # <<<<<<<<<<<<<<
 *         neighbor = cr_dict['Yforward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPForward] = &P.crossings[neighbor]
*/
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_neighbor); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 772, __pyx_L1_error)
    (((__pyx_v_P.crossings[__pyx_v_i]).neighbor[((int)KLPStrandY)])[((int)KLPBackward)]) = (&(__pyx_v_P.crossings[__pyx_t_12]));

    /* "cython/core/tail.pyx":773
 *         neighbor = cr_dict['Ybackward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPBackward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Yforward_neighbor']             # <<<<<<<<<<<<<<
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPForward] = &P.crossings[neighbor]
 * 
*/
    __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Yforward_neighbor); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 773, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_neighbor, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":774
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPBackward] = &P.crossings[neighbor]
 *         neighbor = cr_dict['Yforward_neighbor']
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPForward] = &P.crossings[neighbor]             # <<<<<<<<<<<<<<
 * 
 *         strand = cr_dict['Xbackward_strand']
*/
    __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_v_neighbor); if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 774, __pyx_L1_error)
    (((__pyx_v_P.crossings[__pyx_v_i]).neighbor[((int)KLPStrandY)])[((int)KLPForward)]) = (&(__pyx_v_P.crossings[__pyx_t_12]));

    /* "cython/core/tail.pyx":776
 *         P.crossings[i].neighbor[<int>KLPStrandY][<int>KLPForward] = &P.crossings[neighbor]
 * 
 *         strand = cr_dict['Xbackward_strand']             # <<<<<<<<<<<<<<
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPBackward] = strandtype[strand]
 *         strand = cr_dict['Xforward_strand']
*/
    __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Xbackward_strand); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 776, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_strand, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":777
 * 
 *         strand = cr_dict['Xbackward_strand']
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPBackward] = strandtype[strand]             # <<<<<<<<<<<<<<
 *         strand = cr_dict['Xforward_strand']
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPForward] = strandtype[strand]
*/
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_strandtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 777, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_strand); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 777, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_13 = ((KLPStrandType)__Pyx_PyLong_As_KLPStrandType(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 777, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    (((__pyx_v_P.crossings[__pyx_v_i]).strand[((int)KLPStrandX)])[((int)KLPBackward)]) = __pyx_t_13;

    /* "cython/core/tail.pyx":778
 *         strand = cr_dict['Xbackward_strand']
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPBackward] = strandtype[strand]
 *         strand = cr_dict['Xforward_strand']             # <<<<<<<<<<<<<<
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPForward] = strandtype[strand]
 *         strand = cr_dict['Ybackward_strand']
*/
    __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Xforward_strand); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 778, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_strand, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":779
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPBackward] = strandtype[strand]
 *         strand = cr_dict['Xforward_strand']
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPForward] = strandtype[strand]             # <<<<<<<<<<<<<<
 *         strand = cr_dict['Ybackward_strand']
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPBackward] = strandtype[strand]
*/
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_strandtype); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 779, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_strand); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 779, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_13 = ((KLPStrandType)__Pyx_PyLong_As_KLPStrandType(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 779, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    (((__pyx_v_P.crossings[__pyx_v_i]).strand[((int)KLPStrandX)])[((int)KLPForward)]) = __pyx_t_13;

    /* "cython/core/tail.pyx":780
 *         strand = cr_dict['Xforward_strand']
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPForward] = strandtype[strand]
 *         strand = cr_dict['Ybackward_strand']             # <<<<<<<<<<<<<<
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPBackward] = strandtype[strand]
 *         strand = cr_dict['Yforward_strand']
*/
    __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Ybackward_strand); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 780, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_strand, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":781
 *         P.crossings[i].strand[<int>KLPStrandX][<int>KLPForward] = strandtype[strand]
 *         strand = cr_dict['Ybackward_strand']
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPBackward] = strandtype[strand]             # <<<<<<<<<<<<<<
 *         strand = cr_dict['Yforward_strand']
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPForward] = strandtype[strand]
*/
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_strandtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 781, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_v_strand); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 781, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_13 = ((KLPStrandType)__Pyx_PyLong_As_KLPStrandType(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 781, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    (((__pyx_v_P.crossings[__pyx_v_i]).strand[((int)KLPStrandY)])[((int)KLPBackward)]) = __pyx_t_13;

    /* "cython/core/tail.pyx":782
 *         strand = cr_dict['Ybackward_strand']
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPBackward] = strandtype[strand]
 *         strand = cr_dict['Yforward_strand']             # <<<<<<<<<<<<<<
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPForward] = strandtype[strand]
 * 
*/
    __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Yforward_strand); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 782, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_strand, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cython/core/tail.pyx":783
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPBackward] = strandtype[strand]
 *         strand = cr_dict['Yforward_strand']
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPForward] = strandtype[strand]             # <<<<<<<<<<<<<<
 * 
 *         sign = cr_dict['sign']
*/
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_strandtype); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 783, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_3, __pyx_v_strand); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 783, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_13 = ((KLPStrandType)__Pyx_PyLong_As_KLPStrandType(__pyx_t_4)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 783, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    (((__pyx_v_P.crossings[__pyx_v_i]).strand[((int)KLPStrandY)])[((int)KLPForward)]) = __pyx_t_13;

    /* "cython/core/tail.pyx":785
 *         P.crossings[i].strand[<int>KLPStrandY][<int>KLPForward] = strandtype[strand]
 * 
 *         sign = cr_dict['sign']             # <<<<<<<<<<<<<<
 *         P.crossings[i].handedness = signtype[sign[0]]
 *         P.crossings[i].component[<int>KLPStrandX] = cr_dict['Xcomponent']
*/
    __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_sign); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 785, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_sign, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "cython/core/tail.pyx":786
 * 
 *         sign = cr_dict['sign']
 *         P.crossings[i].handedness = signtype[sign[0]]             # <<<<<<<<<<<<<<
 *         P.crossings[i].component[<int>KLPStrandX] = cr_dict['Xcomponent']
 *         P.crossings[i].component[<int>KLPStrandY] = cr_dict['Ycomponent']
*/
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_signtype); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 786, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_sign, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 786, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 786, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_14 = ((KLPCrossingType)__Pyx_PyLong_As_KLPCrossingType(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 786, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    (__pyx_v_P.crossings[__pyx_v_i]).handedness = __pyx_t_14;

    /* "cython/core/tail.pyx":787
 *         sign = cr_dict['sign']
 *         P.crossings[i].handedness = signtype[sign[0]]
 *         P.crossings[i].component[<int>KLPStrandX] = cr_dict['Xcomponent']             # <<<<<<<<<<<<<<
 *         P.crossings[i].component[<int>KLPStrandY] = cr_dict['Ycomponent']
 * 
*/
    __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Xcomponent); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 787, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_15 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_15 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 787, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    ((__pyx_v_P.crossings[__pyx_v_i]).component[((int)KLPStrandX)]) = __pyx_t_15;

    /* "cython/core/tail.pyx":788
 *         P.crossings[i].handedness = signtype[sign[0]]
 *         P.crossings[i].component[<int>KLPStrandX] = cr_dict['Xcomponent']
 *         P.crossings[i].component[<int>KLPStrandY] = cr_dict['Ycomponent']             # <<<<<<<<<<<<<<
 * 
 *     c_triangulation = triangulate_link_complement(&P, remove_finite_vertices)
*/
    __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cr_dict, __pyx_mstate_global->__pyx_n_u_Ycomponent); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 788, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_15 = __Pyx_PyLong_As_int(__pyx_t_2); if (unlikely((__pyx_t_15 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 788, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    ((__pyx_v_P.crossings[__pyx_v_i]).component[((int)KLPStrandY)]) = __pyx_t_15;
  }

  /* "cython/core/tail.pyx":790
 *         P.crossings[i].component[<int>KLPStrandY] = cr_dict['Ycomponent']
 * 
 *     c_triangulation = triangulate_link_complement(&P, remove_finite_vertices)             # <<<<<<<<<<<<<<
 *     free(P.crossings)
 * 
*/
  __pyx_t_16 = __Pyx_PyLong_As_Boolean(__pyx_v_remove_finite_vertices); if (unlikely((__pyx_t_16 == ((Boolean)-1)) && PyErr_Occurred())) __PYX_ERR(2, 790, __pyx_L1_error)
  __pyx_t_17 = triangulate_link_complement((&__pyx_v_P), __pyx_t_16); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 790, __pyx_L1_error)
  __pyx_v_c_triangulation = __pyx_t_17;

  /* "cython/core/tail.pyx":791
 * 
 *     c_triangulation = triangulate_link_complement(&P, remove_finite_vertices)
 *     free(P.crossings)             # <<<<<<<<<<<<<<
 * 
 *     if c_triangulation == NULL:
*/
  free(__pyx_v_P.crossings);

  /* "cython/core/tail.pyx":793
 *     free(P.crossings)
 * 
 *     if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Could not create the triangulation.')
 * 
*/
  __pyx_t_10 = (__pyx_v_c_triangulation == NULL);
  if (unlikely(__pyx_t_10)) {

    /* "cython/core/tail.pyx":794
 * 
 *     if c_triangulation == NULL:
 *         raise RuntimeError('Could not create the triangulation.')             # <<<<<<<<<<<<<<
 * 
 *     # The triangulation must have a name or SnapPea will segfault when
*/
    __pyx_t_3 = NULL;
    __pyx_t_11 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Could_not_create_the_triangulati};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_RuntimeError)), __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 794, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(2, 794, __pyx_L1_error)

    /* "cython/core/tail.pyx":793
 *     free(P.crossings)
 * 
 *     if c_triangulation == NULL:             # <<<<<<<<<<<<<<
 *         raise RuntimeError('Could not create the triangulation.')
 * 
*/
  }

  /* "cython/core/tail.pyx":798
 *     # The triangulation must have a name or SnapPea will segfault when
 *     #   trying to copy the triangulation.
 *     tri_name = to_byte_str('unnamed link')             # <<<<<<<<<<<<<<
 *     set_triangulation_name(c_triangulation, tri_name)
 *     return c_triangulation
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_to_byte_str); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_unnamed_link};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v_tri_name = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":799
 *     #   trying to copy the triangulation.
 *     tri_name = to_byte_str('unnamed link')
 *     set_triangulation_name(c_triangulation, tri_name)             # <<<<<<<<<<<<<<
 *     return c_triangulation
*/
  __pyx_t_18 = __Pyx_PyObject_AsWritableString(__pyx_v_tri_name); if (unlikely((!__pyx_t_18) && PyErr_Occurred())) __PYX_ERR(2, 799, __pyx_L1_error)
  set_triangulation_name(__pyx_v_c_triangulation, __pyx_t_18); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 799, __pyx_L1_error)

  /* "cython/core/tail.pyx":800
 *     tri_name = to_byte_str('unnamed link')
 *     set_triangulation_name(c_triangulation, tri_name)
 *     return c_triangulation             # <<<<<<<<<<<<<<
*/
  __pyx_r = __pyx_v_c_triangulation;
  goto __pyx_L0;

  /* "cython/core/tail.pyx":756
 * signtype = {'R': KLPHalfTwistCL, 'L': KLPHalfTwistCCL}
 * 
 * cdef c_Triangulation* get_triangulation_from_PythonKLP(pythonklp, remove_finite_vertices=True) except *:             # <<<<<<<<<<<<<<
 *     cdef KLPProjection P
 *     cdef c_Triangulation *c_triangulation
*/

  /* function exit code */
  __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_AddTraceback("SnapPy.get_triangulation_from_PythonKLP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_Pycrossings);
  __Pyx_XDECREF(__pyx_v_cr_dict);
  __Pyx_XDECREF(__pyx_v_neighbor);
  __Pyx_XDECREF(__pyx_v_strand);
  __Pyx_XDECREF(__pyx_v_sign);
  __Pyx_XDECREF(__pyx_v_tri_name);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":4
 *     int __Pyx_CheckUnpickleChecksum(long, long, long, long, const char*) except -1
 *     int __Pyx_UpdateUnpickledDict(object, object, Py_ssize_t) except -1
 * def __pyx_unpickle_PresentationMatrix(__pyx_type, long __pyx_checksum, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x59cf8a3, 0x3a22a1e, 0x3df3bb8, b'_col_support, _entries, _row_support, _units, cols, dead_columns, rows')
*/

/* Python wrapper */
static PyObject *__pyx_pw_6SnapPy_61__pyx_unpickle_PresentationMatrix(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6SnapPy_61__pyx_unpickle_PresentationMatrix = {"__pyx_unpickle_PresentationMatrix", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_61__pyx_unpickle_PresentationMatrix, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6SnapPy_61__pyx_unpickle_PresentationMatrix(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v___pyx_type = 0;
  long __pyx_v___pyx_checksum;
  PyObject *__pyx_v___pyx_state = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pyx_unpickle_PresentationMatrix (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pyx_type,&__pyx_mstate_global->__pyx_n_u_pyx_checksum,&__pyx_mstate_global->__pyx_n_u_pyx_state,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(7, 4, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 4, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 4, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 4, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__pyx_unpickle_PresentationMatrix", 0) < (0)) __PYX_ERR(7, 4, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PresentationMatrix", 1, 3, 3, i); __PYX_ERR(7, 4, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(7, 4, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(7, 4, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(7, 4, __pyx_L3_error)
    }
    __pyx_v___pyx_type = values[0];
    __pyx_v___pyx_checksum = __Pyx_PyLong_As_long(values[1]); if (unlikely((__pyx_v___pyx_checksum == (long)-1) && PyErr_Occurred())) __PYX_ERR(7, 4, __pyx_L3_error)
    __pyx_v___pyx_state = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__pyx_unpickle_PresentationMatrix", 1, 3, 3, __pyx_nargs); __PYX_ERR(7, 4, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("SnapPy.__pyx_unpickle_PresentationMatrix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v___pyx_state), (&PyTuple_Type), 1, "__pyx_state", 1))) __PYX_ERR(7, 4, __pyx_L1_error)
  __pyx_r = __pyx_pf_6SnapPy_60__pyx_unpickle_PresentationMatrix(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6SnapPy_60__pyx_unpickle_PresentationMatrix(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_v___pyx_result = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_PresentationMatrix", 0);

  /* "(tree fragment)":6
 * def __pyx_unpickle_PresentationMatrix(__pyx_type, long __pyx_checksum, tuple __pyx_state):
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x59cf8a3, 0x3a22a1e, 0x3df3bb8, b'_col_support, _entries, _row_support, _units, cols, dead_columns, rows')             # <<<<<<<<<<<<<<
 *     __pyx_result = PresentationMatrix.__new__(__pyx_type)
 *     if __pyx_state is not None:
*/
  __pyx_t_1 = __Pyx_CheckUnpickleChecksum(__pyx_v___pyx_checksum, 0x59cf8a3, 0x3a22a1e, 0x3df3bb8, __pyx_k_col_support__entries__row_suppo); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(7, 6, __pyx_L1_error)

  /* "(tree fragment)":7
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x59cf8a3, 0x3a22a1e, 0x3df3bb8, b'_col_support, _entries, _row_support, _units, cols, dead_columns, rows')
 *     __pyx_result = PresentationMatrix.__new__(__pyx_type)             # <<<<<<<<<<<<<<
 *     if __pyx_state is not None:
 *         __pyx_unpickle_PresentationMatrix__set_state(<PresentationMatrix> __pyx_result, __pyx_state)
*/
  __pyx_t_3 = ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v___pyx_type};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_new, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 7, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_v___pyx_result = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "(tree fragment)":8
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x59cf8a3, 0x3a22a1e, 0x3df3bb8, b'_col_support, _entries, _row_support, _units, cols, dead_columns, rows')
 *     __pyx_result = PresentationMatrix.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_PresentationMatrix__set_state(<PresentationMatrix> __pyx_result, __pyx_state)
 *     return __pyx_result
*/
  __pyx_t_5 = (__pyx_v___pyx_state != ((PyObject*)Py_None));
  if (__pyx_t_5) {

    /* "(tree fragment)":9
 *     __pyx_result = PresentationMatrix.__new__(__pyx_type)
 *     if __pyx_state is not None:
 *         __pyx_unpickle_PresentationMatrix__set_state(<PresentationMatrix> __pyx_result, __pyx_state)             # <<<<<<<<<<<<<<
 *     return __pyx_result
 * cdef __pyx_unpickle_PresentationMatrix__set_state(PresentationMatrix __pyx_result, __pyx_state: tuple):
*/
    if (unlikely(__pyx_v___pyx_state == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "cannot pass None into a C function argument that is declared 'not None'");
      __PYX_ERR(7, 9, __pyx_L1_error)
    }
    __pyx_t_2 = __pyx_f_6SnapPy___pyx_unpickle_PresentationMatrix__set_state(((struct __pyx_obj_6SnapPy_PresentationMatrix *)__pyx_v___pyx_result), __pyx_v___pyx_state); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "(tree fragment)":8
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x59cf8a3, 0x3a22a1e, 0x3df3bb8, b'_col_support, _entries, _row_support, _units, cols, dead_columns, rows')
 *     __pyx_result = PresentationMatrix.__new__(__pyx_type)
 *     if __pyx_state is not None:             # <<<<<<<<<<<<<<
 *         __pyx_unpickle_PresentationMatrix__set_state(<PresentationMatrix> __pyx_result, __pyx_state)
 *     return __pyx_result
*/
  }

  /* "(tree fragment)":10
 *     if __pyx_state is not None:
 *         __pyx_unpickle_PresentationMatrix__set_state(<PresentationMatrix> __pyx_result, __pyx_state)
 *     return __pyx_result             # <<<<<<<<<<<<<<
 * cdef __pyx_unpickle_PresentationMatrix__set_state(PresentationMatrix __pyx_result, __pyx_state: tuple):
 *     __pyx_result._col_support = __pyx_state[0]; __pyx_result._entries = __pyx_state[1]; __pyx_result._row_support = __pyx_state[2]; __pyx_result._units = __pyx_state[3]; __pyx_result.cols = __pyx_state[4]; __pyx_result.dead_columns = __pyx_state[5]; __pyx_result.rows = __pyx_state[6]
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v___pyx_result);
  __pyx_r = __pyx_v___pyx_result;
  goto __pyx_L0;

  /* "(tree fragment)":4
 *     int __Pyx_CheckUnpickleChecksum(long, long, long, long, const char*) except -1
 *     int __Pyx_UpdateUnpickledDict(object, object, Py_ssize_t) except -1
 * def __pyx_unpickle_PresentationMatrix(__pyx_type, long __pyx_checksum, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x59cf8a3, 0x3a22a1e, 0x3df3bb8, b'_col_support, _entries, _row_support, _units, cols, dead_columns, rows')
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("SnapPy.__pyx_unpickle_PresentationMatrix", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v___pyx_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":11
 *         __pyx_unpickle_PresentationMatrix__set_state(<PresentationMatrix> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_PresentationMatrix__set_state(PresentationMatrix __pyx_result, __pyx_state: tuple):             # <<<<<<<<<<<<<<
 *     __pyx_result._col_support = __pyx_state[0]; __pyx_result._entries = __pyx_state[1]; __pyx_result._row_support = __pyx_state[2]; __pyx_result._units = __pyx_state[3]; __pyx_result.cols = __pyx_state[4]; __pyx_result.dead_columns = __pyx_state[5]; __pyx_result.rows = __pyx_state[6]
 *     __Pyx_UpdateUnpickledDict(__pyx_result, __pyx_state, 7)
*/

static PyObject *__pyx_f_6SnapPy___pyx_unpickle_PresentationMatrix__set_state(struct __pyx_obj_6SnapPy_PresentationMatrix *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_unpickle_PresentationMatrix__set_state", 0);

  /* "(tree fragment)":12
 *     return __pyx_result
 * cdef __pyx_unpickle_PresentationMatrix__set_state(PresentationMatrix __pyx_result, __pyx_state: tuple):
 *     __pyx_result._col_support = __pyx_state[0]; __pyx_result._entries = __pyx_state[1]; __pyx_result._row_support = __pyx_state[2]; __pyx_result._units = __pyx_state[3]; __pyx_result.cols = __pyx_state[4]; __pyx_result.dead_columns = __pyx_state[5]; __pyx_result.rows = __pyx_state[6]             # <<<<<<<<<<<<<<
 *     __Pyx_UpdateUnpickledDict(__pyx_result, __pyx_state, 7)
*/
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_col_support);
  __Pyx_DECREF(__pyx_v___pyx_result->_col_support);
  __pyx_v___pyx_result->_col_support = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_entries);
  __Pyx_DECREF(__pyx_v___pyx_result->_entries);
  __pyx_v___pyx_result->_entries = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 2, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_row_support);
  __Pyx_DECREF(__pyx_v___pyx_result->_row_support);
  __pyx_v___pyx_result->_row_support = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 3, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PySet_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_t_1))) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->_units);
  __Pyx_DECREF(__pyx_v___pyx_result->_units);
  __pyx_v___pyx_result->_units = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 4, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->cols = __pyx_t_2;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 5, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PySet_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("set", __pyx_t_1))) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v___pyx_result->dead_columns);
  __Pyx_DECREF(__pyx_v___pyx_result->dead_columns);
  __pyx_v___pyx_result->dead_columns = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 6, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyLong_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(7, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v___pyx_result->rows = __pyx_t_2;

  /* "(tree fragment)":13
 * cdef __pyx_unpickle_PresentationMatrix__set_state(PresentationMatrix __pyx_result, __pyx_state: tuple):
 *     __pyx_result._col_support = __pyx_state[0]; __pyx_result._entries = __pyx_state[1]; __pyx_result._row_support = __pyx_state[2]; __pyx_result._units = __pyx_state[3]; __pyx_result.cols = __pyx_state[4]; __pyx_result.dead_columns = __pyx_state[5]; __pyx_result.rows = __pyx_state[6]
 *     __Pyx_UpdateUnpickledDict(__pyx_result, __pyx_state, 7)             # <<<<<<<<<<<<<<
*/
  __pyx_t_2 = __Pyx_UpdateUnpickledDict(((PyObject *)__pyx_v___pyx_result), __pyx_v___pyx_state, 7); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(7, 13, __pyx_L1_error)

  /* "(tree fragment)":11
 *         __pyx_unpickle_PresentationMatrix__set_state(<PresentationMatrix> __pyx_result, __pyx_state)
 *     return __pyx_result
 * cdef __pyx_unpickle_PresentationMatrix__set_state(PresentationMatrix __pyx_result, __pyx_state: tuple):             # <<<<<<<<<<<<<<
 *     __pyx_result._col_support = __pyx_state[0]; __pyx_result._entries = __pyx_state[1]; __pyx_result._row_support = __pyx_state[2]; __pyx_result._units = __pyx_state[3]; __pyx_result.cols = __pyx_state[4]; __pyx_result.dead_columns = __pyx_state[5]; __pyx_result.rows = __pyx_state[6]
 *     __Pyx_UpdateUnpickledDict(__pyx_result, __pyx_state, 7)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("SnapPy.__pyx_unpickle_PresentationMatrix__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
/* #### Code section: module_exttypes ### */
static struct __pyx_vtabstruct_6SnapPy_Triangulation __pyx_vtable_6SnapPy_Triangulation;

static PyObject *__pyx_tp_new_6SnapPy_Triangulation(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6SnapPy_Triangulation *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6SnapPy_Triangulation *)o);
  p->__pyx_vtab = __pyx_vtabptr_6SnapPy_Triangulation;
  p->_DTcode = Py_None; Py_INCREF(Py_None);
  p->_PDcode = Py_None; Py_INCREF(Py_None);
  p->_cover_info = Py_None; Py_INCREF(Py_None);
  p->_cache = Py_None; Py_INCREF(Py_None);
  p->LE = Py_None; Py_INCREF(Py_None);
  p->_link_file_full_path = Py_None; Py_INCREF(Py_None);
  p->hyperbolic_structure_initialized = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6SnapPy_13Triangulation_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6SnapPy_Triangulation(PyObject *o) {
  struct __pyx_obj_6SnapPy_Triangulation *p = (struct __pyx_obj_6SnapPy_Triangulation *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy_Triangulation) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_DeallocKeepAliveBegin(o);
    __pyx_pw_6SnapPy_13Triangulation_67__dealloc__(o);
    __Pyx_DeallocKeepAliveEnd(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_DTcode);
  Py_CLEAR(p->_PDcode);
  Py_CLEAR(p->_cover_info);
  Py_CLEAR(p->_cache);
  Py_CLEAR(p->LE);
  Py_CLEAR(p->_link_file_full_path);
  Py_CLEAR(p->hyperbolic_structure_initialized);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6SnapPy_Triangulation(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy_Triangulation *p = (struct __pyx_obj_6SnapPy_Triangulation *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_DTcode) {
    e = (*v)(p->_DTcode, a); if (e) return e;
  }
  if (p->_PDcode) {
    e = (*v)(p->_PDcode, a); if (e) return e;
  }
  if (p->_cover_info) {
    e = (*v)(p->_cover_info, a); if (e) return e;
  }
  if (p->_cache) {
    e = (*v)(p->_cache, a); if (e) return e;
  }
  if (p->LE) {
    e = (*v)(p->LE, a); if (e) return e;
  }
  if (p->_link_file_full_path) {
    e = (*v)(p->_link_file_full_path, a); if (e) return e;
  }
  if (p->hyperbolic_structure_initialized) {
    e = (*v)(p->hyperbolic_structure_initialized, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy_Triangulation(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy_Triangulation *p = (struct __pyx_obj_6SnapPy_Triangulation *)o;
  tmp = ((PyObject*)p->_DTcode);
  p->_DTcode = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_PDcode);
  p->_PDcode = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_cover_info);
  p->_cover_info = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_cache);
  p->_cache = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->LE);
  p->LE = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_link_file_full_path);
  p->_link_file_full_path = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->hyperbolic_structure_initialized);
  p->hyperbolic_structure_initialized = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6SnapPy_13Triangulation__cache(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6SnapPy_13Triangulation_6_cache_1__get__(o);
}

static PyObject *__pyx_getprop_6SnapPy_13Triangulation_LE(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6SnapPy_13Triangulation_2LE_1__get__(o);
}

static PyMethodDef __pyx_methods_6SnapPy_Triangulation[] = {
  {"_get_from_link_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_3_get_from_link_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_remove_finite_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_5_remove_finite_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_4_remove_finite_vertices},
  {"cover_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_7cover_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_6cover_info},
  {"plink", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_9plink, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_8plink},
  {"link", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_11link, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_10link},
  {"num_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_13num_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_12num_cusps},
  {"_num_fake_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_15_num_fake_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_14_num_fake_cusps},
  {"orientation_cover", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_17orientation_cover, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_16orientation_cover},
  {"is_orientable", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_19is_orientable, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_18is_orientable},
  {"copy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_21copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_20copy},
  {"randomize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_23randomize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_22randomize},
  {"simplify", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_25simplify, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_24simplify},
  {"_two_to_three", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_27_two_to_three, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_26_two_to_three},
  {"_three_to_two", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_29_three_to_two, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_28_three_to_two},
  {"with_hyperbolic_structure", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_31with_hyperbolic_structure, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_30with_hyperbolic_structure},
  {"_polish_hyperbolic_structures", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_33_polish_hyperbolic_structures, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_32_polish_hyperbolic_structures},
  {"_empty_save", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_35_empty_save, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_34_empty_save},
  {"save", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_37save, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_36save},
  {"_to_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_39_to_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_38_to_string},
  {"_from_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_41_from_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_40_from_string},
  {"_to_bytes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_43_to_bytes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_42_to_bytes},
  {"_from_bytes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_45_from_bytes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_44_from_bytes},
  {"_from_pickle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_47_from_pickle, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_46_from_pickle},
  {"_from_tetrahedra_gluing_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_49_from_tetrahedra_gluing_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_48_from_tetrahedra_gluing_data},
  {"_from_isosig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_51_from_isosig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_50_from_isosig},
  {"__reduce__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_53__reduce__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_52__reduce__},
  {"pickle", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_55pickle, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_reindex_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_57_reindex_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_56_reindex_cusps},
  {"_get_cusp_indices_and_peripheral_curve_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_59_get_cusp_indices_and_peripheral_curve_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_get_tetrahedra_gluing_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_61_get_tetrahedra_gluing_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_isomorphisms_to", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_63_isomorphisms_to, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_62_isomorphisms_to},
  {"isomorphisms_to", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_65isomorphisms_to, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_64isomorphisms_to},
  {"name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_73name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_72name},
  {"set_name", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_75set_name, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_74set_name},
  {"DT_code", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_77DT_code, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_76DT_code},
  {"_set_DTcode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_79_set_DTcode, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_set_PDcode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_81_set_PDcode, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"num_tetrahedra", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_83num_tetrahedra, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_82num_tetrahedra},
  {"dehn_fill", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_85dehn_fill, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_84dehn_fill},
  {"cusp_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_87cusp_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_86cusp_info},
  {"reverse_orientation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_89reverse_orientation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_88reverse_orientation},
  {"filled_triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_91filled_triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_90filled_triangulation},
  {"_unsimplified_filled_triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_93_unsimplified_filled_triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_92_unsimplified_filled_triangulation},
  {"_marked_tetrahedra", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_95_marked_tetrahedra, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"edge_valences", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_97edge_valences, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_96edge_valences},
  {"gluing_equations_pgl", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_99gluing_equations_pgl, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_98gluing_equations_pgl},
  {"_ptolemy_equations_identified_face_classes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_101_ptolemy_equations_identified_face_classes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_100_ptolemy_equations_identified_face_classes},
  {"_ptolemy_equations_identified_coordinates", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_103_ptolemy_equations_identified_coordinates, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_102_ptolemy_equations_identified_coordinates},
  {"_ptolemy_equations_action_by_decoration_change", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_105_ptolemy_equations_action_by_decoration_change, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_104_ptolemy_equations_action_by_decoration_change},
  {"_ptolemy_equations_boundary_map_3", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_107_ptolemy_equations_boundary_map_3, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_106_ptolemy_equations_boundary_map_3},
  {"_ptolemy_equations_boundary_map_2", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_109_ptolemy_equations_boundary_map_2, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_108_ptolemy_equations_boundary_map_2},
  {"_ptolemy_equations_boundary_map_1", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_111_ptolemy_equations_boundary_map_1, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_110_ptolemy_equations_boundary_map_1},
  {"ptolemy_obstruction_classes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_113ptolemy_obstruction_classes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_112ptolemy_obstruction_classes},
  {"ptolemy_generalized_obstruction_classes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_115ptolemy_generalized_obstruction_classes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_114ptolemy_generalized_obstruction_classes},
  {"ptolemy_variety", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_117ptolemy_variety, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_116ptolemy_variety},
  {"gluing_equations", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_119gluing_equations, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_118gluing_equations},
  {"_presentation_matrix", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_121_presentation_matrix, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_120_presentation_matrix},
  {"homology", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_123homology, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_122homology},
  {"fundamental_group", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_125fundamental_group, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_124fundamental_group},
  {"cover", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_127cover, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_126cover},
  {"covers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_129covers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_128covers},
  {"_covers_low_index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_131_covers_low_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_130_covers_low_index},
  {"_covers_gap", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_133_covers_gap, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_132_covers_gap},
  {"_covers_magma", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_135_covers_magma, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_134_covers_magma},
  {"_covers_snappea", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_137_covers_snappea, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_136_covers_snappea},
  {"set_peripheral_curves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_139set_peripheral_curves, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_138set_peripheral_curves},
  {"has_finite_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_141has_finite_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_140has_finite_vertices},
  {"triangulation_isosig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_143triangulation_isosig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_142triangulation_isosig},
  {"_undecorated_triangulation_isosig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_145_undecorated_triangulation_isosig, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_symplectic_form", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_147_symplectic_form, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_is_symplectic", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_149_is_symplectic, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_148_is_symplectic},
  {"symplectic_basis", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13Triangulation_151symplectic_basis, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13Triangulation_150symplectic_basis},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6SnapPy_Triangulation[] = {
  {"_cache", __pyx_getprop_6SnapPy_13Triangulation__cache, 0, 0, 0},
  {"LE", __pyx_getprop_6SnapPy_13Triangulation_LE, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_Triangulation_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_Triangulation},
  {Py_tp_repr, (void *)__pyx_pw_6SnapPy_13Triangulation_71__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("\n    A Triangulation object represents a compact 3-manifold with torus\n    boundary components, given as an ideal triangulation of the\n    manifold's interior.  A Dehn-filling can be specified for each\n    boundary component, allowing the description of closed 3-manifolds\n    and some orbifolds.  For non-orientable 3-manifolds, the boundary\n    components can also be Klein bottles. Two Triangulations are equal\n    ('==') if they represent combinatorially isomorphic\n    triangulations.  A Triangulation does *not* have any geometric\n    structure, and usually one works with the subclass Manifold which\n    adds this.  Here's a quick example:\n\n    >>> M = Triangulation('9_42')\n    >>> M.num_tetrahedra()\n    5\n    >>> M.is_orientable()\n    True\n\n    A Triangulation can be specified in a number of ways, e.g.\n\n    - Triangulation('9_42') : The complement of the knot 9_42 in S^3.\n    - Triangulation('m125(1,2)(4,5)') : The SnapPea census manifold m125\n      where the first cusp has Dehn filling (1,2) and the second cusp has\n      filling (4,5).\n    - Triangulation() : Opens a link editor window where can you\n      specify a link complement.\n\n    In general, the specification can be from among the below, with\n    information on Dehn fillings added.\n\n    - SnapPea cusped census manifolds: e.g. 'm123', 's123', 'v123'.\n\n    - Link complements:\n\n        + Rolfsen's table: e.g. '4_1', '04_1', '5^2_6', '6_4^7', 'L20935', 'l104001'.\n        + Knots and links up to 14 crossings from tabulations by Hoste\n          and Thistlethwaite: e.g. 'K12a456' or 'L13n579'.\n        + Hoste-Thistlethwaite Knotscape table:  e.g. '11a17' or '12n345'\n        + Dowker-Thistlethwaite code: e.g. 'DT:[(6,8,2,4)]', 'DT:dadbcda'\n\n    - Once-punctured torus bundles: e.g. 'b++LLR', 'b+-llR', 'bo-RRL', 'bn+LRLR'\n\n    - Fibered manifold associated to a braid: 'Braid:[1,2,-3,4]'\n\n      Here, the braid is thought of as a mapping class of the\n      punctured disc, and"" this manifold is the corresponding\n      mapping torus.  If you want the braid closure, do (1,0) filling\n      of the last cusp.\n\n    - From mapping class group data using Twister:\n\n      'Bundle(S_{1,1}, [a0, B1])' or 'Splitting(S_{1,0}, [b1, A0], [a0,B1])'\n\n      See the help for the 'twister' module for more.\n\n    - A SnapPea triangulation or link projection file: 'filename'\n\n      The file will be loaded if found in the current directory or the\n      path given by the shell variable SNAPPEA_MANIFOLD_DIRECTORY.\n\n    - A Regina-style isomorphism signature, such as 'dLQbcccdxwb'.\n\n    - A string containing the contents of a SnapPea triangulation or link\n      projection file.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy_Triangulation},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy_Triangulation},
  {Py_tp_richcompare, (void *)__pyx_pw_6SnapPy_13Triangulation_69__richcmp__},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_Triangulation},
  {Py_tp_getset, (void *)__pyx_getsets_6SnapPy_Triangulation},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_Triangulation},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_Triangulation_spec = {
  "SnapPy.Triangulation",
  sizeof(struct __pyx_obj_6SnapPy_Triangulation),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy_Triangulation_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy_Triangulation = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""Triangulation", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_Triangulation), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_Triangulation, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_6SnapPy_13Triangulation_71__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    A Triangulation object represents a compact 3-manifold with torus\n    boundary components, given as an ideal triangulation of the\n    manifold's interior.  A Dehn-filling can be specified for each\n    boundary component, allowing the description of closed 3-manifolds\n    and some orbifolds.  For non-orientable 3-manifolds, the boundary\n    components can also be Klein bottles. Two Triangulations are equal\n    ('==') if they represent combinatorially isomorphic\n    triangulations.  A Triangulation does *not* have any geometric\n    structure, and usually one works with the subclass Manifold which\n    adds this.  Here's a quick example:\n\n    >>> M = Triangulation('9_42')\n    >>> M.num_tetrahedra()\n    5\n    >>> M.is_orientable()\n    True\n\n    A Triangulation can be specified in a number of ways, e.g.\n\n    - Triangulation('9_42') : The complement of the knot 9_42 in S^3.\n    - Triangulation('m125(1,2)(4,5)') : The SnapPea census manifold m125\n      where the first cusp has Dehn filling (1,2) and the second cusp has\n      filling (4,5).\n    - Triangulation() : Opens a link editor window where can you\n      specify a link complement.\n\n    In general, the specification can be from among the below, with\n    information on Dehn fillings added.\n\n    - SnapPea cusped census manifolds: e.g. 'm123', 's123', 'v123'.\n\n    - Link complements:\n\n        + Rolfsen's table: e.g. '4_1', '04_1', '5^2_6', '6_4^7', 'L20935', 'l104001'.\n        + Knots and links up to 14 crossings from tabulations by Hoste\n          and Thistlethwaite: e.g. 'K12a456' or 'L13n579'.\n        + Hoste-Thistlethwaite Knotscape table:  e.g. '11a17' or '12n345'\n        + Dowker-Thistlethwaite code: e.g. 'DT:[(6,8,2,4)]', 'DT:dadbcda'\n\n    - Once-punctured torus bundles: e.g. 'b++LLR', 'b+-llR', 'bo-RRL', 'bn+LRLR'\n\n    - Fibered manifold associated to a braid: 'Braid:[1,2,-3,4]'\n\n      Here, the braid is thought of as a mapping class of the\n      punctured disc, and"" this manifold is the corresponding\n      mapping torus.  If you want the braid closure, do (1,0) filling\n      of the last cusp.\n\n    - From mapping class group data using Twister:\n\n      'Bundle(S_{1,1}, [a0, B1])' or 'Splitting(S_{1,0}, [b1, A0], [a0,B1])'\n\n      See the help for the 'twister' module for more.\n\n    - A SnapPea triangulation or link projection file: 'filename'\n\n      The file will be loaded if found in the current directory or the\n      path given by the shell variable SNAPPEA_MANIFOLD_DIRECTORY.\n\n    - A Regina-style isomorphism signature, such as 'dLQbcccdxwb'.\n\n    - A string containing the contents of a SnapPea triangulation or link\n      projection file.\n    "), /*tp_doc*/
  __pyx_tp_traverse_6SnapPy_Triangulation, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy_Triangulation, /*tp_clear*/
  __pyx_pw_6SnapPy_13Triangulation_69__richcmp__, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_Triangulation, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6SnapPy_Triangulation, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_Triangulation, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_6SnapPy_Manifold __pyx_vtable_6SnapPy_Manifold;

static PyObject *__pyx_tp_new_6SnapPy_Manifold(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6SnapPy_Manifold *p;
  PyObject *o = __pyx_tp_new_6SnapPy_Triangulation(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6SnapPy_Manifold *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_6SnapPy_Triangulation*)__pyx_vtabptr_6SnapPy_Manifold;
  return o;
}

static PyMethodDef __pyx_methods_6SnapPy_Manifold[] = {
  {"_number_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_3_number_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"use_field_conversion", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_5use_field_conversion, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_4use_field_conversion},
  {"init_hyperbolic_structure", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_7init_hyperbolic_structure, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"canonize", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_9canonize, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_8canonize},
  {"_canonical_retriangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_11_canonical_retriangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_10_canonical_retriangulation},
  {"_canonical_cells_are_tetrahedra", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_13_canonical_cells_are_tetrahedra, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_12_canonical_cells_are_tetrahedra},
  {"_from_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_15_from_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_14_from_string},
  {"_from_bytes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_17_from_bytes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_16_from_bytes},
  {"_from_isosig", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_19_from_isosig, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_18_from_isosig},
  {"copy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_21copy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_20copy},
  {"cusp_neighborhood", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_23cusp_neighborhood, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_22cusp_neighborhood},
  {"dirichlet_domain", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_25dirichlet_domain, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_24dirichlet_domain},
  {"browse", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_27browse, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_26browse},
  {"filled_triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_29filled_triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_28filled_triangulation},
  {"fundamental_group", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_31fundamental_group, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_30fundamental_group},
  {"symmetry_group", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_33symmetry_group, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_32symmetry_group},
  {"symmetric_triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_35symmetric_triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_34symmetric_triangulation},
  {"cover", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_37cover, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_36cover},
  {"covers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_39covers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_38covers},
  {"_complex_volume", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_41_complex_volume, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"volume", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_43volume, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_42volume},
  {"chern_simons", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_45chern_simons, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_44chern_simons},
  {"without_hyperbolic_structure", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_47without_hyperbolic_structure, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_46without_hyperbolic_structure},
  {"_polish_hyperbolic_structures", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_49_polish_hyperbolic_structures, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"tetrahedra_shapes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_51tetrahedra_shapes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_50tetrahedra_shapes},
  {"_get_tetrahedra_shapes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_53_get_tetrahedra_shapes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_52_get_tetrahedra_shapes},
  {"set_tetrahedra_shapes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_55set_tetrahedra_shapes, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_54set_tetrahedra_shapes},
  {"solution_type", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_57solution_type, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_56solution_type},
  {"set_target_holonomy", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_59set_target_holonomy, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_58set_target_holonomy},
  {"cusp_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_61cusp_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_60cusp_info},
  {"dehn_fill", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_63dehn_fill, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_62dehn_fill},
  {"set_peripheral_curves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_65set_peripheral_curves, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_64set_peripheral_curves},
  {"dual_curves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_67dual_curves, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_66dual_curves},
  {"length_spectrum", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_69length_spectrum, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_68length_spectrum},
  {"drill", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_71drill, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_70drill},
  {"_is_isometric_to", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_73_is_isometric_to, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_72_is_isometric_to},
  {"is_isometric_to", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_75is_isometric_to, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_74is_isometric_to},
  {"is_two_bridge", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_77is_two_bridge, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_76is_two_bridge},
  {"_choose_generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_79_choose_generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_choose_generators_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_81_choose_generators_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_80_choose_generators_info},
  {"splitting_surfaces", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_83splitting_surfaces, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_82splitting_surfaces},
  {"split", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_85split, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_8Manifold_84split},
  {"_identify", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_87_identify, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_cusp_cross_section_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_89_cusp_cross_section_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_precision", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_8Manifold_91_precision, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_Manifold_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_Triangulation},
  {Py_tp_doc, (void *)PyDoc_STR("\n    A Manifold is a :class:`Triangulation` together with a geometric structure.\n    That is, a Manifold is an ideal triangulation of the interior of a\n    compact 3-manifold with torus and Klein-bottle boundary components, where\n    each tetrahedron has been assigned the geometry of an ideal tetrahedron\n    in hyperbolic 3-space. A Dehn-filling can be specified for each\n    boundary component, allowing the description of closed 3-manifolds,\n    some orbifolds and cone 3-manifolds. Here's a quick example:\n\n    >>> M = Manifold('9_42')\n    >>> M.volume()  # doctest: +NUMERIC6\n    4.05686022\n    >>> M.cusp_info('shape') # doctest: +NUMERIC6\n    [-4.278936315 + 1.95728679*I]\n\n    This is an example for running SnapPy inside Sage::\n\n      sage: import snappy\n      sage: M = snappy.Manifold('m125(1,2)(4,5)')\n      sage: M.is_orientable()\n      True\n\n    An alternative way of running SnapPy inside Sage::\n\n      sage: from snappy import *\n      sage: M = Manifold('m123')\n      sage: M.num_cusps()\n      1\n\n\n    A Manifold can be specified in a number of ways, e.g.\n\n    - Manifold('9_42') : The complement of the knot 9_42 in S^3.\n    - Manifold('m125(1,2)(4,5)') : The SnapPea census manifold m125\n      where the first cusp has Dehn filling (1,2) and the second cusp has\n      filling (4,5).\n    - Manifold() : Opens a link editor window where can you\n      specify a link complement.\n\n    In general, the specification can be from among the below, with\n    information on Dehn fillings added.\n\n    - SnapPea cusped census manifolds: e.g. 'm123', 's123', 'v123'.\n\n    - Link complements:\n\n       + Rolfsen's table: e.g. '4_1', '04_1', '5^2_6', '6_4^7', 'L20935', 'l104001'.\n       + Hoste-Thistlethwaite Knotscape table:  e.g. '11a17' or '12n345'\n       + Callahan-Dean-Weeks-Champanerkar-Kofman-Patterson knots: e.g. 'K6_21'.\n       + Dowker-Thistlethwaite code: e.g. 'DT:[(6,8,2,4)]'\n\n    - Once-punctured torus bundles: e.g. 'b++LLR', '""b+-llR', 'bo-RRL', 'bn+LRLR'\n\n    - Fibered manifold associated to a braid: 'Braid[1,2,-3,4]'\n\n      Here, the braid is thought of as a mapping class of the\n      punctured disc, and this manifold is the corresponding\n      mapping torus.  If you want the braid closure, do (1,0) filling\n      of the last cusp.\n\n    - From mapping class group data using Twister:\n\n      'Bundle(S_{1,1}, [a0, B1])' or 'Splitting(S_{1,0}, [b1, A0], [a0,B1])'\n\n      See the help for the 'twister' module for more.\n\n    - A SnapPea triangulation or link projection file: 'filename'\n\n      The file will be loaded if found in the current directory or the\n      path given by the shell variable ``SNAPPEA_MANIFOLD_DIRECTORY``.\n      See :py:meth:`Manifold.save` for details.\n\n    - A string containing the contents of a SnapPea triangulation or link\n      projection file.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy_Triangulation},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy_Triangulation},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_Manifold},
  {Py_tp_init, (void *)__pyx_pw_6SnapPy_8Manifold_1__init__},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_Manifold},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_Manifold_spec = {
  "SnapPy.Manifold",
  sizeof(struct __pyx_obj_6SnapPy_Manifold),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy_Manifold_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy_Manifold = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""Manifold", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_Manifold), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_Triangulation, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_6SnapPy_13Triangulation_71__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    A Manifold is a :class:`Triangulation` together with a geometric structure.\n    That is, a Manifold is an ideal triangulation of the interior of a\n    compact 3-manifold with torus and Klein-bottle boundary components, where\n    each tetrahedron has been assigned the geometry of an ideal tetrahedron\n    in hyperbolic 3-space. A Dehn-filling can be specified for each\n    boundary component, allowing the description of closed 3-manifolds,\n    some orbifolds and cone 3-manifolds. Here's a quick example:\n\n    >>> M = Manifold('9_42')\n    >>> M.volume()  # doctest: +NUMERIC6\n    4.05686022\n    >>> M.cusp_info('shape') # doctest: +NUMERIC6\n    [-4.278936315 + 1.95728679*I]\n\n    This is an example for running SnapPy inside Sage::\n\n      sage: import snappy\n      sage: M = snappy.Manifold('m125(1,2)(4,5)')\n      sage: M.is_orientable()\n      True\n\n    An alternative way of running SnapPy inside Sage::\n\n      sage: from snappy import *\n      sage: M = Manifold('m123')\n      sage: M.num_cusps()\n      1\n\n\n    A Manifold can be specified in a number of ways, e.g.\n\n    - Manifold('9_42') : The complement of the knot 9_42 in S^3.\n    - Manifold('m125(1,2)(4,5)') : The SnapPea census manifold m125\n      where the first cusp has Dehn filling (1,2) and the second cusp has\n      filling (4,5).\n    - Manifold() : Opens a link editor window where can you\n      specify a link complement.\n\n    In general, the specification can be from among the below, with\n    information on Dehn fillings added.\n\n    - SnapPea cusped census manifolds: e.g. 'm123', 's123', 'v123'.\n\n    - Link complements:\n\n       + Rolfsen's table: e.g. '4_1', '04_1', '5^2_6', '6_4^7', 'L20935', 'l104001'.\n       + Hoste-Thistlethwaite Knotscape table:  e.g. '11a17' or '12n345'\n       + Callahan-Dean-Weeks-Champanerkar-Kofman-Patterson knots: e.g. 'K6_21'.\n       + Dowker-Thistlethwaite code: e.g. 'DT:[(6,8,2,4)]'\n\n    - Once-punctured torus bundles: e.g. 'b++LLR', '""b+-llR', 'bo-RRL', 'bn+LRLR'\n\n    - Fibered manifold associated to a braid: 'Braid[1,2,-3,4]'\n\n      Here, the braid is thought of as a mapping class of the\n      punctured disc, and this manifold is the corresponding\n      mapping torus.  If you want the braid closure, do (1,0) filling\n      of the last cusp.\n\n    - From mapping class group data using Twister:\n\n      'Bundle(S_{1,1}, [a0, B1])' or 'Splitting(S_{1,0}, [b1, A0], [a0,B1])'\n\n      See the help for the 'twister' module for more.\n\n    - A SnapPea triangulation or link projection file: 'filename'\n\n      The file will be loaded if found in the current directory or the\n      path given by the shell variable ``SNAPPEA_MANIFOLD_DIRECTORY``.\n      See :py:meth:`Manifold.save` for details.\n\n    - A string containing the contents of a SnapPea triangulation or link\n      projection file.\n    "), /*tp_doc*/
  __pyx_tp_traverse_6SnapPy_Triangulation, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy_Triangulation, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_Manifold, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_6SnapPy_8Manifold_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_Manifold, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy_AbelianGroup(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_6SnapPy_AbelianGroup *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6SnapPy_AbelianGroup *)o);
  p->divisors = Py_None; Py_INCREF(Py_None);
  p->coefficients = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_6SnapPy_AbelianGroup(PyObject *o) {
  struct __pyx_obj_6SnapPy_AbelianGroup *p = (struct __pyx_obj_6SnapPy_AbelianGroup *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy_AbelianGroup) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->divisors);
  Py_CLEAR(p->coefficients);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6SnapPy_AbelianGroup(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy_AbelianGroup *p = (struct __pyx_obj_6SnapPy_AbelianGroup *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->divisors) {
    e = (*v)(p->divisors, a); if (e) return e;
  }
  if (p->coefficients) {
    e = (*v)(p->coefficients, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy_AbelianGroup(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy_AbelianGroup *p = (struct __pyx_obj_6SnapPy_AbelianGroup *)o;
  tmp = ((PyObject*)p->divisors);
  p->divisors = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->coefficients);
  p->coefficients = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_sq_item_6SnapPy_AbelianGroup(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyLong_FromSsize_t(i); if(!x) return 0;
  #if CYTHON_USE_TYPE_SLOTS || (!CYTHON_USE_TYPE_SPECS && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  #else
  r = ((binaryfunc)PyType_GetSlot(Py_TYPE(o), Py_mp_subscript))(o, x);
  #endif
  Py_DECREF(x);
  return r;
}

static PyObject *__pyx_getprop_6SnapPy_12AbelianGroup_coefficients(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6SnapPy_12AbelianGroup_12coefficients_1__get__(o);
}

static int __pyx_setprop_6SnapPy_12AbelianGroup_coefficients(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_6SnapPy_12AbelianGroup_12coefficients_3__set__(o, v);
  }
  else {
    return __pyx_pw_6SnapPy_12AbelianGroup_12coefficients_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_6SnapPy_AbelianGroup[] = {
  {"__reduce__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_9__reduce__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_8__reduce__},
  {"elementary_divisors", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_15elementary_divisors, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_14elementary_divisors},
  {"rank", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_17rank, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_16rank},
  {"betti_number", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_19betti_number, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_18betti_number},
  {"order", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_12AbelianGroup_21order, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_12AbelianGroup_20order},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6SnapPy_AbelianGroup[] = {
  {"coefficients", __pyx_getprop_6SnapPy_12AbelianGroup_coefficients, __pyx_setprop_6SnapPy_12AbelianGroup_coefficients, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_AbelianGroup_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_AbelianGroup},
  {Py_tp_repr, (void *)__pyx_pw_6SnapPy_12AbelianGroup_3__repr__},
  {Py_sq_length, (void *)__pyx_pw_6SnapPy_12AbelianGroup_5__len__},
  {Py_sq_item, (void *)__pyx_sq_item_6SnapPy_AbelianGroup},
  {Py_mp_length, (void *)__pyx_pw_6SnapPy_12AbelianGroup_5__len__},
  {Py_mp_subscript, (void *)__pyx_pw_6SnapPy_12AbelianGroup_7__getitem__},
  {Py_tp_call, (void *)__pyx_pw_6SnapPy_12AbelianGroup_13__call__},
  {Py_tp_doc, (void *)PyDoc_STR("\n    An AbelianGroup object represents a finitely generated abelian group,\n    usually the first homology group of a snappy Manifold.\n\n    Instantiate an abelian group by its elementary divisors:\n\n    >>> A = AbelianGroup(elementary_divisors=[5,15,0,0])\n    >>> A\n    Z/5 + Z/15 + Z + Z\n    >>> A[0]\n    5\n\n    Alternatively, instantiate an abelian group as AbelianGroup(P) where P is a\n    presentation matrix given as a list of lists of integers.\n    Snappy stores an abelian group as a list of elementary divisors:\n\n    >>> B = AbelianGroup([[1,3,2],[2,0,6]])\n    >>> B\n    Z/2 + Z\n    >>> B.elementary_divisors()\n    [2, 0]\n    >>> B[1]\n    0\n    >>> len(B)\n    2\n    >>> B.rank()\n    2\n    >>> B.betti_number()\n    1\n    >>> B.order()\n    'infinite'\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy_AbelianGroup},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy_AbelianGroup},
  {Py_tp_richcompare, (void *)__pyx_pw_6SnapPy_12AbelianGroup_11__richcmp__},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_AbelianGroup},
  {Py_tp_getset, (void *)__pyx_getsets_6SnapPy_AbelianGroup},
  {Py_tp_init, (void *)__pyx_pw_6SnapPy_12AbelianGroup_1__init__},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_AbelianGroup},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_AbelianGroup_spec = {
  "SnapPy.AbelianGroup",
  sizeof(struct __pyx_obj_6SnapPy_AbelianGroup),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy_AbelianGroup_slots,
};
#else

static PySequenceMethods __pyx_tp_as_sequence_AbelianGroup = {
  __pyx_pw_6SnapPy_12AbelianGroup_5__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_6SnapPy_AbelianGroup, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_AbelianGroup = {
  __pyx_pw_6SnapPy_12AbelianGroup_5__len__, /*mp_length*/
  __pyx_pw_6SnapPy_12AbelianGroup_7__getitem__, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_6SnapPy_AbelianGroup = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""AbelianGroup", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_AbelianGroup), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_AbelianGroup, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_6SnapPy_12AbelianGroup_3__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_AbelianGroup, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_AbelianGroup, /*tp_as_mapping*/
  0, /*tp_hash*/
  __pyx_pw_6SnapPy_12AbelianGroup_13__call__, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    An AbelianGroup object represents a finitely generated abelian group,\n    usually the first homology group of a snappy Manifold.\n\n    Instantiate an abelian group by its elementary divisors:\n\n    >>> A = AbelianGroup(elementary_divisors=[5,15,0,0])\n    >>> A\n    Z/5 + Z/15 + Z + Z\n    >>> A[0]\n    5\n\n    Alternatively, instantiate an abelian group as AbelianGroup(P) where P is a\n    presentation matrix given as a list of lists of integers.\n    Snappy stores an abelian group as a list of elementary divisors:\n\n    >>> B = AbelianGroup([[1,3,2],[2,0,6]])\n    >>> B\n    Z/2 + Z\n    >>> B.elementary_divisors()\n    [2, 0]\n    >>> B[1]\n    0\n    >>> len(B)\n    2\n    >>> B.rank()\n    2\n    >>> B.betti_number()\n    1\n    >>> B.order()\n    'infinite'\n    "), /*tp_doc*/
  __pyx_tp_traverse_6SnapPy_AbelianGroup, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy_AbelianGroup, /*tp_clear*/
  __pyx_pw_6SnapPy_12AbelianGroup_11__richcmp__, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_AbelianGroup, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6SnapPy_AbelianGroup, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_6SnapPy_12AbelianGroup_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_AbelianGroup, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_6SnapPy_PresentationMatrix __pyx_vtable_6SnapPy_PresentationMatrix;

static PyObject *__pyx_tp_new_6SnapPy_PresentationMatrix(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_6SnapPy_PresentationMatrix *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6SnapPy_PresentationMatrix *)o);
  p->__pyx_vtab = __pyx_vtabptr_6SnapPy_PresentationMatrix;
  p->_row_support = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->_col_support = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->_entries = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->_units = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->dead_columns = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_6SnapPy_PresentationMatrix(PyObject *o) {
  struct __pyx_obj_6SnapPy_PresentationMatrix *p = (struct __pyx_obj_6SnapPy_PresentationMatrix *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy_PresentationMatrix) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->_row_support);
  Py_CLEAR(p->_col_support);
  Py_CLEAR(p->_entries);
  Py_CLEAR(p->_units);
  Py_CLEAR(p->dead_columns);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6SnapPy_PresentationMatrix(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy_PresentationMatrix *p = (struct __pyx_obj_6SnapPy_PresentationMatrix *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_row_support) {
    e = (*v)(p->_row_support, a); if (e) return e;
  }
  if (p->_col_support) {
    e = (*v)(p->_col_support, a); if (e) return e;
  }
  if (p->_entries) {
    e = (*v)(p->_entries, a); if (e) return e;
  }
  if (p->_units) {
    e = (*v)(p->_units, a); if (e) return e;
  }
  if (p->dead_columns) {
    e = (*v)(p->dead_columns, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy_PresentationMatrix(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy_PresentationMatrix *p = (struct __pyx_obj_6SnapPy_PresentationMatrix *)o;
  tmp = ((PyObject*)p->_row_support);
  p->_row_support = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_col_support);
  p->_col_support = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_entries);
  p->_entries = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_units);
  p->_units = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->dead_columns);
  p->dead_columns = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_sq_item_6SnapPy_PresentationMatrix(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyLong_FromSsize_t(i); if(!x) return 0;
  #if CYTHON_USE_TYPE_SLOTS || (!CYTHON_USE_TYPE_SPECS && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  #else
  r = ((binaryfunc)PyType_GetSlot(Py_TYPE(o), Py_mp_subscript))(o, x);
  #endif
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_6SnapPy_PresentationMatrix(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_6SnapPy_18PresentationMatrix_5__setitem__(o, i, v);
  }
  else {
    __Pyx_TypeName o_type_name;
    o_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(o));
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by " __Pyx_FMT_TYPENAME, o_type_name);
    __Pyx_DECREF_TypeName(o_type_name);
    return -1;
  }
}

static PyMethodDef __pyx_methods_6SnapPy_PresentationMatrix[] = {
  {"get_data", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_3get_data, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_2get_data},
  {"add_rows", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_11add_rows, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"row_op", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_13row_op, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_12row_op},
  {"explode", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_15explode, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_14explode},
  {"simplify", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_17simplify, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_16simplify},
  {"simplified_matrix", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_19simplified_matrix, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_18PresentationMatrix_18simplified_matrix},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_21__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_18PresentationMatrix_23__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_PresentationMatrix_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_PresentationMatrix},
  {Py_tp_repr, (void *)__pyx_pw_6SnapPy_18PresentationMatrix_9__repr__},
  {Py_sq_item, (void *)__pyx_sq_item_6SnapPy_PresentationMatrix},
  {Py_mp_subscript, (void *)__pyx_pw_6SnapPy_18PresentationMatrix_7__getitem__},
  {Py_mp_ass_subscript, (void *)__pyx_mp_ass_subscript_6SnapPy_PresentationMatrix},
  {Py_tp_doc, (void *)PyDoc_STR("\n    A sparse representation of the presentation matrix of an abelian group.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy_PresentationMatrix},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy_PresentationMatrix},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_PresentationMatrix},
  {Py_tp_init, (void *)__pyx_pw_6SnapPy_18PresentationMatrix_1__init__},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_PresentationMatrix},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_PresentationMatrix_spec = {
  "SnapPy.PresentationMatrix",
  sizeof(struct __pyx_obj_6SnapPy_PresentationMatrix),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy_PresentationMatrix_slots,
};
#else

static PySequenceMethods __pyx_tp_as_sequence_PresentationMatrix = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_6SnapPy_PresentationMatrix, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_PresentationMatrix = {
  0, /*mp_length*/
  __pyx_pw_6SnapPy_18PresentationMatrix_7__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_6SnapPy_PresentationMatrix, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_6SnapPy_PresentationMatrix = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""PresentationMatrix", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_PresentationMatrix), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_PresentationMatrix, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_6SnapPy_18PresentationMatrix_9__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_PresentationMatrix, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_PresentationMatrix, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    A sparse representation of the presentation matrix of an abelian group.\n    "), /*tp_doc*/
  __pyx_tp_traverse_6SnapPy_PresentationMatrix, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy_PresentationMatrix, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_PresentationMatrix, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  __pyx_pw_6SnapPy_18PresentationMatrix_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_PresentationMatrix, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy_CFundamentalGroup(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6SnapPy_CFundamentalGroup *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6SnapPy_CFundamentalGroup *)o);
  p->num_cusps = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6SnapPy_17CFundamentalGroup_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6SnapPy_CFundamentalGroup(PyObject *o) {
  struct __pyx_obj_6SnapPy_CFundamentalGroup *p = (struct __pyx_obj_6SnapPy_CFundamentalGroup *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy_CFundamentalGroup) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_DeallocKeepAliveBegin(o);
    __pyx_pw_6SnapPy_17CFundamentalGroup_3__dealloc__(o);
    __Pyx_DeallocKeepAliveEnd(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->num_cusps);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6SnapPy_CFundamentalGroup(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy_CFundamentalGroup *p = (struct __pyx_obj_6SnapPy_CFundamentalGroup *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->num_cusps) {
    e = (*v)(p->num_cusps, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy_CFundamentalGroup(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy_CFundamentalGroup *p = (struct __pyx_obj_6SnapPy_CFundamentalGroup *)o;
  tmp = ((PyObject*)p->num_cusps);
  p->num_cusps = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6SnapPy_17CFundamentalGroup_num_cusps(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6SnapPy_17CFundamentalGroup_9num_cusps_1__get__(o);
}

static PyMethodDef __pyx_methods_6SnapPy_CFundamentalGroup[] = {
  {"num_generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_7num_generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_6num_generators},
  {"num_relators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_9num_relators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_8num_relators},
  {"num_original_generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_11num_original_generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_10num_original_generators},
  {"original_generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_13original_generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_12original_generators},
  {"generators_in_originals", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_15generators_in_originals, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_14generators_in_originals},
  {"_word_moves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_17_word_moves, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"generators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_19generators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_18generators},
  {"relators", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_21relators, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_20relators},
  {"meridian", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_23meridian, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_22meridian},
  {"longitude", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_25longitude, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_24longitude},
  {"peripheral_curves", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_27peripheral_curves, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_26peripheral_curves},
  {"magma_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_29magma_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_28magma_string},
  {"gap_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_31gap_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_30gap_string},
  {"_gap_init_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_33_gap_init_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_magma_init_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_35_magma_init_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"sage", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_37sage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_36sage},
  {"character_variety_vars_and_polys", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_39character_variety_vars_and_polys, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CFundamentalGroup_38character_variety_vars_and_polys},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_41__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CFundamentalGroup_43__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6SnapPy_CFundamentalGroup[] = {
  {"num_cusps", __pyx_getprop_6SnapPy_17CFundamentalGroup_num_cusps, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_CFundamentalGroup_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_CFundamentalGroup},
  {Py_tp_repr, (void *)__pyx_pw_6SnapPy_17CFundamentalGroup_5__repr__},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy_CFundamentalGroup},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy_CFundamentalGroup},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_CFundamentalGroup},
  {Py_tp_getset, (void *)__pyx_getsets_6SnapPy_CFundamentalGroup},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_CFundamentalGroup},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_CFundamentalGroup_spec = {
  "SnapPy.CFundamentalGroup",
  sizeof(struct __pyx_obj_6SnapPy_CFundamentalGroup),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy_CFundamentalGroup_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy_CFundamentalGroup = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""CFundamentalGroup", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_CFundamentalGroup), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_CFundamentalGroup, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_6SnapPy_17CFundamentalGroup_5__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy_CFundamentalGroup, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy_CFundamentalGroup, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_CFundamentalGroup, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6SnapPy_CFundamentalGroup, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_CFundamentalGroup, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods_6SnapPy_CHolonomyGroup[] = {
  {"_matrix", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_1_matrix, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_14CHolonomyGroup__matrix},
  {"SL2C", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_3SL2C, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_14CHolonomyGroup_2SL2C},
  {"O31", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_5O31, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_14CHolonomyGroup_4O31},
  {"complex_length", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_7complex_length, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_14CHolonomyGroup_6complex_length},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_9__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_14CHolonomyGroup_11__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_CHolonomyGroup_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_CFundamentalGroup},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy_CFundamentalGroup},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy_CFundamentalGroup},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_CHolonomyGroup},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_CFundamentalGroup},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_CHolonomyGroup_spec = {
  "SnapPy.CHolonomyGroup",
  sizeof(struct __pyx_obj_6SnapPy_CHolonomyGroup),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy_CHolonomyGroup_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy_CHolonomyGroup = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""CHolonomyGroup", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_CHolonomyGroup), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_CFundamentalGroup, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  #if CYTHON_COMPILING_IN_PYPY || 0
  __pyx_pw_6SnapPy_17CFundamentalGroup_5__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy_CFundamentalGroup, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy_CFundamentalGroup, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_CHolonomyGroup, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_CFundamentalGroup, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_6SnapPy_SymmetryGroup __pyx_vtable_6SnapPy_SymmetryGroup;

static PyObject *__pyx_tp_new_6SnapPy_SymmetryGroup(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6SnapPy_SymmetryGroup *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6SnapPy_SymmetryGroup *)o);
  p->__pyx_vtab = __pyx_vtabptr_6SnapPy_SymmetryGroup;
  p->_is_full_group = Py_None; Py_INCREF(Py_None);
  p->_owns_c_symmetry_group = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6SnapPy_13SymmetryGroup_1__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6SnapPy_SymmetryGroup(PyObject *o) {
  struct __pyx_obj_6SnapPy_SymmetryGroup *p = (struct __pyx_obj_6SnapPy_SymmetryGroup *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy_SymmetryGroup) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_DeallocKeepAliveBegin(o);
    __pyx_pw_6SnapPy_13SymmetryGroup_3__dealloc__(o);
    __Pyx_DeallocKeepAliveEnd(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->_is_full_group);
  Py_CLEAR(p->_owns_c_symmetry_group);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6SnapPy_SymmetryGroup(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy_SymmetryGroup *p = (struct __pyx_obj_6SnapPy_SymmetryGroup *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->_is_full_group) {
    e = (*v)(p->_is_full_group, a); if (e) return e;
  }
  if (p->_owns_c_symmetry_group) {
    e = (*v)(p->_owns_c_symmetry_group, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy_SymmetryGroup(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy_SymmetryGroup *p = (struct __pyx_obj_6SnapPy_SymmetryGroup *)o;
  tmp = ((PyObject*)p->_is_full_group);
  p->_is_full_group = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_owns_c_symmetry_group);
  p->_owns_c_symmetry_group = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6SnapPy_13SymmetryGroup__is_full_group(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6SnapPy_13SymmetryGroup_14_is_full_group_1__get__(o);
}

static PyObject *__pyx_getprop_6SnapPy_13SymmetryGroup__owns_c_symmetry_group(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6SnapPy_13SymmetryGroup_22_owns_c_symmetry_group_1__get__(o);
}

static PyMethodDef __pyx_methods_6SnapPy_SymmetryGroup[] = {
  {"is_full_group", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_5is_full_group, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_4is_full_group},
  {"order", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_9order, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_8order},
  {"is_abelian", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_11is_abelian, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_10is_abelian},
  {"abelian_description", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_13abelian_description, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_12abelian_description},
  {"is_dihedral", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_15is_dihedral, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_14is_dihedral},
  {"is_polyhedral", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_17is_polyhedral, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_16is_polyhedral},
  {"polyhedral_description", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_19polyhedral_description, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_18polyhedral_description},
  {"is_S5", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_21is_S5, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_20is_S5},
  {"is_direct_product", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_23is_direct_product, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_22is_direct_product},
  {"direct_product_description", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_25direct_product_description, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_24direct_product_description},
  {"is_amphicheiral", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_27is_amphicheiral, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_26is_amphicheiral},
  {"is_invertible_knot", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_29is_invertible_knot, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_28is_invertible_knot},
  {"commutator_subgroup", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_31commutator_subgroup, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_30commutator_subgroup},
  {"abelianization", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_33abelianization, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_32abelianization},
  {"center", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_35center, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_34center},
  {"multiply_elements", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_37multiply_elements, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_36multiply_elements},
  {"isometries", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_39isometries, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_13SymmetryGroup_38isometries},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_41__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_13SymmetryGroup_43__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6SnapPy_SymmetryGroup[] = {
  {"_is_full_group", __pyx_getprop_6SnapPy_13SymmetryGroup__is_full_group, 0, 0, 0},
  {"_owns_c_symmetry_group", __pyx_getprop_6SnapPy_13SymmetryGroup__owns_c_symmetry_group, 0, 0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_SymmetryGroup_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_SymmetryGroup},
  {Py_tp_repr, (void *)__pyx_pw_6SnapPy_13SymmetryGroup_7__repr__},
  {Py_tp_doc, (void *)PyDoc_STR("\n    A SymmetryGroup is a group of self-isometries of hyperbolic\n    3-manifold.  Instantiate as follows:\n\n    >>> M = Manifold('m004')\n    >>> M.symmetry_group()\n    D4\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy_SymmetryGroup},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy_SymmetryGroup},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_SymmetryGroup},
  {Py_tp_getset, (void *)__pyx_getsets_6SnapPy_SymmetryGroup},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_SymmetryGroup},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_SymmetryGroup_spec = {
  "SnapPy.SymmetryGroup",
  sizeof(struct __pyx_obj_6SnapPy_SymmetryGroup),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy_SymmetryGroup_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy_SymmetryGroup = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""SymmetryGroup", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_SymmetryGroup), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_SymmetryGroup, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_6SnapPy_13SymmetryGroup_7__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    A SymmetryGroup is a group of self-isometries of hyperbolic\n    3-manifold.  Instantiate as follows:\n\n    >>> M = Manifold('m004')\n    >>> M.symmetry_group()\n    D4\n    "), /*tp_doc*/
  __pyx_tp_traverse_6SnapPy_SymmetryGroup, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy_SymmetryGroup, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_SymmetryGroup, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6SnapPy_SymmetryGroup, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_SymmetryGroup, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_6SnapPy_CDirichletDomain __pyx_vtable_6SnapPy_CDirichletDomain;

static PyObject *__pyx_tp_new_6SnapPy_CDirichletDomain(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6SnapPy_CDirichletDomain *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6SnapPy_CDirichletDomain *)o);
  p->__pyx_vtab = __pyx_vtabptr_6SnapPy_CDirichletDomain;
  if (unlikely(__pyx_pw_6SnapPy_16CDirichletDomain_3__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6SnapPy_CDirichletDomain(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy_CDirichletDomain) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_DeallocKeepAliveBegin(o);
    __pyx_pw_6SnapPy_16CDirichletDomain_5__dealloc__(o);
    __Pyx_DeallocKeepAliveEnd(o);
    PyErr_Restore(etype, eval, etb);
  }
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static PyMethodDef __pyx_methods_6SnapPy_CDirichletDomain[] = {
  {"_number_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_1_number_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"num_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_9num_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_8num_vertices},
  {"num_finite_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_11num_finite_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_10num_finite_vertices},
  {"num_ideal_vertices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_13num_ideal_vertices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_12num_ideal_vertices},
  {"num_edges", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_15num_edges, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_14num_edges},
  {"num_faces", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_17num_faces, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_16num_faces},
  {"in_radius", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_19in_radius, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_18in_radius},
  {"out_radius", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_21out_radius, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_20out_radius},
  {"spine_radius", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_23spine_radius, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_22spine_radius},
  {"length_spectrum_dicts", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_25length_spectrum_dicts, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_24length_spectrum_dicts},
  {"vertex_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_27vertex_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_26vertex_list},
  {"_vertex_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_29_vertex_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_vertex_data_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_31_vertex_data_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"_vertex_to_index_dict", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_33_vertex_to_index_dict, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_32_vertex_to_index_dict},
  {"_edge_to_index_dict", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_35_edge_to_index_dict, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_34_edge_to_index_dict},
  {"face_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_37face_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_36face_list},
  {"edge_list", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_39edge_list, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_38edge_list},
  {"view", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_41view, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"manifold", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_43manifold, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_42manifold},
  {"triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_45triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_44triangulation},
  {"volume", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_47volume, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_46volume},
  {"pairing_matrices", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_49pairing_matrices, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_48pairing_matrices},
  {"pairing_words", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_51pairing_words, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_50pairing_words},
  {"_to_string", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_53_to_string, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__reduce_ex__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_55__reduce_ex__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"save", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_57save, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_56save},
  {"export_stl", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_16CDirichletDomain_59export_stl, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_16CDirichletDomain_58export_stl},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_CDirichletDomain_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_CDirichletDomain},
  {Py_tp_repr, (void *)__pyx_pw_6SnapPy_16CDirichletDomain_7__repr__},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_CDirichletDomain},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_CDirichletDomain},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_CDirichletDomain_spec = {
  "SnapPy.CDirichletDomain",
  sizeof(struct __pyx_obj_6SnapPy_CDirichletDomain),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_6SnapPy_CDirichletDomain_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy_CDirichletDomain = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""CDirichletDomain", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_CDirichletDomain), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_CDirichletDomain, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_6SnapPy_16CDirichletDomain_7__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_CDirichletDomain, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_CDirichletDomain, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy_CCuspNeighborhood(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6SnapPy_CCuspNeighborhood *p;
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6SnapPy_CCuspNeighborhood *)o);
  p->original_indices = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6SnapPy_17CCuspNeighborhood_3__cinit__(o, a, k) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6SnapPy_CCuspNeighborhood(PyObject *o) {
  struct __pyx_obj_6SnapPy_CCuspNeighborhood *p = (struct __pyx_obj_6SnapPy_CCuspNeighborhood *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy_CCuspNeighborhood) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_DeallocKeepAliveBegin(o);
    __pyx_pw_6SnapPy_17CCuspNeighborhood_5__dealloc__(o);
    __Pyx_DeallocKeepAliveEnd(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->original_indices);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6SnapPy_CCuspNeighborhood(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy_CCuspNeighborhood *p = (struct __pyx_obj_6SnapPy_CCuspNeighborhood *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->original_indices) {
    e = (*v)(p->original_indices, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy_CCuspNeighborhood(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy_CCuspNeighborhood *p = (struct __pyx_obj_6SnapPy_CCuspNeighborhood *)o;
  tmp = ((PyObject*)p->original_indices);
  p->original_indices = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_6SnapPy_CCuspNeighborhood[] = {
  {"_number_", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_1_number_, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"manifold", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_9manifold, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_8manifold},
  {"original_index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_11original_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_10original_index},
  {"check_index", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_13check_index, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_12check_index},
  {"num_cusps", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_15num_cusps, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_14num_cusps},
  {"topology", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_17topology, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_16topology},
  {"get_displacement", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_19get_displacement, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_18get_displacement},
  {"set_displacement", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_21set_displacement, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_20set_displacement},
  {"stopping_displacement", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_23stopping_displacement, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_22stopping_displacement},
  {"stopper", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_25stopper, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_24stopper},
  {"reach", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_27reach, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_26reach},
  {"max_reach", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_29max_reach, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_28max_reach},
  {"get_tie", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_31get_tie, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_30get_tie},
  {"set_tie", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_33set_tie, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_32set_tie},
  {"volume", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_35volume, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_34volume},
  {"translations", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_37translations, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_36translations},
  {"horoballs", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_39horoballs, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_38horoballs},
  {"Ford_domain", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_41Ford_domain, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_40Ford_domain},
  {"triangulation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_43triangulation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_42triangulation},
  {"view", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_45view, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6SnapPy_17CCuspNeighborhood_44view},
  {"__reduce_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_47__reduce_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {"__setstate_cython__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6SnapPy_17CCuspNeighborhood_49__setstate_cython__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0},
  {0, 0, 0, 0}
};
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy_CCuspNeighborhood_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy_CCuspNeighborhood},
  {Py_tp_repr, (void *)__pyx_pw_6SnapPy_17CCuspNeighborhood_7__repr__},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy_CCuspNeighborhood},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy_CCuspNeighborhood},
  {Py_tp_methods, (void *)__pyx_methods_6SnapPy_CCuspNeighborhood},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy_CCuspNeighborhood},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy_CCuspNeighborhood_spec = {
  "SnapPy.CCuspNeighborhood",
  sizeof(struct __pyx_obj_6SnapPy_CCuspNeighborhood),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy_CCuspNeighborhood_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy_CCuspNeighborhood = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""CCuspNeighborhood", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy_CCuspNeighborhood), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy_CCuspNeighborhood, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  __pyx_pw_6SnapPy_17CCuspNeighborhood_7__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy_CCuspNeighborhood, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy_CCuspNeighborhood, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6SnapPy_CCuspNeighborhood, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy_CCuspNeighborhood, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_defaults(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 1);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_defaults(PyObject *o) {
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_defaults) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->arg0);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6SnapPy___pyx_defaults(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->arg0) {
    e = (*v)(p->arg0, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy___pyx_defaults(PyObject *o) {
  PyObject* tmp;
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  tmp = ((PyObject*)p->arg0);
  p->arg0 = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_defaults_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_defaults},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_defaults},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy___pyx_defaults},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_defaults},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_defaults_spec = {
  "SnapPy.__pyx_defaults",
  sizeof(struct __pyx_defaults),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_defaults_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_defaults = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_defaults", /*tp_name*/
  sizeof(struct __pyx_defaults), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_defaults, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_defaults, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy___pyx_defaults, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_defaults, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct__genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct__genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct__genexpr[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct__genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct__genexpr(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct__genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_e);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct__genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct__genexpr[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct__genexpr++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct__genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_e) {
    e = (*v)(p->__pyx_v_e, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct__genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct__genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct__genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct__genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct__genexpr_spec = {
  "SnapPy.__pyx_scope_struct__genexpr",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct__genexpr_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct__genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct__genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct__genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct__genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct__genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct__genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_self);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(((PyObject *)p->__pyx_v_self), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation *)o;
  tmp = ((PyObject*)p->__pyx_v_self);
  p->__pyx_v_self = ((struct __pyx_obj_6SnapPy_Triangulation *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation_spec = {
  "SnapPy.__pyx_scope_struct_1__unsimplified_filled_triangulation",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct_1__unsimplified_filled_triangulation", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_2_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_2_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_2_genexpr[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_2_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_2_genexpr(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_2_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_c);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_2_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_2_genexpr[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_2_genexpr++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct_2_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_c) {
    e = (*v)(p->__pyx_v_c, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct_2_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct_2_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct_2_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct_2_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct_2_genexpr_spec = {
  "SnapPy.__pyx_scope_struct_2_genexpr",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct_2_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct_2_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct_2_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_2_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_2_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct_2_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct_2_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_3_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_3_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_3_genexpr[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_3_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_3_genexpr(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_3_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_p);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_3_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_3_genexpr[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_3_genexpr++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct_3_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_p) {
    e = (*v)(p->__pyx_v_p, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct_3_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct_3_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct_3_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct_3_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct_3_genexpr_spec = {
  "SnapPy.__pyx_scope_struct_3_genexpr",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct_3_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct_3_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct_3_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_3_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_3_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct_3_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct_3_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_4_list_as_word(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_4_list_as_word > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_4_list_as_word[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_4_list_as_word];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_4_list_as_word(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_4_list_as_word) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_verbose_form);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_4_list_as_word < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_4_list_as_word[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_4_list_as_word++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct_4_list_as_word(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_verbose_form) {
    e = (*v)(p->__pyx_v_verbose_form, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy___pyx_scope_struct_4_list_as_word(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word *)o;
  tmp = ((PyObject*)p->__pyx_v_verbose_form);
  p->__pyx_v_verbose_form = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct_4_list_as_word},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct_4_list_as_word},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy___pyx_scope_struct_4_list_as_word},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct_4_list_as_word},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word_spec = {
  "SnapPy.__pyx_scope_struct_4_list_as_word",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct_4_list_as_word", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_4_list_as_word), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_4_list_as_word, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct_4_list_as_word, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy___pyx_scope_struct_4_list_as_word, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct_4_list_as_word, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_5_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_5_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_5_genexpr[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_5_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_5_genexpr(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_5_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_g);
  Py_CLEAR(p->__pyx_t_0);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_5_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_5_genexpr[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_5_genexpr++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct_5_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_g) {
    e = (*v)(p->__pyx_v_g, a); if (e) return e;
  }
  if (p->__pyx_t_0) {
    e = (*v)(p->__pyx_t_0, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct_5_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct_5_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct_5_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct_5_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct_5_genexpr_spec = {
  "SnapPy.__pyx_scope_struct_5_genexpr",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct_5_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct_5_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct_5_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_5_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_5_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct_5_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct_5_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_6_face_list(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_6_face_list > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_6_face_list[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_6_face_list];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_6_face_list(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_6_face_list) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_self);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_6_face_list < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_6_face_list[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_6_face_list++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct_6_face_list(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_self) {
    e = (*v)(((PyObject *)p->__pyx_v_self), a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6SnapPy___pyx_scope_struct_6_face_list(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list *)o;
  tmp = ((PyObject*)p->__pyx_v_self);
  p->__pyx_v_self = ((struct __pyx_obj_6SnapPy_CDirichletDomain *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct_6_face_list_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct_6_face_list},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct_6_face_list},
  {Py_tp_clear, (void *)__pyx_tp_clear_6SnapPy___pyx_scope_struct_6_face_list},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct_6_face_list},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct_6_face_list_spec = {
  "SnapPy.__pyx_scope_struct_6_face_list",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct_6_face_list_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct_6_face_list = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct_6_face_list", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_6_face_list), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_6_face_list, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct_6_face_list, /*tp_traverse*/
  __pyx_tp_clear_6SnapPy___pyx_scope_struct_6_face_list, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct_6_face_list, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_7_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_7_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_7_genexpr[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_7_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_7_genexpr(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_7_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_outer_scope);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_7_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_7_genexpr[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_7_genexpr++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct_7_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_outer_scope) {
    e = (*v)(((PyObject *)p->__pyx_outer_scope), a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct_7_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct_7_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct_7_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct_7_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct_7_genexpr_spec = {
  "SnapPy.__pyx_scope_struct_7_genexpr",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct_7_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct_7_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct_7_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_7_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_7_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct_7_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct_7_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new_6SnapPy___pyx_scope_struct_8_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_8_genexpr > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_8_genexpr[--__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_8_genexpr];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
    if (unlikely(!o)) return 0;
  }
  return o;
}

static void __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_8_genexpr(PyObject *o) {
  struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_8_genexpr) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_genexpr_arg_0);
  Py_CLEAR(p->__pyx_v_x);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_8_genexpr < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr, sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr))))
  {
    __pyx_mstate_global->__pyx_freelist_6SnapPy___pyx_scope_struct_8_genexpr[__pyx_mstate_global->__pyx_freecount_6SnapPy___pyx_scope_struct_8_genexpr++] = ((struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6SnapPy___pyx_scope_struct_8_genexpr(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *p = (struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_genexpr_arg_0) {
    e = (*v)(p->__pyx_genexpr_arg_0, a); if (e) return e;
  }
  if (p->__pyx_v_x) {
    e = (*v)(p->__pyx_v_x, a); if (e) return e;
  }
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6SnapPy___pyx_scope_struct_8_genexpr_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6SnapPy___pyx_scope_struct_8_genexpr},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6SnapPy___pyx_scope_struct_8_genexpr},
  {Py_tp_new, (void *)__pyx_tp_new_6SnapPy___pyx_scope_struct_8_genexpr},
  {0, 0},
};
static PyType_Spec __pyx_type_6SnapPy___pyx_scope_struct_8_genexpr_spec = {
  "SnapPy.__pyx_scope_struct_8_genexpr",
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6SnapPy___pyx_scope_struct_8_genexpr_slots,
};
#else

static PyTypeObject __pyx_type_6SnapPy___pyx_scope_struct_8_genexpr = {
  PyVarObject_HEAD_INIT(0, 0)
  "SnapPy.""__pyx_scope_struct_8_genexpr", /*tp_name*/
  sizeof(struct __pyx_obj_6SnapPy___pyx_scope_struct_8_genexpr), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6SnapPy___pyx_scope_struct_8_genexpr, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6SnapPy___pyx_scope_struct_8_genexpr, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6SnapPy___pyx_scope_struct_8_genexpr, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
/* #### Code section: initfunc_declarations ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/
/* #### Code section: init_module ### */

static int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  gLongComputationTicker = Py_None; Py_INCREF(Py_None);
  __pyx_v_6SnapPy_IS_HUGE = Py_None; Py_INCREF(Py_None);
  __pyx_v_6SnapPy_IS_BIG = Py_None; Py_INCREF(Py_None);
  __pyx_v_6SnapPy_IS_COMPLETE = Py_None; Py_INCREF(Py_None);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __pyx_vtabptr_6SnapPy_Triangulation = &__pyx_vtable_6SnapPy_Triangulation;
  __pyx_vtable_6SnapPy_Triangulation.get_from_new_plink = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *, struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_new_plink *__pyx_optional_args))__pyx_f_6SnapPy_13Triangulation_get_from_new_plink;
  __pyx_vtable_6SnapPy_Triangulation.get_triangulation = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *, struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation *__pyx_optional_args))__pyx_f_6SnapPy_13Triangulation_get_triangulation;
  __pyx_vtable_6SnapPy_Triangulation.get_triangulation_from_name = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *, struct __pyx_opt_args_6SnapPy_13Triangulation_get_triangulation_from_name *__pyx_optional_args))__pyx_f_6SnapPy_13Triangulation_get_triangulation_from_name;
  __pyx_vtable_6SnapPy_Triangulation.get_HT_knot = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *, PyObject *, PyObject *, PyObject *))__pyx_f_6SnapPy_13Triangulation_get_HT_knot;
  __pyx_vtable_6SnapPy_Triangulation.get_punctured_torus_bundle = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *))__pyx_f_6SnapPy_13Triangulation_get_punctured_torus_bundle;
  __pyx_vtable_6SnapPy_Triangulation.get_from_file = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *, struct __pyx_opt_args_6SnapPy_13Triangulation_get_from_file *__pyx_optional_args))__pyx_f_6SnapPy_13Triangulation_get_from_file;
  __pyx_vtable_6SnapPy_Triangulation.set_c_triangulation = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *, Triangulation *))__pyx_f_6SnapPy_13Triangulation_set_c_triangulation;
  __pyx_vtable_6SnapPy_Triangulation.big_homology = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *))__pyx_f_6SnapPy_13Triangulation_big_homology;
  __pyx_vtable_6SnapPy_Triangulation.c_presentation_matrix = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *))__pyx_f_6SnapPy_13Triangulation_c_presentation_matrix;
  __pyx_vtable_6SnapPy_Triangulation.csmall_homology = (PyObject *(*)(struct __pyx_obj_6SnapPy_Triangulation *))__pyx_f_6SnapPy_13Triangulation_csmall_homology;
  __pyx_vtable_6SnapPy_Triangulation.build_rep_into_Sn = (RepresentationIntoSn *(*)(struct __pyx_obj_6SnapPy_Triangulation *, PyObject *))__pyx_f_6SnapPy_13Triangulation_build_rep_into_Sn;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy_Triangulation = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_Triangulation_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_Triangulation)) __PYX_ERR(4, 4, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_Triangulation_spec, __pyx_mstate->__pyx_ptype_6SnapPy_Triangulation) < (0)) __PYX_ERR(4, 4, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_Triangulation = &__pyx_type_6SnapPy_Triangulation;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_Triangulation) < (0)) __PYX_ERR(4, 4, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_Triangulation);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_Triangulation->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_Triangulation->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_Triangulation->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_6SnapPy_Triangulation, __pyx_vtabptr_6SnapPy_Triangulation) < (0)) __PYX_ERR(4, 4, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_6SnapPy_Triangulation) < (0)) __PYX_ERR(4, 4, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Triangulation_2, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_Triangulation) < (0)) __PYX_ERR(4, 4, __pyx_L1_error)
  __pyx_vtabptr_6SnapPy_Manifold = &__pyx_vtable_6SnapPy_Manifold;
  __pyx_vtable_6SnapPy_Manifold.__pyx_base = *__pyx_vtabptr_6SnapPy_Triangulation;
  __pyx_vtable_6SnapPy_Manifold._real_volume = (PyObject *(*)(struct __pyx_obj_6SnapPy_Manifold *))__pyx_f_6SnapPy_8Manifold__real_volume;
  __pyx_vtable_6SnapPy_Manifold._cusped_complex_volume = (PyObject *(*)(struct __pyx_obj_6SnapPy_Manifold *, Complex *, int *))__pyx_f_6SnapPy_8Manifold__cusped_complex_volume;
  __pyx_vtable_6SnapPy_Manifold._old_chern_simons = (PyObject *(*)(struct __pyx_obj_6SnapPy_Manifold *))__pyx_f_6SnapPy_8Manifold__old_chern_simons;
  __pyx_vtable_6SnapPy_Manifold._chern_simons = (PyObject *(*)(struct __pyx_obj_6SnapPy_Manifold *))__pyx_f_6SnapPy_8Manifold__chern_simons;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_6SnapPy_Manifold = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_Manifold_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_Manifold)) __PYX_ERR(1, 3, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_Manifold_spec, __pyx_mstate->__pyx_ptype_6SnapPy_Manifold) < (0)) __PYX_ERR(1, 3, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_Manifold = &__pyx_type_6SnapPy_Manifold;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold->tp_base = __pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_Manifold) < (0)) __PYX_ERR(1, 3, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_Manifold);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_Manifold->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_Manifold->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_Manifold->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_6SnapPy_Manifold, __pyx_vtabptr_6SnapPy_Manifold) < (0)) __PYX_ERR(1, 3, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_6SnapPy_Manifold) < (0)) __PYX_ERR(1, 3, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Manifold, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_Manifold) < (0)) __PYX_ERR(1, 3, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_AbelianGroup_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup)) __PYX_ERR(6, 3, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_AbelianGroup_spec, __pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup) < (0)) __PYX_ERR(6, 3, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup = &__pyx_type_6SnapPy_AbelianGroup;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup) < (0)) __PYX_ERR(6, 3, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_AbelianGroup, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_AbelianGroup) < (0)) __PYX_ERR(6, 3, __pyx_L1_error)
  __pyx_vtabptr_6SnapPy_PresentationMatrix = &__pyx_vtable_6SnapPy_PresentationMatrix;
  __pyx_vtable_6SnapPy_PresentationMatrix._set = (PyObject *(*)(struct __pyx_obj_6SnapPy_PresentationMatrix *, PyObject *, PyObject *))__pyx_f_6SnapPy_18PresentationMatrix__set;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_PresentationMatrix_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix)) __PYX_ERR(6, 142, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_PresentationMatrix_spec, __pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix) < (0)) __PYX_ERR(6, 142, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix = &__pyx_type_6SnapPy_PresentationMatrix;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix) < (0)) __PYX_ERR(6, 142, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_vtabptr_6SnapPy_PresentationMatrix) < (0)) __PYX_ERR(6, 142, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix) < (0)) __PYX_ERR(6, 142, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_PresentationMatrix, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix) < (0)) __PYX_ERR(6, 142, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_PresentationMatrix) < (0)) __PYX_ERR(6, 142, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_CFundamentalGroup_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup)) __PYX_ERR(8, 103, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_CFundamentalGroup_spec, __pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup) < (0)) __PYX_ERR(8, 103, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup = &__pyx_type_6SnapPy_CFundamentalGroup;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup) < (0)) __PYX_ERR(8, 103, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup) < (0)) __PYX_ERR(8, 103, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_CFundamentalGroup) < (0)) __PYX_ERR(8, 103, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_CHolonomyGroup_spec, __pyx_t_1);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup)) __PYX_ERR(8, 485, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_CHolonomyGroup_spec, __pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup) < (0)) __PYX_ERR(8, 485, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup = &__pyx_type_6SnapPy_CHolonomyGroup;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  __pyx_mstate_global->__pyx_ptype_6SnapPy_CHolonomyGroup->tp_base = __pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup;
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup) < (0)) __PYX_ERR(8, 485, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_CHolonomyGroup, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup) < (0)) __PYX_ERR(8, 485, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_CHolonomyGroup) < (0)) __PYX_ERR(8, 485, __pyx_L1_error)
  __pyx_vtabptr_6SnapPy_SymmetryGroup = &__pyx_vtable_6SnapPy_SymmetryGroup;
  __pyx_vtable_6SnapPy_SymmetryGroup._set_c_symmetry_group = (PyObject *(*)(struct __pyx_obj_6SnapPy_SymmetryGroup *, SymmetryGroup *))__pyx_f_6SnapPy_13SymmetryGroup__set_c_symmetry_group;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_SymmetryGroup_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup)) __PYX_ERR(9, 3, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_SymmetryGroup_spec, __pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup) < (0)) __PYX_ERR(9, 3, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup = &__pyx_type_6SnapPy_SymmetryGroup;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup) < (0)) __PYX_ERR(9, 3, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_vtabptr_6SnapPy_SymmetryGroup) < (0)) __PYX_ERR(9, 3, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup) < (0)) __PYX_ERR(9, 3, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_SymmetryGroup, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup) < (0)) __PYX_ERR(9, 3, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_SymmetryGroup) < (0)) __PYX_ERR(9, 3, __pyx_L1_error)
  __pyx_vtabptr_6SnapPy_CDirichletDomain = &__pyx_vtable_6SnapPy_CDirichletDomain;
  __pyx_vtable_6SnapPy_CDirichletDomain.triangulate = (PyObject *(*)(struct __pyx_obj_6SnapPy_CDirichletDomain *, PyObject *))__pyx_f_6SnapPy_16CDirichletDomain_triangulate;
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_CDirichletDomain_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain)) __PYX_ERR(10, 97, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_CDirichletDomain_spec, __pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain) < (0)) __PYX_ERR(10, 97, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain = &__pyx_type_6SnapPy_CDirichletDomain;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain) < (0)) __PYX_ERR(10, 97, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (__Pyx_SetVtable(__pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_vtabptr_6SnapPy_CDirichletDomain) < (0)) __PYX_ERR(10, 97, __pyx_L1_error)
  if (__Pyx_MergeVtables(__pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain) < (0)) __PYX_ERR(10, 97, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_CDirichletDomain, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_CDirichletDomain) < (0)) __PYX_ERR(10, 97, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy_CCuspNeighborhood_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood)) __PYX_ERR(11, 3, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy_CCuspNeighborhood_spec, __pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood) < (0)) __PYX_ERR(11, 3, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood = &__pyx_type_6SnapPy_CCuspNeighborhood;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood) < (0)) __PYX_ERR(11, 3, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood, (PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood) < (0)) __PYX_ERR(11, 3, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject *) __pyx_mstate->__pyx_ptype_6SnapPy_CCuspNeighborhood) < (0)) __PYX_ERR(11, 3, __pyx_L1_error)
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_defaults_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults)) __PYX_ERR(2, 376, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_defaults_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults) < (0)) __PYX_ERR(2, 376, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults = &__pyx_type_6SnapPy___pyx_defaults;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults) < (0)) __PYX_ERR(2, 376, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_defaults->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct__genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr)) __PYX_ERR(3, 551, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct__genexpr_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr) < (0)) __PYX_ERR(3, 551, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr = &__pyx_type_6SnapPy___pyx_scope_struct__genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr) < (0)) __PYX_ERR(3, 551, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct__genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation)) __PYX_ERR(4, 1353, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation) < (0)) __PYX_ERR(4, 1353, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation = &__pyx_type_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation) < (0)) __PYX_ERR(4, 1353, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_1__unsimplified_filled_triangulation->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct_2_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr)) __PYX_ERR(4, 1393, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct_2_genexpr_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr) < (0)) __PYX_ERR(4, 1393, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr = &__pyx_type_6SnapPy___pyx_scope_struct_2_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr) < (0)) __PYX_ERR(4, 1393, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_2_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct_3_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr)) __PYX_ERR(4, 2466, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct_3_genexpr_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr) < (0)) __PYX_ERR(4, 2466, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr = &__pyx_type_6SnapPy___pyx_scope_struct_3_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr) < (0)) __PYX_ERR(4, 2466, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_3_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word)) __PYX_ERR(8, 98, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word) < (0)) __PYX_ERR(8, 98, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word = &__pyx_type_6SnapPy___pyx_scope_struct_4_list_as_word;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word) < (0)) __PYX_ERR(8, 98, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_4_list_as_word->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct_5_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr)) __PYX_ERR(8, 100, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct_5_genexpr_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr) < (0)) __PYX_ERR(8, 100, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr = &__pyx_type_6SnapPy___pyx_scope_struct_5_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr) < (0)) __PYX_ERR(8, 100, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_5_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct_6_face_list_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list)) __PYX_ERR(10, 380, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct_6_face_list_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list) < (0)) __PYX_ERR(10, 380, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list = &__pyx_type_6SnapPy___pyx_scope_struct_6_face_list;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list) < (0)) __PYX_ERR(10, 380, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_6_face_list->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct_7_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr)) __PYX_ERR(10, 434, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct_7_genexpr_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr) < (0)) __PYX_ERR(10, 434, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr = &__pyx_type_6SnapPy___pyx_scope_struct_7_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr) < (0)) __PYX_ERR(10, 434, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_7_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6SnapPy___pyx_scope_struct_8_genexpr_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr)) __PYX_ERR(10, 636, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6SnapPy___pyx_scope_struct_8_genexpr_spec, __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr) < (0)) __PYX_ERR(10, 636, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr = &__pyx_type_6SnapPy___pyx_scope_struct_8_genexpr;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr) < (0)) __PYX_ERR(10, 636, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr->tp_dictoffset && __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6SnapPy___pyx_scope_struct_8_genexpr->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_SnapPy(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_SnapPy},
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  {Py_mod_gil, __Pyx_FREETHREADING_COMPATIBLE},
  #endif
  #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE
  {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
  #endif
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "SnapPy",
      0, /* m_doc */
    #if CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstatetype), /* m_size */
    #else
      (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif

/* PyModInitFuncType */
#ifndef CYTHON_NO_PYINIT_EXPORT
  #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#else
  #ifdef __cplusplus
  #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
  #else
  #define __Pyx_PyMODINIT_FUNC PyObject *
  #endif
#endif

__Pyx_PyMODINIT_FUNC PyInit_SnapPy(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_SnapPy(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
/* ModuleCreationPEP489 */
#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) {
    {
        PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think
        if (!module) {
            PyErr_Clear(); // just try the 3.8-3.12 version
            module = PyImport_ImportModule("_xxsubinterpreters");
            if (!module) goto bad;
        }
        PyObject *current = PyObject_CallMethod(module, "get_current", NULL);
        Py_DECREF(module);
        if (!current) goto bad;
        if (PyTuple_Check(current)) {
            PyObject *new_current = PySequence_GetItem(current, 0);
            Py_DECREF(current);
            current = new_current;
            if (!new_current) goto bad;
        }
        long long as_c_int = PyLong_AsLongLong(current);
        Py_DECREF(current);
        return as_c_int;
    }
  bad:
    PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n");
    return -1;
}
#endif
#if !CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    static PY_INT64_T main_interpreter_id = -1;
#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
    PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_GRAAL
    PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
    PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId();
#elif CYTHON_COMPILING_IN_LIMITED_API
    PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get());
#else
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
#endif
    if (unlikely(current_id == -1)) {
        return -1;
    }
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return 0;
    } else if (unlikely(main_interpreter_id != current_id)) {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#endif
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    #if !CYTHON_USE_MODULE_STATE
    if (__Pyx_check_single_interpreter())
        return NULL;
    #endif
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec_SnapPy(PyObject *__pyx_pyinit_module)
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  __pyx_mstatetype *__pyx_mstate = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  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;
  int __pyx_t_14;
  size_t __pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_t_18;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *(*__pyx_t_22)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'SnapPy' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #else
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_t_1 = __pyx_pyinit_module;
  Py_INCREF(__pyx_t_1);
  #else
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #if CYTHON_USE_MODULE_STATE
  {
    int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "SnapPy" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = __pyx_t_1;
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_USED);
  #endif
  __pyx_mstate = __pyx_mstate_global;
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_mstate->__pyx_d);
  __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /* ImportRefnannyAPI */
  #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("PyInit_SnapPy", 0);
  __Pyx_init_runtime_version();
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Library function declarations ---*/
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__pyx_module_is_main_SnapPy) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "SnapPy")) {
      if (unlikely((PyDict_SetItemString(modules, "SnapPy", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_export_code(__pyx_mstate);
  (void)__Pyx_modinit_function_export_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_type_init_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_type_import_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
  (void)__Pyx_modinit_function_import_code(__pyx_mstate);
  /*--- Execution code ---*/

  /* "cython/numbers/double.pyx":1
 * from .number import Number as RawNumber             # <<<<<<<<<<<<<<
 * 
 * class Number(RawNumber):
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Number};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_number, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_number_3, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 1, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Number};
    __pyx_t_3 = 0; {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 1, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      switch (__pyx_t_3) {
        case 0:
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_RawNumber, __pyx_t_4) < (0)) __PYX_ERR(5, 1, __pyx_L1_error)
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/numbers/double.pyx":3
 * from .number import Number as RawNumber
 * 
 * class Number(RawNumber):             # <<<<<<<<<<<<<<
 *     _default_precision=53
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_RawNumber); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_Number, __pyx_mstate_global->__pyx_n_u_Number, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_4) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_4) < 0))) __PYX_ERR(5, 3, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cython/numbers/double.pyx":4
 * 
 * class Number(RawNumber):
 *     _default_precision=53             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "double_SnapPy.h":
*/
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_default_precision, __pyx_mstate_global->__pyx_int_53) < (0)) __PYX_ERR(5, 4, __pyx_L1_error)

  /* "cython/numbers/double.pyx":3
 * from .number import Number as RawNumber
 * 
 * class Number(RawNumber):             # <<<<<<<<<<<<<<
 *     _default_precision=53
 * 
*/
  __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Number, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_4);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Number, __pyx_t_4) < (0)) __PYX_ERR(5, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":2
 * # Python modules
 * import os             # <<<<<<<<<<<<<<
 * import sys
 * import operator
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_os, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_os, __pyx_t_2) < (0)) __PYX_ERR(3, 2, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":3
 * # Python modules
 * import os
 * import sys             # <<<<<<<<<<<<<<
 * import operator
 * import types
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sys, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_sys, __pyx_t_2) < (0)) __PYX_ERR(3, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":4
 * import os
 * import sys
 * import operator             # <<<<<<<<<<<<<<
 * import types
 * import re
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_operator, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_operator, __pyx_t_2) < (0)) __PYX_ERR(3, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":5
 * import sys
 * import operator
 * import types             # <<<<<<<<<<<<<<
 * import re
 * import gzip
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_types, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 5, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_types, __pyx_t_2) < (0)) __PYX_ERR(3, 5, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":6
 * import operator
 * import types
 * import re             # <<<<<<<<<<<<<<
 * import gzip
 * import struct
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_re, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 6, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_re, __pyx_t_2) < (0)) __PYX_ERR(3, 6, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":7
 * import types
 * import re
 * import gzip             # <<<<<<<<<<<<<<
 * import struct
 * import tempfile
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_gzip, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gzip, __pyx_t_2) < (0)) __PYX_ERR(3, 7, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":8
 * import re
 * import gzip
 * import struct             # <<<<<<<<<<<<<<
 * import tempfile
 * import tarfile
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_struct, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 8, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_struct, __pyx_t_2) < (0)) __PYX_ERR(3, 8, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":9
 * import gzip
 * import struct
 * import tempfile             # <<<<<<<<<<<<<<
 * import tarfile
 * import atexit
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_tempfile, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 9, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_tempfile, __pyx_t_2) < (0)) __PYX_ERR(3, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":10
 * import struct
 * import tempfile
 * import tarfile             # <<<<<<<<<<<<<<
 * import atexit
 * import math
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_tarfile, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 10, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_tarfile, __pyx_t_2) < (0)) __PYX_ERR(3, 10, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":11
 * import tempfile
 * import tarfile
 * import atexit             # <<<<<<<<<<<<<<
 * import math
 * import string
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_atexit, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 11, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_atexit, __pyx_t_2) < (0)) __PYX_ERR(3, 11, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":12
 * import tarfile
 * import atexit
 * import math             # <<<<<<<<<<<<<<
 * import string
 * import time
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_math, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 12, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_math, __pyx_t_2) < (0)) __PYX_ERR(3, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":13
 * import atexit
 * import math
 * import string             # <<<<<<<<<<<<<<
 * import time
 * import typing
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_string, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 13, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_string, __pyx_t_2) < (0)) __PYX_ERR(3, 13, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":14
 * import math
 * import string
 * import time             # <<<<<<<<<<<<<<
 * import typing
 * python_major_version = sys.version_info.major
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_time, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 14, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_time, __pyx_t_2) < (0)) __PYX_ERR(3, 14, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":15
 * import string
 * import time
 * import typing             # <<<<<<<<<<<<<<
 * python_major_version = sys.version_info.major
 * 
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_typing, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 15, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_typing, __pyx_t_2) < (0)) __PYX_ERR(3, 15, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":16
 * import time
 * import typing
 * python_major_version = sys.version_info.major             # <<<<<<<<<<<<<<
 * 
 * # Sage interaction
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_version_info); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_major); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_python_major_version, __pyx_t_2) < (0)) __PYX_ERR(3, 16, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":19
 * 
 * # Sage interaction
 * from .sage_helper import _within_sage, SageNotAvailable             # <<<<<<<<<<<<<<
 * from .pari import pari as pari
 * try:
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_within_sage,__pyx_mstate_global->__pyx_n_u_SageNotAvailable};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_helper, __pyx_imported_names, 2, __pyx_mstate_global->__pyx_kp_u_sage_helper_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 19, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_within_sage,__pyx_mstate_global->__pyx_n_u_SageNotAvailable};
    for (__pyx_t_3=0; __pyx_t_3 < 2; __pyx_t_3++) {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 19, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 19, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":20
 * # Sage interaction
 * from .sage_helper import _within_sage, SageNotAvailable
 * from .pari import pari as pari             # <<<<<<<<<<<<<<
 * try:
 *     import sage.structure.sage_object
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_pari};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_pari, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_pari_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 20, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_pari};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 20, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 20, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":21
 * from .sage_helper import _within_sage, SageNotAvailable
 * from .pari import pari as pari
 * try:             # <<<<<<<<<<<<<<
 *     import sage.structure.sage_object
 *     from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cython/core/basic.pyx":22
 * from .pari import pari as pari
 * try:
 *     import sage.structure.sage_object             # <<<<<<<<<<<<<<
 *     from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
 *     from sage.groups.perm_gps.permgroup import PermutationGroup
*/
      __pyx_t_9 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_structure_sage_object, 0, 0, NULL, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 22, __pyx_L2_error)
      __pyx_t_2 = __pyx_t_9;
      __Pyx_GOTREF(__pyx_t_2);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_sage, __pyx_t_2) < (0)) __PYX_ERR(3, 22, __pyx_L2_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":23
 * try:
 *     import sage.structure.sage_object
 *     from sage.groups.perm_gps.permgroup_element import PermutationGroupElement             # <<<<<<<<<<<<<<
 *     from sage.groups.perm_gps.permgroup import PermutationGroup
 *     from sage.groups.free_group import FreeGroup
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_PermutationGroupElement};
        __pyx_t_9 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_groups_perm_gps_permgroup_e, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 23, __pyx_L2_error)
      }
      __pyx_t_2 = __pyx_t_9;
      __Pyx_GOTREF(__pyx_t_2);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_PermutationGroupElement};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 23, __pyx_L2_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 23, __pyx_L2_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":24
 *     import sage.structure.sage_object
 *     from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
 *     from sage.groups.perm_gps.permgroup import PermutationGroup             # <<<<<<<<<<<<<<
 *     from sage.groups.free_group import FreeGroup
 *     from sage.interfaces.gap import gap
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_PermutationGroup};
        __pyx_t_9 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_groups_perm_gps_permgroup, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 24, __pyx_L2_error)
      }
      __pyx_t_2 = __pyx_t_9;
      __Pyx_GOTREF(__pyx_t_2);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_PermutationGroup};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 24, __pyx_L2_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 24, __pyx_L2_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":25
 *     from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
 *     from sage.groups.perm_gps.permgroup import PermutationGroup
 *     from sage.groups.free_group import FreeGroup             # <<<<<<<<<<<<<<
 *     from sage.interfaces.gap import gap
 *     from sage.interfaces.magma import magma
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_FreeGroup};
        __pyx_t_9 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_groups_free_group, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 25, __pyx_L2_error)
      }
      __pyx_t_2 = __pyx_t_9;
      __Pyx_GOTREF(__pyx_t_2);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_FreeGroup};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 25, __pyx_L2_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 25, __pyx_L2_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":26
 *     from sage.groups.perm_gps.permgroup import PermutationGroup
 *     from sage.groups.free_group import FreeGroup
 *     from sage.interfaces.gap import gap             # <<<<<<<<<<<<<<
 *     from sage.interfaces.magma import magma
 *     try:
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_gap};
        __pyx_t_9 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_interfaces_gap, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 26, __pyx_L2_error)
      }
      __pyx_t_2 = __pyx_t_9;
      __Pyx_GOTREF(__pyx_t_2);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_gap};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 26, __pyx_L2_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 26, __pyx_L2_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":27
 *     from sage.groups.free_group import FreeGroup
 *     from sage.interfaces.gap import gap
 *     from sage.interfaces.magma import magma             # <<<<<<<<<<<<<<
 *     try:
 *         from sage.interfaces.abc import GapElement, MagmaElement
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_magma};
        __pyx_t_9 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_interfaces_magma, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 27, __pyx_L2_error)
      }
      __pyx_t_2 = __pyx_t_9;
      __Pyx_GOTREF(__pyx_t_2);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_magma};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 27, __pyx_L2_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 27, __pyx_L2_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":28
 *     from sage.interfaces.gap import gap
 *     from sage.interfaces.magma import magma
 *     try:             # <<<<<<<<<<<<<<
 *         from sage.interfaces.abc import GapElement, MagmaElement
 * 
*/
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_11);
        /*try:*/ {

          /* "cython/core/basic.pyx":29
 *     from sage.interfaces.magma import magma
 *     try:
 *         from sage.interfaces.abc import GapElement, MagmaElement             # <<<<<<<<<<<<<<
 * 
 *         def is_GapElement(elt):
*/
          {
            PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_GapElement,__pyx_mstate_global->__pyx_n_u_MagmaElement};
            __pyx_t_12 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_interfaces_abc, __pyx_imported_names, 2, NULL, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 29, __pyx_L8_error)
          }
          __pyx_t_2 = __pyx_t_12;
          __Pyx_GOTREF(__pyx_t_2);
          {
            PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_GapElement,__pyx_mstate_global->__pyx_n_u_MagmaElement};
            for (__pyx_t_3=0; __pyx_t_3 < 2; __pyx_t_3++) {
              __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 29, __pyx_L8_error)
              __Pyx_GOTREF(__pyx_t_5);
              if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 29, __pyx_L8_error)
              __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            }
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "cython/core/basic.pyx":31
 *         from sage.interfaces.abc import GapElement, MagmaElement
 * 
 *         def is_GapElement(elt):             # <<<<<<<<<<<<<<
 *             return isinstance(elt, GapElement)
 * 
*/
          __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_1is_GapElement, 0, __pyx_mstate_global->__pyx_n_u_is_GapElement, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 31, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_2);
          #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
          PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
          #endif
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_GapElement, __pyx_t_2) < (0)) __PYX_ERR(3, 31, __pyx_L8_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "cython/core/basic.pyx":34
 *             return isinstance(elt, GapElement)
 * 
 *         def is_MagmaElement(elt):             # <<<<<<<<<<<<<<
 *             return isinstance(elt, MagmaElement)
 *     except:
*/
          __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_3is_MagmaElement, 0, __pyx_mstate_global->__pyx_n_u_is_MagmaElement, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 34, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_2);
          #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
          PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
          #endif
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_MagmaElement, __pyx_t_2) < (0)) __PYX_ERR(3, 34, __pyx_L8_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "cython/core/basic.pyx":28
 *     from sage.interfaces.gap import gap
 *     from sage.interfaces.magma import magma
 *     try:             # <<<<<<<<<<<<<<
 *         from sage.interfaces.abc import GapElement, MagmaElement
 * 
*/
        }
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        goto __pyx_L13_try_end;
        __pyx_L8_error:;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "cython/core/basic.pyx":36
 *         def is_MagmaElement(elt):
 *             return isinstance(elt, MagmaElement)
 *     except:             # <<<<<<<<<<<<<<
 *         from sage.interfaces.gap import is_GapElement
 *         from sage.interfaces.magma import is_MagmaElement
*/
        /*except:*/ {
          __Pyx_AddTraceback("SnapPy", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(3, 36, __pyx_L10_except_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __Pyx_XGOTREF(__pyx_t_5);
          __Pyx_XGOTREF(__pyx_t_6);

          /* "cython/core/basic.pyx":37
 *             return isinstance(elt, MagmaElement)
 *     except:
 *         from sage.interfaces.gap import is_GapElement             # <<<<<<<<<<<<<<
 *         from sage.interfaces.magma import is_MagmaElement
 *     # for testing:
*/
          {
            PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_is_GapElement};
            __pyx_t_12 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_interfaces_gap, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 37, __pyx_L10_except_error)
          }
          __pyx_t_4 = __pyx_t_12;
          __Pyx_GOTREF(__pyx_t_4);
          {
            PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_is_GapElement};
            __pyx_t_3 = 0; {
              __pyx_t_13 = __Pyx_ImportFrom(__pyx_t_4, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 37, __pyx_L10_except_error)
              __Pyx_GOTREF(__pyx_t_13);
              if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_13) < (0)) __PYX_ERR(3, 37, __pyx_L10_except_error)
              __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            }
          }
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

          /* "cython/core/basic.pyx":38
 *     except:
 *         from sage.interfaces.gap import is_GapElement
 *         from sage.interfaces.magma import is_MagmaElement             # <<<<<<<<<<<<<<
 *     # for testing:
 *     from sage.matrix.constructor import matrix as sage_matrix
*/
          {
            PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_is_MagmaElement};
            __pyx_t_12 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_interfaces_magma, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(3, 38, __pyx_L10_except_error)
          }
          __pyx_t_4 = __pyx_t_12;
          __Pyx_GOTREF(__pyx_t_4);
          {
            PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_is_MagmaElement};
            __pyx_t_3 = 0; {
              __pyx_t_13 = __Pyx_ImportFrom(__pyx_t_4, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 38, __pyx_L10_except_error)
              __Pyx_GOTREF(__pyx_t_13);
              if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_13) < (0)) __PYX_ERR(3, 38, __pyx_L10_except_error)
              __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            }
          }
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          goto __pyx_L9_exception_handled;
        }

        /* "cython/core/basic.pyx":28
 *     from sage.interfaces.gap import gap
 *     from sage.interfaces.magma import magma
 *     try:             # <<<<<<<<<<<<<<
 *         from sage.interfaces.abc import GapElement, MagmaElement
 * 
*/
        __pyx_L10_except_error:;
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
        goto __pyx_L2_error;
        __pyx_L9_exception_handled:;
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
        __pyx_L13_try_end:;
      }

      /* "cython/core/basic.pyx":40
 *         from sage.interfaces.magma import is_MagmaElement
 *     # for testing:
 *     from sage.matrix.constructor import matrix as sage_matrix             # <<<<<<<<<<<<<<
 * except ImportError:
 *     pass
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_matrix};
        __pyx_t_11 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_matrix_constructor, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 40, __pyx_L2_error)
      }
      __pyx_t_6 = __pyx_t_11;
      __Pyx_GOTREF(__pyx_t_6);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_matrix};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 40, __pyx_L2_error)
          __Pyx_GOTREF(__pyx_t_5);
          switch (__pyx_t_3) {
            case 0:
            if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_sage_matrix, __pyx_t_5) < (0)) __PYX_ERR(3, 40, __pyx_L2_error)
            break;
            default:;
          }
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/basic.pyx":21
 * from .sage_helper import _within_sage, SageNotAvailable
 * from .pari import pari as pari
 * try:             # <<<<<<<<<<<<<<
 *     import sage.structure.sage_object
 *     from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L7_try_end;
    __pyx_L2_error:;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/basic.pyx":41
 *     # for testing:
 *     from sage.matrix.constructor import matrix as sage_matrix
 * except ImportError:             # <<<<<<<<<<<<<<
 *     pass
 * 
*/
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ImportError))));
    if (__pyx_t_14) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L3_exception_handled;
    }
    goto __pyx_L4_except_error;

    /* "cython/core/basic.pyx":21
 * from .sage_helper import _within_sage, SageNotAvailable
 * from .pari import pari as pari
 * try:             # <<<<<<<<<<<<<<
 *     import sage.structure.sage_object
 *     from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
*/
    __pyx_L4_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L3_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_7, __pyx_t_8);
    __pyx_L7_try_end:;
  }

  /* "cython/core/basic.pyx":44
 *     pass
 * 
 * from .matrix import matrix             # <<<<<<<<<<<<<<
 * from . import number
 * 
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_matrix};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_matrix, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_matrix_3, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 44, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_matrix};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 44, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 44, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":45
 * 
 * from .matrix import matrix
 * from . import number             # <<<<<<<<<<<<<<
 * 
 * # SnapPy components
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_number};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u__10, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u__30, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 45, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_number};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 45, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 45, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":48
 * 
 * # SnapPy components
 * import spherogram             # <<<<<<<<<<<<<<
 * from .manifolds import __path__ as manifold_paths
 * from . import database
*/
  __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_spherogram, 0, 0, NULL, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 48, __pyx_L1_error)
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_spherogram, __pyx_t_6) < (0)) __PYX_ERR(3, 48, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":49
 * # SnapPy components
 * import spherogram
 * from .manifolds import __path__ as manifold_paths             # <<<<<<<<<<<<<<
 * from . import database
 * from . import twister
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_path_2};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_manifolds, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_manifolds_2, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 49, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_path_2};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 49, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      switch (__pyx_t_3) {
        case 0:
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_manifold_paths, __pyx_t_5) < (0)) __PYX_ERR(3, 49, __pyx_L1_error)
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":50
 * import spherogram
 * from .manifolds import __path__ as manifold_paths
 * from . import database             # <<<<<<<<<<<<<<
 * from . import twister
 * from . import snap
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_database};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u__10, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u__30, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 50, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_database};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 50, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 50, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":51
 * from .manifolds import __path__ as manifold_paths
 * from . import database
 * from . import twister             # <<<<<<<<<<<<<<
 * from . import snap
 * from . import verify
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_twister};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u__10, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u__30, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 51, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_twister};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 51, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 51, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":52
 * from . import database
 * from . import twister
 * from . import snap             # <<<<<<<<<<<<<<
 * from . import verify
 * from .verify import complex_volume as verify_complex_volume
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_snap};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u__10, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u__30, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 52, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_snap};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 52, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 52, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":53
 * from . import twister
 * from . import snap
 * from . import verify             # <<<<<<<<<<<<<<
 * from .verify import complex_volume as verify_complex_volume
 * from .cusps import compute_cusp_shapes as cusps_compute_cusp_shapes
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_verify};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u__10, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u__30, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 53, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_verify};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 53, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 53, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":54
 * from . import snap
 * from . import verify
 * from .verify import complex_volume as verify_complex_volume             # <<<<<<<<<<<<<<
 * from .cusps import compute_cusp_shapes as cusps_compute_cusp_shapes
 * from . import decorated_isosig
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_complex_volume};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_verify, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_verify_2, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 54, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_complex_volume};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 54, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      switch (__pyx_t_3) {
        case 0:
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_verify_complex_volume, __pyx_t_5) < (0)) __PYX_ERR(3, 54, __pyx_L1_error)
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":55
 * from . import verify
 * from .verify import complex_volume as verify_complex_volume
 * from .cusps import compute_cusp_shapes as cusps_compute_cusp_shapes             # <<<<<<<<<<<<<<
 * from . import decorated_isosig
 * from .ptolemy import manifoldMethods as ptolemyManifoldMethods
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_compute_cusp_shapes};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_cusps, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_cusps_2, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 55, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_compute_cusp_shapes};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 55, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      switch (__pyx_t_3) {
        case 0:
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cusps_compute_cusp_shapes, __pyx_t_5) < (0)) __PYX_ERR(3, 55, __pyx_L1_error)
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":56
 * from .verify import complex_volume as verify_complex_volume
 * from .cusps import compute_cusp_shapes as cusps_compute_cusp_shapes
 * from . import decorated_isosig             # <<<<<<<<<<<<<<
 * from .ptolemy import manifoldMethods as ptolemyManifoldMethods
 * from .export_stl import stl
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_decorated_isosig};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u__10, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u__30, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 56, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_decorated_isosig};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 56, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 56, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":57
 * from .cusps import compute_cusp_shapes as cusps_compute_cusp_shapes
 * from . import decorated_isosig
 * from .ptolemy import manifoldMethods as ptolemyManifoldMethods             # <<<<<<<<<<<<<<
 * from .export_stl import stl
 * from .exceptions import SnapPeaFatalError
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_manifoldMethods};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_ptolemy, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_ptolemy_2, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 57, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_manifoldMethods};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 57, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      switch (__pyx_t_3) {
        case 0:
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ptolemyManifoldMethods, __pyx_t_5) < (0)) __PYX_ERR(3, 57, __pyx_L1_error)
        break;
        default:;
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":58
 * from . import decorated_isosig
 * from .ptolemy import manifoldMethods as ptolemyManifoldMethods
 * from .export_stl import stl             # <<<<<<<<<<<<<<
 * from .exceptions import SnapPeaFatalError
 * try:
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_stl};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_export_stl, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_export_stl_2, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 58, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_stl};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 58, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 58, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":59
 * from .ptolemy import manifoldMethods as ptolemyManifoldMethods
 * from .export_stl import stl
 * from .exceptions import SnapPeaFatalError             # <<<<<<<<<<<<<<
 * try:
 *     from plink import LinkEditor, LinkManager
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_SnapPeaFatalError};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_exceptions, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_exceptions_2, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 59, __pyx_L1_error)
  }
  __pyx_t_6 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_6);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_SnapPeaFatalError};
    __pyx_t_3 = 0; {
      __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 59, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 59, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":60
 * from .export_stl import stl
 * from .exceptions import SnapPeaFatalError
 * try:             # <<<<<<<<<<<<<<
 *     from plink import LinkEditor, LinkManager
 * except ImportError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_7, &__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_1);
    /*try:*/ {

      /* "cython/core/basic.pyx":61
 * from .exceptions import SnapPeaFatalError
 * try:
 *     from plink import LinkEditor, LinkManager             # <<<<<<<<<<<<<<
 * except ImportError:
 *     LinkEditor, LinkManager = None, None
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_LinkEditor,__pyx_mstate_global->__pyx_n_u_LinkManager};
        __pyx_t_11 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_plink, __pyx_imported_names, 2, NULL, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 61, __pyx_L18_error)
      }
      __pyx_t_6 = __pyx_t_11;
      __Pyx_GOTREF(__pyx_t_6);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_LinkEditor,__pyx_mstate_global->__pyx_n_u_LinkManager};
        for (__pyx_t_3=0; __pyx_t_3 < 2; __pyx_t_3++) {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 61, __pyx_L18_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 61, __pyx_L18_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/basic.pyx":60
 * from .export_stl import stl
 * from .exceptions import SnapPeaFatalError
 * try:             # <<<<<<<<<<<<<<
 *     from plink import LinkEditor, LinkManager
 * except ImportError:
*/
    }
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L23_try_end;
    __pyx_L18_error:;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/basic.pyx":62
 * try:
 *     from plink import LinkEditor, LinkManager
 * except ImportError:             # <<<<<<<<<<<<<<
 *     LinkEditor, LinkManager = None, None
 * try:
*/
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ImportError))));
    if (__pyx_t_14) {
      __Pyx_AddTraceback("SnapPy", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_2) < 0) __PYX_ERR(3, 62, __pyx_L20_except_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_2);

      /* "cython/core/basic.pyx":63
 *     from plink import LinkEditor, LinkManager
 * except ImportError:
 *     LinkEditor, LinkManager = None, None             # <<<<<<<<<<<<<<
 * try:
 *     from .gui import ViewerWindow
*/
      __pyx_t_4 = Py_None;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_13 = Py_None;
      __Pyx_INCREF(__pyx_t_13);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_LinkEditor, __pyx_t_4) < (0)) __PYX_ERR(3, 63, __pyx_L20_except_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_LinkManager, __pyx_t_13) < (0)) __PYX_ERR(3, 63, __pyx_L20_except_error)
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L19_exception_handled;
    }
    goto __pyx_L20_except_error;

    /* "cython/core/basic.pyx":60
 * from .export_stl import stl
 * from .exceptions import SnapPeaFatalError
 * try:             # <<<<<<<<<<<<<<
 *     from plink import LinkEditor, LinkManager
 * except ImportError:
*/
    __pyx_L20_except_error:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_1);
    goto __pyx_L1_error;
    __pyx_L19_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_1);
    __pyx_L23_try_end:;
  }

  /* "cython/core/basic.pyx":64
 * except ImportError:
 *     LinkEditor, LinkManager = None, None
 * try:             # <<<<<<<<<<<<<<
 *     from .gui import ViewerWindow
 * except ImportError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cython/core/basic.pyx":65
 *     LinkEditor, LinkManager = None, None
 * try:
 *     from .gui import ViewerWindow             # <<<<<<<<<<<<<<
 * except ImportError:
 *     ViewerWindow = None
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_ViewerWindow};
        __pyx_t_11 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_gui, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_gui_2, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 65, __pyx_L26_error)
      }
      __pyx_t_2 = __pyx_t_11;
      __Pyx_GOTREF(__pyx_t_2);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_ViewerWindow};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 65, __pyx_L26_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 65, __pyx_L26_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":64
 * except ImportError:
 *     LinkEditor, LinkManager = None, None
 * try:             # <<<<<<<<<<<<<<
 *     from .gui import ViewerWindow
 * except ImportError:
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L31_try_end;
    __pyx_L26_error:;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/basic.pyx":66
 * try:
 *     from .gui import ViewerWindow
 * except ImportError:             # <<<<<<<<<<<<<<
 *     ViewerWindow = None
 * try:
*/
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ImportError))));
    if (__pyx_t_14) {
      __Pyx_AddTraceback("SnapPy", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(3, 66, __pyx_L28_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);

      /* "cython/core/basic.pyx":67
 *     from .gui import ViewerWindow
 * except ImportError:
 *     ViewerWindow = None             # <<<<<<<<<<<<<<
 * try:
 *     from .polyviewer import PolyhedronViewer
*/
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ViewerWindow, Py_None) < (0)) __PYX_ERR(3, 67, __pyx_L28_except_error)
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L27_exception_handled;
    }
    goto __pyx_L28_except_error;

    /* "cython/core/basic.pyx":64
 * except ImportError:
 *     LinkEditor, LinkManager = None, None
 * try:             # <<<<<<<<<<<<<<
 *     from .gui import ViewerWindow
 * except ImportError:
*/
    __pyx_L28_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L27_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_7, __pyx_t_8);
    __pyx_L31_try_end:;
  }

  /* "cython/core/basic.pyx":68
 * except ImportError:
 *     ViewerWindow = None
 * try:             # <<<<<<<<<<<<<<
 *     from .polyviewer import PolyhedronViewer
 * except ImportError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_7, &__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_1);
    /*try:*/ {

      /* "cython/core/basic.pyx":69
 *     ViewerWindow = None
 * try:
 *     from .polyviewer import PolyhedronViewer             # <<<<<<<<<<<<<<
 * except ImportError:
 *     PolyhedronViewer = None
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_PolyhedronViewer};
        __pyx_t_11 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_polyviewer, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_polyviewer_2, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 69, __pyx_L34_error)
      }
      __pyx_t_6 = __pyx_t_11;
      __Pyx_GOTREF(__pyx_t_6);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_PolyhedronViewer};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 69, __pyx_L34_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 69, __pyx_L34_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/basic.pyx":68
 * except ImportError:
 *     ViewerWindow = None
 * try:             # <<<<<<<<<<<<<<
 *     from .polyviewer import PolyhedronViewer
 * except ImportError:
*/
    }
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L39_try_end;
    __pyx_L34_error:;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/basic.pyx":70
 * try:
 *     from .polyviewer import PolyhedronViewer
 * except ImportError:             # <<<<<<<<<<<<<<
 *     PolyhedronViewer = None
 * try:
*/
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ImportError))));
    if (__pyx_t_14) {
      __Pyx_AddTraceback("SnapPy", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_2) < 0) __PYX_ERR(3, 70, __pyx_L36_except_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_2);

      /* "cython/core/basic.pyx":71
 *     from .polyviewer import PolyhedronViewer
 * except ImportError:
 *     PolyhedronViewer = None             # <<<<<<<<<<<<<<
 * try:
 *     from .horoviewer import HoroballViewer
*/
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_PolyhedronViewer, Py_None) < (0)) __PYX_ERR(3, 71, __pyx_L36_except_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L35_exception_handled;
    }
    goto __pyx_L36_except_error;

    /* "cython/core/basic.pyx":68
 * except ImportError:
 *     ViewerWindow = None
 * try:             # <<<<<<<<<<<<<<
 *     from .polyviewer import PolyhedronViewer
 * except ImportError:
*/
    __pyx_L36_except_error:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_1);
    goto __pyx_L1_error;
    __pyx_L35_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_1);
    __pyx_L39_try_end:;
  }

  /* "cython/core/basic.pyx":72
 * except ImportError:
 *     PolyhedronViewer = None
 * try:             # <<<<<<<<<<<<<<
 *     from .horoviewer import HoroballViewer
 * except ImportError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cython/core/basic.pyx":73
 *     PolyhedronViewer = None
 * try:
 *     from .horoviewer import HoroballViewer             # <<<<<<<<<<<<<<
 * except ImportError:
 *     HoroballViewer = None
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_HoroballViewer};
        __pyx_t_11 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_horoviewer, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_horoviewer_2, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 73, __pyx_L42_error)
      }
      __pyx_t_2 = __pyx_t_11;
      __Pyx_GOTREF(__pyx_t_2);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_HoroballViewer};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 73, __pyx_L42_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 73, __pyx_L42_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":72
 * except ImportError:
 *     PolyhedronViewer = None
 * try:             # <<<<<<<<<<<<<<
 *     from .horoviewer import HoroballViewer
 * except ImportError:
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L47_try_end;
    __pyx_L42_error:;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/basic.pyx":74
 * try:
 *     from .horoviewer import HoroballViewer
 * except ImportError:             # <<<<<<<<<<<<<<
 *     HoroballViewer = None
 * try:
*/
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ImportError))));
    if (__pyx_t_14) {
      __Pyx_AddTraceback("SnapPy", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(3, 74, __pyx_L44_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);

      /* "cython/core/basic.pyx":75
 *     from .horoviewer import HoroballViewer
 * except ImportError:
 *     HoroballViewer = None             # <<<<<<<<<<<<<<
 * try:
 *     from .browser import Browser
*/
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_HoroballViewer, Py_None) < (0)) __PYX_ERR(3, 75, __pyx_L44_except_error)
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L43_exception_handled;
    }
    goto __pyx_L44_except_error;

    /* "cython/core/basic.pyx":72
 * except ImportError:
 *     PolyhedronViewer = None
 * try:             # <<<<<<<<<<<<<<
 *     from .horoviewer import HoroballViewer
 * except ImportError:
*/
    __pyx_L44_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L43_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_7, __pyx_t_8);
    __pyx_L47_try_end:;
  }

  /* "cython/core/basic.pyx":76
 * except ImportError:
 *     HoroballViewer = None
 * try:             # <<<<<<<<<<<<<<
 *     from .browser import Browser
 * except ImportError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_7, &__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_1);
    /*try:*/ {

      /* "cython/core/basic.pyx":77
 *     HoroballViewer = None
 * try:
 *     from .browser import Browser             # <<<<<<<<<<<<<<
 * except ImportError:
 *     Browser = None
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Browser};
        __pyx_t_11 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_browser, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_browser_2, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 77, __pyx_L50_error)
      }
      __pyx_t_6 = __pyx_t_11;
      __Pyx_GOTREF(__pyx_t_6);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Browser};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_6, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 77, __pyx_L50_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 77, __pyx_L50_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "cython/core/basic.pyx":76
 * except ImportError:
 *     HoroballViewer = None
 * try:             # <<<<<<<<<<<<<<
 *     from .browser import Browser
 * except ImportError:
*/
    }
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L55_try_end;
    __pyx_L50_error:;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/basic.pyx":78
 * try:
 *     from .browser import Browser
 * except ImportError:             # <<<<<<<<<<<<<<
 *     Browser = None
 * try:
*/
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ImportError))));
    if (__pyx_t_14) {
      __Pyx_AddTraceback("SnapPy", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_2) < 0) __PYX_ERR(3, 78, __pyx_L52_except_error)
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_2);

      /* "cython/core/basic.pyx":79
 *     from .browser import Browser
 * except ImportError:
 *     Browser = None             # <<<<<<<<<<<<<<
 * try:
 *     from .filedialog import asksaveasfile
*/
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Browser, Py_None) < (0)) __PYX_ERR(3, 79, __pyx_L52_except_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L51_exception_handled;
    }
    goto __pyx_L52_except_error;

    /* "cython/core/basic.pyx":76
 * except ImportError:
 *     HoroballViewer = None
 * try:             # <<<<<<<<<<<<<<
 *     from .browser import Browser
 * except ImportError:
*/
    __pyx_L52_except_error:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_1);
    goto __pyx_L1_error;
    __pyx_L51_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_1);
    __pyx_L55_try_end:;
  }

  /* "cython/core/basic.pyx":80
 * except ImportError:
 *     Browser = None
 * try:             # <<<<<<<<<<<<<<
 *     from .filedialog import asksaveasfile
 * except ImportError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_7, &__pyx_t_8);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_7);
    __Pyx_XGOTREF(__pyx_t_8);
    /*try:*/ {

      /* "cython/core/basic.pyx":81
 *     Browser = None
 * try:
 *     from .filedialog import asksaveasfile             # <<<<<<<<<<<<<<
 * except ImportError:
 *     asksaveasfile = None
*/
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_asksaveasfile};
        __pyx_t_11 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_filedialog, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_filedialog_2, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(3, 81, __pyx_L58_error)
      }
      __pyx_t_2 = __pyx_t_11;
      __Pyx_GOTREF(__pyx_t_2);
      {
        PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_asksaveasfile};
        __pyx_t_3 = 0; {
          __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 81, __pyx_L58_error)
          __Pyx_GOTREF(__pyx_t_5);
          if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(3, 81, __pyx_L58_error)
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "cython/core/basic.pyx":80
 * except ImportError:
 *     Browser = None
 * try:             # <<<<<<<<<<<<<<
 *     from .filedialog import asksaveasfile
 * except ImportError:
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    goto __pyx_L63_try_end;
    __pyx_L58_error:;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/basic.pyx":82
 * try:
 *     from .filedialog import asksaveasfile
 * except ImportError:             # <<<<<<<<<<<<<<
 *     asksaveasfile = None
 * 
*/
    __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ImportError))));
    if (__pyx_t_14) {
      __Pyx_AddTraceback("SnapPy", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(3, 82, __pyx_L60_except_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);

      /* "cython/core/basic.pyx":83
 *     from .filedialog import asksaveasfile
 * except ImportError:
 *     asksaveasfile = None             # <<<<<<<<<<<<<<
 * 
 * def valid_index(i, n, format_str):
*/
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_asksaveasfile, Py_None) < (0)) __PYX_ERR(3, 83, __pyx_L60_except_error)
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L59_exception_handled;
    }
    goto __pyx_L60_except_error;

    /* "cython/core/basic.pyx":80
 * except ImportError:
 *     Browser = None
 * try:             # <<<<<<<<<<<<<<
 *     from .filedialog import asksaveasfile
 * except ImportError:
*/
    __pyx_L60_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_7, __pyx_t_8);
    goto __pyx_L1_error;
    __pyx_L59_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_7);
    __Pyx_XGIVEREF(__pyx_t_8);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_7, __pyx_t_8);
    __pyx_L63_try_end:;
  }

  /* "cython/core/basic.pyx":85
 *     asksaveasfile = None
 * 
 * def valid_index(i, n, format_str):             # <<<<<<<<<<<<<<
 *     """
 *     Return range(n)[i] or raises a nicely formatted IndexError
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_5valid_index, 0, __pyx_mstate_global->__pyx_n_u_valid_index, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_valid_index, __pyx_t_6) < (0)) __PYX_ERR(3, 85, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":108
 * 
 * # A stream for asynchronous messages
 * class MsgIO():             # <<<<<<<<<<<<<<
 *     def __init__(self):
 *         if sys.stdout is None:
*/
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_MsgIO, __pyx_mstate_global->__pyx_n_u_MsgIO, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "cython/core/basic.pyx":109
 * # A stream for asynchronous messages
 * class MsgIO():
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         if sys.stdout is None:
 *             self.write = None
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_5MsgIO_1__init__, 0, __pyx_mstate_global->__pyx_n_u_MsgIO___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_5) < (0)) __PYX_ERR(3, 109, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":108
 * 
 * # A stream for asynchronous messages
 * class MsgIO():             # <<<<<<<<<<<<<<
 *     def __init__(self):
 *         if sys.stdout is None:
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_MsgIO, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_MsgIO, __pyx_t_5) < (0)) __PYX_ERR(3, 108, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":118
 * 
 * 
 * msg_stream = MsgIO()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_MsgIO); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_15, (1-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_msg_stream, __pyx_t_6) < (0)) __PYX_ERR(3, 118, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":121
 * 
 * 
 * def to_str(s):             # <<<<<<<<<<<<<<
 *     return s.decode()
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_7to_str, 0, __pyx_mstate_global->__pyx_n_u_to_str, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_to_str, __pyx_t_6) < (0)) __PYX_ERR(3, 121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":125
 * 
 * 
 * def bytearray_to_bytes(x):             # <<<<<<<<<<<<<<
 *     return bytes(x)
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_9bytearray_to_bytes, 0, __pyx_mstate_global->__pyx_n_u_bytearray_to_bytes, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_bytearray_to_bytes, __pyx_t_6) < (0)) __PYX_ERR(3, 125, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":129
 * 
 * 
 * def to_byte_str(s):             # <<<<<<<<<<<<<<
 *     return s.encode('utf-8') if type(s) != bytes else s
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_11to_byte_str, 0, __pyx_mstate_global->__pyx_n_u_to_byte_str, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_to_byte_str, __pyx_t_6) < (0)) __PYX_ERR(3, 129, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":134
 * 
 * # Types of covering spaces
 * cover_types = {1: "irregular", 2: "regular", 3: "cyclic"}             # <<<<<<<<<<<<<<
 * 
 * # Paths
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_n_u_irregular) < (0)) __PYX_ERR(3, 134, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_int_2, __pyx_mstate_global->__pyx_n_u_regular) < (0)) __PYX_ERR(3, 134, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_n_u_cyclic) < (0)) __PYX_ERR(3, 134, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cover_types, __pyx_t_6) < (0)) __PYX_ERR(3, 134, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":137
 * 
 * # Paths
 * manifold_path = manifold_paths[0] + os.sep             # <<<<<<<<<<<<<<
 * 
 * # Obsolete data
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_manifold_paths); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_6, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_sep); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyNumber_Add(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_manifold_path, __pyx_t_6) < (0)) __PYX_ERR(3, 137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":140
 * 
 * # Obsolete data
 * closed_census_directory = os.path.join(manifold_path, 'ClosedCensusData')             # <<<<<<<<<<<<<<
 * link_directory = os.path.join(manifold_path, 'ChristyLinks')
 * link_archive = os.path.join(manifold_path, 'ChristyLinks.tgz')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __pyx_t_13;
  __Pyx_INCREF(__pyx_t_5);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_ClosedCensusData};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_15, (3-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_closed_census_directory, __pyx_t_6) < (0)) __PYX_ERR(3, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":141
 * # Obsolete data
 * closed_census_directory = os.path.join(manifold_path, 'ClosedCensusData')
 * link_directory = os.path.join(manifold_path, 'ChristyLinks')             # <<<<<<<<<<<<<<
 * link_archive = os.path.join(manifold_path, 'ChristyLinks.tgz')
 * census_knot_archive = os.path.join(manifold_path, 'CensusKnots.tgz')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_13 = __pyx_t_5;
  __Pyx_INCREF(__pyx_t_13);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_ChristyLinks};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_15, (3-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_link_directory, __pyx_t_6) < (0)) __PYX_ERR(3, 141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":142
 * closed_census_directory = os.path.join(manifold_path, 'ClosedCensusData')
 * link_directory = os.path.join(manifold_path, 'ChristyLinks')
 * link_archive = os.path.join(manifold_path, 'ChristyLinks.tgz')             # <<<<<<<<<<<<<<
 * census_knot_archive = os.path.join(manifold_path, 'CensusKnots.tgz')
 * # Still in use
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __pyx_t_13;
  __Pyx_INCREF(__pyx_t_5);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_kp_u_ChristyLinks_tgz};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_15, (3-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_link_archive, __pyx_t_6) < (0)) __PYX_ERR(3, 142, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":143
 * link_directory = os.path.join(manifold_path, 'ChristyLinks')
 * link_archive = os.path.join(manifold_path, 'ChristyLinks.tgz')
 * census_knot_archive = os.path.join(manifold_path, 'CensusKnots.tgz')             # <<<<<<<<<<<<<<
 * # Still in use
 * table_directory = os.path.join(manifold_path, 'HTWKnots')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_13 = __pyx_t_5;
  __Pyx_INCREF(__pyx_t_13);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_t_2, __pyx_mstate_global->__pyx_kp_u_CensusKnots_tgz};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_15, (3-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 143, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_census_knot_archive, __pyx_t_6) < (0)) __PYX_ERR(3, 143, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":145
 * census_knot_archive = os.path.join(manifold_path, 'CensusKnots.tgz')
 * # Still in use
 * table_directory = os.path.join(manifold_path, 'HTWKnots')             # <<<<<<<<<<<<<<
 * morwen_link_directory = os.path.join(manifold_path, 'MTLinks')
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __pyx_t_13;
  __Pyx_INCREF(__pyx_t_5);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_HTWKnots};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_15, (3-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_table_directory, __pyx_t_6) < (0)) __PYX_ERR(3, 145, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":146
 * # Still in use
 * table_directory = os.path.join(manifold_path, 'HTWKnots')
 * morwen_link_directory = os.path.join(manifold_path, 'MTLinks')             # <<<<<<<<<<<<<<
 * 
 * # These are the gzipped files holding the knot tables.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_13 = __pyx_t_5;
  __Pyx_INCREF(__pyx_t_13);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_MTLinks};
    __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_15, (3-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_morwen_link_directory, __pyx_t_6) < (0)) __PYX_ERR(3, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":149
 * 
 * # These are the gzipped files holding the knot tables.
 * Alternating_table = gzip.open(os.path.join(table_directory, 'alternating.gz') )             # <<<<<<<<<<<<<<
 * Nonalternating_table = gzip.open(os.path.join(table_directory, 'nonalternating.gz') )
 * 
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_gzip); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_open); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_17)) __PYX_ERR(3, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_4 = __pyx_t_17;
  __Pyx_INCREF(__pyx_t_4);
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_table_directory); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_15 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_t_16, __pyx_mstate_global->__pyx_kp_u_alternating_gz};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_15, (3-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_2};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Alternating_table, __pyx_t_6) < (0)) __PYX_ERR(3, 149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":150
 * # These are the gzipped files holding the knot tables.
 * Alternating_table = gzip.open(os.path.join(table_directory, 'alternating.gz') )
 * Nonalternating_table = gzip.open(os.path.join(table_directory, 'nonalternating.gz') )             # <<<<<<<<<<<<<<
 * 
 * # This flag can be used when testing algorithms in extension
*/
  __pyx_t_13 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_gzip); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_open); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_17 = __pyx_t_4;
  __Pyx_INCREF(__pyx_t_17);
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_table_directory); if (unlikely(!__pyx_t_16)) __PYX_ERR(3, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_15 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_17, __pyx_t_16, __pyx_mstate_global->__pyx_kp_u_nonalternating_gz};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_15, (3-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_2};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Nonalternating_table, __pyx_t_6) < (0)) __PYX_ERR(3, 150, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":156
 * # extern int SnapPy_test_flag
 * 
 * cdef public int SnapPy_test_flag = 0             # <<<<<<<<<<<<<<
 * 
 * 
*/
  SnapPy_test_flag = 0;

  /* "cython/core/basic.pyx":159
 * 
 * 
 * def set_test_flag(int value):             # <<<<<<<<<<<<<<
 *     cdef int old
 *     global SnapPy_test_flag
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13set_test_flag, 0, __pyx_mstate_global->__pyx_n_u_set_test_flag, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[15])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_set_test_flag, __pyx_t_6) < (0)) __PYX_ERR(3, 159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":183
 * # If not None, this will be called in gLongComputationContinues.
 * # This enables a GUI to do updates during long computations.
 * UI_callback = None             # <<<<<<<<<<<<<<
 * 
 * 
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_UI_callback, Py_None) < (0)) __PYX_ERR(3, 183, __pyx_L1_error)

  /* "cython/core/basic.pyx":186
 * 
 * 
 * def SnapPea_interrupt():             # <<<<<<<<<<<<<<
 *     """
 *     The UI can call this to stop SnapPea.  Returns True if SnapPea s busy.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_15SnapPea_interrupt, 0, __pyx_mstate_global->__pyx_n_u_SnapPea_interrupt, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 186, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_SnapPea_interrupt, __pyx_t_6) < (0)) __PYX_ERR(3, 186, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":232
 * 
 * 
 * show_uAcknowledge = False             # <<<<<<<<<<<<<<
 * 
 * cdef public void uAcknowledge(const_char_ptr message):
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_show_uAcknowledge, Py_False) < (0)) __PYX_ERR(3, 232, __pyx_L1_error)

  /* "cython/core/basic.pyx":256
 * 
 * 
 * def cy_eval(s):             # <<<<<<<<<<<<<<
 *     return eval(s)
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17cy_eval, 0, __pyx_mstate_global->__pyx_n_u_cy_eval, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_cy_eval, __pyx_t_6) < (0)) __PYX_ERR(3, 256, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":260
 * 
 * 
 * def smith_form(M):             # <<<<<<<<<<<<<<
 *     if _within_sage:
 *         if not hasattr(M, 'elementary_divisors'):
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_19smith_form, 0, __pyx_mstate_global->__pyx_n_u_smith_form, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_smith_form, __pyx_t_6) < (0)) __PYX_ERR(3, 260, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":289
 * 
 * # Enum conversions
 * CuspTopology = ['torus cusp', 'Klein bottle cusp', 'unknown']             # <<<<<<<<<<<<<<
 * MatrixParity = ['orientation-reversing', 'orientation-preserving']
 * Orientability = ['orientable', 'nonorientable', 'unknown']
*/
  __pyx_t_6 = __Pyx_PyList_Pack(3, __pyx_mstate_global->__pyx_kp_u_torus_cusp, __pyx_mstate_global->__pyx_kp_u_Klein_bottle_cusp, __pyx_mstate_global->__pyx_n_u_unknown); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_CuspTopology, __pyx_t_6) < (0)) __PYX_ERR(3, 289, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":290
 * # Enum conversions
 * CuspTopology = ['torus cusp', 'Klein bottle cusp', 'unknown']
 * MatrixParity = ['orientation-reversing', 'orientation-preserving']             # <<<<<<<<<<<<<<
 * Orientability = ['orientable', 'nonorientable', 'unknown']
 * Orbifold1 = ['unknown', 'circle', 'mirrored arc']
*/
  __pyx_t_6 = __Pyx_PyList_Pack(2, __pyx_mstate_global->__pyx_kp_u_orientation_reversing, __pyx_mstate_global->__pyx_kp_u_orientation_preserving); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_MatrixParity, __pyx_t_6) < (0)) __PYX_ERR(3, 290, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":291
 * CuspTopology = ['torus cusp', 'Klein bottle cusp', 'unknown']
 * MatrixParity = ['orientation-reversing', 'orientation-preserving']
 * Orientability = ['orientable', 'nonorientable', 'unknown']             # <<<<<<<<<<<<<<
 * Orbifold1 = ['unknown', 'circle', 'mirrored arc']
 * FuncResult = ['func_OK', 'func_cancelled', 'func_failed', 'func_bad_input']
*/
  __pyx_t_6 = __Pyx_PyList_Pack(3, __pyx_mstate_global->__pyx_n_u_orientable, __pyx_mstate_global->__pyx_n_u_nonorientable, __pyx_mstate_global->__pyx_n_u_unknown); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Orientability, __pyx_t_6) < (0)) __PYX_ERR(3, 291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":292
 * MatrixParity = ['orientation-reversing', 'orientation-preserving']
 * Orientability = ['orientable', 'nonorientable', 'unknown']
 * Orbifold1 = ['unknown', 'circle', 'mirrored arc']             # <<<<<<<<<<<<<<
 * FuncResult = ['func_OK', 'func_cancelled', 'func_failed', 'func_bad_input']
 * SolutionType = [
*/
  __pyx_t_6 = __Pyx_PyList_Pack(3, __pyx_mstate_global->__pyx_n_u_unknown, __pyx_mstate_global->__pyx_n_u_circle, __pyx_mstate_global->__pyx_kp_u_mirrored_arc); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Orbifold1, __pyx_t_6) < (0)) __PYX_ERR(3, 292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":293
 * Orientability = ['orientable', 'nonorientable', 'unknown']
 * Orbifold1 = ['unknown', 'circle', 'mirrored arc']
 * FuncResult = ['func_OK', 'func_cancelled', 'func_failed', 'func_bad_input']             # <<<<<<<<<<<<<<
 * SolutionType = [
 *     'not attempted',
*/
  __pyx_t_6 = __Pyx_PyList_Pack(4, __pyx_mstate_global->__pyx_n_u_func_OK, __pyx_mstate_global->__pyx_n_u_func_cancelled, __pyx_mstate_global->__pyx_n_u_func_failed, __pyx_mstate_global->__pyx_n_u_func_bad_input); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_FuncResult, __pyx_t_6) < (0)) __PYX_ERR(3, 293, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":294
 * Orbifold1 = ['unknown', 'circle', 'mirrored arc']
 * FuncResult = ['func_OK', 'func_cancelled', 'func_failed', 'func_bad_input']
 * SolutionType = [             # <<<<<<<<<<<<<<
 *     'not attempted',
 *     'all tetrahedra positively oriented',
*/
  __pyx_t_6 = __Pyx_PyList_Pack(8, __pyx_mstate_global->__pyx_kp_u_not_attempted, __pyx_mstate_global->__pyx_kp_u_all_tetrahedra_positively_orient, __pyx_mstate_global->__pyx_kp_u_contains_negatively_oriented_tet, __pyx_mstate_global->__pyx_kp_u_contains_flat_tetrahedra, __pyx_mstate_global->__pyx_kp_u_contains_degenerate_tetrahedra, __pyx_mstate_global->__pyx_kp_u_unrecognized_solution_type, __pyx_mstate_global->__pyx_kp_u_no_solution_found, __pyx_mstate_global->__pyx_kp_u_tetrahedra_shapes_were_inserted); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_SolutionType, __pyx_t_6) < (0)) __PYX_ERR(3, 294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":306
 * 
 * # SnapPea memory usage
 * def check_SnapPea_memory():             # <<<<<<<<<<<<<<
 *     verify_my_malloc_usage()
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_21check_SnapPea_memory, 0, __pyx_mstate_global->__pyx_n_u_check_SnapPea_memory, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_check_SnapPea_memory, __pyx_t_6) < (0)) __PYX_ERR(3, 306, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":310
 * 
 * 
 * def set_rand_seed(seed):             # <<<<<<<<<<<<<<
 *     """
 *     Set seed of the random number generator used for choosing
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_23set_rand_seed, 0, __pyx_mstate_global->__pyx_n_u_set_rand_seed, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_set_rand_seed, __pyx_t_6) < (0)) __PYX_ERR(3, 310, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":365
 * 
 * 
 * class MatrixWithExplanations():             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):
*/
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "cython/core/basic.pyx":367
 * class MatrixWithExplanations():
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):             # <<<<<<<<<<<<<<
 * 
 *         self.matrix = mat
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_22MatrixWithExplanations_1__init__, 0, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_5) < (0)) __PYX_ERR(3, 367, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":373
 *         self.explain_columns = explain_columns
 * 
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):             # <<<<<<<<<<<<<<
 * 
 *         def format_explain_list(l):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_22MatrixWithExplanations_3__repr__, 0, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations___repr_2, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[31]);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(3, 373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":365
 * 
 * 
 * class MatrixWithExplanations():             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations, __pyx_t_5) < (0)) __PYX_ERR(3, 365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":394
 * 
 * 
 * class NeumannZagierTypeEquations(MatrixWithExplanations):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_MatrixWithExplanations); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_6, __pyx_mstate_global->__pyx_n_u_NeumannZagierTypeEquations, __pyx_mstate_global->__pyx_n_u_NeumannZagierTypeEquations, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (__pyx_t_6 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_13, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(3, 394, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":396
 * class NeumannZagierTypeEquations(MatrixWithExplanations):
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):             # <<<<<<<<<<<<<<
 *         MatrixWithExplanations.__init__(self,
 *                                         mat, explain_rows, explain_columns)
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_26NeumannZagierTypeEquations_1__init__, 0, __pyx_mstate_global->__pyx_n_u_NeumannZagierTypeEquations___ini, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_5) < (0)) __PYX_ERR(3, 396, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":400
 *                                         mat, explain_rows, explain_columns)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return MatrixWithExplanations.__repr__(self,
 *                                                "NeumannZagierTypeEquations")
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_26NeumannZagierTypeEquations_3__repr__, 0, __pyx_mstate_global->__pyx_n_u_NeumannZagierTypeEquations___rep, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(3, 400, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":394
 * 
 * 
 * class NeumannZagierTypeEquations(MatrixWithExplanations):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, mat, explain_rows, explain_columns):
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_NeumannZagierTypeEquations, __pyx_t_6, __pyx_t_13, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NeumannZagierTypeEquations, __pyx_t_5) < (0)) __PYX_ERR(3, 394, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":410
 * cdef func_real_to_obj Real2gen
 * 
 * if hasattr(pari, '_real_coerced_to_bits_prec'):  # Cypari             # <<<<<<<<<<<<<<
 *     Real2gen = Real2gen_direct
 * else:
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_pari); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_18 = __Pyx_HasAttr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_real_coerced_to_bits_prec); if (unlikely(__pyx_t_18 == ((int)-1))) __PYX_ERR(3, 410, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__pyx_t_18) {

    /* "cython/core/basic.pyx":411
 * 
 * if hasattr(pari, '_real_coerced_to_bits_prec'):  # Cypari
 *     Real2gen = Real2gen_direct             # <<<<<<<<<<<<<<
 * else:
 *     Real2gen = Real2gen_string
*/
    __pyx_v_6SnapPy_Real2gen = __pyx_f_6SnapPy_Real2gen_direct;

    /* "cython/core/basic.pyx":410
 * cdef func_real_to_obj Real2gen
 * 
 * if hasattr(pari, '_real_coerced_to_bits_prec'):  # Cypari             # <<<<<<<<<<<<<<
 *     Real2gen = Real2gen_direct
 * else:
*/
    goto __pyx_L66;
  }

  /* "cython/core/basic.pyx":413
 *     Real2gen = Real2gen_direct
 * else:
 *     Real2gen = Real2gen_string             # <<<<<<<<<<<<<<
 * 
 * cdef Complex2gen(Complex C):
*/
  /*else*/ {
    __pyx_v_6SnapPy_Real2gen = __pyx_f_6SnapPy_Real2gen_string;
  }
  __pyx_L66:;

  /* "cython/core/basic.pyx":497
 * 
 * 
 * class Info(dict):             # <<<<<<<<<<<<<<
 *     """
 *     Immutable dictionary whose data can be accessed either as
*/
  __pyx_t_6 = PyTuple_Pack(1, ((PyObject *)(&PyDict_Type))); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_13, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_Info, __pyx_mstate_global->__pyx_n_u_Info, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Immutable_dictionary_whose_data); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(3, 497, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":503
 *     Initialize with keyword arguments, or **dict.
 *     """
 *     def __init__(self, **kwargs):             # <<<<<<<<<<<<<<
 *         # Hack to support obsolete keys
 *         content = dict(kwargs)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_4Info_1__init__, 0, __pyx_mstate_global->__pyx_n_u_Info___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_6) < (0)) __PYX_ERR(3, 503, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":514
 *         self.__dict__.update(kwargs)
 * 
 *     def _immutable(self, *args):             # <<<<<<<<<<<<<<
 *         raise AttributeError('Info objects are immutable.')
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_4Info_3_immutable, 0, __pyx_mstate_global->__pyx_n_u_Info__immutable, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_immutable, __pyx_t_6) < (0)) __PYX_ERR(3, 514, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":517
 *         raise AttributeError('Info objects are immutable.')
 * 
 *     def keys(self):             # <<<<<<<<<<<<<<
 *         return self.__dict__.keys()
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_4Info_5keys, 0, __pyx_mstate_global->__pyx_n_u_Info_keys, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[27])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_keys, __pyx_t_6) < (0)) __PYX_ERR(3, 517, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":520
 *         return self.__dict__.keys()
 * 
 *     __setattr__ = __delattr__ = __setitem__ = __delitem__ = _immutable             # <<<<<<<<<<<<<<
 *     pop = popitem = clear = update = _immutable
 *     _obsolete = {}
*/
  __pyx_t_6 = PyObject_GetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_immutable);
  if (unlikely(!__pyx_t_6)) {
    PyErr_Clear();
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_immutable);
  }
  if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_setattr, __pyx_t_6) < (0)) __PYX_ERR(3, 520, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_delattr, __pyx_t_6) < (0)) __PYX_ERR(3, 520, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_setitem, __pyx_t_6) < (0)) __PYX_ERR(3, 520, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_delitem, __pyx_t_6) < (0)) __PYX_ERR(3, 520, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":521
 * 
 *     __setattr__ = __delattr__ = __setitem__ = __delitem__ = _immutable
 *     pop = popitem = clear = update = _immutable             # <<<<<<<<<<<<<<
 *     _obsolete = {}
 * 
*/
  __pyx_t_6 = PyObject_GetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_immutable);
  if (unlikely(!__pyx_t_6)) {
    PyErr_Clear();
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_immutable);
  }
  if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_pop, __pyx_t_6) < (0)) __PYX_ERR(3, 521, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_popitem, __pyx_t_6) < (0)) __PYX_ERR(3, 521, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_clear, __pyx_t_6) < (0)) __PYX_ERR(3, 521, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_update, __pyx_t_6) < (0)) __PYX_ERR(3, 521, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":522
 *     __setattr__ = __delattr__ = __setitem__ = __delitem__ = _immutable
 *     pop = popitem = clear = update = _immutable
 *     _obsolete = {}             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_obsolete, __pyx_t_6) < (0)) __PYX_ERR(3, 522, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":497
 * 
 * 
 * class Info(dict):             # <<<<<<<<<<<<<<
 *     """
 *     Immutable dictionary whose data can be accessed either as
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_Info, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Info, __pyx_t_6) < (0)) __PYX_ERR(3, 497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":525
 * 
 * 
 * class CuspInfo(Info):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self.is_complete:
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Info); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_CuspInfo, __pyx_mstate_global->__pyx_n_u_CuspInfo, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_13) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_13) < 0))) __PYX_ERR(3, 525, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":526
 * 
 * class CuspInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if self.is_complete:
 *             if 'shape' in self:
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8CuspInfo_1__repr__, 0, __pyx_mstate_global->__pyx_n_u_CuspInfo___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[28])); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_13) < (0)) __PYX_ERR(3, 526, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":537
 *             return ('Cusp %-2d: %s with Dehn filling coefficients (M, L) = %s'%
 *                     (self.index, self.topology, self.filling) )
 *     _obsolete = {'complete?'          : 'is_complete',             # <<<<<<<<<<<<<<
 *                  'holonomy precision' : 'holonomy_accuracy',
 *                  'shape precision'    : 'shape_accuracy'}
*/
  __pyx_t_13 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_complete_3, __pyx_mstate_global->__pyx_n_u_is_complete) < (0)) __PYX_ERR(3, 537, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_holonomy_precision, __pyx_mstate_global->__pyx_n_u_holonomy_accuracy) < (0)) __PYX_ERR(3, 537, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_shape_precision, __pyx_mstate_global->__pyx_n_u_shape_accuracy) < (0)) __PYX_ERR(3, 537, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_obsolete, __pyx_t_13) < (0)) __PYX_ERR(3, 537, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":525
 * 
 * 
 * class CuspInfo(Info):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if self.is_complete:
*/
  __pyx_t_13 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_CuspInfo, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_CuspInfo, __pyx_t_13) < (0)) __PYX_ERR(3, 525, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":542
 * 
 * 
 * class DualCurveInfo(Info):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         return ('%3d: %s curve of length %s'%
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Info); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_13 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_DualCurveInfo, __pyx_mstate_global->__pyx_n_u_DualCurveInfo, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (__pyx_t_2 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_13, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(3, 542, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":543
 * 
 * class DualCurveInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ('%3d: %s curve of length %s'%
 *                 (self.index, MatrixParity[self.parity], self.filled_length))
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13DualCurveInfo_1__repr__, 0, __pyx_mstate_global->__pyx_n_u_DualCurveInfo___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(3, 543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":546
 *         return ('%3d: %s curve of length %s'%
 *                 (self.index, MatrixParity[self.parity], self.filled_length))
 *     _obsolete = {'complete length' : 'complete_length',             # <<<<<<<<<<<<<<
 *                  'filled length' : 'filled_length'}
 * 
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_complete_length_2, __pyx_mstate_global->__pyx_n_u_complete_length) < (0)) __PYX_ERR(3, 546, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_filled_length_2, __pyx_mstate_global->__pyx_n_u_filled_length) < (0)) __PYX_ERR(3, 546, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_obsolete, __pyx_t_5) < (0)) __PYX_ERR(3, 546, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":542
 * 
 * 
 * class DualCurveInfo(Info):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         return ('%3d: %s curve of length %s'%
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_DualCurveInfo, __pyx_t_2, __pyx_t_13, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_DualCurveInfo, __pyx_t_5) < (0)) __PYX_ERR(3, 542, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":550
 * 
 * 
 * def _StrLongestLen(l):             # <<<<<<<<<<<<<<
 *     return str(max(len(e) for e in l))
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_25_StrLongestLen, 0, __pyx_mstate_global->__pyx_n_u_StrLongestLen, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_StrLongestLen, __pyx_t_2) < (0)) __PYX_ERR(3, 550, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":557
 *     '%-4s '                                   # Multiplicity
 *     '%-40s '                                  # Length
 *     '%-' + _StrLongestLen(Orbifold1) + 's ')  # Topology             # <<<<<<<<<<<<<<
 * 
 * LengthSpectrumFormatString = (
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_StrLongestLen); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Orbifold1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 557, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_13 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u_4s_40s, __pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Add(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_s_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatStringBase, __pyx_t_2) < (0)) __PYX_ERR(3, 554, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":560
 * 
 * LengthSpectrumFormatString = (
 *     LengthSpectrumFormatStringBase +             # <<<<<<<<<<<<<<
 *     '%s')                                     # Parity
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatStringBase); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = PyNumber_Add(__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_s_4); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatString, __pyx_t_13) < (0)) __PYX_ERR(3, 559, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":564
 * 
 * LengthSpectrumFormatStringWithWord = (
 *     LengthSpectrumFormatStringBase +             # <<<<<<<<<<<<<<
 *     '%-6s '                                   # Parity
 *     '%s')                                     # Word
*/
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatStringBase); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_2 = PyNumber_Add(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_6s_s); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_LengthSpectrumFormatStringWithWo, __pyx_t_2) < (0)) __PYX_ERR(3, 563, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":568
 *     '%s')                                     # Word
 * 
 * ShortMatrixParity = { MatrixParity[0] : '-', MatrixParity[1] : '+' }             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_MatrixParity); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_13, 0, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__22) < (0)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_MatrixParity); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_13 = __Pyx_GetItemInt(__pyx_t_5, 1, long, 1, __Pyx_PyLong_From_long, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_13, __pyx_mstate_global->__pyx_kp_u__23) < (0)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ShortMatrixParity, __pyx_t_2) < (0)) __PYX_ERR(3, 568, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":571
 * 
 * 
 * class LengthSpectrumInfo(Info):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         lenStr = "%17.14f" % self.length.real()
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Info); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_LengthSpectrumInfo, __pyx_mstate_global->__pyx_n_u_LengthSpectrumInfo, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_13) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_13) < 0))) __PYX_ERR(3, 571, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":572
 * 
 * class LengthSpectrumInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         lenStr = "%17.14f" % self.length.real()
 *         absImag = abs(self.length.imag())
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18LengthSpectrumInfo_1__repr__, 0, __pyx_mstate_global->__pyx_n_u_LengthSpectrumInfo___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[31])); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_13) < (0)) __PYX_ERR(3, 572, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":571
 * 
 * 
 * class LengthSpectrumInfo(Info):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         lenStr = "%17.14f" % self.length.real()
*/
  __pyx_t_13 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_LengthSpectrumInfo, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_LengthSpectrumInfo, __pyx_t_13) < (0)) __PYX_ERR(3, 571, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":597
 * 
 * 
 * class ShapeInfo(Info):             # <<<<<<<<<<<<<<
 *     _obsolete = {'precision' : 'accuracies'}
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Info); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_13 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_ShapeInfo, __pyx_mstate_global->__pyx_n_u_ShapeInfo, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (__pyx_t_2 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_13, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(3, 597, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":598
 * 
 * class ShapeInfo(Info):
 *     _obsolete = {'precision' : 'accuracies'}             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_precision_2, __pyx_mstate_global->__pyx_n_u_accuracies) < (0)) __PYX_ERR(3, 598, __pyx_L1_error)
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_obsolete, __pyx_t_5) < (0)) __PYX_ERR(3, 598, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":600
 *     _obsolete = {'precision' : 'accuracies'}
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(self.__dict__)
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_9ShapeInfo_1__repr__, 0, __pyx_mstate_global->__pyx_n_u_ShapeInfo___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[32])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(3, 600, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":597
 * 
 * 
 * class ShapeInfo(Info):             # <<<<<<<<<<<<<<
 *     _obsolete = {'precision' : 'accuracies'}
 * 
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ShapeInfo, __pyx_t_2, __pyx_t_13, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ShapeInfo, __pyx_t_5) < (0)) __PYX_ERR(3, 597, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":604
 * 
 * 
 * class NormalSurfaceInfo(Info):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         orient = 'Orientable' if self.orientable else 'Non-orientable'
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Info); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_13, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_NormalSurfaceInfo, __pyx_mstate_global->__pyx_n_u_NormalSurfaceInfo, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(3, 604, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":605
 * 
 * class NormalSurfaceInfo(Info):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         orient = 'Orientable' if self.orientable else 'Non-orientable'
 *         sided = 'two-sided' if self.two_sided else 'one-sided'
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17NormalSurfaceInfo_1__repr__, 0, __pyx_mstate_global->__pyx_n_u_NormalSurfaceInfo___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[33])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_6) < (0)) __PYX_ERR(3, 605, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":604
 * 
 * 
 * class NormalSurfaceInfo(Info):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         orient = 'Orientable' if self.orientable else 'Non-orientable'
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_NormalSurfaceInfo, __pyx_t_2, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NormalSurfaceInfo, __pyx_t_6) < (0)) __PYX_ERR(3, 604, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":611
 * 
 * 
 * class LengthSpectrum(list):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if len(self) > 0 and 'word' in self[0]:
*/
  __pyx_t_2 = PyTuple_Pack(1, ((PyObject *)(&PyList_Type))); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_13); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_13, __pyx_mstate_global->__pyx_n_u_LengthSpectrum, __pyx_mstate_global->__pyx_n_u_LengthSpectrum, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_13 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(3, 611, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":612
 * 
 * class LengthSpectrum(list):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         if len(self) > 0 and 'word' in self[0]:
 *             base = LengthSpectrumFormatStringWithWord % (
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14LengthSpectrum_1__repr__, 0, __pyx_mstate_global->__pyx_n_u_LengthSpectrum___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[34])); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_2) < (0)) __PYX_ERR(3, 612, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/basic.pyx":611
 * 
 * 
 * class LengthSpectrum(list):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         if len(self) > 0 and 'word' in self[0]:
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_LengthSpectrum, __pyx_t_13, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_LengthSpectrum, __pyx_t_2) < (0)) __PYX_ERR(3, 611, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":622
 * 
 * 
 * class ListOnePerLine(list):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         return '[' + ',\n '.join([repr(s) for s in self]) + ']'
*/
  __pyx_t_13 = PyTuple_Pack(1, ((PyObject *)(&PyList_Type))); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_13); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_ListOnePerLine, __pyx_mstate_global->__pyx_n_u_ListOnePerLine, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_5 != __pyx_t_13) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_13) < 0))) __PYX_ERR(3, 622, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":623
 * 
 * class ListOnePerLine(list):
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '[' + ',\n '.join([repr(s) for s in self]) + ']'
 * 
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14ListOnePerLine_1__repr__, 0, __pyx_mstate_global->__pyx_n_u_ListOnePerLine___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_13) < (0)) __PYX_ERR(3, 623, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/basic.pyx":622
 * 
 * 
 * class ListOnePerLine(list):             # <<<<<<<<<<<<<<
 *     def __repr__(self):
 *         return '[' + ',\n '.join([repr(s) for s in self]) + ']'
*/
  __pyx_t_13 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ListOnePerLine, __pyx_t_5, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_13)) __PYX_ERR(3, 622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ListOnePerLine, __pyx_t_13) < (0)) __PYX_ERR(3, 622, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":629
 * # Isometry
 * 
 * def format_two_by_two(mat):             # <<<<<<<<<<<<<<
 *     a,b,c,d = ['%d' % x for x in [mat[0,0], mat[0,1], mat[1,0], mat[1,1]]]
 *     w0 = max(len(a), len(c))
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_27format_two_by_two, 0, __pyx_mstate_global->__pyx_n_u_format_two_by_two, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_format_two_by_two, __pyx_t_5) < (0)) __PYX_ERR(3, 629, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":637
 * 
 * 
 * class Isometry():             # <<<<<<<<<<<<<<
 *     """
 *     Represents an isometry from one manifold to another.
*/
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_Isometry, __pyx_mstate_global->__pyx_n_u_Isometry, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Represents_an_isometry_from_one); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "cython/core/basic.pyx":641
 *     Represents an isometry from one manifold to another.
 *     """
 *     def __init__(self, cusp_images, cusp_maps, extends_to_link):             # <<<<<<<<<<<<<<
 *         self._cusp_images, self._cusp_maps = cusp_images, cusp_maps
 *         self._extends_to_link = extends_to_link
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Isometry_1__init__, 0, __pyx_mstate_global->__pyx_n_u_Isometry___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_6) < (0)) __PYX_ERR(3, 641, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":645
 *         self._extends_to_link = extends_to_link
 * 
 *     def cusp_images(self):             # <<<<<<<<<<<<<<
 *         return self._cusp_images
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Isometry_3cusp_images, 0, __pyx_mstate_global->__pyx_n_u_Isometry_cusp_images, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[38])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_cusp_images, __pyx_t_6) < (0)) __PYX_ERR(3, 645, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":648
 *         return self._cusp_images
 * 
 *     def cusp_maps(self):             # <<<<<<<<<<<<<<
 *         return self._cusp_maps
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Isometry_5cusp_maps, 0, __pyx_mstate_global->__pyx_n_u_Isometry_cusp_maps, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[39])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_cusp_maps, __pyx_t_6) < (0)) __PYX_ERR(3, 648, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":651
 *         return self._cusp_maps
 * 
 *     def extends_to_link(self):             # <<<<<<<<<<<<<<
 *         return self._extends_to_link
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Isometry_7extends_to_link, 0, __pyx_mstate_global->__pyx_n_u_Isometry_extends_to_link, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[40])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 651, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_extends_to_link, __pyx_t_6) < (0)) __PYX_ERR(3, 651, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":654
 *         return self._extends_to_link
 * 
 *     def num_cusps(self):             # <<<<<<<<<<<<<<
 *         return len(self.cusp_images())
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Isometry_9num_cusps, 0, __pyx_mstate_global->__pyx_n_u_Isometry_num_cusps, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[41])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_t_6) < (0)) __PYX_ERR(3, 654, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":657
 *         return len(self.cusp_images())
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         images = self.cusp_images()
 *         maps = self.cusp_maps()
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Isometry_11__repr__, 0, __pyx_mstate_global->__pyx_n_u_Isometry___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[42])); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_6) < (0)) __PYX_ERR(3, 657, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/basic.pyx":637
 * 
 * 
 * class Isometry():             # <<<<<<<<<<<<<<
 *     """
 *     Represents an isometry from one manifold to another.
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_Isometry, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Isometry, __pyx_t_6) < (0)) __PYX_ERR(3, 637, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":697
 * # PLink communication
 * 
 * def _plink_callback(LE):             # <<<<<<<<<<<<<<
 *     cdef Manifold manifold
 *     cdef c_Triangulation* c_triangulation = NULL
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_29_plink_callback, 0, __pyx_mstate_global->__pyx_n_u_plink_callback_2, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[43])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_plink_callback_2, __pyx_t_5) < (0)) __PYX_ERR(3, 697, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":723
 * # Conversion functions Manifold <-> Triangulation
 * 
 * def Manifold_from_Triangulation(Triangulation T, recompute=True,             # <<<<<<<<<<<<<<
 *                                 manifold_class=None):
 *     cdef c_Triangulation *c_triangulation
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_31Manifold_from_Triangulation, 0, __pyx_mstate_global->__pyx_n_u_Manifold_from_Triangulation, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[44])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[32]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Manifold_from_Triangulation, __pyx_t_5) < (0)) __PYX_ERR(3, 723, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/basic.pyx":749
 * 
 * 
 * def Triangulation_from_Manifold(Manifold M):             # <<<<<<<<<<<<<<
 *     cdef c_Triangulation *c_triangulation
 *     cdef Triangulation T
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_33Triangulation_from_Manifold, 0, __pyx_mstate_global->__pyx_n_u_Triangulation_from_Manifold, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[45])); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Triangulation_from_Manifold, __pyx_t_5) < (0)) __PYX_ERR(3, 749, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1
 * from .cache import SnapPyCache             # <<<<<<<<<<<<<<
 * import low_index
 * 
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_SnapPyCache};
    __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_cache, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_cache_2, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 1, __pyx_L1_error)
  }
  __pyx_t_5 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_5);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_SnapPyCache};
    __pyx_t_3 = 0; {
      __pyx_t_6 = __Pyx_ImportFrom(__pyx_t_5, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_6) < (0)) __PYX_ERR(4, 1, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2
 * from .cache import SnapPyCache
 * import low_index             # <<<<<<<<<<<<<<
 * 
 * cdef class Triangulation():
*/
  __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_low_index, 0, 0, NULL, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 2, __pyx_L1_error)
  __pyx_t_5 = __pyx_t_8;
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_low_index, __pyx_t_5) < (0)) __PYX_ERR(4, 2, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":279
 *         free_LR_factorization(gluing)
 * 
 *     def _get_from_link_data(self, data, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_3_get_from_link_data, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__get_from_link_dat, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[46])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[33]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_get_from_link_data, __pyx_t_5) < (0)) __PYX_ERR(4, 279, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":314
 *                 self._remove_finite_vertices()
 * 
 *     def _remove_finite_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Removing any finite vertices by simplification and drilling.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_5_remove_finite_vertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__remove_finite_ver, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[47])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_remove_finite_vertices_2, __pyx_t_5) < (0)) __PYX_ERR(4, 314, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":334
 *                 count_cusps(self.c_triangulation)
 * 
 *     def cover_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         If this is a manifold or triangulation which was constructed as
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_7cover_info, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_cover_info, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[48])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_cover_info, __pyx_t_5) < (0)) __PYX_ERR(4, 334, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":343
 *             return dict(self._cover_info)
 * 
 *     def plink(self):             # <<<<<<<<<<<<<<
 *         """
 *         Brings up a link editor window if the manifold is stored
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_9plink, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_plink, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[49])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_plink, __pyx_t_5) < (0)) __PYX_ERR(4, 343, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":369
 *             raise ValueError('No associated link known.')
 * 
 *     def link(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the manifold is stored as a link complement in your
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_11link, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_link, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[50])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_link, __pyx_t_5) < (0)) __PYX_ERR(4, 369, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":387
 *         self.c_triangulation = c_triangulation
 * 
 *     def num_cusps(self, cusp_type='all') -> int:             # <<<<<<<<<<<<<<
 *         """
 *         Return the total number of cusps.  By giving the optional argument
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(4, 387, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_13num_cusps, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_num_cusps, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[51])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[34]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_t_6) < (0)) __PYX_ERR(4, 387, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":406
 *                              "['all', 'orientable', 'nonorientable'].")
 * 
 *     def _num_fake_cusps(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the number of "fake" cusps, which is typically the number
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_15_num_fake_cusps, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__num_fake_cusps, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[52])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_num_fake_cusps, __pyx_t_6) < (0)) __PYX_ERR(4, 406, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":422
 *         return get_num_fake_cusps(self.c_triangulation)
 * 
 *     def orientation_cover(self):             # <<<<<<<<<<<<<<
 *         """
 *         For a non-orientable Triangulation, returns the 2-fold cover which
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_17orientation_cover, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_orientation_cover, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[53])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_orientation_cover, __pyx_t_6) < (0)) __PYX_ERR(4, 422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":451
 *         return new_tri
 * 
 *     def is_orientable(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the underlying 3-manifold is orientable.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 451, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_19is_orientable, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_is_orientable, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[54])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_is_orientable, __pyx_t_5) < (0)) __PYX_ERR(4, 451, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":466
 *         return None
 * 
 *     def copy(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a copy of the triangulation.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_21copy, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_copy, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[55])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_copy, __pyx_t_5) < (0)) __PYX_ERR(4, 466, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":483
 *         return new_tri
 * 
 *     def randomize(self, blowup_multiple=4, passes_at_fours=6):             # <<<<<<<<<<<<<<
 *         """
 *         Perform random Pachner moves on the underlying triangulation,
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_23randomize, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_randomize, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[56])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[35]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_randomize, __pyx_t_5) < (0)) __PYX_ERR(4, 483, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":497
 *         self._cache.clear(message='randomize')
 * 
 *     def simplify(self, passes_at_fours=6):             # <<<<<<<<<<<<<<
 *         """
 *         Try to simplify the triangulation by doing Pachner moves.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_25simplify, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_simplify, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[57])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[36]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_simplify, __pyx_t_5) < (0)) __PYX_ERR(4, 497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":528
 *         self._cache.clear(message='simplify')
 * 
 *     def _two_to_three(self, tet_num, face_index):             # <<<<<<<<<<<<<<
 *         """
 *         Performs a 2-3 move which removes a given face.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_27_two_to_three, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__two_to_three, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[58])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_two_to_three, __pyx_t_5) < (0)) __PYX_ERR(4, 528, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":563
 *         return result
 * 
 *     def _three_to_two(self, tet_num, edge_index):             # <<<<<<<<<<<<<<
 *         r"""
 *         Perform a 3-2 move which removes a given 3-valent edge.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_29_three_to_two, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__three_to_two, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[59])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_three_to_two, __pyx_t_5) < (0)) __PYX_ERR(4, 563, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":614
 *         return result
 * 
 *     def with_hyperbolic_structure(self):             # <<<<<<<<<<<<<<
 *         """
 *         Add a (possibly degenerate) hyperbolic structure, turning the
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_31with_hyperbolic_structure, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_with_hyperbolic_st, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[60])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_with_hyperbolic_structure, __pyx_t_5) < (0)) __PYX_ERR(4, 614, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":626
 *         return Manifold_from_Triangulation(self)
 * 
 *     def _polish_hyperbolic_structures(self):             # <<<<<<<<<<<<<<
 *         """
 *         This function does nothing for Triangulation. It is overloaded in
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_33_polish_hyperbolic_structures, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__polish_hyperbolic, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[61])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_polish_hyperbolic_structures, __pyx_t_5) < (0)) __PYX_ERR(4, 626, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":633
 *         pass
 * 
 *     def _empty_save(self):             # <<<<<<<<<<<<<<
 *         """
 *         Called by save when no file name is specified, so that in
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_35_empty_save, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__empty_save, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[62])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_empty_save, __pyx_t_5) < (0)) __PYX_ERR(4, 633, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":653
 *         raise ValueError('Please specify a file name.')
 * 
 *     def save(self, file_name=None):             # <<<<<<<<<<<<<<
 *         """
 *         Save the triangulation as a SnapPea triangulation file.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_37save, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_save, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[63])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[37]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_save, __pyx_t_5) < (0)) __PYX_ERR(4, 653, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":677
 *             write_triangulation(self.c_triangulation, b_file_name)
 * 
 *     def _to_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a string containing the contents of a SnapPea triangulation
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_39_to_string, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__to_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[64])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_to_string, __pyx_t_5) < (0)) __PYX_ERR(4, 677, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":699
 *             return to_str(result)
 * 
 *     def _from_string(self, string, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_41_from_string, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__from_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[65])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[33]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_from_string, __pyx_t_5) < (0)) __PYX_ERR(4, 699, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":723
 *             self._remove_finite_vertices()
 * 
 *     def _to_bytes(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a reasonably short byte sequence which encodes the
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_43_to_bytes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__to_bytes, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[66])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_to_bytes, __pyx_t_5) < (0)) __PYX_ERR(4, 723, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":761
 *         return bytearray_to_bytes(byteseq)
 * 
 *     def _from_bytes(self, bytestring, *args):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty triangulation from a byte sequence generated by
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_45_from_bytes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__from_bytes, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[67])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_from_bytes, __pyx_t_5) < (0)) __PYX_ERR(4, 761, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":780
 *         self.set_c_triangulation(c_triangulation)
 * 
 *     def _from_pickle(self, bytestring, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         """
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_47_from_pickle, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__from_pickle, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[68])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[33]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_from_pickle, __pyx_t_5) < (0)) __PYX_ERR(4, 780, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":791
 *             self._remove_finite_vertices()
 * 
 *     def _from_tetrahedra_gluing_data(self, tetrahedra_data,             # <<<<<<<<<<<<<<
 *                                      num_or_cusps=0,
 *                                      num_nonor_cusps=0,
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_49_from_tetrahedra_gluing_data, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__from_tetrahedra_g, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[69])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[38]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_from_tetrahedra_gluing_data, __pyx_t_5) < (0)) __PYX_ERR(4, 791, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":845
 *             self._remove_finite_vertices()
 * 
 *     def _from_isosig(self, isosig, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_51_from_isosig, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__from_isosig, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[70])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[33]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_from_isosig, __pyx_t_5) < (0)) __PYX_ERR(4, 845, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":888
 * 
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Used by pickle.dumps.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_53__reduce__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation___reduce, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[71])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_reduce, __pyx_t_5) < (0)) __PYX_ERR(4, 888, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":923
 *         return (self.__class__, (self.pickle(),))
 * 
 *     def pickle(self):             # <<<<<<<<<<<<<<
 *         try:
 *             return pickle_triangulation(self.c_triangulation)
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_55pickle, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_pickle, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[72])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_pickle_2, __pyx_t_5) < (0)) __PYX_ERR(4, 923, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":932
 *             return self._to_string()
 * 
 *     def _reindex_cusps(self, permutation):             # <<<<<<<<<<<<<<
 *         """
 *         >>> import itertools
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_57_reindex_cusps, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__reindex_cusps, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[73])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_reindex_cusps, __pyx_t_5) < (0)) __PYX_ERR(4, 932, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":958
 *         free(indices)
 * 
 *     def _get_cusp_indices_and_peripheral_curve_data(self):             # <<<<<<<<<<<<<<
 *         cdef int i, j, k, v, f
 *         cdef TriangulationData* data
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_59_get_cusp_indices_and_peripheral_curve_data, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__get_cusp_indices, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[74])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_get_cusp_indices_and_peripheral, __pyx_t_5) < (0)) __PYX_ERR(4, 958, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":980
 *         return (result_cusp_indices, result_curves)
 * 
 *     def _get_tetrahedra_gluing_data(self):             # <<<<<<<<<<<<<<
 *         cdef int i, j, k
 *         cdef TriangulationData* data
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_61_get_tetrahedra_gluing_data, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__get_tetrahedra_gl, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[75])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_get_tetrahedra_gluing_data, __pyx_t_5) < (0)) __PYX_ERR(4, 980, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":995
 *         return result
 * 
 *     def _isomorphisms_to(self, Triangulation other not None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a complete list of combinatorial isomorphisms between
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_63_isomorphisms_to, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__isomorphisms_to, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[76])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_isomorphisms_to, __pyx_t_5) < (0)) __PYX_ERR(4, 995, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1033
 *         return result
 * 
 *     def isomorphisms_to(self, Triangulation other not None):             # <<<<<<<<<<<<<<
 *         """
 *         This is only here to make the tests that use SnapPy.Triangulation work.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_65isomorphisms_to, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_isomorphisms_to, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[77])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_isomorphisms_to_2, __pyx_t_5) < (0)) __PYX_ERR(4, 1033, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1081
 *             return repr
 * 
 *     def name(self) -> str:             # <<<<<<<<<<<<<<
 *         """
 *         Return the name of the triangulation.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(4, 1081, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_73name, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_name, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[78])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_name, __pyx_t_6) < (0)) __PYX_ERR(4, 1081, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1093
 *         return to_str(get_triangulation_name(self.c_triangulation))
 * 
 *     def set_name(self, new_name : str) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Give the triangulation a new name.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_new_name, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(4, 1093, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_None) < (0)) __PYX_ERR(4, 1093, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_75set_name, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_set_name, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[79])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_set_name_2, __pyx_t_5) < (0)) __PYX_ERR(4, 1093, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1108
 *         set_triangulation_name(self.c_triangulation, c_new_name)
 * 
 *     def DT_code(self, alpha=False, flips=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the Dowker-Thistlethwaite code of this link complement,
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_77DT_code, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_DT_code, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[80])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[39]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_DT_code, __pyx_t_5) < (0)) __PYX_ERR(4, 1108, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1140
 *                 return codec.code
 * 
 *     def _set_DTcode(self, code, lazy=True):             # <<<<<<<<<<<<<<
 *         if not lazy and not isinstance(code, spherogram.DTcodec):
 *             code = spherogram.DTcodec(code)
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_79_set_DTcode, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__set_DTcode, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[81])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[33]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_set_DTcode, __pyx_t_5) < (0)) __PYX_ERR(4, 1140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1145
 *         self._DTcode = code
 * 
 *     def _set_PDcode(self, code):             # <<<<<<<<<<<<<<
 *         self._PDcode = code
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_81_set_PDcode, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__set_PDcode, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[82])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_set_PDcode, __pyx_t_5) < (0)) __PYX_ERR(4, 1145, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1148
 *         self._PDcode = code
 * 
 *     def num_tetrahedra(self) -> int:             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of tetrahedra in the triangulation.
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_int) < (0)) __PYX_ERR(4, 1148, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_83num_tetrahedra, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_num_tetrahedra, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[83])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_num_tetrahedra, __pyx_t_6) < (0)) __PYX_ERR(4, 1148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1160
 *         return get_num_tetrahedra(self.c_triangulation)
 * 
 *     def dehn_fill(self, filling_data, which_cusp=None) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Set the Dehn filling coefficients of the cusps.  This can be
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_None) < (0)) __PYX_ERR(4, 1160, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_85dehn_fill, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_dehn_fill, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[84])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[37]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_t_5) < (0)) __PYX_ERR(4, 1160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1230
 *     # When doctesting, the M,L coefficients acquire an accuracy of 8.
 *     # So we have to include the zeros in the doctest string.
 *     def cusp_info(self, data_spec=None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an info object containing information about the given
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_87cusp_info, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_cusp_info, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[85])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[37]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_t_5) < (0)) __PYX_ERR(4, 1230, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1286
 *         return CuspInfo(**info)
 * 
 *     def reverse_orientation(self) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Reverses the orientation of the Triangulation, presuming that
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_None) < (0)) __PYX_ERR(4, 1286, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_89reverse_orientation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_reverse_orientatio, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[86])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_reverse_orientation, __pyx_t_6) < (0)) __PYX_ERR(4, 1286, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":1303
 *         self._cache.clear(message='reverse_orientation')
 * 
 *     def filled_triangulation(             # <<<<<<<<<<<<<<
 *             self, cusps_to_fill='all') -> 'snappy.Triangulation':
 *         """
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 1303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_snappy_Triangulation) < (0)) __PYX_ERR(4, 1303, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_91filled_triangulation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_filled_triangulati, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[87])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[34]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_filled_triangulation, __pyx_t_5) < (0)) __PYX_ERR(4, 1303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1353
 *         return filled_tri
 * 
 *     def _unsimplified_filled_triangulation(self, method='fold'):             # <<<<<<<<<<<<<<
 *         """
 *         For a Triangulation that describes a closed manifold, returns
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_93_unsimplified_filled_triangulation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__unsimplified_fill, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[88])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[40]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_unsimplified_filled_triangulati_2, __pyx_t_5) < (0)) __PYX_ERR(4, 1353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1425
 *         return filled_tri
 * 
 *     def _marked_tetrahedra(self, clear_marks=False):             # <<<<<<<<<<<<<<
 *         cdef int *marked = NULL
 *         n = self.num_tetrahedra()
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_95_marked_tetrahedra, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__marked_tetrahedra, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[89])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[41]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_marked_tetrahedra, __pyx_t_5) < (0)) __PYX_ERR(4, 1425, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1436
 *         return ans
 * 
 *     def edge_valences(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a dictionary whose keys are the valences of the edges
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_97edge_valences, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_edge_valences, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[90])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_edge_valences, __pyx_t_5) < (0)) __PYX_ERR(4, 1436, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1457
 *         return ans
 * 
 *     def gluing_equations_pgl(self, N =2, equation_type='all'):             # <<<<<<<<<<<<<<
 * 
 *         """
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_99gluing_equations_pgl, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_gluing_equations_p, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[91])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[42]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_gluing_equations_pgl, __pyx_t_5) < (0)) __PYX_ERR(4, 1457, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1637
 *                                           explain_cols)
 * 
 *     def _ptolemy_equations_identified_face_classes(self):             # <<<<<<<<<<<<<<
 *         """
 *         This function returns an identification structure where s_f_t gets
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_101_ptolemy_equations_identified_face_classes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__ptolemy_equations, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[92])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_equations_identified_fa, __pyx_t_5) < (0)) __PYX_ERR(4, 1637, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1664
 *         return convert_and_free_identification_of_variables(c_vars)
 * 
 *     def _ptolemy_equations_identified_coordinates(self, N,             # <<<<<<<<<<<<<<
 *                                                   obstruction_class = None):
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_103_ptolemy_equations_identified_coordinates, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__ptolemy_equations_2, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[93])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[37]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_equations_identified_co, __pyx_t_5) < (0)) __PYX_ERR(4, 1664, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1699
 *         return convert_and_free_identification_of_variables(c_vars)
 * 
 *     def _ptolemy_equations_action_by_decoration_change(self, int N):             # <<<<<<<<<<<<<<
 *         """
 *         We can change a decoration by multiplying a coset of a cusp by a
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_105_ptolemy_equations_action_by_decoration_change, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__ptolemy_equations_3, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[94])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_equations_action_by_dec, __pyx_t_5) < (0)) __PYX_ERR(4, 1699, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1723
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_3(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_3 -> C_2 in cellular homology represented as matrix
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_107_ptolemy_equations_boundary_map_3, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__ptolemy_equations_4, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[95])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_equations_boundary_map, __pyx_t_5) < (0)) __PYX_ERR(4, 1723, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1752
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_2(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_2 -> C_1 in cellular homology represented as matrix.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_109_ptolemy_equations_boundary_map_2, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__ptolemy_equations_5, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[96])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_equations_boundary_map_2, __pyx_t_5) < (0)) __PYX_ERR(4, 1752, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1773
 *         return m, explain_rows, explain_cols
 * 
 *     def _ptolemy_equations_boundary_map_1(self):             # <<<<<<<<<<<<<<
 *         """
 *         Boundary map C_1 -> C_0 in cellular homology represented as matrix.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_111_ptolemy_equations_boundary_map_1, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__ptolemy_equations_6, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[97])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_equations_boundary_map_3, __pyx_t_5) < (0)) __PYX_ERR(4, 1773, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1796
 *         return m, explain_rows, explain_cols
 * 
 *     def ptolemy_obstruction_classes(self):             # <<<<<<<<<<<<<<
 * 
 *         """
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_113ptolemy_obstruction_classes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_ptolemy_obstructio, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[98])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_obstruction_classes, __pyx_t_5) < (0)) __PYX_ERR(4, 1796, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1858
 *         return ptolemyManifoldMethods.get_ptolemy_obstruction_classes(self)
 * 
 *     def ptolemy_generalized_obstruction_classes(self, N):             # <<<<<<<<<<<<<<
 * 
 *         """
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_115ptolemy_generalized_obstruction_classes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_ptolemy_generalize, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[99])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1858, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_generalized_obstruction, __pyx_t_5) < (0)) __PYX_ERR(4, 1858, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":1923
 *                 self, N))
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,             # <<<<<<<<<<<<<<
 *                         simplify = True, eliminate_fixed_ptolemys = False):
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_117ptolemy_variety, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_ptolemy_variety, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[100])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 1923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[43]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_ptolemy_variety, __pyx_t_5) < (0)) __PYX_ERR(4, 1923, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2108
 *             eliminate_fixed_ptolemys = eliminate_fixed_ptolemys)
 * 
 *     def gluing_equations(self,form='log'):             # <<<<<<<<<<<<<<
 *         """
 *         In the default mode, this function returns a matrix with rows
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_119gluing_equations, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_gluing_equations, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[101])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[44]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_gluing_equations, __pyx_t_5) < (0)) __PYX_ERR(4, 2108, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2271
 *         return relation_matrix
 * 
 *     def _presentation_matrix(self):             # <<<<<<<<<<<<<<
 *         """
 *         Computes the presentation matrix for the first integral
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_121_presentation_matrix, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__presentation_matr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[102])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_presentation_matrix, __pyx_t_5) < (0)) __PYX_ERR(4, 2271, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2311
 *         return AbelianGroup(relations)
 * 
 *     def homology(self) -> AbelianGroup:             # <<<<<<<<<<<<<<
 *         """
 *         Returns an :class:`AbelianGroup` representing the first integral
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_AbelianGroup) < (0)) __PYX_ERR(4, 2311, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_123homology, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_homology, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[103])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_homology, __pyx_t_6) < (0)) __PYX_ERR(4, 2311, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2346
 *         return self._cache.save(result, 'homology')
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_simplify_presentation, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2346, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_fillings_may_affect_generators, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2346, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_minimize_number_of_generators, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2346, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_try_hard_to_shorten_relators, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2346, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_FundamentalGroup) < (0)) __PYX_ERR(4, 2346, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_125fundamental_group, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_fundamental_group, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[104])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[45]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_t_5) < (0)) __PYX_ERR(4, 2346, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2395
 *                                 'fundamental_group', *args)
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Triangulation':             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`Triangulation` representing the finite cover specified
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_snappy_Triangulation) < (0)) __PYX_ERR(4, 2395, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_127cover, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_cover, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[105])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_cover, __pyx_t_6) < (0)) __PYX_ERR(4, 2395, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2497
 *         return cover
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_method, __pyx_mstate_global->__pyx_kp_u_typing_Optional_str) < (0)) __PYX_ERR(4, 2497, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cover_type, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(4, 2497, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_list_snappy_Triangulation) < (0)) __PYX_ERR(4, 2497, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_129covers, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_covers, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[106])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[46]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_covers, __pyx_t_5) < (0)) __PYX_ERR(4, 2497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2564
 *                          "and 'snappea'")
 * 
 *     def _covers_low_index(self, degree, num_threads=0):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using low_index.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_131_covers_low_index, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__covers_low_index, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[107])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[47]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_covers_low_index, __pyx_t_5) < (0)) __PYX_ERR(4, 2564, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2599
 *         return covers
 * 
 *     def _covers_gap(self, degree):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using gap.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_133_covers_gap, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__covers_gap, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[108])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_covers_gap, __pyx_t_5) < (0)) __PYX_ERR(4, 2599, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2614
 *         return covers
 * 
 *     def _covers_magma(self, degree):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using magma.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_135_covers_magma, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__covers_magma, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[109])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_covers_magma, __pyx_t_5) < (0)) __PYX_ERR(4, 2614, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2629
 *         return covers
 * 
 *     def _covers_snappea(self, degree, cover_type):             # <<<<<<<<<<<<<<
 *         """
 *         Compute cyclic or all covers using SnapPea kernel.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_137_covers_snappea, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__covers_snappea, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[110])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_covers_snappea, __pyx_t_5) < (0)) __PYX_ERR(4, 2629, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2776
 *         return c_repn_in_original_gens
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_139set_peripheral_curves, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_set_peripheral_cur, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[111])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[48]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_set_peripheral_curves, __pyx_t_5) < (0)) __PYX_ERR(4, 2776, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":2911
 *                                  peripheral_data)
 * 
 *     def has_finite_vertices(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         Returns ``True`` if and only if the triangulation has finite (non-ideal)
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2911, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_141has_finite_vertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_has_finite_vertice, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[112])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_has_finite_vertices, __pyx_t_6) < (0)) __PYX_ERR(4, 2911, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":2938
 *         return get_num_fake_cusps(self.c_triangulation) > 0
 * 
 *     def triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                              decorated : bool = True,
 *                              ignore_cusp_ordering : bool = False,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 2938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_decorated, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2938, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ignore_cusp_ordering, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2938, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ignore_curves, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2938, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ignore_curve_orientations, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2938, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ignore_filling_orientations, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2938, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ignore_orientation, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 2938, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(4, 2938, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_143triangulation_isosig, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_triangulation_isos, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[113])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 2938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[49]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_triangulation_isosig, __pyx_t_5) < (0)) __PYX_ERR(4, 2938, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/triangulation.pyx":3222
 *         return self._cache.save(result, 'triangulation_isosig', *args)
 * 
 *     def _undecorated_triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                                           ignore_orientation : bool = False) -> str:
 *         if self.c_triangulation is NULL:
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_ignore_orientation, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 3222, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(4, 3222, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_145_undecorated_triangulation_isosig, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__undecorated_trian, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[114])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[41]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_undecorated_triangulation_isosi, __pyx_t_6) < (0)) __PYX_ERR(4, 3222, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":3235
 *             free(c_string)
 * 
 *     def _symplectic_form(self, u, v):             # <<<<<<<<<<<<<<
 *         return sum([u[2 * i] * v[2 * i + 1] - u[2 * i + 1] * v[2 * i] for i in range(len(u) // 2)])
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_147_symplectic_form, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__symplectic_form, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[115])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_symplectic_form, __pyx_t_6) < (0)) __PYX_ERR(4, 3235, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":3238
 *         return sum([u[2 * i] * v[2 * i + 1] - u[2 * i + 1] * v[2 * i] for i in range(len(u) // 2)])
 * 
 *     def _is_symplectic(self, M):             # <<<<<<<<<<<<<<
 *         """
 *         Test if the matrix M is symplectic
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_149_is_symplectic, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation__is_symplectic, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[116])); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3238, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_is_symplectic, __pyx_t_6) < (0)) __PYX_ERR(4, 3238, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/triangulation.pyx":3258
 *         return True
 * 
 *     def symplectic_basis(self, verify : bool = False):             # <<<<<<<<<<<<<<
 *         """
 *         Extend the Neumann-Zagier matrix to one which is symplectic
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 3258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_verify, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(4, 3258, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13Triangulation_151symplectic_basis, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Triangulation_symplectic_basis, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[117])); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 3258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[41]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation, __pyx_mstate_global->__pyx_n_u_symplectic_basis, __pyx_t_5) < (0)) __PYX_ERR(4, 3258, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":85
 *             do_Dehn_filling(self.c_triangulation)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_3_number_, __Pyx_CYFUNCTION_STATICMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__number, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[118])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_5) < (0)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_6 = NULL;
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_number_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_staticmethod, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 85, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_5) < (0)) __PYX_ERR(1, 85, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":89
 *         return number.number_to_native_number(n)
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def use_field_conversion(cls, func):
 *         """
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_5use_field_conversion, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_use_field_conversion, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[119])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_use_field_conversion, __pyx_t_5) < (0)) __PYX_ERR(1, 89, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetNameInClass(__pyx_t_5, (PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_use_field_conversion); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_Method_ClassMethod(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_use_field_conversion, __pyx_t_2) < (0)) __PYX_ERR(1, 89, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":137
 *         number.use_field_conversion(func)
 * 
 *     def init_hyperbolic_structure(self, force_recompute = False):             # <<<<<<<<<<<<<<
 *         if not self.c_triangulation:
 *             return
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_7init_hyperbolic_structure, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_init_hyperbolic_structu, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[120])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[41]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_init_hyperbolic_structure, __pyx_t_2) < (0)) __PYX_ERR(1, 137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":146
 *         self.hyperbolic_structure_initialized = True
 * 
 *     def canonize(self) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Change the triangulation to an arbitrary retriangulation of
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_None) < (0)) __PYX_ERR(1, 146, __pyx_L1_error)
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_9canonize, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_canonize, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[121])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_5, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_canonize, __pyx_t_5) < (0)) __PYX_ERR(1, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":170
 *         self._cache.clear(message='canonize')
 * 
 *     def _canonical_retriangulation(self, opacities=None, top_level_tries=10):             # <<<<<<<<<<<<<<
 *         """
 *         If this triangulation is a subdivision of the canonical cell
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_11_canonical_retriangulation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__canonical_retriangulat, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[122])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[50]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_canonical_retriangulation, __pyx_t_5) < (0)) __PYX_ERR(1, 170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":249
 *         return new_tri
 * 
 *     def _canonical_cells_are_tetrahedra(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns True if and only if the canonical
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_13_canonical_cells_are_tetrahedra, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__canonical_cells_are_te, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[123])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_canonical_cells_are_tetrahedra, __pyx_t_5) < (0)) __PYX_ERR(1, 249, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":267
 *         return get_num_fake_cusps(M.c_triangulation) == 0
 * 
 *     def _from_string(self, string, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         WARNING: Users should not use this function directly.  To create a
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_15_from_string, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__from_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[124])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[33]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_from_string, __pyx_t_5) < (0)) __PYX_ERR(1, 267, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":283
 *             self.init_hyperbolic_structure()
 * 
 *     def _from_bytes(self, bytestring, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty manifold from a byte sequence generated by
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_17_from_bytes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__from_bytes, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[125])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[33]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_from_bytes, __pyx_t_5) < (0)) __PYX_ERR(1, 283, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":297
 *             self.init_hyperbolic_structure()
 * 
 *     def _from_isosig(self, isosig, initialize_structure=True):             # <<<<<<<<<<<<<<
 *         """
 *         Fill an empty manifold from an isosig generated by
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_19_from_isosig, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__from_isosig, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[126])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[33]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_from_isosig, __pyx_t_5) < (0)) __PYX_ERR(1, 297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":308
 *             self.init_hyperbolic_structure()
 * 
 *     def copy(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a copy of the manifold
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_21copy, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_copy, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[127])); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_copy, __pyx_t_5) < (0)) __PYX_ERR(1, 308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/manifold.pyx":320
 *         return Manifold_from_Triangulation(self, manifold_class=self.__class__)
 * 
 *     def cusp_neighborhood(self) -> CuspNeighborhood:             # <<<<<<<<<<<<<<
 *         """
 *         Returns information about the cusp neighborhoods of the
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_CuspNeighborhood) < (0)) __PYX_ERR(1, 320, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_23cusp_neighborhood, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_cusp_neighborhood, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[128])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_cusp_neighborhood, __pyx_t_2) < (0)) __PYX_ERR(1, 320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":337
 * 
 *     def dirichlet_domain(self,
 *                          vertex_epsilon=default_vertex_epsilon,             # <<<<<<<<<<<<<<
 *                          displacement = (0.0, 0.0, 0.0),
 *                          centroid_at_origin : bool = True,
*/
  __pyx_t_2 = PyFloat_FromDouble(default_vertex_epsilon); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_mstate_global->__pyx_k__29 = __pyx_t_2;
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":336
 *         return CuspNeighborhood(self)
 * 
 *     def dirichlet_domain(self,             # <<<<<<<<<<<<<<
 *                          vertex_epsilon=default_vertex_epsilon,
 *                          displacement = (0.0, 0.0, 0.0),
*/
  __pyx_t_2 = PyFloat_FromDouble(default_vertex_epsilon); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "cython/core/manifold.pyx":341
 *                          centroid_at_origin : bool = True,
 *                          maximize_injectivity_radius : bool = True,
 *                          include_words : bool = False) -> DirichletDomain:             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`DirichletDomain` object representing a Dirichlet
*/
  __pyx_t_5 = PyTuple_Pack(5, __pyx_t_2, __pyx_mstate_global->__pyx_tuple[18], Py_True, Py_True, Py_False); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":336
 *         return CuspNeighborhood(self)
 * 
 *     def dirichlet_domain(self,             # <<<<<<<<<<<<<<
 *                          vertex_epsilon=default_vertex_epsilon,
 *                          displacement = (0.0, 0.0, 0.0),
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_centroid_at_origin, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 336, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_maximize_injectivity_radius, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 336, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_include_words, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 336, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_DirichletDomain) < (0)) __PYX_ERR(1, 336, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_25dirichlet_domain, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_dirichlet_domain, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[129])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_t_5);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_dirichlet_domain, __pyx_t_6) < (0)) __PYX_ERR(1, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":386
 *                                 'dirichlet_domain', *args)
 * 
 *     def browse(self):             # <<<<<<<<<<<<<<
 *         """
 *         Opens browser window with a graphical interface, which allows to
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_27browse, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_browse, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[130])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_browse, __pyx_t_6) < (0)) __PYX_ERR(1, 386, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":402
 *         return Browser(self)
 * 
 *     def filled_triangulation(             # <<<<<<<<<<<<<<
 *             self, cusps_to_fill='all') -> 'snappy.Manifold':
 *         """
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_snappy_Manifold) < (0)) __PYX_ERR(1, 402, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_29filled_triangulation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_filled_triangulation, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[131])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[34]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_filled_triangulation, __pyx_t_2) < (0)) __PYX_ERR(1, 402, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":430
 *         return filled
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_simplify_presentation, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 430, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_fillings_may_affect_generators, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 430, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_minimize_number_of_generators, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 430, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_try_hard_to_shorten_relators, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 430, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_HolonomyGroup) < (0)) __PYX_ERR(1, 430, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_31fundamental_group, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_fundamental_group, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[132])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[45]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_fundamental_group, __pyx_t_6) < (0)) __PYX_ERR(1, 430, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":482
 *         return self._cache.save(result, 'fundamental_group', *args)
 * 
 *     def symmetry_group(self, of_link : bool = False) -> SymmetryGroup:             # <<<<<<<<<<<<<<
 *         """
 *         Returns the symmetry group of the Manifold.
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 482, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_of_link, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 482, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_SymmetryGroup) < (0)) __PYX_ERR(1, 482, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_33symmetry_group, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_symmetry_group, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[133])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 482, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[41]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_symmetry_group, __pyx_t_2) < (0)) __PYX_ERR(1, 482, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":528
 *         return self._cache.save(symmetry_group, 'symmetry_group', of_link)
 * 
 *     def symmetric_triangulation(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Dehn filling description of the manifold realizing
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_35symmetric_triangulation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_symmetric_triangulation, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[134])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_symmetric_triangulation, __pyx_t_2) < (0)) __PYX_ERR(1, 528, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":549
 *             return self._cache.lookup('symmetric_triangulation')
 * 
 *     def cover(self, permutation_rep) -> 'snappy.Manifold':             # <<<<<<<<<<<<<<
 *         """
 *         Returns a :class:`Manifold` representing the finite cover specified by a
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_snappy_Manifold) < (0)) __PYX_ERR(1, 549, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_37cover, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_cover, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[135])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_cover, __pyx_t_6) < (0)) __PYX_ERR(1, 549, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":618
 *                                            manifold_class=self.__class__)
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_method, __pyx_mstate_global->__pyx_kp_u_typing_Optional_str) < (0)) __PYX_ERR(1, 618, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_cover_type, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(1, 618, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_kp_u_list_snappy_Manifold) < (0)) __PYX_ERR(1, 618, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_39covers, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_covers, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[136])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[46]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_covers, __pyx_t_2) < (0)) __PYX_ERR(1, 618, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":714
 *         raise ValueError(err_msg)
 * 
 *     def _complex_volume(self):             # <<<<<<<<<<<<<<
 *         cdef Complex volume
 *         cdef int accuracy
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_41_complex_volume, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__complex_volume, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[137])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_complex_volume_2, __pyx_t_2) < (0)) __PYX_ERR(1, 714, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":728
 *         return self._number_(result)
 * 
 *     def volume(self, accuracy=False, verified = False, bits_prec = None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the volume of the current solution to the hyperbolic
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_43volume, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_volume, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[138])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[51]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_volume, __pyx_t_2) < (0)) __PYX_ERR(1, 728, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":821
 *         return result
 * 
 *     def chern_simons(self, accuracy = False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the Chern-Simons invariant of the manifold (normalized by
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_45chern_simons, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_chern_simons, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[139])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[41]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_chern_simons, __pyx_t_2) < (0)) __PYX_ERR(1, 821, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":863
 *             return self._number_(cs)
 * 
 *     def without_hyperbolic_structure(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns self as a :class:`Triangulation`, forgetting the hyperbolic
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_47without_hyperbolic_structure, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_without_hyperbolic_stru, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[140])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_without_hyperbolic_structure, __pyx_t_2) < (0)) __PYX_ERR(1, 863, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":875
 *         return Triangulation_from_Manifold(self)
 * 
 *     def _polish_hyperbolic_structures(self):             # <<<<<<<<<<<<<<
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_49_polish_hyperbolic_structures, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__polish_hyperbolic_stru, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[141])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_polish_hyperbolic_structures, __pyx_t_2) < (0)) __PYX_ERR(1, 875, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":878
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,             # <<<<<<<<<<<<<<
 *                           bits_prec=None, dec_prec=None,
 *                           intervals=False):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_51tetrahedra_shapes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_tetrahedra_shapes, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[142])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[52]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_tetrahedra_shapes, __pyx_t_2) < (0)) __PYX_ERR(1, 878, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":997
 *             return ListOnePerLine(result)
 * 
 *     def _get_tetrahedra_shapes(self, which_solution):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of the tetrahedra shapes from one of the two
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_53_get_tetrahedra_shapes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__get_tetrahedra_shapes, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[143])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 997, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_get_tetrahedra_shapes, __pyx_t_2) < (0)) __PYX_ERR(1, 997, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1025
 *         return result
 * 
 *     def set_tetrahedra_shapes(self,             # <<<<<<<<<<<<<<
 *                               filled_shapes=None,
 *                               complete_shapes=None,
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_55set_tetrahedra_shapes, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_set_tetrahedra_shapes, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[144])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[23]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_set_tetrahedra_shapes, __pyx_t_2) < (0)) __PYX_ERR(1, 1025, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1063
 *         self._cache.clear(message='Manifold.set_tetrahedra_shapes')
 * 
 *     def solution_type(self, enum=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the type of the current solution to the gluing
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_57solution_type, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_solution_type, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[145])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[41]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_solution_type, __pyx_t_2) < (0)) __PYX_ERR(1, 1063, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1113
 *             return SolutionType[solution_type]
 * 
 *     def set_target_holonomy(self, target, which_cusp=0, recompute=True):             # <<<<<<<<<<<<<<
 *         """
 *         M.set_target_holonomy(target, which_cusp=0, recompute=True)
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_59set_target_holonomy, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_set_target_holonomy, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[146])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[53]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_set_target_holonomy, __pyx_t_2) < (0)) __PYX_ERR(1, 1113, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1128
 *                             which_cusp, c_target, recompute)
 * 
 *     def cusp_info(self, data_spec=None, verified = False, bits_prec = None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an info object containing information about the given
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_61cusp_info, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_cusp_info, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[147])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[54]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_cusp_info, __pyx_t_2) < (0)) __PYX_ERR(1, 1128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1251
 *         return CuspInfo(**info)
 * 
 *     def dehn_fill(self, filling_data, which_cusp=None) -> None:             # <<<<<<<<<<<<<<
 *         """
 *         Set the Dehn filling coefficients of the cusps.  This can be
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_None) < (0)) __PYX_ERR(1, 1251, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_63dehn_fill, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_dehn_fill, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[148])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[37]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_dehn_fill, __pyx_t_6) < (0)) __PYX_ERR(1, 1251, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1289
 *         self._cache.clear(message='Manifold.dehn_fill')
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_65set_peripheral_curves, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_set_peripheral_curves, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[149])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[48]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_set_peripheral_curves, __pyx_t_6) < (0)) __PYX_ERR(1, 1289, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1403
 *                 self, peripheral_data, which_cusp,return_matrices)
 * 
 *     def dual_curves(self, max_segments=6):             # <<<<<<<<<<<<<<
 *         """
 *         Constructs a *reasonable* selection of simple closed curves in
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_67dual_curves, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_dual_curves, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[150])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[36]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_dual_curves, __pyx_t_6) < (0)) __PYX_ERR(1, 1403, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1469
 *         return ListOnePerLine(result)
 * 
 *     def length_spectrum(self,             # <<<<<<<<<<<<<<
 *                         cutoff=1.0,
 *                         full_rigor : bool =True,
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_full_rigor, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 1469, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_grouped, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 1469, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_include_words, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 1469, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_69length_spectrum, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_length_spectrum, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[151])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[55]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_length_spectrum, __pyx_t_2) < (0)) __PYX_ERR(1, 1469, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1505
 *             *args)
 * 
 *     def drill(self, which_curve, max_segments=6):             # <<<<<<<<<<<<<<
 *         """
 *         Drills out the specified dual curve from among all dual curves
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_71drill, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_drill, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[152])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[36]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_drill, __pyx_t_2) < (0)) __PYX_ERR(1, 1505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1552
 *             return result
 * 
 *     def _is_isometric_to(self,             # <<<<<<<<<<<<<<
 *                          Manifold other,
 *                          return_isometries : bool = False):
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return_isometries, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 1552, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_73_is_isometric_to, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__is_isometric_to, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[153])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[41]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_is_isometric_to, __pyx_t_6) < (0)) __PYX_ERR(1, 1552, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1638
 *         return ans
 * 
 *     def is_isometric_to(self,             # <<<<<<<<<<<<<<
 *                         Manifold other,
 *                         return_isometries : bool = False):
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_return_isometries, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 1638, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_75is_isometric_to, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_is_isometric_to, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[154])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[41]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_6);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_is_isometric_to_2, __pyx_t_2) < (0)) __PYX_ERR(1, 1638, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/manifold.pyx":1647
 *             other, return_isometries = return_isometries)
 * 
 *     def is_two_bridge(self) -> bool:             # <<<<<<<<<<<<<<
 *         """
 *         If the manifold is the complement of a two-bridge knot or link
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_bool) < (0)) __PYX_ERR(1, 1647, __pyx_L1_error)
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_77is_two_bridge, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_is_two_bridge, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[155])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_6, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_is_two_bridge, __pyx_t_6) < (0)) __PYX_ERR(1, 1647, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1681
 *             return False
 * 
 *     def _choose_generators(self, compute_corners, centroid_at_origin):             # <<<<<<<<<<<<<<
 *         choose_generators(self.c_triangulation,
 *                           compute_corners,
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_79_choose_generators, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__choose_generators, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[156])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_choose_generators, __pyx_t_6) < (0)) __PYX_ERR(1, 1681, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1686
 *                           centroid_at_origin)
 * 
 *     def _choose_generators_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         Extracts, from the bowels of SnapPea, the information about the
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_81_choose_generators_info, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__choose_generators_info, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[157])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_choose_generators_info, __pyx_t_6) < (0)) __PYX_ERR(1, 1686, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1724
 *         return ans
 * 
 *     def splitting_surfaces(self):             # <<<<<<<<<<<<<<
 *         """
 *         Searches for connected closed normal surfaces of nonnegative Euler
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_83splitting_surfaces, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_splitting_surfaces, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[158])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1724, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_splitting_surfaces, __pyx_t_6) < (0)) __PYX_ERR(1, 1724, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1768
 *         return ListOnePerLine(ans)
 * 
 *     def split(self, which_surface):             # <<<<<<<<<<<<<<
 *         """
 *         Split the manifold open along a surface of positive characteristic found
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_85split, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold_split, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[159])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_split, __pyx_t_6) < (0)) __PYX_ERR(1, 1768, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1833
 *         return ans
 * 
 *     def _identify(self, extends_to_link=False):             # <<<<<<<<<<<<<<
 *         ans = []
 *         for table in database.__all_tables__.values():
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_87_identify, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__identify, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[160])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[41]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_identify_2, __pyx_t_6) < (0)) __PYX_ERR(1, 1833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1841
 *         return ans
 * 
 *     def _cusp_cross_section_info(self):             # <<<<<<<<<<<<<<
 *         cdef c_Tetrahedron *tet
 *         allocate_cross_sections(self.c_triangulation)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_89_cusp_cross_section_info, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__cusp_cross_section_inf, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[161])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1841, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_cusp_cross_section_info, __pyx_t_6) < (0)) __PYX_ERR(1, 1841, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/manifold.pyx":1867
 *         return tilts, side_lengths
 * 
 *     def _precision(self):             # <<<<<<<<<<<<<<
 *         return Number._default_precision
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_8Manifold_91_precision, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Manifold__precision, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[162])); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 1867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold, __pyx_mstate_global->__pyx_n_u_precision, __pyx_t_6) < (0)) __PYX_ERR(1, 1867, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":41
 *     cdef public coefficients
 * 
 *     def __init__(self, presentation=None, elementary_divisors=[]):             # <<<<<<<<<<<<<<
 *         if presentation is not None:
 *             self.divisors = smith_form(presentation)
*/
  __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_mstate_global->__pyx_k__31 = __pyx_t_6;
  __Pyx_GIVEREF(__pyx_t_6);
  __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":82
 *         return self.divisors[i]
 * 
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         """
 *         Used by the pickle module to pickle an Abelian Group.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_12AbelianGroup_9__reduce__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_AbelianGroup___reduce, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[163])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_mstate_global->__pyx_n_u_reduce, __pyx_t_6) < (0)) __PYX_ERR(6, 82, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":113
 *         return self
 * 
 *     def elementary_divisors(self):             # <<<<<<<<<<<<<<
 *         """
 *         The elementary divisors of this finitely generated abelian group.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_12AbelianGroup_15elementary_divisors, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_AbelianGroup_elementary_divisors, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[164])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_mstate_global->__pyx_n_u_elementary_divisors, __pyx_t_6) < (0)) __PYX_ERR(6, 113, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":119
 *         return self.divisors
 * 
 *     def rank(self):             # <<<<<<<<<<<<<<
 *         """
 *         The rank of the group.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_12AbelianGroup_17rank, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_AbelianGroup_rank, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[165])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_mstate_global->__pyx_n_u_rank, __pyx_t_6) < (0)) __PYX_ERR(6, 119, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":125
 *         return len(self.divisors)
 * 
 *     def betti_number(self):             # <<<<<<<<<<<<<<
 *         """
 *         The rank of the maximal free abelian subgroup.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_12AbelianGroup_19betti_number, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_AbelianGroup_betti_number, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[166])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_mstate_global->__pyx_n_u_betti_number, __pyx_t_6) < (0)) __PYX_ERR(6, 125, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":131
 *         return len([1 for n in self.divisors if n == 0])
 * 
 *     def order(self):             # <<<<<<<<<<<<<<
 *         """
 *         The order of the group.  Returns the string 'infinite' if the
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_12AbelianGroup_21order, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_AbelianGroup_order, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[167])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_AbelianGroup, __pyx_mstate_global->__pyx_n_u_order, __pyx_t_6) < (0)) __PYX_ERR(6, 131, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":159
 *         self.dead_columns = set()
 * 
 *     def get_data(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a triple (number of rows, number of columns, entries)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18PresentationMatrix_3get_data, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PresentationMatrix_get_data, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[168])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_mstate_global->__pyx_n_u_get_data, __pyx_t_6) < (0)) __PYX_ERR(6, 159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":213
 *         return repr(self.explode())
 * 
 *     def add_rows(self, n):             # <<<<<<<<<<<<<<
 *         self.rows += n
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18PresentationMatrix_11add_rows, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PresentationMatrix_add_rows, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[169])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_mstate_global->__pyx_n_u_add_rows, __pyx_t_6) < (0)) __PYX_ERR(6, 213, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":216
 *         self.rows += n
 * 
 *     def row_op(self, i, j, m):             # <<<<<<<<<<<<<<
 *         """
 *         Subtract m * row_i from row_j
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18PresentationMatrix_13row_op, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PresentationMatrix_row_op, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[170])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_mstate_global->__pyx_n_u_row_op, __pyx_t_6) < (0)) __PYX_ERR(6, 216, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":223
 *             self[j,k] -= m*self[i,k]
 * 
 *     def explode(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the full matrix, including dead columns, as a list of lists.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18PresentationMatrix_15explode, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PresentationMatrix_explode, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[171])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_mstate_global->__pyx_n_u_explode, __pyx_t_6) < (0)) __PYX_ERR(6, 223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":230
 *                 for i in range(self.rows)]
 * 
 *     def simplify(self):             # <<<<<<<<<<<<<<
 *         """
 *         If any entry is a unit, eliminate the corresponding generator.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18PresentationMatrix_17simplify, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PresentationMatrix_simplify, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[172])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_mstate_global->__pyx_n_u_simplify, __pyx_t_6) < (0)) __PYX_ERR(6, 230, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/abelian_group.pyx":254
 *             self.dead_columns.add(j)
 * 
 *     def simplified_matrix(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the simplified presentation as a matrix.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18PresentationMatrix_19simplified_matrix, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PresentationMatrix_simplified_ma, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[173])); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_mstate_global->__pyx_n_u_simplified_matrix, __pyx_t_6) < (0)) __PYX_ERR(6, 254, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     cdef tuple state
 *     cdef object _dict
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18PresentationMatrix_21__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PresentationMatrix___reduce_cyth, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[174])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_6) < (0)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "(tree fragment)":16
 *     else:
 *         return __pyx_unpickle_PresentationMatrix, (type(self), 0x59cf8a3, state)
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     __pyx_unpickle_PresentationMatrix__set_state(self, __pyx_state)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_18PresentationMatrix_23__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_PresentationMatrix___setstate_cy, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[175])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 16, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_PresentationMatrix, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_6) < (0)) __PYX_ERR(7, 16, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":4
 * # Fundamental Groups
 * 
 * Alphabet = '$abcdefghijklmnopqrstuvwxyzZYXWVUTSRQPONMLKJIHGFEDCBA'             # <<<<<<<<<<<<<<
 * 
 * # Helper functions for manipulating fg. words
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Alphabet, __pyx_mstate_global->__pyx_kp_u_abcdefghijklmnopqrstuvwxyzZYXWV) < (0)) __PYX_ERR(8, 4, __pyx_L1_error)

  /* "cython/core/fundamental_group.pyx":9
 * 
 * 
 * def inverse_list_word(word):             # <<<<<<<<<<<<<<
 *     return [ -x for x in word[::-1] ]
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_35inverse_list_word, 0, __pyx_mstate_global->__pyx_n_u_inverse_list_word, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[176])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_inverse_list_word, __pyx_t_6) < (0)) __PYX_ERR(8, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":13
 * 
 * 
 * def reduce_list_word(word):             # <<<<<<<<<<<<<<
 *     """
 *     Cancels inverse generators.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_37reduce_list_word, 0, __pyx_mstate_global->__pyx_n_u_reduce_list_word, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[177])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 13, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_list_word, __pyx_t_6) < (0)) __PYX_ERR(8, 13, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":59
 * 
 * 
 * def _letter_seperator(verbose_form):             # <<<<<<<<<<<<<<
 *     return '*' if verbose_form else ''
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_39_letter_seperator, 0, __pyx_mstate_global->__pyx_n_u_letter_seperator, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[178])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 59, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_letter_seperator, __pyx_t_6) < (0)) __PYX_ERR(8, 59, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":73
 * 
 * 
 * def word_as_list(word, int num_generators):             # <<<<<<<<<<<<<<
 *     if not isinstance(word, str):
 *         raise TypeError('Words must be represented as Python strings.')
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_41word_as_list, 0, __pyx_mstate_global->__pyx_n_u_word_as_list, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[179])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_word_as_list, __pyx_t_6) < (0)) __PYX_ERR(8, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":98
 *     return word_list
 * 
 * def list_as_word(int_list, int num_generators, verbose_form):             # <<<<<<<<<<<<<<
 *     return _letter_seperator(verbose_form).join(
 *         int_to_gen_string(g, num_generators, verbose_form)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_43list_as_word, 0, __pyx_mstate_global->__pyx_n_u_list_as_word, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[180])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_list_as_word, __pyx_t_6) < (0)) __PYX_ERR(8, 98, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":134
 *             '\n   '.join(self.relators()))
 * 
 *     def num_generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of generators for the presentation.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_7num_generators, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_num_generators, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[181])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_num_generators, __pyx_t_6) < (0)) __PYX_ERR(8, 134, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":140
 *         return fg_get_num_generators(self.c_group_presentation)
 * 
 *     def num_relators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of generators for the presentation.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_9num_relators, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_num_relators, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[182])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_num_relators, __pyx_t_6) < (0)) __PYX_ERR(8, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":146
 *         return fg_get_num_relations(self.c_group_presentation)
 * 
 *     def num_original_generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of geometric generators (before simplification).
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_11num_original_generators, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_num_original_g, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[183])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_num_original_generators, __pyx_t_6) < (0)) __PYX_ERR(8, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":152
 *         return fg_get_num_orig_gens(self.c_group_presentation)
 * 
 *     def original_generators(self, verbose_form=False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the original geometric generators (before
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_13original_generators, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_original_gener, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[184])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[39]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_original_generators, __pyx_t_6) < (0)) __PYX_ERR(8, 152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":177
 *         return orig_gens
 * 
 *     def generators_in_originals(self, verbose_form=False, raw_form=False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the current generators in terms of the original
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_15generators_in_originals, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_generators_in, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[185])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[56]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_generators_in_originals, __pyx_t_6) < (0)) __PYX_ERR(8, 177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":232
 *             return [ list_as_word(word, n, verbose_form) for word in words[1:]]
 * 
 *     def _word_moves(self):             # <<<<<<<<<<<<<<
 *         cdef int *c_moves
 *         c_moves = fg_get_word_moves(self.c_group_presentation)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_17_word_moves, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup__word_moves, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[186])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_word_moves, __pyx_t_6) < (0)) __PYX_ERR(8, 232, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":239
 *         return moves
 * 
 *     def generators(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the letters representing the generators in the presentation.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_19generators, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_generators, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[187])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_generators, __pyx_t_6) < (0)) __PYX_ERR(8, 239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":283
 *                  for i in range(1, 1+n) ]
 * 
 *     def relators(self, verbose_form = False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of words representing the relators in the presentation.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_21relators, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_relators, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[188])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[39]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_relators, __pyx_t_6) < (0)) __PYX_ERR(8, 283, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":306
 *         return relation_list
 * 
 *     def meridian(self, int which_cusp=0, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a word representing a conjugate of the current
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_23meridian, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_meridian, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[189])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[57]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_meridian, __pyx_t_6) < (0)) __PYX_ERR(8, 306, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":331
 *                verbose_form = False)
 * 
 *     def longitude(self, int which_cusp=0, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a word representing a conjugate of the current
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_25longitude, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_longitude, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[190])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[57]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_longitude, __pyx_t_6) < (0)) __PYX_ERR(8, 331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":357
 *                verbose_form = False)
 * 
 *     def peripheral_curves(self, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of meridian-longitude pairs for all cusps.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_27peripheral_curves, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_peripheral_cur, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[191])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[41]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_peripheral_curves, __pyx_t_6) < (0)) __PYX_ERR(8, 357, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":369
 *                  for n in range(self.num_cusps) ]
 * 
 *     def magma_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a string which will define this group within MAGMA.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_29magma_string, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_magma_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[192])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_magma_string, __pyx_t_6) < (0)) __PYX_ERR(8, 369, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":376
 *                 ', '.join(self.relators(verbose_form=True)) + '>')
 * 
 *     def gap_string(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a string which will define this group within GAP:
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_31gap_string, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_gap_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[193])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_gap_string, __pyx_t_6) < (0)) __PYX_ERR(8, 376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":404
 *                 )
 * 
 *     def _gap_init_(self):             # <<<<<<<<<<<<<<
 *         return self.gap_string()
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_33_gap_init_, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup__gap_init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[194])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_gap_init, __pyx_t_6) < (0)) __PYX_ERR(8, 404, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":407
 *         return self.gap_string()
 * 
 *     def _magma_init_(self, magma):             # <<<<<<<<<<<<<<
 *         return self.magma_string()
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_35_magma_init_, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup__magma_init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[195])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_magma_init, __pyx_t_6) < (0)) __PYX_ERR(8, 407, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":410
 *         return self.magma_string()
 * 
 *     def sage(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the corresponding Sage FinitelyPresentedGroup
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_37sage, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_sage, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[196])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_sage, __pyx_t_6) < (0)) __PYX_ERR(8, 410, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":420
 *         return F/rels
 * 
 *     def character_variety_vars_and_polys(self, as_ideal=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of variables and a list polynomials where the
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_39character_variety_vars_and_polys, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup_character_vari, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[197])); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[41]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup, __pyx_mstate_global->__pyx_n_u_character_variety_vars_and_polys, __pyx_t_6) < (0)) __PYX_ERR(8, 420, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_41__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[198])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_6) < (0)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CFundamentalGroup_43__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CFundamentalGroup___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[199])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_6) < (0)) __PYX_ERR(7, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/fundamental_group.pyx":459
 * 
 * 
 * class FundamentalGroup(CFundamentalGroup):             # <<<<<<<<<<<<<<
 *     """
 *     A FundamentalGroup represents a presentation of the fundamental
*/
  __pyx_t_6 = PyTuple_Pack(1, ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_CFundamentalGroup)); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_13 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_FundamentalGroup, __pyx_mstate_global->__pyx_n_u_FundamentalGroup, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_A_FundamentalGroup_represents_a); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_13, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(8, 459, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_FundamentalGroup, __pyx_t_2, __pyx_t_13, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_FundamentalGroup, __pyx_t_6) < (0)) __PYX_ERR(8, 459, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":479
 * 
 * 
 * if _within_sage:             # <<<<<<<<<<<<<<
 *     from sage.structure.sage_object import SageObject
 *     FundamentalGroup.__bases__ += (SageObject,)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_18 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_18 < 0))) __PYX_ERR(8, 479, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_18) {

    /* "cython/core/fundamental_group.pyx":480
 * 
 * if _within_sage:
 *     from sage.structure.sage_object import SageObject             # <<<<<<<<<<<<<<
 *     FundamentalGroup.__bases__ += (SageObject,)
 * 
*/
    {
      PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_SageObject};
      __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_structure_sage_object, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 480, __pyx_L1_error)
    }
    __pyx_t_2 = __pyx_t_8;
    __Pyx_GOTREF(__pyx_t_2);
    {
      PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_SageObject};
      __pyx_t_3 = 0; {
        __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 480, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(8, 480, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "cython/core/fundamental_group.pyx":481
 * if _within_sage:
 *     from sage.structure.sage_object import SageObject
 *     FundamentalGroup.__bases__ += (SageObject,)             # <<<<<<<<<<<<<<
 * 
 * 
*/
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_FundamentalGroup); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_bases); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_SageObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_13 = PyTuple_Pack(1, __pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_t_5, __pyx_t_13); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_FundamentalGroup); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    if (__Pyx_PyObject_SetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_bases, __pyx_t_2) < (0)) __PYX_ERR(8, 481, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

    /* "cython/core/fundamental_group.pyx":479
 * 
 * 
 * if _within_sage:             # <<<<<<<<<<<<<<
 *     from sage.structure.sage_object import SageObject
 *     FundamentalGroup.__bases__ += (SageObject,)
*/
  }

  /* "cython/core/fundamental_group.pyx":486
 * # Holonomy Groups
 * cdef class CHolonomyGroup(CFundamentalGroup):
 *     def _matrix(self, word, group):             # <<<<<<<<<<<<<<
 *         """
 *         Returns  SL2C(word) if group == 'M' or O31(word) if group == 'O'
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14CHolonomyGroup_1_matrix, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CHolonomyGroup__matrix, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[200])); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CHolonomyGroup, __pyx_mstate_global->__pyx_n_u_matrix_2, __pyx_t_13) < (0)) __PYX_ERR(8, 486, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/fundamental_group.pyx":512
 *             return None
 * 
 *     def SL2C(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the image of the element represented by the input word
*/
  __pyx_t_13 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_word, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(8, 512, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14CHolonomyGroup_3SL2C, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CHolonomyGroup_SL2C, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[201])); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_13);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CHolonomyGroup, __pyx_mstate_global->__pyx_n_u_SL2C, __pyx_t_2) < (0)) __PYX_ERR(8, 512, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":522
 *         return self._matrix(word, 'M')
 * 
 *     def O31(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the image of the element represented by the input word
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_word, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(8, 522, __pyx_L1_error)
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14CHolonomyGroup_5O31, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CHolonomyGroup_O31, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[202])); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_13, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CHolonomyGroup, __pyx_mstate_global->__pyx_n_u_O31, __pyx_t_13) < (0)) __PYX_ERR(8, 522, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/fundamental_group.pyx":531
 *         return self._matrix(word, 'O')
 * 
 *     def complex_length(self, word : str):             # <<<<<<<<<<<<<<
 *         """
 *         Return the complex length of the isometry represented by the
*/
  __pyx_t_13 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_word, __pyx_mstate_global->__pyx_n_u_str) < (0)) __PYX_ERR(8, 531, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14CHolonomyGroup_7complex_length, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CHolonomyGroup_complex_length, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[203])); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_13);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CHolonomyGroup, __pyx_mstate_global->__pyx_n_u_complex_length, __pyx_t_2) < (0)) __PYX_ERR(8, 531, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14CHolonomyGroup_9__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CHolonomyGroup___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[204])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < (0)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14CHolonomyGroup_11__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CHolonomyGroup___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[205])); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < (0)) __PYX_ERR(7, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":546
 *         return None
 * 
 * class HolonomyGroup(CHolonomyGroup):             # <<<<<<<<<<<<<<
 *     """
 *     A FundamentalGroup represents a presentation of the fundamental
*/
  __pyx_t_2 = PyTuple_Pack(1, ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_CHolonomyGroup)); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_13); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_13, __pyx_mstate_global->__pyx_n_u_HolonomyGroup, __pyx_mstate_global->__pyx_n_u_HolonomyGroup, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_A_FundamentalGroup_represents_a_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_13 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(8, 546, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":600
 *     """
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/
  __pyx_t_4 = NULL;
  __pyx_t_16 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13HolonomyGroup_1_number_, __Pyx_CYFUNCTION_STATICMETHOD, __pyx_mstate_global->__pyx_n_u_HolonomyGroup__number, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[206])); if (unlikely(!__pyx_t_16)) __PYX_ERR(8, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_16);
  #endif
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_16};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_staticmethod, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 600, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_2) < (0)) __PYX_ERR(8, 600, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/fundamental_group.pyx":546
 *         return None
 * 
 * class HolonomyGroup(CHolonomyGroup):             # <<<<<<<<<<<<<<
 *     """
 *     A FundamentalGroup represents a presentation of the fundamental
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_HolonomyGroup, __pyx_t_13, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_HolonomyGroup, __pyx_t_2) < (0)) __PYX_ERR(8, 546, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/fundamental_group.pyx":605
 * 
 * 
 * if _within_sage:             # <<<<<<<<<<<<<<
 *     from sage.structure.sage_object import SageObject
 *     HolonomyGroup.__bases__ += (SageObject,)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_within_sage); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_18 = __Pyx_PyObject_IsTrue(__pyx_t_13); if (unlikely((__pyx_t_18 < 0))) __PYX_ERR(8, 605, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (__pyx_t_18) {

    /* "cython/core/fundamental_group.pyx":606
 * 
 * if _within_sage:
 *     from sage.structure.sage_object import SageObject             # <<<<<<<<<<<<<<
 *     HolonomyGroup.__bases__ += (SageObject,)
*/
    {
      PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_SageObject};
      __pyx_t_8 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sage_structure_sage_object, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(8, 606, __pyx_L1_error)
    }
    __pyx_t_13 = __pyx_t_8;
    __Pyx_GOTREF(__pyx_t_13);
    {
      PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_SageObject};
      __pyx_t_3 = 0; {
        __pyx_t_5 = __Pyx_ImportFrom(__pyx_t_13, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 606, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_5) < (0)) __PYX_ERR(8, 606, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

    /* "cython/core/fundamental_group.pyx":607
 * if _within_sage:
 *     from sage.structure.sage_object import SageObject
 *     HolonomyGroup.__bases__ += (SageObject,)             # <<<<<<<<<<<<<<
*/
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_HolonomyGroup); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_bases); if (unlikely(!__pyx_t_5)) __PYX_ERR(8, 607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_SageObject); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __pyx_t_6 = PyTuple_Pack(1, __pyx_t_13); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_13 = PyNumber_InPlaceAdd(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_13)) __PYX_ERR(8, 607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_HolonomyGroup); if (unlikely(!__pyx_t_6)) __PYX_ERR(8, 607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__Pyx_PyObject_SetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_bases, __pyx_t_13) < (0)) __PYX_ERR(8, 607, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/fundamental_group.pyx":605
 * 
 * 
 * if _within_sage:             # <<<<<<<<<<<<<<
 *     from sage.structure.sage_object import SageObject
 *     HolonomyGroup.__bases__ += (SageObject,)
*/
  }

  /* "cython/core/symmetry_group.pyx":30
 *         self.c_symmetry_group = c_symmetry_group
 * 
 *     def is_full_group(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the full symmetry group has been found.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_5is_full_group, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_is_full_group, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[207])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 30, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_is_full_group, __pyx_t_6) < (0)) __PYX_ERR(9, 30, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":62
 *         return thePretext + theText
 * 
 *     def order(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the order of the symmetry group
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_9order, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_order, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[208])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 62, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_order, __pyx_t_6) < (0)) __PYX_ERR(9, 62, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":72
 *         return symmetry_group_order(self.c_symmetry_group)
 * 
 *     def is_abelian(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the symmetry group is abelian.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_11is_abelian, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_is_abelian, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[209])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_is_abelian, __pyx_t_6) < (0)) __PYX_ERR(9, 72, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":84
 *             self.c_symmetry_group, &abelian_description))
 * 
 *     def abelian_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the symmetry group is abelian, return it as an AbelianGroup
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_13abelian_description, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_abelian_descriptio, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[210])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_abelian_description, __pyx_t_6) < (0)) __PYX_ERR(9, 84, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":105
 *         return AbelianGroup(elementary_divisors=coeffs)
 * 
 *     def is_dihedral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the symmetry group is dihedral.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_15is_dihedral, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_is_dihedral, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[211])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_is_dihedral, __pyx_t_6) < (0)) __PYX_ERR(9, 105, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":115
 *         return B2B(symmetry_group_is_dihedral(self.c_symmetry_group))
 * 
 *     def is_polyhedral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether the symmetry group is a (possibly binary)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_17is_polyhedral, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_is_polyhedral, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[212])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_is_polyhedral, __pyx_t_6) < (0)) __PYX_ERR(9, 115, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":123
 *                                                 NULL, NULL, NULL, NULL))
 * 
 *     def polyhedral_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the symmetry group is a (possibly binary)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_19polyhedral_description, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_polyhedral_descrip, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[213])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_polyhedral_description, __pyx_t_6) < (0)) __PYX_ERR(9, 123, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":150
 *         return name
 * 
 *     def is_S5(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether the group is the symmetric group on five things.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_21is_S5, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_is_S5, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[214])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_is_S5, __pyx_t_6) < (0)) __PYX_ERR(9, 150, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":156
 *         return B2B(symmetry_group_is_S5(self.c_symmetry_group))
 * 
 *     def is_direct_product(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the SymmetryGroup is a nontrivial direct
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_23is_direct_product, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_is_direct_product, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[215])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_is_direct_product, __pyx_t_6) < (0)) __PYX_ERR(9, 156, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":169
 *         return B2B(symmetry_group_is_direct_product(self.c_symmetry_group))
 * 
 *     def direct_product_description(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the SymmetryGroup is a nontrivial direct product with at
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_25direct_product_description, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_direct_product_des, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[216])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_direct_product_description, __pyx_t_6) < (0)) __PYX_ERR(9, 169, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":197
 *         return (factor_0, factor_1)
 * 
 *     def is_amphicheiral(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether the manifold has an orientation reversing symmetry.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_27is_amphicheiral, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_is_amphicheiral, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[217])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_is_amphicheiral, __pyx_t_6) < (0)) __PYX_ERR(9, 197, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":207
 *         return B2B(symmetry_group_is_amphicheiral(self.c_symmetry_group))
 * 
 *     def is_invertible_knot(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return whether a one-cusped has a symmetry that acts on the
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_29is_invertible_knot, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_is_invertible_knot, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[218])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_is_invertible_knot, __pyx_t_6) < (0)) __PYX_ERR(9, 207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":218
 *         return B2B(symmetry_group_invertible_knot(self.c_symmetry_group))
 * 
 *     def commutator_subgroup(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the commutator subgroup of the SymmetryGroup
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_31commutator_subgroup, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_commutator_subgrou, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[219])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_commutator_subgroup, __pyx_t_6) < (0)) __PYX_ERR(9, 218, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":236
 *         return comm_subgroup
 * 
 *     def abelianization(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the abelianization of the symmetry group
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_33abelianization, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_abelianization, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[220])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_abelianization, __pyx_t_6) < (0)) __PYX_ERR(9, 236, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":256
 *         return abelianization.abelian_description()
 * 
 *     def center(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the center of the symmetry group
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_35center, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_center, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[221])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_center, __pyx_t_6) < (0)) __PYX_ERR(9, 256, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":276
 *         return center.abelian_description()
 * 
 *     def multiply_elements(self, i, j):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the product of group elements i and j.  The convention
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_37multiply_elements, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_multiply_elements, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[222])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_multiply_elements, __pyx_t_6) < (0)) __PYX_ERR(9, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/symmetry_group.pyx":295
 *         return symmetry_group_product(self.c_symmetry_group, i, j)
 * 
 *     def isometries(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a detailed list of all the isometries in the symmetry group.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_39isometries, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup_isometries, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[223])); if (unlikely(!__pyx_t_6)) __PYX_ERR(9, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_SymmetryGroup, __pyx_mstate_global->__pyx_n_u_isometries, __pyx_t_6) < (0)) __PYX_ERR(9, 295, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_41__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[224])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_6) < (0)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13SymmetryGroup_43__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_SymmetryGroup___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[225])); if (unlikely(!__pyx_t_6)) __PYX_ERR(7, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_6) < (0)) __PYX_ERR(7, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":102
 *     cdef int c_num_generators
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_1_number_, __Pyx_CYFUNCTION_STATICMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain__number, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[226])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_6) < (0)) __PYX_ERR(10, 102, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_13 = NULL;
  __Pyx_GetNameInClass(__pyx_t_5, (PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_number_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_5};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_staticmethod, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_6) < (0)) __PYX_ERR(10, 102, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":108
 *     def __cinit__(self,
 *                   Manifold manifold=None,
 *                   vertex_epsilon=default_vertex_epsilon,             # <<<<<<<<<<<<<<
 *                   displacement=None,
 *                   centroid_at_origin=True,
*/
  __pyx_t_6 = PyFloat_FromDouble(default_vertex_epsilon); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_mstate_global->__pyx_k__38 = __pyx_t_6;
  __Pyx_GIVEREF(__pyx_t_6);
  __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":184
 *             )
 * 
 *     def num_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of vertices.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_9num_vertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_num_vertices, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[227])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_num_vertices, __pyx_t_6) < (0)) __PYX_ERR(10, 184, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":190
 *         return self.c_dirichlet_domain.num_vertices
 * 
 *     def num_finite_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of finite (non-ideal) vertices.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_11num_finite_vertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_num_finite_vert, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[228])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_num_finite_vertices, __pyx_t_6) < (0)) __PYX_ERR(10, 190, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":196
 *         return self.c_dirichlet_domain.num_finite_vertices
 * 
 *     def num_ideal_vertices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of ideal vertices.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_13num_ideal_vertices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_num_ideal_verti, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[229])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_num_ideal_vertices, __pyx_t_6) < (0)) __PYX_ERR(10, 196, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":202
 *         return self.c_dirichlet_domain.num_ideal_vertices
 * 
 *     def num_edges(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of edges.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_15num_edges, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_num_edges, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[230])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_num_edges, __pyx_t_6) < (0)) __PYX_ERR(10, 202, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":208
 *         return self.c_dirichlet_domain.num_edges
 * 
 *     def num_faces(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of faces.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_17num_faces, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_num_faces, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[231])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_num_faces, __pyx_t_6) < (0)) __PYX_ERR(10, 208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":214
 *         return self.c_dirichlet_domain.num_faces
 * 
 *     def in_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the radius of the largest inscribed sphere.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_19in_radius, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_in_radius, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[232])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_in_radius, __pyx_t_6) < (0)) __PYX_ERR(10, 214, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":221
 *         return self._number_(radius)
 * 
 *     def out_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the radius of the smallest circubscribed sphere.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_21out_radius, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_out_radius, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[233])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_out_radius, __pyx_t_6) < (0)) __PYX_ERR(10, 221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":228
 *         return self._number_(radius)
 * 
 *     def spine_radius(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the infimum of the radii (measured from the origin) of all
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_23spine_radius, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_spine_radius, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[234])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_spine_radius, __pyx_t_6) < (0)) __PYX_ERR(10, 228, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":236
 *         return self._number_(radius)
 * 
 *     def length_spectrum_dicts(self, cutoff_length=1.0,             # <<<<<<<<<<<<<<
 *                               full_rigor=True,
 *                               multiplicities=True,
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_25length_spectrum_dicts, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_length_spectrum, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[235])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[58]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_length_spectrum_dicts, __pyx_t_6) < (0)) __PYX_ERR(10, 236, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":303
 *         return LengthSpectrum(spectrum)
 * 
 *     def vertex_list(self, details = False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of the coordinates of the vertices.  These are
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_27vertex_list, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_vertex_list, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[236])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[41]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_vertex_list_2, __pyx_t_6) < (0)) __PYX_ERR(10, 303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":323
 *             return self._vertex_list()
 * 
 *     def _vertex_list(self):             # <<<<<<<<<<<<<<
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_29_vertex_list, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain__vertex_list, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[237])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_vertex_list, __pyx_t_6) < (0)) __PYX_ERR(10, 323, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":335
 *         return vertices
 * 
 *     def _vertex_data_list(self):             # <<<<<<<<<<<<<<
 *         cdef WEVertex *vertex = &self.c_dirichlet_domain.vertex_list_begin
 *         vertices = []
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_31_vertex_data_list, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain__vertex_data_li, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[238])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_vertex_data_list, __pyx_t_6) < (0)) __PYX_ERR(10, 335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":350
 *         return vertices
 * 
 *     def _vertex_to_index_dict(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns dictionary from WEVertex pointer to index of vertex.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_33_vertex_to_index_dict, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain__vertex_to_inde, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[239])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_vertex_to_index_dict, __pyx_t_6) < (0)) __PYX_ERR(10, 350, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":365
 *         return result
 * 
 *     def _edge_to_index_dict(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns dictionary from WEEdge pointer to index of edge.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_35_edge_to_index_dict, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain__edge_to_index, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[240])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_edge_to_index_dict, __pyx_t_6) < (0)) __PYX_ERR(10, 365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":380
 *         return result
 * 
 *     def face_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of faces, each represented as a dictionary with
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_37face_list, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_face_list, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[241])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_face_list, __pyx_t_6) < (0)) __PYX_ERR(10, 380, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":474
 *         return faces
 * 
 *     def edge_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of edges, each represented as a dictionar with keys
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_39edge_list, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_edge_list, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[242])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_edge_list, __pyx_t_6) < (0)) __PYX_ERR(10, 474, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":502
 *         return edges
 * 
 *     def view(self):             # <<<<<<<<<<<<<<
 *         if PolyhedronViewer:
 *             return ViewerWindow(PolyhedronViewer, facedicts=self.face_list(),
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_41view, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_view, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[243])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_view, __pyx_t_6) < (0)) __PYX_ERR(10, 502, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":509
 *                            'was not imported.')
 * 
 *     def manifold(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Manifold computed directly from the Dirichlet
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_43manifold, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_manifold, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[244])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_manifold, __pyx_t_6) < (0)) __PYX_ERR(10, 509, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":524
 *         return self.triangulate(_manifold_class)
 * 
 *     def triangulation(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a Triangulation computed directly from the Dirichlet
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_45triangulation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_triangulation, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[245])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 524, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_triangulation, __pyx_t_6) < (0)) __PYX_ERR(10, 524, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":552
 *         return M
 * 
 *     def volume(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the approximate volume of the DirichletDomain.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_47volume, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_volume, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[246])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_volume, __pyx_t_6) < (0)) __PYX_ERR(10, 552, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":564
 *         return self._number_(volume)
 * 
 *     def pairing_matrices(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a list of the O31Matrices which pair the faces of
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_49pairing_matrices, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_pairing_matrice, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[247])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_pairing_matrices, __pyx_t_6) < (0)) __PYX_ERR(10, 564, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":593
 *         return matrices
 * 
 *     def pairing_words(self):             # <<<<<<<<<<<<<<
 *         """
 *         Group elements which pair the faces of this DirichletDomain
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_51pairing_words, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_pairing_words, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[248])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_pairing_words, __pyx_t_6) < (0)) __PYX_ERR(10, 593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":631
 *         return words
 * 
 *     def _to_string(self):             # <<<<<<<<<<<<<<
 *         matrices = self.pairing_matrices()
 *         result = '%% Generators\n%s\n' % len(matrices)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_53_to_string, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain__to_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[249])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_to_string, __pyx_t_6) < (0)) __PYX_ERR(10, 631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":640
 *         return result
 * 
 *     def __reduce_ex__(self, protocol):             # <<<<<<<<<<<<<<
 *         return (_unpickle_dirichlet_domain, (self._to_string(), self.manifold_name))
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_55__reduce_ex__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain___reduce_ex, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[250])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_reduce_ex, __pyx_t_6) < (0)) __PYX_ERR(10, 640, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":643
 *         return (_unpickle_dirichlet_domain, (self._to_string(), self.manifold_name))
 * 
 *     def save(self, filename):             # <<<<<<<<<<<<<<
 *         """
 *         Save the Dirichlet domain as a text file in "% Generators" format.
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_57save, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_save, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[251])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_save, __pyx_t_6) < (0)) __PYX_ERR(10, 643, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":666
 *             output.write(self._to_string().encode('ascii'))
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,             # <<<<<<<<<<<<<<
 *                    shrink_factor=0.9, cutoff_radius=0.9, callback=None):
 *         """
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16CDirichletDomain_59export_stl, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CDirichletDomain_export_stl, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[252])); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[59]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain, __pyx_mstate_global->__pyx_n_u_export_stl, __pyx_t_6) < (0)) __PYX_ERR(10, 666, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/dirichlet.pyx":703
 * 
 * 
 * class DirichletDomain(CDirichletDomain):             # <<<<<<<<<<<<<<
 *     """
 *     A DirichletDomain object represents a Dirichlet Domain of
*/
  __pyx_t_6 = PyTuple_Pack(1, ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_CDirichletDomain)); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_13 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(10, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_13, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_DirichletDomain, __pyx_mstate_global->__pyx_n_u_DirichletDomain, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_A_DirichletDomain_object_repres); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_5 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(10, 703, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_DirichletDomain, __pyx_t_5, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(10, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_DirichletDomain, __pyx_t_6) < (0)) __PYX_ERR(10, 703, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/dirichlet.pyx":742
 * 
 * 
 * def _unpickle_dirichlet_domain(string, name):             # <<<<<<<<<<<<<<
 *     return DirichletDomain(generator_bytes=string.encode('ascii'), manifold_name=name)
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_45_unpickle_dirichlet_domain, 0, __pyx_mstate_global->__pyx_n_u_unpickle_dirichlet_domain, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[253])); if (unlikely(!__pyx_t_5)) __PYX_ERR(10, 742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_unpickle_dirichlet_domain, __pyx_t_5) < (0)) __PYX_ERR(10, 742, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":9
 *     cdef original_indices
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _number_(n):
 *         return number.number_to_native_number(n)
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_1_number_, __Pyx_CYFUNCTION_STATICMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood__number, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[254])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_5) < (0)) __PYX_ERR(11, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_13 = NULL;
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject*)__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_number_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_2};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_staticmethod, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_number_2, __pyx_t_5) < (0)) __PYX_ERR(11, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":39
 *             N, N != 1 and 's' or '')
 * 
 *     def manifold(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a Manifold built from the current canonical triangulation.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_9manifold, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_manifold, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[255])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 39, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_manifold, __pyx_t_5) < (0)) __PYX_ERR(11, 39, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":53
 *         return M
 * 
 *     def original_index(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the index by which the Manifold identifies this cusp.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_11original_index, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_original_index, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[256])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_original_index, __pyx_t_5) < (0)) __PYX_ERR(11, 53, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":59
 *         return self.original_indices[which_cusp]
 * 
 *     def check_index(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Raises an IndexError if the cusp index is invalid.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_13check_index, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_check_index, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[257])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 59, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_check_index, __pyx_t_5) < (0)) __PYX_ERR(11, 59, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":70
 *                              'exist.' % which_cusp)
 * 
 *     def num_cusps(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the number of cusps.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_15num_cusps, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_num_cusps, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[258])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_num_cusps, __pyx_t_5) < (0)) __PYX_ERR(11, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":76
 *         return self._num_cusps
 * 
 *     def topology(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the topological type of the specified cusp.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_17topology, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_topology, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[259])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[47]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_topology, __pyx_t_5) < (0)) __PYX_ERR(11, 76, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":84
 *         return CuspTopology[topology]
 * 
 *     def get_displacement(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement of the horospherical boundary of the
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_19get_displacement, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_get_displaceme, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[260])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[47]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_get_displacement, __pyx_t_5) < (0)) __PYX_ERR(11, 84, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":99
 *         return self._number_(disp)
 * 
 *     def set_displacement(self, new_displacement, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Set the displacement of the specified cusp.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_21set_displacement, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_set_displaceme, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[261])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 99, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[47]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_set_displacement, __pyx_t_5) < (0)) __PYX_ERR(11, 99, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":107
 *                                            N, Object2Real(new_displacement))
 * 
 *     def stopping_displacement(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement at which the specified cusp
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_23stopping_displacement, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_stopping_displ, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[262])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[47]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_stopping_displacement, __pyx_t_5) < (0)) __PYX_ERR(11, 107, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":118
 *         return self._number_(disp)
 * 
 *     def stopper(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Return the index of the cusp which will be the first one that
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_25stopper, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_stopper, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[263])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_stopper, __pyx_t_5) < (0)) __PYX_ERR(11, 118, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":128
 *             self.c_cusp_neighborhood, N)
 * 
 *     def reach(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the displacement at which the specified cusp
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_27reach, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_reach, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[264])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[47]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_reach, __pyx_t_5) < (0)) __PYX_ERR(11, 128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":139
 *         return self._number_(reach)
 * 
 *     def max_reach(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the maximum reach over all cusps.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_29max_reach, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_max_reach, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[265])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_max_reach, __pyx_t_5) < (0)) __PYX_ERR(11, 139, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":147
 *         return self._number_(reach)
 * 
 *     def get_tie(self, which_cusp):             # <<<<<<<<<<<<<<
 *         """
 *         Return True if the specified cusp is a member of the tied group.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_31get_tie, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_get_tie, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[266])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_get_tie, __pyx_t_5) < (0)) __PYX_ERR(11, 147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":155
 *         return get_cusp_neighborhood_tie(self.c_cusp_neighborhood, N)
 * 
 *     def set_tie(self, which_cusp, new_tie):             # <<<<<<<<<<<<<<
 *         """
 *         Mark the specified cusp as a member of the tied group.
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_33set_tie, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_set_tie, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[267])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_set_tie, __pyx_t_5) < (0)) __PYX_ERR(11, 155, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":162
 *         set_cusp_neighborhood_tie(self.c_cusp_neighborhood, N, new_tie)
 * 
 *     def volume(self, which_cusp=0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the volume of the horoball neighborhood of the specified
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_35volume, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_volume, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[268])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[47]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_volume, __pyx_t_5) < (0)) __PYX_ERR(11, 162, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":172
 *         return self._number_(volume)
 * 
 *     def translations(self, which_cusp = 0):             # <<<<<<<<<<<<<<
 *         """
 *         Return the (complex) Euclidean translations of the meridian
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_37translations, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_translations, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[269])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[47]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_translations, __pyx_t_5) < (0)) __PYX_ERR(11, 172, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":190
 *         return self._number_(M), self._number_(L)
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,             # <<<<<<<<<<<<<<
 *                   high_precision=False):
 *         """
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_39horoballs, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_horoballs, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[270])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[60]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_horoballs, __pyx_t_5) < (0)) __PYX_ERR(11, 190, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":225
 *         return result
 * 
 *     def Ford_domain(self, which_cusp=0, high_precision=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of pairs of complex numbers describing the
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_41Ford_domain, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_Ford_domain, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[271])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[57]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_Ford_domain, __pyx_t_5) < (0)) __PYX_ERR(11, 225, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":257
 *         return result
 * 
 *     def triangulation(self, which_cusp=0, high_precision=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return a list of dictionaries describing the endpoints of the
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_43triangulation, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_triangulation, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[272])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[57]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_triangulation, __pyx_t_5) < (0)) __PYX_ERR(11, 257, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":289
 *         return result
 * 
 *     def view(self, which_cusp=0, cutoff=None):             # <<<<<<<<<<<<<<
 *         """
 *         Create a 3D picture of the horoball packing.  One can specify
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_45view, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood_view, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[273])); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[61]);
  if (__Pyx_SetItemOnTypeDict(__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood, __pyx_mstate_global->__pyx_n_u_view, __pyx_t_5) < (0)) __PYX_ERR(11, 289, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_47__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood___reduce_cytho, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[274])); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_5) < (0)) __PYX_ERR(7, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_17CCuspNeighborhood_49__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_CCuspNeighborhood___setstate_cyt, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[275])); if (unlikely(!__pyx_t_5)) __PYX_ERR(7, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_5) < (0)) __PYX_ERR(7, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/cusp_neighborhoods.pyx":309
 * 
 * 
 * class CuspNeighborhood(CCuspNeighborhood):             # <<<<<<<<<<<<<<
 *     """
 *     A CuspNeighborhood object represents an equivariant collection of
*/
  __pyx_t_5 = PyTuple_Pack(1, ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_CCuspNeighborhood)); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_13)) __PYX_ERR(11, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_13, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_CuspNeighborhood, __pyx_mstate_global->__pyx_n_u_CuspNeighborhood, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_A_CuspNeighborhood_object_repre); if (unlikely(!__pyx_t_6)) __PYX_ERR(11, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_2 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(11, 309, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_CuspNeighborhood, __pyx_t_2, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(11, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_CuspNeighborhood, __pyx_t_5) < (0)) __PYX_ERR(11, 309, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/pickle.pyx":27
 * from libc.math cimport floor
 * 
 * cdef IS_HUGE = <unsigned char> 1 << 7             # <<<<<<<<<<<<<<
 * cdef IS_BIG = <unsigned char> 1 << 6
 * cdef IS_COMPLETE = <unsigned char> 1 << 5
*/
  __pyx_t_2 = __Pyx_PyLong_From_long((((unsigned char)1) << 7)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_6SnapPy_IS_HUGE);
  __Pyx_DECREF_SET(__pyx_v_6SnapPy_IS_HUGE, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/pickle.pyx":28
 * 
 * cdef IS_HUGE = <unsigned char> 1 << 7
 * cdef IS_BIG = <unsigned char> 1 << 6             # <<<<<<<<<<<<<<
 * cdef IS_COMPLETE = <unsigned char> 1 << 5
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_From_long((((unsigned char)1) << 6)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 28, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_6SnapPy_IS_BIG);
  __Pyx_DECREF_SET(__pyx_v_6SnapPy_IS_BIG, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/pickle.pyx":29
 * cdef IS_HUGE = <unsigned char> 1 << 7
 * cdef IS_BIG = <unsigned char> 1 << 6
 * cdef IS_COMPLETE = <unsigned char> 1 << 5             # <<<<<<<<<<<<<<
 * 
 * cdef pickle_triangulation(c_Triangulation *tri):
*/
  __pyx_t_2 = __Pyx_PyLong_From_long((((unsigned char)1) << 5)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_6SnapPy_IS_COMPLETE);
  __Pyx_DECREF_SET(__pyx_v_6SnapPy_IS_COMPLETE, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":3
 * # get_triangulation
 * 
 * split_filling_info = re.compile(r'(.*?)((?:\([0-9 .+-]+,[0-9 .+-]+\))*$)')             # <<<<<<<<<<<<<<
 * is_torus_bundle = re.compile('b([+-no])([+-])([lLrR]+)$')
 * is_link_complement1_pat = r'(?P<crossings>[0-9]+)[\^](?P<components>[0-9]+)[_](?P<index>[0-9]+)$'
*/
  __pyx_t_13 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_0_9_0_9};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_split_filling_info, __pyx_t_2) < (0)) __PYX_ERR(2, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":4
 * 
 * split_filling_info = re.compile(r'(.*?)((?:\([0-9 .+-]+,[0-9 .+-]+\))*$)')
 * is_torus_bundle = re.compile('b([+-no])([+-])([lLrR]+)$')             # <<<<<<<<<<<<<<
 * is_link_complement1_pat = r'(?P<crossings>[0-9]+)[\^](?P<components>[0-9]+)[_](?P<index>[0-9]+)$'
 * is_link_complement2_pat = r'(?P<crossings>[0-9]+)[_](?P<index>[0-9]+)[\^](?P<components>[0-9]+)$'
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_b_no_lLrR};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_torus_bundle, __pyx_t_2) < (0)) __PYX_ERR(2, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":5
 * split_filling_info = re.compile(r'(.*?)((?:\([0-9 .+-]+,[0-9 .+-]+\))*$)')
 * is_torus_bundle = re.compile('b([+-no])([+-])([lLrR]+)$')
 * is_link_complement1_pat = r'(?P<crossings>[0-9]+)[\^](?P<components>[0-9]+)[_](?P<index>[0-9]+)$'             # <<<<<<<<<<<<<<
 * is_link_complement2_pat = r'(?P<crossings>[0-9]+)[_](?P<index>[0-9]+)[\^](?P<components>[0-9]+)$'
 * is_link_complement3_pat = '[lL](?P<components>[0-9]{1})(?P<crossings>[0-9]{2})(?P<index>[0-9]+)$'
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_link_complement1_pat, __pyx_mstate_global->__pyx_kp_u_P_crossings_0_9_P_components_0) < (0)) __PYX_ERR(2, 5, __pyx_L1_error)

  /* "cython/core/tail.pyx":6
 * is_torus_bundle = re.compile('b([+-no])([+-])([lLrR]+)$')
 * is_link_complement1_pat = r'(?P<crossings>[0-9]+)[\^](?P<components>[0-9]+)[_](?P<index>[0-9]+)$'
 * is_link_complement2_pat = r'(?P<crossings>[0-9]+)[_](?P<index>[0-9]+)[\^](?P<components>[0-9]+)$'             # <<<<<<<<<<<<<<
 * is_link_complement3_pat = '[lL](?P<components>[0-9]{1})(?P<crossings>[0-9]{2})(?P<index>[0-9]+)$'
 * is_link_complement1 = re.compile(is_link_complement1_pat)
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_link_complement2_pat, __pyx_mstate_global->__pyx_kp_u_P_crossings_0_9___P_index_0_9_P) < (0)) __PYX_ERR(2, 6, __pyx_L1_error)

  /* "cython/core/tail.pyx":7
 * is_link_complement1_pat = r'(?P<crossings>[0-9]+)[\^](?P<components>[0-9]+)[_](?P<index>[0-9]+)$'
 * is_link_complement2_pat = r'(?P<crossings>[0-9]+)[_](?P<index>[0-9]+)[\^](?P<components>[0-9]+)$'
 * is_link_complement3_pat = '[lL](?P<components>[0-9]{1})(?P<crossings>[0-9]{2})(?P<index>[0-9]+)$'             # <<<<<<<<<<<<<<
 * is_link_complement1 = re.compile(is_link_complement1_pat)
 * is_link_complement2 = re.compile(is_link_complement2_pat)
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_link_complement3_pat, __pyx_mstate_global->__pyx_kp_u_lL_P_components_0_9_1_P_crossin) < (0)) __PYX_ERR(2, 7, __pyx_L1_error)

  /* "cython/core/tail.pyx":8
 * is_link_complement2_pat = r'(?P<crossings>[0-9]+)[_](?P<index>[0-9]+)[\^](?P<components>[0-9]+)$'
 * is_link_complement3_pat = '[lL](?P<components>[0-9]{1})(?P<crossings>[0-9]{2})(?P<index>[0-9]+)$'
 * is_link_complement1 = re.compile(is_link_complement1_pat)             # <<<<<<<<<<<<<<
 * is_link_complement2 = re.compile(is_link_complement2_pat)
 * is_link_complement3 = re.compile(is_link_complement3_pat)
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_link_complement1_pat); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_link_complement1, __pyx_t_2) < (0)) __PYX_ERR(2, 8, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":9
 * is_link_complement3_pat = '[lL](?P<components>[0-9]{1})(?P<crossings>[0-9]{2})(?P<index>[0-9]+)$'
 * is_link_complement1 = re.compile(is_link_complement1_pat)
 * is_link_complement2 = re.compile(is_link_complement2_pat)             # <<<<<<<<<<<<<<
 * is_link_complement3 = re.compile(is_link_complement3_pat)
 * rolfsen_link_regexs = [is_link_complement1, is_link_complement2, is_link_complement3]
*/
  __pyx_t_13 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_link_complement2_pat); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_5};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_link_complement2, __pyx_t_2) < (0)) __PYX_ERR(2, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":10
 * is_link_complement1 = re.compile(is_link_complement1_pat)
 * is_link_complement2 = re.compile(is_link_complement2_pat)
 * is_link_complement3 = re.compile(is_link_complement3_pat)             # <<<<<<<<<<<<<<
 * rolfsen_link_regexs = [is_link_complement1, is_link_complement2, is_link_complement3]
 * is_HT_knot = re.compile('(?P<crossings>[0-9]+)(?P<alternation>[an])(?P<index>[0-9]+)$')
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_link_complement3_pat); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_5};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_link_complement3, __pyx_t_2) < (0)) __PYX_ERR(2, 10, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":11
 * is_link_complement2 = re.compile(is_link_complement2_pat)
 * is_link_complement3 = re.compile(is_link_complement3_pat)
 * rolfsen_link_regexs = [is_link_complement1, is_link_complement2, is_link_complement3]             # <<<<<<<<<<<<<<
 * is_HT_knot = re.compile('(?P<crossings>[0-9]+)(?P<alternation>[an])(?P<index>[0-9]+)$')
 * is_braid_complement = re.compile(r'[Bb]raid[:]?(\[[0-9, \-]+\])$')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_is_link_complement1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_is_link_complement2); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_is_link_complement3); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyList_Pack(3, __pyx_t_2, __pyx_t_13, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_rolfsen_link_regexs, __pyx_t_6) < (0)) __PYX_ERR(2, 11, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":12
 * is_link_complement3 = re.compile(is_link_complement3_pat)
 * rolfsen_link_regexs = [is_link_complement1, is_link_complement2, is_link_complement3]
 * is_HT_knot = re.compile('(?P<crossings>[0-9]+)(?P<alternation>[an])(?P<index>[0-9]+)$')             # <<<<<<<<<<<<<<
 * is_braid_complement = re.compile(r'[Bb]raid[:]?(\[[0-9, \-]+\])$')
 * is_int_DT_exterior = re.compile(r'DT[:]? *(\[[0-9, \-\(\)]+\](?: *, *\[[01, ]+\])?)$')
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_P_crossings_0_9_P_alternation_a};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 12, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_HT_knot, __pyx_t_6) < (0)) __PYX_ERR(2, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":13
 * rolfsen_link_regexs = [is_link_complement1, is_link_complement2, is_link_complement3]
 * is_HT_knot = re.compile('(?P<crossings>[0-9]+)(?P<alternation>[an])(?P<index>[0-9]+)$')
 * is_braid_complement = re.compile(r'[Bb]raid[:]?(\[[0-9, \-]+\])$')             # <<<<<<<<<<<<<<
 * is_int_DT_exterior = re.compile(r'DT[:]? *(\[[0-9, \-\(\)]+\](?: *, *\[[01, ]+\])?)$')
 * is_alpha_DT_exterior = re.compile(r'DT[:\[] *([a-zA-Z]+(?:\.[01]+)?)[\]]?$')
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 13, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 13, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Bb_raid_0_9};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 13, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_braid_complement, __pyx_t_6) < (0)) __PYX_ERR(2, 13, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":14
 * is_HT_knot = re.compile('(?P<crossings>[0-9]+)(?P<alternation>[an])(?P<index>[0-9]+)$')
 * is_braid_complement = re.compile(r'[Bb]raid[:]?(\[[0-9, \-]+\])$')
 * is_int_DT_exterior = re.compile(r'DT[:]? *(\[[0-9, \-\(\)]+\](?: *, *\[[01, ]+\])?)$')             # <<<<<<<<<<<<<<
 * is_alpha_DT_exterior = re.compile(r'DT[:\[] *([a-zA-Z]+(?:\.[01]+)?)[\]]?$')
 * twister_word = r'\[*([abcABC_\d!*]*|[abcABC_\d!,]*)\]*'
*/
  __pyx_t_13 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 14, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 14, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_mstate_global->__pyx_kp_u_DT_0_9_01};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_int_DT_exterior, __pyx_t_6) < (0)) __PYX_ERR(2, 14, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":15
 * is_braid_complement = re.compile(r'[Bb]raid[:]?(\[[0-9, \-]+\])$')
 * is_int_DT_exterior = re.compile(r'DT[:]? *(\[[0-9, \-\(\)]+\](?: *, *\[[01, ]+\])?)$')
 * is_alpha_DT_exterior = re.compile(r'DT[:\[] *([a-zA-Z]+(?:\.[01]+)?)[\]]?$')             # <<<<<<<<<<<<<<
 * twister_word = r'\[*([abcABC_\d!*]*|[abcABC_\d!,]*)\]*'
 * is_twister_bundle = re.compile(r'Bundle\(S_\{(\d+),(\d+)\},'+twister_word+r'\)')
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_DT_a_zA_Z_01};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_alpha_DT_exterior, __pyx_t_6) < (0)) __PYX_ERR(2, 15, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":16
 * is_int_DT_exterior = re.compile(r'DT[:]? *(\[[0-9, \-\(\)]+\](?: *, *\[[01, ]+\])?)$')
 * is_alpha_DT_exterior = re.compile(r'DT[:\[] *([a-zA-Z]+(?:\.[01]+)?)[\]]?$')
 * twister_word = r'\[*([abcABC_\d!*]*|[abcABC_\d!,]*)\]*'             # <<<<<<<<<<<<<<
 * is_twister_bundle = re.compile(r'Bundle\(S_\{(\d+),(\d+)\},'+twister_word+r'\)')
 * is_twister_splitting = re.compile(r'Splitting\(S_\{(\d+),(\d+)\},'+twister_word+','+twister_word+r'\)')
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_twister_word, __pyx_mstate_global->__pyx_kp_u_abcABC__d_abcABC__d) < (0)) __PYX_ERR(2, 16, __pyx_L1_error)

  /* "cython/core/tail.pyx":17
 * is_alpha_DT_exterior = re.compile(r'DT[:\[] *([a-zA-Z]+(?:\.[01]+)?)[\]]?$')
 * twister_word = r'\[*([abcABC_\d!*]*|[abcABC_\d!,]*)\]*'
 * is_twister_bundle = re.compile(r'Bundle\(S_\{(\d+),(\d+)\},'+twister_word+r'\)')             # <<<<<<<<<<<<<<
 * is_twister_splitting = re.compile(r'Splitting\(S_\{(\d+),(\d+)\},'+twister_word+','+twister_word+r'\)')
 * is_isosig = re.compile(r'([a-zA-Z0-9\+\-]+)$')
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_twister_word); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_16 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u_Bundle_S__d_d, __pyx_t_5); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyNumber_Add(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u__40); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_5};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 17, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_twister_bundle, __pyx_t_6) < (0)) __PYX_ERR(2, 17, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":18
 * twister_word = r'\[*([abcABC_\d!*]*|[abcABC_\d!,]*)\]*'
 * is_twister_bundle = re.compile(r'Bundle\(S_\{(\d+),(\d+)\},'+twister_word+r'\)')
 * is_twister_splitting = re.compile(r'Splitting\(S_\{(\d+),(\d+)\},'+twister_word+','+twister_word+r'\)')             # <<<<<<<<<<<<<<
 * is_isosig = re.compile(r'([a-zA-Z0-9\+\-]+)$')
 * is_decorated_isosig = decorated_isosig.isosig_pattern
*/
  __pyx_t_13 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_twister_word); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_16 = PyNumber_Add(__pyx_mstate_global->__pyx_kp_u_Splitting_S__d_d, __pyx_t_5); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyNumber_Add(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u__28); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_twister_word); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_4 = PyNumber_Add(__pyx_t_5, __pyx_t_16); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = PyNumber_Add(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__40); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_16};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 18, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_twister_splitting, __pyx_t_6) < (0)) __PYX_ERR(2, 18, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":19
 * is_twister_bundle = re.compile(r'Bundle\(S_\{(\d+),(\d+)\},'+twister_word+r'\)')
 * is_twister_splitting = re.compile(r'Splitting\(S_\{(\d+),(\d+)\},'+twister_word+','+twister_word+r'\)')
 * is_isosig = re.compile(r'([a-zA-Z0-9\+\-]+)$')             # <<<<<<<<<<<<<<
 * is_decorated_isosig = decorated_isosig.isosig_pattern
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_a_zA_Z0_9};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 19, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_isosig, __pyx_t_6) < (0)) __PYX_ERR(2, 19, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":20
 * is_twister_splitting = re.compile(r'Splitting\(S_\{(\d+),(\d+)\},'+twister_word+','+twister_word+r'\)')
 * is_isosig = re.compile(r'([a-zA-Z0-9\+\-]+)$')
 * is_decorated_isosig = decorated_isosig.isosig_pattern             # <<<<<<<<<<<<<<
 * 
 * # Hooks so that global module can monkey patch in modified versions
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_decorated_isosig); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 20, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_isosig_pattern); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 20, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_decorated_isosig, __pyx_t_13) < (0)) __PYX_ERR(2, 20, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":25
 * # of the Triangulation and Manifold classes.
 * 
 * _triangulation_class = Triangulation             # <<<<<<<<<<<<<<
 * _manifold_class = Manifold
 * 
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_triangulation_class, ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Triangulation)) < (0)) __PYX_ERR(2, 25, __pyx_L1_error)

  /* "cython/core/tail.pyx":26
 * 
 * _triangulation_class = Triangulation
 * _manifold_class = Manifold             # <<<<<<<<<<<<<<
 * 
 * 
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_manifold_class, ((PyObject *)__pyx_mstate_global->__pyx_ptype_6SnapPy_Manifold)) < (0)) __PYX_ERR(2, 26, __pyx_L1_error)

  /* "cython/core/tail.pyx":29
 * 
 * 
 * def bundle_from_string(desc):             # <<<<<<<<<<<<<<
 *     desc = desc.replace(' ', '')
 *     m = is_twister_bundle.match(desc)
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_47bundle_from_string, 0, __pyx_mstate_global->__pyx_n_u_bundle_from_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[276])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_bundle_from_string, __pyx_t_13) < (0)) __PYX_ERR(2, 29, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":40
 * 
 * 
 * def splitting_from_string(desc):             # <<<<<<<<<<<<<<
 *     desc = desc.replace(' ', '')
 *     m = is_twister_splitting.match(desc)
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_49splitting_from_string, 0, __pyx_mstate_global->__pyx_n_u_splitting_from_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[277])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 40, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_splitting_from_string, __pyx_t_13) < (0)) __PYX_ERR(2, 40, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":53
 * 
 * # Orientability.orientable = 0
 * rev_spec_dict = {(5, 0) : 'm',             # <<<<<<<<<<<<<<
 *                  (5, 1) : 'm',
 *                  (6, 0) : 's',
*/
  __pyx_t_13 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_tuple[62], __pyx_mstate_global->__pyx_n_u_m) < (0)) __PYX_ERR(2, 53, __pyx_L1_error)

  /* "cython/core/tail.pyx":54
 * # Orientability.orientable = 0
 * rev_spec_dict = {(5, 0) : 'm',
 *                  (5, 1) : 'm',             # <<<<<<<<<<<<<<
 *                  (6, 0) : 's',
 *                  (7, 0) : 'v',
*/
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_tuple[63], __pyx_mstate_global->__pyx_n_u_m) < (0)) __PYX_ERR(2, 53, __pyx_L1_error)

  /* "cython/core/tail.pyx":55
 * rev_spec_dict = {(5, 0) : 'm',
 *                  (5, 1) : 'm',
 *                  (6, 0) : 's',             # <<<<<<<<<<<<<<
 *                  (7, 0) : 'v',
 *                  (6, 1) : 'x',
*/
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_tuple[64], __pyx_mstate_global->__pyx_n_u_s) < (0)) __PYX_ERR(2, 53, __pyx_L1_error)

  /* "cython/core/tail.pyx":56
 *                  (5, 1) : 'm',
 *                  (6, 0) : 's',
 *                  (7, 0) : 'v',             # <<<<<<<<<<<<<<
 *                  (6, 1) : 'x',
 *                  (7, 1) : 'y'}
*/
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_tuple[65], __pyx_mstate_global->__pyx_n_u_v) < (0)) __PYX_ERR(2, 53, __pyx_L1_error)

  /* "cython/core/tail.pyx":57
 *                  (6, 0) : 's',
 *                  (7, 0) : 'v',
 *                  (6, 1) : 'x',             # <<<<<<<<<<<<<<
 *                  (7, 1) : 'y'}
 * 
*/
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_tuple[66], __pyx_mstate_global->__pyx_n_u_x) < (0)) __PYX_ERR(2, 53, __pyx_L1_error)

  /* "cython/core/tail.pyx":58
 *                  (7, 0) : 'v',
 *                  (6, 1) : 'x',
 *                  (7, 1) : 'y'}             # <<<<<<<<<<<<<<
 * 
 * triangulation_help = """
*/
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_tuple[67], __pyx_mstate_global->__pyx_n_u_y) < (0)) __PYX_ERR(2, 53, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_rev_spec_dict, __pyx_t_13) < (0)) __PYX_ERR(2, 53, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":60
 *                  (7, 1) : 'y'}
 * 
 * triangulation_help = """             # <<<<<<<<<<<<<<
 *     A %s is specified by a string or a byte sequence, according to the
 *     conventions detailed in its docstring.
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_triangulation_help, __pyx_mstate_global->__pyx_kp_u_A_s_is_specified_by_a_string_or) < (0)) __PYX_ERR(2, 60, __pyx_L1_error)

  /* "cython/core/tail.pyx":117
 * 
 * # Testing code for get_triangulation
 * def get_triangulation_tester():             # <<<<<<<<<<<<<<
 *     """
 *     >>> get_triangulation_tester() # doctest: +NUMERIC6
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_51get_triangulation_tester, 0, __pyx_mstate_global->__pyx_n_u_get_triangulation_tester, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[278])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_get_triangulation_tester, __pyx_t_13) < (0)) __PYX_ERR(2, 117, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":203
 * # crossings.
 * 
 * Alternating_numbers = {3: 1, 4: 1, 5: 2, 6: 3, 7: 7, 8: 18,             # <<<<<<<<<<<<<<
 *                        9: 41, 10: 123, 11: 367,
 *                        12: 1288, 13: 4878, 14: 19536, 15: 85263,
*/
  __pyx_t_13 = __Pyx_PyDict_NewPresized(14); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_5, __pyx_mstate_global->__pyx_int_2) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_6, __pyx_mstate_global->__pyx_int_3) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_7, __pyx_mstate_global->__pyx_int_7) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_8, __pyx_mstate_global->__pyx_int_18) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_9, __pyx_mstate_global->__pyx_int_41) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_10, __pyx_mstate_global->__pyx_int_123) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_11, __pyx_mstate_global->__pyx_int_367) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_12, __pyx_mstate_global->__pyx_int_1288) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_13, __pyx_mstate_global->__pyx_int_4878) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_14, __pyx_mstate_global->__pyx_int_19536) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_15, __pyx_mstate_global->__pyx_int_85263) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_16, __pyx_mstate_global->__pyx_int_379799) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Alternating_numbers, __pyx_t_13) < (0)) __PYX_ERR(2, 203, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":208
 *                        16: 379799}
 * 
 * Nonalternating_numbers = {8: 3, 9: 8, 10: 42, 11: 185, 12: 888,             # <<<<<<<<<<<<<<
 *                           13: 5110,
 *                           14: 27436, 15: 168030, 16: 1008906}
*/
  __pyx_t_13 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_8, __pyx_mstate_global->__pyx_int_3) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_9, __pyx_mstate_global->__pyx_int_8) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_10, __pyx_mstate_global->__pyx_int_42) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_11, __pyx_mstate_global->__pyx_int_185) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_12, __pyx_mstate_global->__pyx_int_888) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_13, __pyx_mstate_global->__pyx_int_5110) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_14, __pyx_mstate_global->__pyx_int_27436) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_15, __pyx_mstate_global->__pyx_int_168030) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_13, __pyx_mstate_global->__pyx_int_16, __pyx_mstate_global->__pyx_int_1008906) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Nonalternating_numbers, __pyx_t_13) < (0)) __PYX_ERR(2, 208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":212
 *                           14: 27436, 15: 168030, 16: 1008906}
 * 
 * Alternating_offsets = {}             # <<<<<<<<<<<<<<
 * offset = 0
 * for i in range(3, 17):
*/
  __pyx_t_13 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Alternating_offsets, __pyx_t_13) < (0)) __PYX_ERR(2, 212, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":213
 * 
 * Alternating_offsets = {}
 * offset = 0             # <<<<<<<<<<<<<<
 * for i in range(3, 17):
 *     Alternating_offsets[i] = offset
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_offset, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(2, 213, __pyx_L1_error)

  /* "cython/core/tail.pyx":214
 * Alternating_offsets = {}
 * offset = 0
 * for i in range(3, 17):             # <<<<<<<<<<<<<<
 *     Alternating_offsets[i] = offset
 *     offset += Alternating_numbers[i]
*/
  for (__pyx_t_3 = 3; __pyx_t_3 < 17; __pyx_t_3+=1) {
    __pyx_t_13 = PyLong_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_i, __pyx_t_13) < (0)) __PYX_ERR(2, 214, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

    /* "cython/core/tail.pyx":215
 * offset = 0
 * for i in range(3, 17):
 *     Alternating_offsets[i] = offset             # <<<<<<<<<<<<<<
 *     offset += Alternating_numbers[i]
 * Num_Alternating = offset
*/
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_offset); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_Alternating_offsets); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (unlikely((PyObject_SetItem(__pyx_t_6, __pyx_t_2, __pyx_t_13) < 0))) __PYX_ERR(2, 215, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

    /* "cython/core/tail.pyx":216
 * for i in range(3, 17):
 *     Alternating_offsets[i] = offset
 *     offset += Alternating_numbers[i]             # <<<<<<<<<<<<<<
 * Num_Alternating = offset
 * 
*/
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_offset); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Alternating_numbers); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_i); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_16 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_16);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_t_13, __pyx_t_16); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_offset, __pyx_t_6) < (0)) __PYX_ERR(2, 216, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }

  /* "cython/core/tail.pyx":217
 *     Alternating_offsets[i] = offset
 *     offset += Alternating_numbers[i]
 * Num_Alternating = offset             # <<<<<<<<<<<<<<
 * 
 * Nonalternating_offsets = {}
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_offset); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Num_Alternating, __pyx_t_6) < (0)) __PYX_ERR(2, 217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":219
 * Num_Alternating = offset
 * 
 * Nonalternating_offsets = {}             # <<<<<<<<<<<<<<
 * offset = 0
 * for i in range(8, 17):
*/
  __pyx_t_6 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Nonalternating_offsets, __pyx_t_6) < (0)) __PYX_ERR(2, 219, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":220
 * 
 * Nonalternating_offsets = {}
 * offset = 0             # <<<<<<<<<<<<<<
 * for i in range(8, 17):
 *     Nonalternating_offsets[i] = offset
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_offset, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(2, 220, __pyx_L1_error)

  /* "cython/core/tail.pyx":221
 * Nonalternating_offsets = {}
 * offset = 0
 * for i in range(8, 17):             # <<<<<<<<<<<<<<
 *     Nonalternating_offsets[i] = offset
 *     offset += Nonalternating_numbers[i]
*/
  for (__pyx_t_3 = 8; __pyx_t_3 < 17; __pyx_t_3+=1) {
    __pyx_t_6 = PyLong_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_i, __pyx_t_6) < (0)) __PYX_ERR(2, 221, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/tail.pyx":222
 * offset = 0
 * for i in range(8, 17):
 *     Nonalternating_offsets[i] = offset             # <<<<<<<<<<<<<<
 *     offset += Nonalternating_numbers[i]
 * Num_Nonalternating = offset
*/
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_offset); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Nonalternating_offsets); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_16);
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_i); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    if (unlikely((PyObject_SetItem(__pyx_t_16, __pyx_t_13, __pyx_t_6) < 0))) __PYX_ERR(2, 222, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "cython/core/tail.pyx":223
 * for i in range(8, 17):
 *     Nonalternating_offsets[i] = offset
 *     offset += Nonalternating_numbers[i]             # <<<<<<<<<<<<<<
 * Num_Nonalternating = offset
 * 
*/
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_offset); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_Nonalternating_numbers); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
    __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_i); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_16);
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_13, __pyx_t_16); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
    __pyx_t_16 = PyNumber_InPlaceAdd(__pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_16);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_offset, __pyx_t_16) < (0)) __PYX_ERR(2, 223, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  }

  /* "cython/core/tail.pyx":224
 *     Nonalternating_offsets[i] = offset
 *     offset += Nonalternating_numbers[i]
 * Num_Nonalternating = offset             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_offset); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Num_Nonalternating, __pyx_t_16) < (0)) __PYX_ERR(2, 224, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":227
 * 
 * 
 * def extract_HT_knot(record, crossings, alternation):             # <<<<<<<<<<<<<<
 *     DT = []
 *     size = (1+crossings)//2
*/
  __pyx_t_16 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_53extract_HT_knot, 0, __pyx_mstate_global->__pyx_n_u_extract_HT_knot, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[279])); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_16);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_extract_HT_knot, __pyx_t_16) < (0)) __PYX_ERR(2, 227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":248
 * 
 * 
 * def get_HT_knot_DT(crossings, alternation, index):             # <<<<<<<<<<<<<<
 *     size = (1 + crossings) // 2
 *     index -= 1
*/
  __pyx_t_16 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_55get_HT_knot_DT, 0, __pyx_mstate_global->__pyx_n_u_get_HT_knot_DT, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[280])); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_16);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_get_HT_knot_DT, __pyx_t_16) < (0)) __PYX_ERR(2, 248, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":274
 * 
 * 
 * def get_HT_knot_by_index(alternation, index, manifold_class):             # <<<<<<<<<<<<<<
 *     crossings = 16
 *     if alternation == 'a':
*/
  __pyx_t_16 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_57get_HT_knot_by_index, 0, __pyx_mstate_global->__pyx_n_u_get_HT_knot_by_index, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[281])); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_16);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_get_HT_knot_by_index, __pyx_t_16) < (0)) __PYX_ERR(2, 274, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":294
 * #   Iterators
 * 
 * class Census:             # <<<<<<<<<<<<<<
 *     """
 *     Base class for manifold Iterators/Sequences.
*/
  __pyx_t_16 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_Census, __pyx_mstate_global->__pyx_n_u_Census, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Base_class_for_manifold_Iterato); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);

  /* "cython/core/tail.pyx":299
 *     """
 *     # subclasses redefine this
 *     length = 0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, indices=(0, 0, 0)):
*/
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_length, __pyx_mstate_global->__pyx_int_0) < (0)) __PYX_ERR(2, 299, __pyx_L1_error)

  /* "cython/core/tail.pyx":301
 *     length = 0
 * 
 *     def __init__(self, indices=(0, 0, 0)):             # <<<<<<<<<<<<<<
 *         myslice = slice(*indices)
 *         self.start, self.stop, self.step = myslice.indices(self.length)
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_6Census_1__init__, 0, __pyx_mstate_global->__pyx_n_u_Census___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[282])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[68]);
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_2) < (0)) __PYX_ERR(2, 301, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":306
 *         self.index = self.start
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_6Census_3__iter__, 0, __pyx_mstate_global->__pyx_n_u_Census___iter, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[283])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_iter, __pyx_t_2) < (0)) __PYX_ERR(2, 306, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":309
 *         return self
 * 
 *     def __contains__(self, item):             # <<<<<<<<<<<<<<
 *         raise NotImplementedError("This census does not support manifold lookup")
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_6Census_5__contains__, 0, __pyx_mstate_global->__pyx_n_u_Census___contains, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[284])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_contains, __pyx_t_2) < (0)) __PYX_ERR(2, 309, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":312
 *         raise NotImplementedError("This census does not support manifold lookup")
 * 
 *     def next(self):             # <<<<<<<<<<<<<<
 *         if self.index >= self.stop:
 *             raise StopIteration
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_6Census_7next, 0, __pyx_mstate_global->__pyx_n_u_Census_next, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[285])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_next, __pyx_t_2) < (0)) __PYX_ERR(2, 312, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":318
 *         return self[self.index-self.step]
 * 
 *     __next__ = next             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
*/
  __pyx_t_2 = PyObject_GetItem(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_next);
  if (unlikely(!__pyx_t_2)) {
    PyErr_Clear();
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_next);
  }
  if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_next_2, __pyx_t_2) < (0)) __PYX_ERR(2, 318, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":320
 *     __next__ = next
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return self.length
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_6Census_9__len__, 0, __pyx_mstate_global->__pyx_n_u_Census___len, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[286])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_len_2, __pyx_t_2) < (0)) __PYX_ERR(2, 320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":324
 * 
 *     # subclasses override this
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         pass
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_6Census_11__getitem__, 0, __pyx_mstate_global->__pyx_n_u_Census___getitem, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[287])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_2) < (0)) __PYX_ERR(2, 324, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":294
 * #   Iterators
 * 
 * class Census:             # <<<<<<<<<<<<<<
 *     """
 *     Base class for manifold Iterators/Sequences.
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_Census, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_16, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Census, __pyx_t_2) < (0)) __PYX_ERR(2, 294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":330
 * #  Cusped Census
 * 
 * Orientable_lengths = (301, 962, 3552, 12846, 301+962+3552+12846)             # <<<<<<<<<<<<<<
 * Nonorientable_lengths = (114, 259, 887, 114+259+887)
 * 
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Orientable_lengths, __pyx_mstate_global->__pyx_tuple[69]) < (0)) __PYX_ERR(2, 330, __pyx_L1_error)

  /* "cython/core/tail.pyx":331
 * 
 * Orientable_lengths = (301, 962, 3552, 12846, 301+962+3552+12846)
 * Nonorientable_lengths = (114, 259, 887, 114+259+887)             # <<<<<<<<<<<<<<
 * 
 * five_tet_orientable = (
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Nonorientable_lengths, __pyx_mstate_global->__pyx_tuple[70]) < (0)) __PYX_ERR(2, 331, __pyx_L1_error)

  /* "cython/core/tail.pyx":334
 * 
 * five_tet_orientable = (
 *    3, 4, 6, 7, 9, 10, 11, 15, 16, 17, 19, 22, 23, 26, 27, 29, 30, 32, 33,             # <<<<<<<<<<<<<<
 *    34, 35, 36, 37, 38, 39, 40, 43, 44, 45, 46, 47, 49, 52, 53, 54, 55, 58,
 *    59, 60, 61, 62, 64, 66, 67, 69, 70, 71, 72, 73, 74, 76, 77, 78, 79, 80,
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_five_tet_orientable, __pyx_mstate_global->__pyx_tuple[71]) < (0)) __PYX_ERR(2, 333, __pyx_L1_error)

  /* "cython/core/tail.pyx":357
 * 
 * five_tet_nonorientable = (
 *    0, 1, 2, 5, 8, 12, 13, 14, 18, 20, 21, 24, 25, 28, 31, 41, 42, 48, 50,             # <<<<<<<<<<<<<<
 *    51, 56, 57, 63, 65, 68, 75, 86, 88, 91, 92, 97, 101, 107, 109, 114, 124,
 *    126, 127, 128, 131, 132, 133, 134, 138, 152, 153, 156, 158, 174, 176,
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_five_tet_nonorientable, __pyx_mstate_global->__pyx_tuple[72]) < (0)) __PYX_ERR(2, 356, __pyx_L1_error)

  /* "cython/core/tail.pyx":367
 * 
 * 
 * class CuspedCensus(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Base class for Iterators/Sequences for manifolds in the SnapPea
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_2 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_13 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_CuspedCensus, __pyx_mstate_global->__pyx_n_u_CuspedCensus, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Base_class_for_Iterators_Sequen); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (__pyx_t_16 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_13, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(2, 367, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":372
 *     Cusped Census.
 *     """
 *     five_length, six_length, seven_length, eight_length, length = Orientable_lengths             # <<<<<<<<<<<<<<
 *     orientability = Orientability.index('orientable')
 *     path = str(manifold_path)
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Orientable_lengths); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 5)) {
      if (size > 5) __Pyx_RaiseTooManyValuesError(5);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(2, 372, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_17 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_17);
      __pyx_t_19 = PyTuple_GET_ITEM(sequence, 3);
      __Pyx_INCREF(__pyx_t_19);
      __pyx_t_20 = PyTuple_GET_ITEM(sequence, 4);
      __Pyx_INCREF(__pyx_t_20);
    } else {
      __pyx_t_4 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 372, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 372, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __pyx_t_17 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 372, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_17);
      __pyx_t_19 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 372, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_19);
      __pyx_t_20 = __Pyx_PyList_GetItemRefFast(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 372, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_20);
    }
    #else
    {
      Py_ssize_t i;
      PyObject** temps[5] = {&__pyx_t_4,&__pyx_t_5,&__pyx_t_17,&__pyx_t_19,&__pyx_t_20};
      for (i=0; i < 5; i++) {
        PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(2, 372, __pyx_L1_error)
        __Pyx_GOTREF(item);
        *(temps[i]) = item;
      }
    }
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    PyObject** temps[5] = {&__pyx_t_4,&__pyx_t_5,&__pyx_t_17,&__pyx_t_19,&__pyx_t_20};
    __pyx_t_21 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 372, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_21);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_22 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_21);
    for (index=0; index < 5; index++) {
      PyObject* item = __pyx_t_22(__pyx_t_21); if (unlikely(!item)) goto __pyx_L73_unpacking_failed;
      __Pyx_GOTREF(item);
      *(temps[index]) = item;
    }
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_22(__pyx_t_21), 5) < (0)) __PYX_ERR(2, 372, __pyx_L1_error)
    __pyx_t_22 = NULL;
    __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
    goto __pyx_L74_unpacking_done;
    __pyx_L73_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
    __pyx_t_22 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(2, 372, __pyx_L1_error)
    __pyx_L74_unpacking_done:;
  }
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_five_length, __pyx_t_4) < (0)) __PYX_ERR(2, 372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_six_length, __pyx_t_5) < (0)) __PYX_ERR(2, 372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_seven_length, __pyx_t_17) < (0)) __PYX_ERR(2, 372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_eight_length, __pyx_t_19) < (0)) __PYX_ERR(2, 372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_20) < (0)) __PYX_ERR(2, 372, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;

  /* "cython/core/tail.pyx":373
 *     """
 *     five_length, six_length, seven_length, eight_length, length = Orientable_lengths
 *     orientability = Orientability.index('orientable')             # <<<<<<<<<<<<<<
 *     path = str(manifold_path)
 * 
*/
  __pyx_t_20 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_Orientability); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_20, __pyx_mstate_global->__pyx_n_u_orientable};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_17, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0;
    __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_orientability, __pyx_t_2) < (0)) __PYX_ERR(2, 373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":374
 *     five_length, six_length, seven_length, eight_length, length = Orientable_lengths
 *     orientability = Orientability.index('orientable')
 *     path = str(manifold_path)             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, indices=(0, length, 1)):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_17 = __Pyx_PyObject_Unicode(__pyx_t_2); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_path, __pyx_t_17) < (0)) __PYX_ERR(2, 374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;

  /* "cython/core/tail.pyx":376
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, length, 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 *         self.Census_Morwen8 = tarfile.open(os.path.join(manifold_path, 'morwen8.tgz'), 'r:*')
*/
  __pyx_t_17 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_12CuspedCensus_1__init__, 0, __pyx_mstate_global->__pyx_n_u_CuspedCensus___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[288])); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_17);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_17, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_defaults)) __PYX_ERR(2, 376, __pyx_L1_error)
  __pyx_t_2 = PyObject_GetItem(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_length);
  if (unlikely(!__pyx_t_2)) {
    PyErr_Clear();
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_length);
  }
  if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_20 = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_t_2, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_17)->arg0 = __pyx_t_20;
  __Pyx_GIVEREF(__pyx_t_20);
  __pyx_t_20 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_17, __pyx_pf_6SnapPy_62__defaults__);
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_17) < (0)) __PYX_ERR(2, 376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;

  /* "cython/core/tail.pyx":381
 * 
 *     # Override
 *     def lookup(self, n):             # <<<<<<<<<<<<<<
 *         return five_tet_orientable[n]
 * 
*/
  __pyx_t_17 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_12CuspedCensus_3lookup, 0, __pyx_mstate_global->__pyx_n_u_CuspedCensus_lookup, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[289])); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_17);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_lookup, __pyx_t_17) < (0)) __PYX_ERR(2, 381, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;

  /* "cython/core/tail.pyx":384
 *         return five_tet_orientable[n]
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/
  __pyx_t_17 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_12CuspedCensus_5__getitem__, 0, __pyx_mstate_global->__pyx_n_u_CuspedCensus___getitem, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[290])); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_17);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_17) < (0)) __PYX_ERR(2, 384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;

  /* "cython/core/tail.pyx":367
 * 
 * 
 * class CuspedCensus(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Base class for Iterators/Sequences for manifolds in the SnapPea
*/
  __pyx_t_17 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_CuspedCensus, __pyx_t_16, __pyx_t_13, NULL, 0, 0); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_17);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_CuspedCensus, __pyx_t_17) < (0)) __PYX_ERR(2, 367, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":431
 * 
 * 
 * class ObsOrientableCuspedCensus(CuspedCensus):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_CuspedCensus); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_17 = __Pyx_Py3MetaclassPrepare(__pyx_t_13, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_ObsOrientableCuspedCensus, __pyx_mstate_global->__pyx_n_u_ObsOrientableCuspedCensus, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Obsolete); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  if (__pyx_t_16 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_17, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(2, 431, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_ObsOrientableCuspedCensus, __pyx_t_16, __pyx_t_17, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ObsOrientableCuspedCensus, __pyx_t_6) < (0)) __PYX_ERR(2, 431, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":437
 * 
 * 
 * class ObsNonorientableCuspedCensus(CuspedCensus):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_CuspedCensus); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_13); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_17 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_17, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_ObsNonorientableCuspedCensus, __pyx_mstate_global->__pyx_n_u_ObsNonorientableCuspedCensus, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Obsolete); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_16 != __pyx_t_13) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_13) < 0))) __PYX_ERR(2, 437, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":441
 *     Obsolete.
 *     """
 *     five_length, six_length, seven_length, length = Nonorientable_lengths             # <<<<<<<<<<<<<<
 *     orientability = Orientability.index('nonorientable')
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_Nonorientable_lengths); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 441, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if ((likely(PyTuple_CheckExact(__pyx_t_13))) || (PyList_CheckExact(__pyx_t_13))) {
    PyObject* sequence = __pyx_t_13;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 4)) {
      if (size > 4) __Pyx_RaiseTooManyValuesError(4);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(2, 441, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_20 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_20);
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_19 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_19);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 3);
      __Pyx_INCREF(__pyx_t_5);
    } else {
      __pyx_t_20 = __Pyx_PyList_GetItemRefFast(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 441, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_20);
      __pyx_t_2 = __Pyx_PyList_GetItemRefFast(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 441, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_19 = __Pyx_PyList_GetItemRefFast(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 441, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_19);
      __pyx_t_5 = __Pyx_PyList_GetItemRefFast(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 441, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
    }
    #else
    {
      Py_ssize_t i;
      PyObject** temps[4] = {&__pyx_t_20,&__pyx_t_2,&__pyx_t_19,&__pyx_t_5};
      for (i=0; i < 4; i++) {
        PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(2, 441, __pyx_L1_error)
        __Pyx_GOTREF(item);
        *(temps[i]) = item;
      }
    }
    #endif
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  } else {
    Py_ssize_t index = -1;
    PyObject** temps[4] = {&__pyx_t_20,&__pyx_t_2,&__pyx_t_19,&__pyx_t_5};
    __pyx_t_4 = PyObject_GetIter(__pyx_t_13); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    __pyx_t_22 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4);
    for (index=0; index < 4; index++) {
      PyObject* item = __pyx_t_22(__pyx_t_4); if (unlikely(!item)) goto __pyx_L75_unpacking_failed;
      __Pyx_GOTREF(item);
      *(temps[index]) = item;
    }
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_22(__pyx_t_4), 4) < (0)) __PYX_ERR(2, 441, __pyx_L1_error)
    __pyx_t_22 = NULL;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L76_unpacking_done;
    __pyx_L75_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_22 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(2, 441, __pyx_L1_error)
    __pyx_L76_unpacking_done:;
  }
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_five_length, __pyx_t_20) < (0)) __PYX_ERR(2, 441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_six_length, __pyx_t_2) < (0)) __PYX_ERR(2, 441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_seven_length, __pyx_t_19) < (0)) __PYX_ERR(2, 441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_5) < (0)) __PYX_ERR(2, 441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "cython/core/tail.pyx":442
 *     """
 *     five_length, six_length, seven_length, length = Nonorientable_lengths
 *     orientability = Orientability.index('nonorientable')             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, indices=(0, length, 1)):
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_Orientability); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 442, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 442, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_nonorientable};
    __pyx_t_13 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 442, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
  }
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_orientability, __pyx_t_13) < (0)) __PYX_ERR(2, 442, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":444
 *     orientability = Orientability.index('nonorientable')
 * 
 *     def __init__(self, indices=(0, length, 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_28ObsNonorientableCuspedCensus_1__init__, 0, __pyx_mstate_global->__pyx_n_u_ObsNonorientableCuspedCensus___i, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[291])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_13, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_defaults)) __PYX_ERR(2, 444, __pyx_L1_error)
  __pyx_t_2 = PyObject_GetItem(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_length);
  if (unlikely(!__pyx_t_2)) {
    PyErr_Clear();
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_length);
  }
  if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_t_2, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_13)->arg0 = __pyx_t_5;
  __Pyx_GIVEREF(__pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_13, __pyx_pf_6SnapPy_64__defaults__);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_13) < (0)) __PYX_ERR(2, 444, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":447
 *         Census.__init__(self, indices)
 * 
 *     def lookup(self, n):             # <<<<<<<<<<<<<<
 *         return five_tet_nonorientable[n]
 * 
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_28ObsNonorientableCuspedCensus_3lookup, 0, __pyx_mstate_global->__pyx_n_u_ObsNonorientableCuspedCensus_loo, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[292])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_lookup, __pyx_t_13) < (0)) __PYX_ERR(2, 447, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":437
 * 
 * 
 * class ObsNonorientableCuspedCensus(CuspedCensus):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __pyx_t_13 = __Pyx_Py3ClassCreate(__pyx_t_17, __pyx_mstate_global->__pyx_n_u_ObsNonorientableCuspedCensus, __pyx_t_16, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ObsNonorientableCuspedCensus, __pyx_t_13) < (0)) __PYX_ERR(2, 437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":453
 * # Closed Census (Obsolete)
 * 
 * class ObsOrientableClosedCensus(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_17 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_17); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_13 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Obsolete); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (__pyx_t_16 != __pyx_t_17) {
    if (unlikely((PyDict_SetItemString(__pyx_t_13, "__orig_bases__", __pyx_t_17) < 0))) __PYX_ERR(2, 453, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;

  /* "cython/core/tail.pyx":457
 *     Obsolete.
 *     """
 *     data = None             # <<<<<<<<<<<<<<
 *     orientability = Orientability.index('orientable')
 *     path = str(manifold_path)
*/
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_data, Py_None) < (0)) __PYX_ERR(2, 457, __pyx_L1_error)

  /* "cython/core/tail.pyx":458
 *     """
 *     data = None
 *     orientability = Orientability.index('orientable')             # <<<<<<<<<<<<<<
 *     path = str(manifold_path)
 * 
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Orientability); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_n_u_orientable};
    __pyx_t_17 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_19, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
    if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 458, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_17);
  }
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_orientability, __pyx_t_17) < (0)) __PYX_ERR(2, 458, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;

  /* "cython/core/tail.pyx":459
 *     data = None
 *     orientability = Orientability.index('orientable')
 *     path = str(manifold_path)             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, indices=(0, 11031, 1)):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __pyx_t_19 = __Pyx_PyObject_Unicode(__pyx_t_17); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_path, __pyx_t_19) < (0)) __PYX_ERR(2, 459, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cython/core/tail.pyx":461
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 11031, 1)):             # <<<<<<<<<<<<<<
 *         if ObsOrientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/
  __pyx_t_19 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_25ObsOrientableClosedCensus_1__init__, 0, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[293])); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_19, __pyx_mstate_global->__pyx_tuple[73]);
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_19) < (0)) __PYX_ERR(2, 461, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cython/core/tail.pyx":471
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/
  __pyx_t_19 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_25ObsOrientableClosedCensus_3__getitem__, 0, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus___geti, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[294])); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_19) < (0)) __PYX_ERR(2, 471, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cython/core/tail.pyx":453
 * # Closed Census (Obsolete)
 * 
 * class ObsOrientableClosedCensus(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus, __pyx_t_16, __pyx_t_13, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ObsOrientableClosedCensus, __pyx_t_19) < (0)) __PYX_ERR(2, 453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":488
 * 
 * 
 * class ObsNonorientableClosedCensus(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_6 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_13, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Obsolete); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_16 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(2, 488, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":492
 *     Obsolete.
 *     """
 *     data = None             # <<<<<<<<<<<<<<
 *     orientability = Orientability.index('nonorientable')
 *     path = str(manifold_path)
*/
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_data, Py_None) < (0)) __PYX_ERR(2, 492, __pyx_L1_error)

  /* "cython/core/tail.pyx":493
 *     """
 *     data = None
 *     orientability = Orientability.index('nonorientable')             # <<<<<<<<<<<<<<
 *     path = str(manifold_path)
 * 
*/
  __pyx_t_17 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Orientability); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_17, __pyx_mstate_global->__pyx_n_u_nonorientable};
    __pyx_t_6 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_orientability, __pyx_t_6) < (0)) __PYX_ERR(2, 493, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "cython/core/tail.pyx":494
 *     data = None
 *     orientability = Orientability.index('nonorientable')
 *     path = str(manifold_path)             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, indices=(0, 17, 1)):
*/
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_manifold_path); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_path, __pyx_t_2) < (0)) __PYX_ERR(2, 494, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":496
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 17, 1)):             # <<<<<<<<<<<<<<
 *         if ObsNonorientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_28ObsNonorientableClosedCensus_1__init__, 0, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus___i, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[295])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[74]);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_2) < (0)) __PYX_ERR(2, 496, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":506
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         cdef c_Triangulation* c_triangulation
 *         cdef Manifold result
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_28ObsNonorientableClosedCensus_3__getitem__, 0, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus___g, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[296])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_2) < (0)) __PYX_ERR(2, 506, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":488
 * 
 * 
 * class ObsNonorientableClosedCensus(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus, __pyx_t_16, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ObsNonorientableClosedCensus, __pyx_t_2) < (0)) __PYX_ERR(2, 488, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":525
 * # Knot tables
 * 
 * class KnotExteriors(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Base class for Iterators/Sequences for knots from the
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_13); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_KnotExteriors, __pyx_mstate_global->__pyx_n_u_KnotExteriors, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Base_class_for_Iterators_Sequen_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_16 != __pyx_t_13) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_13) < 0))) __PYX_ERR(2, 525, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":530
 *     Hoste-Thistlethwaite tables.
 *     """
 *     length = sum(Alternating_numbers.values())             # <<<<<<<<<<<<<<
 *     alternation = 'a'
 * 
*/
  __pyx_t_6 = NULL;
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_Alternating_numbers); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_values); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_17 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_15, (1-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 530, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_17);
  }
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_17};
    __pyx_t_13 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
    if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 530, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
  }
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_13) < (0)) __PYX_ERR(2, 530, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":531
 *     """
 *     length = sum(Alternating_numbers.values())
 *     alternation = 'a'             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, indices=(0, sum(Alternating_numbers.values()), 1)):
*/
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_alternation, __pyx_mstate_global->__pyx_n_u_a_2) < (0)) __PYX_ERR(2, 531, __pyx_L1_error)

  /* "cython/core/tail.pyx":533
 *     alternation = 'a'
 * 
 *     def __init__(self, indices=(0, sum(Alternating_numbers.values()), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13KnotExteriors_1__init__, 0, __pyx_mstate_global->__pyx_n_u_KnotExteriors___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[297])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_13, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_defaults)) __PYX_ERR(2, 533, __pyx_L1_error)
  __pyx_t_6 = NULL;
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_Alternating_numbers); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __pyx_t_21 = __Pyx_PyObject_GetAttrStr(__pyx_t_20, __pyx_mstate_global->__pyx_n_u_values); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_21, __pyx_callargs+__pyx_t_15, (1-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 533, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_t_4};
    __pyx_t_17 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 533, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_17);
  }
  __pyx_t_4 = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_t_17, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_13)->arg0 = __pyx_t_4;
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_13, __pyx_pf_6SnapPy_66__defaults__);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_13) < (0)) __PYX_ERR(2, 533, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":536
 *         Census.__init__(self, indices)
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_13KnotExteriors_3__getitem__, 0, __pyx_mstate_global->__pyx_n_u_KnotExteriors___getitem, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[298])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_13) < (0)) __PYX_ERR(2, 536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":525
 * # Knot tables
 * 
 * class KnotExteriors(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Base class for Iterators/Sequences for knots from the
*/
  __pyx_t_13 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_KnotExteriors, __pyx_t_16, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_KnotExteriors, __pyx_t_13) < (0)) __PYX_ERR(2, 525, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":543
 * 
 * 
 * class AlternatingKnotExteriors(KnotExteriors):             # <<<<<<<<<<<<<<
 *     """
 *     Iterator/Sequence for Alternating knot exteriors from the
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_KnotExteriors); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_AlternatingKnotExteriors, __pyx_mstate_global->__pyx_n_u_AlternatingKnotExteriors, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Iterator_Sequence_for_Alternati); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (__pyx_t_16 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_13, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(2, 543, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __pyx_t_19 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_AlternatingKnotExteriors, __pyx_t_16, __pyx_t_13, NULL, 0, 0); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_19);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_AlternatingKnotExteriors, __pyx_t_19) < (0)) __PYX_ERR(2, 543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":550
 * 
 * 
 * class NonalternatingKnotExteriors(KnotExteriors):             # <<<<<<<<<<<<<<
 *     """
 *     Iterator/Sequence for nonAlternating knot exteriors from the
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_KnotExteriors); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_2 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_19 = __Pyx_Py3MetaclassPrepare(__pyx_t_13, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_NonalternatingKnotExteriors, __pyx_mstate_global->__pyx_n_u_NonalternatingKnotExteriors, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Iterator_Sequence_for_nonAltern); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  if (__pyx_t_16 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_19, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(2, 550, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":555
 *     Hoste-Thistlethwaite tables.  Goes through 16 crossings.
 *     """
 *     length = sum(Nonalternating_numbers.values())             # <<<<<<<<<<<<<<
 *     alternation = 'n'
 * 
*/
  __pyx_t_4 = NULL;
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_Nonalternating_numbers); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_17 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_15, (1-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 555, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_17);
  }
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_17};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 555, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_2) < (0)) __PYX_ERR(2, 555, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":556
 *     """
 *     length = sum(Nonalternating_numbers.values())
 *     alternation = 'n'             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, indices=(0, sum(Nonalternating_numbers.values()), 1)):
*/
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_alternation, __pyx_mstate_global->__pyx_n_u_n) < (0)) __PYX_ERR(2, 556, __pyx_L1_error)

  /* "cython/core/tail.pyx":558
 *     alternation = 'n'
 * 
 *     def __init__(self, indices=(0, sum(Nonalternating_numbers.values()), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_27NonalternatingKnotExteriors_1__init__, 0, __pyx_mstate_global->__pyx_n_u_NonalternatingKnotExteriors___in, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[299])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_defaults)) __PYX_ERR(2, 558, __pyx_L1_error)
  __pyx_t_4 = NULL;
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_Nonalternating_numbers); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_values); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_20, __pyx_callargs+__pyx_t_15, (1-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 558, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_5};
    __pyx_t_17 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 558, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_17);
  }
  __pyx_t_5 = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_t_17, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_2)->arg0 = __pyx_t_5;
  __Pyx_GIVEREF(__pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_2, __pyx_pf_6SnapPy_68__defaults__);
  if (__Pyx_SetNameInClass(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_2) < (0)) __PYX_ERR(2, 558, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":550
 * 
 * 
 * class NonalternatingKnotExteriors(KnotExteriors):             # <<<<<<<<<<<<<<
 *     """
 *     Iterator/Sequence for nonAlternating knot exteriors from the
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_NonalternatingKnotExteriors, __pyx_t_16, __pyx_t_19, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_NonalternatingKnotExteriors, __pyx_t_2) < (0)) __PYX_ERR(2, 550, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":562
 * 
 * 
 * census_knot_numbers = [0, 0, 1, 2, 4, 22, 43, 129]             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_16 = __Pyx_PyList_Pack(8, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_2, __pyx_mstate_global->__pyx_int_4, __pyx_mstate_global->__pyx_int_22, __pyx_mstate_global->__pyx_int_43, __pyx_mstate_global->__pyx_int_129); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_census_knot_numbers, __pyx_t_16) < (0)) __PYX_ERR(2, 562, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":565
 * 
 * 
 * class ObsCensusKnots(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_13); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_19 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_19, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_ObsCensusKnots, __pyx_mstate_global->__pyx_n_u_ObsCensusKnots, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Obsolete_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_16 != __pyx_t_13) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_13) < 0))) __PYX_ERR(2, 565, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":569
 *     Obsolete
 *     """
 *     length = sum(census_knot_numbers)             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, indices=(0, sum(census_knot_numbers), 1)):
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_17, __pyx_mstate_global->__pyx_n_u_census_knot_numbers); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_17};
    __pyx_t_13 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
    if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_13);
  }
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_length, __pyx_t_13) < (0)) __PYX_ERR(2, 569, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":571
 *     length = sum(census_knot_numbers)
 * 
 *     def __init__(self, indices=(0, sum(census_knot_numbers), 1)):             # <<<<<<<<<<<<<<
 *         Census.__init__(self, indices)
 *         self.Census_Knots = tarfile.open(census_knot_archive, 'r:*')
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14ObsCensusKnots_1__init__, 0, __pyx_mstate_global->__pyx_n_u_ObsCensusKnots___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[300])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_13, __pyx_mstate_global->__pyx_ptype_6SnapPy___pyx_defaults)) __PYX_ERR(2, 571, __pyx_L1_error)
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_census_knot_numbers); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_15 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_4};
    __pyx_t_17 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_sum, __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_17);
  }
  __pyx_t_4 = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_t_17, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_13)->arg0 = __pyx_t_4;
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_13, __pyx_pf_6SnapPy_70__defaults__);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_13) < (0)) __PYX_ERR(2, 571, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":575
 *         self.Census_Knots = tarfile.open(census_knot_archive, 'r:*')
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return 'Knots in S^3 which appear in the SnapPea Census'
 * 
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14ObsCensusKnots_3__repr__, 0, __pyx_mstate_global->__pyx_n_u_ObsCensusKnots___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[301])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_13) < (0)) __PYX_ERR(2, 575, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":578
 *         return 'Knots in S^3 which appear in the SnapPea Census'
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             return self.__class__(n.indices(self.length))
*/
  __pyx_t_13 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14ObsCensusKnots_5__getitem__, 0, __pyx_mstate_global->__pyx_n_u_ObsCensusKnots___getitem, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[302])); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_13) < (0)) __PYX_ERR(2, 578, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

  /* "cython/core/tail.pyx":565
 * 
 * 
 * class ObsCensusKnots(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete
*/
  __pyx_t_13 = __Pyx_Py3ClassCreate(__pyx_t_19, __pyx_mstate_global->__pyx_n_u_ObsCensusKnots, __pyx_t_16, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_13);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ObsCensusKnots, __pyx_t_13) < (0)) __PYX_ERR(2, 565, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":605
 * 
 * 
 * class ObsLinkExteriors(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_19 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_19); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_13 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_ObsLinkExteriors, __pyx_mstate_global->__pyx_n_u_ObsLinkExteriors, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Obsolete); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (__pyx_t_16 != __pyx_t_19) {
    if (unlikely((PyDict_SetItemString(__pyx_t_13, "__orig_bases__", __pyx_t_19) < 0))) __PYX_ERR(2, 605, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;

  /* "cython/core/tail.pyx":611
 *     # num_links[component][crossings] is the number of links with
 *     # specified number of components and crossings.
 *     num_links= [[], [0, 0, 0, 1, 1, 2, 3, 7, 21, 49, 166, 552],             # <<<<<<<<<<<<<<
 *                 [0, 0, 0, 0, 1, 1, 3, 8, 16, 61, 183],
 *                 [0, 0, 0, 0, 0, 0, 3, 1, 10, 21, 74],
*/
  __pyx_t_19 = PyList_New(0); if (unlikely(!__pyx_t_19)) __PYX_ERR(2, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_19);
  __pyx_t_4 = __Pyx_PyList_Pack(12, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_2, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_int_7, __pyx_mstate_global->__pyx_int_21, __pyx_mstate_global->__pyx_int_49, __pyx_mstate_global->__pyx_int_166, __pyx_mstate_global->__pyx_int_552); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "cython/core/tail.pyx":612
 *     # specified number of components and crossings.
 *     num_links= [[], [0, 0, 0, 1, 1, 2, 3, 7, 21, 49, 166, 552],
 *                 [0, 0, 0, 0, 1, 1, 3, 8, 16, 61, 183],             # <<<<<<<<<<<<<<
 *                 [0, 0, 0, 0, 0, 0, 3, 1, 10, 21, 74],
 *                 [0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 24],
*/
  __pyx_t_17 = __Pyx_PyList_Pack(11, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_int_8, __pyx_mstate_global->__pyx_int_16, __pyx_mstate_global->__pyx_int_61, __pyx_mstate_global->__pyx_int_183); if (unlikely(!__pyx_t_17)) __PYX_ERR(2, 612, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);

  /* "cython/core/tail.pyx":613
 *     num_links= [[], [0, 0, 0, 1, 1, 2, 3, 7, 21, 49, 166, 552],
 *                 [0, 0, 0, 0, 1, 1, 3, 8, 16, 61, 183],
 *                 [0, 0, 0, 0, 0, 0, 3, 1, 10, 21, 74],             # <<<<<<<<<<<<<<
 *                 [0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 24],
 *                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3]]
*/
  __pyx_t_5 = __Pyx_PyList_Pack(11, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_10, __pyx_mstate_global->__pyx_int_21, __pyx_mstate_global->__pyx_int_74); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "cython/core/tail.pyx":614
 *                 [0, 0, 0, 0, 1, 1, 3, 8, 16, 61, 183],
 *                 [0, 0, 0, 0, 0, 0, 3, 1, 10, 21, 74],
 *                 [0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 24],             # <<<<<<<<<<<<<<
 *                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3]]
 * 
*/
  __pyx_t_20 = __Pyx_PyList_Pack(11, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_24); if (unlikely(!__pyx_t_20)) __PYX_ERR(2, 614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_20);

  /* "cython/core/tail.pyx":615
 *                 [0, 0, 0, 0, 0, 0, 3, 1, 10, 21, 74],
 *                 [0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 24],
 *                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3]]             # <<<<<<<<<<<<<<
 * 
 *     max_crossings = 11
*/
  __pyx_t_6 = __Pyx_PyList_Pack(11, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "cython/core/tail.pyx":611
 *     # num_links[component][crossings] is the number of links with
 *     # specified number of components and crossings.
 *     num_links= [[], [0, 0, 0, 1, 1, 2, 3, 7, 21, 49, 166, 552],             # <<<<<<<<<<<<<<
 *                 [0, 0, 0, 0, 1, 1, 3, 8, 16, 61, 183],
 *                 [0, 0, 0, 0, 0, 0, 3, 1, 10, 21, 74],
*/
  __pyx_t_21 = __Pyx_PyList_Pack(6, __pyx_t_19, __pyx_t_4, __pyx_t_17, __pyx_t_5, __pyx_t_20, __pyx_t_6); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_num_links, __pyx_t_21) < (0)) __PYX_ERR(2, 611, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

  /* "cython/core/tail.pyx":617
 *                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3]]
 * 
 *     max_crossings = 11             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, components, indices=(0, 10000, 1)):
*/
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_max_crossings, __pyx_mstate_global->__pyx_int_11) < (0)) __PYX_ERR(2, 617, __pyx_L1_error)

  /* "cython/core/tail.pyx":619
 *     max_crossings = 11
 * 
 *     def __init__(self, components, indices=(0, 10000, 1)):             # <<<<<<<<<<<<<<
 *         self.Christy_links = tarfile.open(link_archive, 'r:*')
 * 
*/
  __pyx_t_21 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16ObsLinkExteriors_1__init__, 0, __pyx_mstate_global->__pyx_n_u_ObsLinkExteriors___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[303])); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_21);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_21, __pyx_mstate_global->__pyx_tuple[75]);
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_21) < (0)) __PYX_ERR(2, 619, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

  /* "cython/core/tail.pyx":634
 *                                indices[2]))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ('Christy census of %s-component link complements '
 *                 'in S^3' % self.components)
*/
  __pyx_t_21 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16ObsLinkExteriors_3__repr__, 0, __pyx_mstate_global->__pyx_n_u_ObsLinkExteriors___repr, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[304])); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_21);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_21) < (0)) __PYX_ERR(2, 634, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

  /* "cython/core/tail.pyx":638
 *                 'in S^3' % self.components)
 * 
 *     def __getitem__(self, j):             # <<<<<<<<<<<<<<
 *         if isinstance(j, slice):
 *             return self.__class__(j.indices(self.length))
*/
  __pyx_t_21 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_16ObsLinkExteriors_5__getitem__, 0, __pyx_mstate_global->__pyx_n_u_ObsLinkExteriors___getitem, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[305])); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_21);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_21) < (0)) __PYX_ERR(2, 638, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;

  /* "cython/core/tail.pyx":605
 * 
 * 
 * class ObsLinkExteriors(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __pyx_t_21 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_ObsLinkExteriors, __pyx_t_16, __pyx_t_13, NULL, 0, 0); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_21);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ObsLinkExteriors, __pyx_t_21) < (0)) __PYX_ERR(2, 605, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":671
 * # ----------------------------------------------------------------
 * 
 * class MorwenLinks:             # <<<<<<<<<<<<<<
 *     def __init__(self, num_components, num_crossings = None):
 *         raise ValueError(
*/
  __pyx_t_16 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_MorwenLinks, __pyx_mstate_global->__pyx_n_u_MorwenLinks, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, (PyObject *) NULL); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);

  /* "cython/core/tail.pyx":672
 * 
 * class MorwenLinks:
 *     def __init__(self, num_components, num_crossings = None):             # <<<<<<<<<<<<<<
 *         raise ValueError(
 *             'The MorwenLinks class has been replaced by HTLinkExteriors. '
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_11MorwenLinks_1__init__, 0, __pyx_mstate_global->__pyx_n_u_MorwenLinks___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[306])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[37]);
  if (__Pyx_SetNameInClass(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_2) < (0)) __PYX_ERR(2, 672, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":671
 * # ----------------------------------------------------------------
 * 
 * class MorwenLinks:             # <<<<<<<<<<<<<<
 *     def __init__(self, num_components, num_crossings = None):
 *         raise ValueError(
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_MorwenLinks, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_16, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_MorwenLinks, __pyx_t_2) < (0)) __PYX_ERR(2, 671, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":679
 * 
 * 
 * def left_pad_string(str,  length, pad=' '):             # <<<<<<<<<<<<<<
 *     return pad*(length - len(str)) + str
 * 
*/
  __pyx_t_16 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_59left_pad_string, 0, __pyx_mstate_global->__pyx_n_u_left_pad_string, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[307])); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_16);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_16, __pyx_mstate_global->__pyx_tuple[76]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_left_pad_string, __pyx_t_16) < (0)) __PYX_ERR(2, 679, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":683
 * 
 * 
 * class ObsMorwenLinks(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __Pyx_GetModuleGlobalName(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Census); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_2 = PyTuple_Pack(1, __pyx_t_16); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
  __pyx_t_16 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = __Pyx_CalculateMetaclass(NULL, __pyx_t_16); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_21 = __Pyx_Py3MetaclassPrepare(__pyx_t_13, __pyx_t_16, __pyx_mstate_global->__pyx_n_u_ObsMorwenLinks, __pyx_mstate_global->__pyx_n_u_ObsMorwenLinks, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_kp_u_Obsolete); if (unlikely(!__pyx_t_21)) __PYX_ERR(2, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_21);
  if (__pyx_t_16 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_21, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(2, 683, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":687
 *     Obsolete.
 *     """
 *     def __init__(self, num_components, num_crossings = None):             # <<<<<<<<<<<<<<
 *         if num_components < 0:
 *             return
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14ObsMorwenLinks_1__init__, 0, __pyx_mstate_global->__pyx_n_u_ObsMorwenLinks___init, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[308])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[37]);
  if (__Pyx_SetNameInClass(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_2) < (0)) __PYX_ERR(2, 687, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":713
 *         Census.__init__(self, indices=(0, len(self.DT_codes), 1))
 * 
 *     def __getitem__(self, n):             # <<<<<<<<<<<<<<
 *         if isinstance(n, slice):
 *             SC = self.__class__(-1)
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_14ObsMorwenLinks_3__getitem__, 0, __pyx_mstate_global->__pyx_n_u_ObsMorwenLinks___getitem, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[309])); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_21, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_2) < (0)) __PYX_ERR(2, 713, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cython/core/tail.pyx":683
 * 
 * 
 * class ObsMorwenLinks(Census):             # <<<<<<<<<<<<<<
 *     """
 *     Obsolete.
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_ObsMorwenLinks, __pyx_t_16, __pyx_t_21, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_ObsMorwenLinks, __pyx_t_2) < (0)) __PYX_ERR(2, 683, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":753
 * # Link Editor support
 * 
 * strandtype = {'X': KLPStrandX, 'Y': KLPStrandY}             # <<<<<<<<<<<<<<
 * signtype = {'R': KLPHalfTwistCL, 'L': KLPHalfTwistCCL}
 * 
*/
  __pyx_t_16 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = __Pyx_PyLong_From_KLPStrandType(KLPStrandX); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_X, __pyx_t_13) < (0)) __PYX_ERR(2, 753, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_13 = __Pyx_PyLong_From_KLPStrandType(KLPStrandY); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_Y, __pyx_t_13) < (0)) __PYX_ERR(2, 753, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_strandtype, __pyx_t_16) < (0)) __PYX_ERR(2, 753, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "cython/core/tail.pyx":754
 * 
 * strandtype = {'X': KLPStrandX, 'Y': KLPStrandY}
 * signtype = {'R': KLPHalfTwistCL, 'L': KLPHalfTwistCCL}             # <<<<<<<<<<<<<<
 * 
 * cdef c_Triangulation* get_triangulation_from_PythonKLP(pythonklp, remove_finite_vertices=True) except *:
*/
  __pyx_t_16 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_13 = __Pyx_PyLong_From_KLPCrossingType(KLPHalfTwistCL); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_R, __pyx_t_13) < (0)) __PYX_ERR(2, 754, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_13 = __Pyx_PyLong_From_KLPCrossingType(KLPHalfTwistCCL); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_n_u_L, __pyx_t_13) < (0)) __PYX_ERR(2, 754, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_signtype, __pyx_t_16) < (0)) __PYX_ERR(2, 754, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "(tree fragment)":4
 *     int __Pyx_CheckUnpickleChecksum(long, long, long, long, const char*) except -1
 *     int __Pyx_UpdateUnpickledDict(object, object, Py_ssize_t) except -1
 * def __pyx_unpickle_PresentationMatrix(__pyx_type, long __pyx_checksum, tuple __pyx_state):             # <<<<<<<<<<<<<<
 *     cdef object __pyx_result
 *     __Pyx_CheckUnpickleChecksum(__pyx_checksum, 0x59cf8a3, 0x3a22a1e, 0x3df3bb8, b'_col_support, _entries, _row_support, _units, cols, dead_columns, rows')
*/
  __pyx_t_16 = __Pyx_CyFunction_New(&__pyx_mdef_6SnapPy_61__pyx_unpickle_PresentationMatrix, 0, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_PresentationMatri, NULL, __pyx_mstate_global->__pyx_n_u_SnapPy, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[310])); if (unlikely(!__pyx_t_16)) __PYX_ERR(7, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_16);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_pyx_unpickle_PresentationMatri, __pyx_t_16) < (0)) __PYX_ERR(7, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /* "SnapPy.pyx":1
 * # cython: language_level=3str             # <<<<<<<<<<<<<<
 * # cython: embedsignature = False
 * 
*/
  __pyx_t_16 = __Pyx_PyDict_NewPresized(103); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__remove_finite_ver_2, __pyx_mstate_global->__pyx_kp_u_Removing_any_finite_vertices_by) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_plink_line_343, __pyx_mstate_global->__pyx_kp_u_Brings_up_a_link_editor_window) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_num_cusps_line_387, __pyx_mstate_global->__pyx_kp_u_Return_the_total_number_of_cusp) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__num_fake_cusps_li, __pyx_mstate_global->__pyx_kp_u_Returns_the_number_of_fake_cusp) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_orientation_cover_2, __pyx_mstate_global->__pyx_kp_u_For_a_non_orientable_Triangulat) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_is_orientable_line, __pyx_mstate_global->__pyx_kp_u_Return_whether_the_underlying_3) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_copy_line_466, __pyx_mstate_global->__pyx_kp_u_Returns_a_copy_of_the_triangula) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_randomize_line_483, __pyx_mstate_global->__pyx_kp_u_Perform_random_Pachner_moves_on) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_simplify_line_497, __pyx_mstate_global->__pyx_kp_u_Try_to_simplify_the_triangulati) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_with_hyperbolic_st_2, __pyx_mstate_global->__pyx_kp_u_Add_a_possibly_degenerate_hyper) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_save_line_653, __pyx_mstate_global->__pyx_kp_u_Save_the_triangulation_as_a_Sna) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__to_string_line_67, __pyx_mstate_global->__pyx_kp_u_Return_a_string_containing_the) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__from_string_line, __pyx_mstate_global->__pyx_kp_u_WARNING_Users_should_not_use_th) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__to_bytes_line_723, __pyx_mstate_global->__pyx_kp_u_Return_a_reasonably_short_byte) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__from_bytes_line_7, __pyx_mstate_global->__pyx_kp_u_Fill_an_empty_triangulation_fro) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__from_tetrahedra_g_2, __pyx_mstate_global->__pyx_kp_u_data_1_1_2_2_0_1_3_2_2_3_1_0_0) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__from_isosig_line, __pyx_mstate_global->__pyx_kp_u_WARNING_Users_should_not_use_th_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation___reduce___line_88, __pyx_mstate_global->__pyx_kp_u_Used_by_pickle_dumps_from_pickl) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__reindex_cusps_lin, __pyx_mstate_global->__pyx_kp_u_import_itertools_M_Manifold_L14) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__isomorphisms_to_l, __pyx_mstate_global->__pyx_kp_u_Returns_a_complete_list_of_comb) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_name_line_1081, __pyx_mstate_global->__pyx_kp_u_Return_the_name_of_the_triangul) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_set_name_line_1093, __pyx_mstate_global->__pyx_kp_u_Give_the_triangulation_a_new_na) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_DT_code_line_1108, __pyx_mstate_global->__pyx_kp_u_Return_the_Dowker_Thistlethwait) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_num_tetrahedra_lin, __pyx_mstate_global->__pyx_kp_u_Return_the_number_of_tetrahedra) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_dehn_fill_line_116, __pyx_mstate_global->__pyx_kp_u_Set_the_Dehn_filling_coefficien) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_cusp_info_line_123, __pyx_mstate_global->__pyx_kp_u_Returns_an_info_object_containi) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_reverse_orientatio_2, __pyx_mstate_global->__pyx_kp_u_Reverses_the_orientation_of_the) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_filled_triangulati_2, __pyx_mstate_global->__pyx_kp_u_Return_a_new_manifold_where_the) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation__unsimplified_fill_2, __pyx_mstate_global->__pyx_kp_u_For_a_Triangulation_that_descri) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_edge_valences_line, __pyx_mstate_global->__pyx_kp_u_Returns_a_dictionary_whose_keys) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_gluing_equations_p_2, __pyx_mstate_global->__pyx_kp_u_Returns_a_NeumannZagierTypeEqua) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_ptolemy_obstructio_2, __pyx_mstate_global->__pyx_kp_u_Returns_the_obstruction_classes) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_ptolemy_generalize_2, __pyx_mstate_global->__pyx_kp_u_Returns_the_obstruction_classes_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_ptolemy_variety_li, __pyx_mstate_global->__pyx_kp_u_M_ptolemy_variety_N_obstruction) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_gluing_equations_l, __pyx_mstate_global->__pyx_kp_u_In_the_default_mode_this_functi) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_homology_line_2311, __pyx_mstate_global->__pyx_kp_u_Returns_an_class_AbelianGroup_r) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_fundamental_group_2, __pyx_mstate_global->__pyx_kp_u_Returns_a_class_FundamentalGrou) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_cover_line_2395, __pyx_mstate_global->__pyx_kp_u_Returns_a_class_Triangulation_r) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_covers_line_2497, __pyx_mstate_global->__pyx_kp_u_Returns_a_list_of_Triangulation) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_has_finite_vertice_2, __pyx_mstate_global->__pyx_kp_u_Returns_True_if_and_only_if_the) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_triangulation_isos_2, __pyx_mstate_global->__pyx_kp_u_Returns_the_decorated_isomorphi) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Triangulation_symplectic_basis_l, __pyx_mstate_global->__pyx_kp_u_Extend_the_Neumann_Zagier_matri) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_canonize_line_146, __pyx_mstate_global->__pyx_kp_u_Change_the_triangulation_to_an) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold__canonical_retriangulat_2, __pyx_mstate_global->__pyx_kp_u_If_this_triangulation_is_a_subd) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold__canonical_cells_are_te_2, __pyx_mstate_global->__pyx_kp_u_Returns_True_if_and_only_if_the_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold__from_string_line_267, __pyx_mstate_global->__pyx_kp_u_WARNING_Users_should_not_use_th_3) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold__from_bytes_line_283, __pyx_mstate_global->__pyx_kp_u_Fill_an_empty_manifold_from_a_b) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_copy_line_308, __pyx_mstate_global->__pyx_kp_u_Returns_a_copy_of_the_manifold) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_cusp_neighborhood_line, __pyx_mstate_global->__pyx_kp_u_Returns_information_about_the_c) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_dirichlet_domain_line_3, __pyx_mstate_global->__pyx_kp_u_Returns_a_class_DirichletDomain) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_browse_line_386, __pyx_mstate_global->__pyx_kp_u_Opens_browser_window_with_a_gra) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_filled_triangulation_li, __pyx_mstate_global->__pyx_kp_u_Return_a_new_Manifold_where_the) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_fundamental_group_line, __pyx_mstate_global->__pyx_kp_u_Return_a_class_HolonomyGroup_re) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_symmetric_triangulation_2, __pyx_mstate_global->__pyx_kp_u_Returns_a_Dehn_filling_descript) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_cover_line_549, __pyx_mstate_global->__pyx_kp_u_Returns_a_class_Manifold_repres) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_covers_line_618, __pyx_mstate_global->__pyx_kp_u_Returns_a_list_of_class_Manifol) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_volume_line_728, __pyx_mstate_global->__pyx_kp_u_Returns_the_volume_of_the_curre) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_chern_simons_line_821, __pyx_mstate_global->__pyx_kp_u_Returns_the_Chern_Simons_invari) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_without_hyperbolic_stru_2, __pyx_mstate_global->__pyx_kp_u_Returns_self_as_a_class_Triangu) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_tetrahedra_shapes_line, __pyx_mstate_global->__pyx_kp_u_Gives_the_shapes_of_the_tetrahe) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_solution_type_line_1063, __pyx_mstate_global->__pyx_kp_u_Returns_the_type_of_the_current) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_cusp_info_line_1128, __pyx_mstate_global->__pyx_kp_u_Returns_an_info_object_containi_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_dehn_fill_line_1251, __pyx_mstate_global->__pyx_kp_u_Set_the_Dehn_filling_coefficien_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_set_peripheral_curves_l, __pyx_mstate_global->__pyx_kp_u_Each_cusp_has_a_preferred_marki) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_dual_curves_line_1403, __pyx_mstate_global->__pyx_kp_u_Constructs_a_reasonable_selecti) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_length_spectrum_line_14, __pyx_mstate_global->__pyx_kp_u_Returns_a_list_of_geodesics_wit) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_drill_line_1505, __pyx_mstate_global->__pyx_kp_u_Drills_out_the_specified_dual_c) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold__is_isometric_to_line_1, __pyx_mstate_global->__pyx_kp_u_Returns_True_if_M_and_N_are_iso) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_is_two_bridge_line_1647, __pyx_mstate_global->__pyx_kp_u_If_the_manifold_is_the_compleme) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_splitting_surfaces_line, __pyx_mstate_global->__pyx_kp_u_Searches_for_connected_closed_n) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_Manifold_split_line_1768, __pyx_mstate_global->__pyx_kp_u_Split_the_manifold_open_along_a) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_AbelianGroup___reduce___line_82, __pyx_mstate_global->__pyx_kp_u_Used_by_the_pickle_module_to_pi) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CFundamentalGroup_original_gener_2, __pyx_mstate_global->__pyx_kp_u_Return_the_original_geometric_g) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CFundamentalGroup_generators_in_2, __pyx_mstate_global->__pyx_kp_u_Return_the_current_generators_i) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CFundamentalGroup_generators_lin, __pyx_mstate_global->__pyx_kp_u_Return_the_letters_representing) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CFundamentalGroup_meridian_line, __pyx_mstate_global->__pyx_kp_u_Returns_a_word_representing_a_c) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CFundamentalGroup_longitude_line, __pyx_mstate_global->__pyx_kp_u_Returns_a_word_representing_a_c_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CFundamentalGroup_peripheral_cur_2, __pyx_mstate_global->__pyx_kp_u_Returns_a_list_of_meridian_long) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CFundamentalGroup_gap_string_lin, __pyx_mstate_global->__pyx_kp_u_Returns_a_string_which_will_def) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CFundamentalGroup_character_vari_2, __pyx_mstate_global->__pyx_kp_u_Returns_a_list_of_variables_and) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_is_full_group_line, __pyx_mstate_global->__pyx_kp_u_Return_whether_the_full_symmetr) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_order_line_62, __pyx_mstate_global->__pyx_kp_u_Return_the_order_of_the_symmetr) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_is_abelian_line_72, __pyx_mstate_global->__pyx_kp_u_Return_whether_the_symmetry_gro) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_abelian_descriptio_2, __pyx_mstate_global->__pyx_kp_u_If_the_symmetry_group_is_abelia) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_is_dihedral_line_1, __pyx_mstate_global->__pyx_kp_u_Return_whether_the_symmetry_gro_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_is_direct_product_2, __pyx_mstate_global->__pyx_kp_u_Return_whether_the_SymmetryGrou) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_direct_product_des_2, __pyx_mstate_global->__pyx_kp_u_If_the_SymmetryGroup_is_a_nontr) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_is_amphicheiral_li, __pyx_mstate_global->__pyx_kp_u_Return_whether_the_manifold_has) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_is_invertible_knot_2, __pyx_mstate_global->__pyx_kp_u_Return_whether_a_one_cusped_has) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_commutator_subgrou_2, __pyx_mstate_global->__pyx_kp_u_Return_the_commutator_subgroup) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_abelianization_lin, __pyx_mstate_global->__pyx_kp_u_Return_the_abelianization_of_th) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_center_line_256, __pyx_mstate_global->__pyx_kp_u_Return_the_center_of_the_symmet) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_multiply_elements_2, __pyx_mstate_global->__pyx_kp_u_Returns_the_product_of_group_el) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_SymmetryGroup_isometries_line_29, __pyx_mstate_global->__pyx_kp_u_Return_a_detailed_list_of_all_t) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CDirichletDomain_length_spectrum_2, __pyx_mstate_global->__pyx_kp_u_Return_a_list_of_info_objects_d) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CDirichletDomain_manifold_line_5, __pyx_mstate_global->__pyx_kp_u_Returns_a_Manifold_computed_dir) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CDirichletDomain_triangulation_l, __pyx_mstate_global->__pyx_kp_u_Returns_a_Triangulation_compute) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CDirichletDomain_pairing_matrice_2, __pyx_mstate_global->__pyx_kp_u_Returns_a_list_of_the_O31Matric) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CDirichletDomain_pairing_words_l, __pyx_mstate_global->__pyx_kp_u_Group_elements_which_pair_the_f) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CDirichletDomain_save_line_643, __pyx_mstate_global->__pyx_kp_u_Save_the_Dirichlet_domain_as_a) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CDirichletDomain_export_stl_line, __pyx_mstate_global->__pyx_kp_u_Export_the_Dirichlet_domain_as) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_CCuspNeighborhood_view_line_289, __pyx_mstate_global->__pyx_kp_u_Create_a_3D_picture_of_the_horo) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_16, __pyx_mstate_global->__pyx_kp_u_get_triangulation_tester_line_11, __pyx_mstate_global->__pyx_kp_u_get_triangulation_tester_doctes) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_16) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_XDECREF(__pyx_t_19);
  __Pyx_XDECREF(__pyx_t_20);
  __Pyx_XDECREF(__pyx_t_21);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init SnapPy", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      PyErr_Fetch(&tp, &value, &tb);
      PyState_RemoveModule(&__pyx_moduledef);
      PyErr_Restore(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init SnapPy");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #else
  return __pyx_m;
  #endif
}
/* #### Code section: pystring_table ### */
/* #### Code section: cached_builtins ### */

static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(1, 85, __pyx_L1_error)
  __pyx_builtin_sum = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_sum); if (!__pyx_builtin_sum) __PYX_ERR(2, 530, __pyx_L1_error)
  __pyx_builtin_eval = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_eval); if (!__pyx_builtin_eval) __PYX_ERR(3, 257, __pyx_L1_error)
  __pyx_builtin_map = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_map); if (!__pyx_builtin_map) __PYX_ERR(3, 380, __pyx_L1_error)
  __pyx_builtin_super = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_super); if (!__pyx_builtin_super) __PYX_ERR(3, 511, __pyx_L1_error)
  __pyx_builtin_max = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_max); if (!__pyx_builtin_max) __PYX_ERR(3, 551, __pyx_L1_error)
  __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_print); if (!__pyx_builtin_print) __PYX_ERR(4, 122, __pyx_L1_error)
  __pyx_builtin_open = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_open); if (!__pyx_builtin_open) __PYX_ERR(4, 292, __pyx_L1_error)
  __pyx_builtin_NotImplemented = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_NotImplemented); if (!__pyx_builtin_NotImplemented) __PYX_ERR(4, 1058, __pyx_L1_error)
  __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(4, 1225, __pyx_L1_error)
  __pyx_builtin_all = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_all); if (!__pyx_builtin_all) __PYX_ERR(4, 1344, __pyx_L1_error)
  __pyx_builtin_sorted = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_sorted); if (!__pyx_builtin_sorted) __PYX_ERR(4, 2570, __pyx_L1_error)

  /* Cached unbound methods */
  __pyx_mstate->__pyx_umethod_PyDict_Type_get.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_get.method_name = &__pyx_mstate->__pyx_n_u_get;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.method_name = &__pyx_mstate->__pyx_n_u_items;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.method_name = &__pyx_mstate->__pyx_n_u_values;
  __pyx_mstate->__pyx_umethod_PyList_Type_pop.type = (PyObject*)&PyList_Type;
  __pyx_mstate->__pyx_umethod_PyList_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  __pyx_mstate->__pyx_umethod_PyBytes_Type__split.type = (PyObject*)(&PyBytes_Type);
  __pyx_mstate->__pyx_umethod_PyBytes_Type__split.method_name = &__pyx_mstate->__pyx_n_u_split;
  __pyx_mstate->__pyx_umethod_PyDict_Type__update.type = (PyObject*)(&PyDict_Type);
  __pyx_mstate->__pyx_umethod_PyDict_Type__update.method_name = &__pyx_mstate->__pyx_n_u_update;
  __pyx_mstate->__pyx_umethod_PyUnicode_Type__ljust.type = (PyObject*)(&PyUnicode_Type);
  __pyx_mstate->__pyx_umethod_PyUnicode_Type__ljust.method_name = &__pyx_mstate->__pyx_n_u_ljust;
  __pyx_mstate->__pyx_umethod_PyUnicode_Type__lower.type = (PyObject*)(&PyUnicode_Type);
  __pyx_mstate->__pyx_umethod_PyUnicode_Type__lower.method_name = &__pyx_mstate->__pyx_n_u_lower;
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "cython/core/basic.pyx":380
 * 
 *             return "[ %s, ..., %s]" % (
 *                 ', '.join(map(repr, l[:3])),             # <<<<<<<<<<<<<<
 *                 ', '.join(map(repr, l[-3:])))
 * 
*/
  __pyx_mstate_global->__pyx_slice[0] = PySlice_New(Py_None, __pyx_mstate_global->__pyx_int_3, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[0])) __PYX_ERR(3, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[0]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[0]);

  /* "cython/core/basic.pyx":381
 *             return "[ %s, ..., %s]" % (
 *                 ', '.join(map(repr, l[:3])),
 *                 ', '.join(map(repr, l[-3:])))             # <<<<<<<<<<<<<<
 * 
 *         return (
*/
  __pyx_mstate_global->__pyx_slice[1] = PySlice_New(__pyx_mstate_global->__pyx_int_neg_3, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[1])) __PYX_ERR(3, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[1]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[1]);

  /* "cython/core/basic.pyx":454
 *         # e.g., "1.0 E-10" (note the space before "E").
 *         # Remove it - otherwise it cannot be parsed.
 *         string = string.replace(' ', '')             # <<<<<<<<<<<<<<
 *         float(string)
 *     except:
*/
  __pyx_mstate_global->__pyx_tuple[0] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__9, __pyx_mstate_global->__pyx_kp_u__10); if (unlikely(!__pyx_mstate_global->__pyx_tuple[0])) __PYX_ERR(3, 454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[0]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[0]);

  /* "cython/core/basic.pyx":615
 *         if len(self) > 0 and 'word' in self[0]:
 *             base = LengthSpectrumFormatStringWithWord % (
 *                 'mult', ' length', 'topology', 'parity', 'word')             # <<<<<<<<<<<<<<
 *         else:
 *             base = LengthSpectrumFormatString % (
*/
  __pyx_mstate_global->__pyx_tuple[1] = PyTuple_Pack(5, __pyx_mstate_global->__pyx_n_u_mult, __pyx_mstate_global->__pyx_kp_u_length_2, __pyx_mstate_global->__pyx_n_u_topology, __pyx_mstate_global->__pyx_n_u_parity, __pyx_mstate_global->__pyx_n_u_word); if (unlikely(!__pyx_mstate_global->__pyx_tuple[1])) __PYX_ERR(3, 615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[1]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[1]);

  /* "cython/core/basic.pyx":618
 *         else:
 *             base = LengthSpectrumFormatString % (
 *                 'mult', ' length', 'topology', 'parity')             # <<<<<<<<<<<<<<
 *         return '\n'.join([base] + [repr(s) for s in self])
 * 
*/
  __pyx_mstate_global->__pyx_tuple[2] = PyTuple_Pack(4, __pyx_mstate_global->__pyx_n_u_mult, __pyx_mstate_global->__pyx_kp_u_length_2, __pyx_mstate_global->__pyx_n_u_topology, __pyx_mstate_global->__pyx_n_u_parity); if (unlikely(!__pyx_mstate_global->__pyx_tuple[2])) __PYX_ERR(3, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[2]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[2]);

  /* "cython/core/basic.pyx":630
 * 
 * def format_two_by_two(mat):
 *     a,b,c,d = ['%d' % x for x in [mat[0,0], mat[0,1], mat[1,0], mat[1,1]]]             # <<<<<<<<<<<<<<
 *     w0 = max(len(a), len(c))
 *     w1 = max(len(b), len(d))
*/
  __pyx_mstate_global->__pyx_tuple[3] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[3])) __PYX_ERR(3, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[3]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[3]);
  __pyx_mstate_global->__pyx_tuple[4] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[4])) __PYX_ERR(3, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[4]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);
  __pyx_mstate_global->__pyx_tuple[5] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[5])) __PYX_ERR(3, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[5]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);
  __pyx_mstate_global->__pyx_tuple[6] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[6])) __PYX_ERR(3, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[6]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[6]);

  /* "cython/core/triangulation.pyx":94
 *         self._link_file_full_path = None
 * 
 *         for attr in ['__snappy__', 'snapPea', '_to_string']:             # <<<<<<<<<<<<<<
 *             if hasattr(spec, attr):
 *                 spec = getattr(spec, attr)()
*/
  __pyx_mstate_global->__pyx_tuple[7] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_n_u_snappy, __pyx_mstate_global->__pyx_n_u_snapPea, __pyx_mstate_global->__pyx_n_u_to_string); if (unlikely(!__pyx_mstate_global->__pyx_tuple[7])) __PYX_ERR(4, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[7]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[7]);

  /* "cython/core/triangulation.pyx":140
 *         m = split_filling_info.match(spec)
 *         name = m.group(1)
 *         fillings = eval( '[' + m.group(2).replace(')(', '),(')+ ']', {})             # <<<<<<<<<<<<<<
 * 
 *         self.get_triangulation_from_name(name, remove_finite_vertices)
*/
  __pyx_mstate_global->__pyx_tuple[8] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__18, __pyx_mstate_global->__pyx_kp_u__19); if (unlikely(!__pyx_mstate_global->__pyx_tuple[8])) __PYX_ERR(4, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[8]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[8]);

  /* "cython/core/triangulation.pyx":172
 *             if m:
 *                 if int(m.group('components')) > 1:
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),             # <<<<<<<<<<<<<<
 *                                                  int(m.group('components')),
 *                                                  int(m.group('index')))
*/
  __pyx_mstate_global->__pyx_tuple[9] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_crossings); if (unlikely(!__pyx_mstate_global->__pyx_tuple[9])) __PYX_ERR(4, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[9]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[9]);

  /* "cython/core/triangulation.pyx":173
 *                 if int(m.group('components')) > 1:
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),
 *                                                  int(m.group('components')),             # <<<<<<<<<<<<<<
 *                                                  int(m.group('index')))
 *                 else:
*/
  __pyx_mstate_global->__pyx_tuple[10] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_components); if (unlikely(!__pyx_mstate_global->__pyx_tuple[10])) __PYX_ERR(4, 173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[10]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[10]);

  /* "cython/core/triangulation.pyx":174
 *                     rolfsen_name = '%d^%d_%d' % (int(m.group('crossings')),
 *                                                  int(m.group('components')),
 *                                                  int(m.group('index')))             # <<<<<<<<<<<<<<
 *                 else:
 *                     rolfsen_name = '%d_%d' % (int(m.group('crossings')),
*/
  __pyx_mstate_global->__pyx_tuple[11] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_index); if (unlikely(!__pyx_mstate_global->__pyx_tuple[11])) __PYX_ERR(4, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[11]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[11]);

  /* "cython/core/triangulation.pyx":293
 *             if os.path.isfile(pathname):
 *                 file = open(pathname, 'r')
 *                 first_line = file.readline()[:-1]             # <<<<<<<<<<<<<<
 *                 file.close()
 *                 if first_line.find('% Link Projection') > -1:
*/
  __pyx_mstate_global->__pyx_slice[2] = PySlice_New(Py_None, __pyx_mstate_global->__pyx_int_neg_1, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[2])) __PYX_ERR(4, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[2]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[2]);

  /* "cython/core/triangulation.pyx":642
 *                 mode='w', title='Save Triangulation', defaultextension='.tri',
 *                 filetypes = [
 *                     ('Triangulation and text files', '*.tri *.txt', 'TEXT'),             # <<<<<<<<<<<<<<
 *                     ('All text files', '', 'TEXT'),
 *                     ('All files', '')])
*/
  __pyx_mstate_global->__pyx_tuple[12] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_kp_u_Triangulation_and_text_files, __pyx_mstate_global->__pyx_kp_u_tri_txt, __pyx_mstate_global->__pyx_n_u_TEXT); if (unlikely(!__pyx_mstate_global->__pyx_tuple[12])) __PYX_ERR(4, 642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[12]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[12]);

  /* "cython/core/triangulation.pyx":643
 *                 filetypes = [
 *                     ('Triangulation and text files', '*.tri *.txt', 'TEXT'),
 *                     ('All text files', '', 'TEXT'),             # <<<<<<<<<<<<<<
 *                     ('All files', '')])
 *             if savefile:
*/
  __pyx_mstate_global->__pyx_tuple[13] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_kp_u_All_text_files, __pyx_mstate_global->__pyx_kp_u__10, __pyx_mstate_global->__pyx_n_u_TEXT); if (unlikely(!__pyx_mstate_global->__pyx_tuple[13])) __PYX_ERR(4, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[13]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[13]);

  /* "cython/core/triangulation.pyx":644
 *                     ('Triangulation and text files', '*.tri *.txt', 'TEXT'),
 *                     ('All text files', '', 'TEXT'),
 *                     ('All files', '')])             # <<<<<<<<<<<<<<
 *             if savefile:
 *                 filename = savefile.name
*/
  __pyx_mstate_global->__pyx_tuple[14] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u_All_files, __pyx_mstate_global->__pyx_kp_u__10); if (unlikely(!__pyx_mstate_global->__pyx_tuple[14])) __PYX_ERR(4, 644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[14]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[14]);

  /* "cython/core/triangulation.pyx":2388
 *                 minimize_number_of_generators, try_hard_to_shorten_relators)
 *         try:
 *             return self._cache.lookup('fundamental_group', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
  __pyx_mstate_global->__pyx_tuple[15] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_fundamental_group); if (unlikely(!__pyx_mstate_global->__pyx_tuple[15])) __PYX_ERR(4, 2388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[15]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[15]);

  /* "cython/core/triangulation.pyx":2843
 * 
 *             for n in range(self.num_cusps()):
 *                 for i,j in [(0,0),(0,1),(1,0),(1,1)]:             # <<<<<<<<<<<<<<
 *                     matrices[n][i][j] = 1 if i == j else 0
 * 
*/
  __pyx_mstate_global->__pyx_tuple[16] = PyTuple_Pack(4, __pyx_mstate_global->__pyx_tuple[3], __pyx_mstate_global->__pyx_tuple[4], __pyx_mstate_global->__pyx_tuple[5], __pyx_mstate_global->__pyx_tuple[6]); if (unlikely(!__pyx_mstate_global->__pyx_tuple[16])) __PYX_ERR(4, 2843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[16]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[16]);

  /* "cython/core/triangulation.pyx":3205
 *                 ignore_orientation)
 *         try:
 *             return self._cache.lookup('triangulation_isosig', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
  __pyx_mstate_global->__pyx_tuple[17] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_triangulation_isosig); if (unlikely(!__pyx_mstate_global->__pyx_tuple[17])) __PYX_ERR(4, 3205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[17]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[17]);

  /* "cython/core/manifold.pyx":338
 *     def dirichlet_domain(self,
 *                          vertex_epsilon=default_vertex_epsilon,
 *                          displacement = (0.0, 0.0, 0.0),             # <<<<<<<<<<<<<<
 *                          centroid_at_origin : bool = True,
 *                          maximize_injectivity_radius : bool = True,
*/
  __pyx_mstate_global->__pyx_tuple[18] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_float_0_0, __pyx_mstate_global->__pyx_float_0_0, __pyx_mstate_global->__pyx_float_0_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[18])) __PYX_ERR(1, 338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[18]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[18]);

  /* "cython/core/manifold.pyx":379
 *                 maximize_injectivity_radius, include_words)
 *         try:
 *             return self._cache.lookup('dirichlet_domain', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
  __pyx_mstate_global->__pyx_tuple[19] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_dirichlet_domain); if (unlikely(!__pyx_mstate_global->__pyx_tuple[19])) __PYX_ERR(1, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[19]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[19]);

  /* "cython/core/manifold.pyx":924
 *                                        fixed_alignment=fixed_alignment,
 *                                        bits_prec=bits_prec, dec_prec=dec_prec,
 *                                        intervals=intervals)[::2]             # <<<<<<<<<<<<<<
 *             if part is not None:
 *                 return result
*/
  __pyx_mstate_global->__pyx_slice[3] = PySlice_New(Py_None, Py_None, __pyx_mstate_global->__pyx_int_2); if (unlikely(!__pyx_mstate_global->__pyx_slice[3])) __PYX_ERR(1, 924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[3]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[3]);

  /* "cython/core/manifold.pyx":942
 *                 result.append(ShapeInfo(rect=z,
 *                                         log=z.log(),
 *                                         accuracies=(None, None, None, None)))             # <<<<<<<<<<<<<<
 *         else:
 *             for i in range(self.num_tetrahedra()):
*/
  __pyx_mstate_global->__pyx_tuple[20] = PyTuple_Pack(4, Py_None, Py_None, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[20])) __PYX_ERR(1, 942, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[20]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[20]);

  /* "cython/core/manifold.pyx":1493
 *         args = (cutoff, full_rigor, grouped, include_words)
 *         try:
 *             return self._cache.lookup('length_spectrum', *args)             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             pass
*/
  __pyx_mstate_global->__pyx_tuple[21] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_length_spectrum); if (unlikely(!__pyx_mstate_global->__pyx_tuple[21])) __PYX_ERR(1, 1493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[21]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[21]);

  /* "cython/core/fundamental_group.pyx":10
 * 
 * def inverse_list_word(word):
 *     return [ -x for x in word[::-1] ]             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_mstate_global->__pyx_slice[4] = PySlice_New(Py_None, Py_None, __pyx_mstate_global->__pyx_int_neg_1); if (unlikely(!__pyx_mstate_global->__pyx_slice[4])) __PYX_ERR(8, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[4]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[4]);

  /* "cython/core/symmetry_group.pyx":191
 *         c_factor_1 = get_symmetry_group_factor(self.c_symmetry_group, 1)
 * 
 *         factor_0 = SymmetryGroup(True, False)             # <<<<<<<<<<<<<<
 *         factor_1 = SymmetryGroup(True, False)
 *         factor_0._set_c_symmetry_group(c_factor_0)
*/
  __pyx_mstate_global->__pyx_tuple[22] = PyTuple_Pack(2, Py_True, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[22])) __PYX_ERR(9, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[22]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[22]);

  /* "cython/core/dirichlet.pyx":17
 *                          '"% Generators"')
 *     nums = []
 *     for line in data[1:]:             # <<<<<<<<<<<<<<
 *         nums += line.split()
 *     num_gens = int(nums[0])
*/
  __pyx_mstate_global->__pyx_slice[5] = PySlice_New(__pyx_mstate_global->__pyx_int_1, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[5])) __PYX_ERR(10, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[5]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[5]);

  /* "cython/core/dirichlet.pyx":122
 *         self.c_dirichlet_domain = NULL
 *         if generator_file != '':
 *             with open(generator_file, mode='rb') as input_file:             # <<<<<<<<<<<<<<
 *                 data = input_file.read()
 *             self.c_dirichlet_domain, self.c_num_generators = (
*/
  __pyx_mstate_global->__pyx_tuple[23] = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[23])) __PYX_ERR(10, 122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[23]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[23]);

  /* "cython/core/tail.pyx":35
 *         g, n, monodromy = m.groups()
 *         g, n = int(g), int(n)
 *         monodromy = monodromy.replace(',', '*').replace('_', '')             # <<<<<<<<<<<<<<
 *         surface = twister.Surface((g, n))
 *         return surface.bundle(monodromy, return_type='string')
*/
  __pyx_mstate_global->__pyx_tuple[24] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_kp_u__28, __pyx_mstate_global->__pyx_kp_u__32); if (unlikely(!__pyx_mstate_global->__pyx_tuple[24])) __PYX_ERR(2, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[24]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[24]);
  __pyx_mstate_global->__pyx_tuple[25] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_n_u__21, __pyx_mstate_global->__pyx_kp_u__10); if (unlikely(!__pyx_mstate_global->__pyx_tuple[25])) __PYX_ERR(2, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[25]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[25]);

  /* "cython/core/tail.pyx":301
 *     length = 0
 * 
 *     def __init__(self, indices=(0, 0, 0)):             # <<<<<<<<<<<<<<
 *         myslice = slice(*indices)
 *         self.start, self.stop, self.step = myslice.indices(self.length)
*/
  __pyx_mstate_global->__pyx_tuple[26] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[26])) __PYX_ERR(2, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[26]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[26]);

  /* "cython/core/tail.pyx":461
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 11031, 1)):             # <<<<<<<<<<<<<<
 *         if ObsOrientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/
  __pyx_mstate_global->__pyx_tuple[27] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_11031, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[27])) __PYX_ERR(2, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[27]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[27]);

  /* "cython/core/tail.pyx":496
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 17, 1)):             # <<<<<<<<<<<<<<
 *         if ObsNonorientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/
  __pyx_mstate_global->__pyx_tuple[28] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_17, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[28])) __PYX_ERR(2, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[28]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[28]);

  /* "cython/core/tail.pyx":619
 *     max_crossings = 11
 * 
 *     def __init__(self, components, indices=(0, 10000, 1)):             # <<<<<<<<<<<<<<
 *         self.Christy_links = tarfile.open(link_archive, 'r:*')
 * 
*/
  __pyx_mstate_global->__pyx_tuple[29] = PyTuple_Pack(3, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_10000, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[29])) __PYX_ERR(2, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[29]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[29]);

  /* "cython/core/tail.pyx":691
 *             return
 * 
 *         crossings = range(4, 15) if num_crossings is None else [num_crossings]             # <<<<<<<<<<<<<<
 *         files = []
 *         for c in crossings:
*/
  __pyx_mstate_global->__pyx_tuple[30] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_4, __pyx_mstate_global->__pyx_int_15); if (unlikely(!__pyx_mstate_global->__pyx_tuple[30])) __PYX_ERR(2, 691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[30]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[30]);

  /* "cython/core/basic.pyx":373
 *         self.explain_columns = explain_columns
 * 
 *     def __repr__(self, _type_str = "MatrixWithExplanations"):             # <<<<<<<<<<<<<<
 * 
 *         def format_explain_list(l):
*/
  __pyx_mstate_global->__pyx_tuple[31] = PyTuple_Pack(1, ((PyObject*)__pyx_mstate_global->__pyx_n_u_MatrixWithExplanations)); if (unlikely(!__pyx_mstate_global->__pyx_tuple[31])) __PYX_ERR(3, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[31]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[31]);

  /* "cython/core/basic.pyx":723
 * # Conversion functions Manifold <-> Triangulation
 * 
 * def Manifold_from_Triangulation(Triangulation T, recompute=True,             # <<<<<<<<<<<<<<
 *                                 manifold_class=None):
 *     cdef c_Triangulation *c_triangulation
*/
  __pyx_mstate_global->__pyx_tuple[32] = PyTuple_Pack(2, ((PyObject*)Py_True), Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[32])) __PYX_ERR(3, 723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[32]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[32]);

  /* "cython/core/triangulation.pyx":279
 *         free_LR_factorization(gluing)
 * 
 *     def _get_from_link_data(self, data, remove_finite_vertices=True):             # <<<<<<<<<<<<<<
 *         if self.c_triangulation != NULL:
 *             free_triangulation(self.c_triangulation)
*/
  __pyx_mstate_global->__pyx_tuple[33] = PyTuple_Pack(1, Py_True); if (unlikely(!__pyx_mstate_global->__pyx_tuple[33])) __PYX_ERR(4, 279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[33]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[33]);

  /* "cython/core/triangulation.pyx":387
 *         self.c_triangulation = c_triangulation
 * 
 *     def num_cusps(self, cusp_type='all') -> int:             # <<<<<<<<<<<<<<
 *         """
 *         Return the total number of cusps.  By giving the optional argument
*/
  __pyx_mstate_global->__pyx_tuple[34] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_all); if (unlikely(!__pyx_mstate_global->__pyx_tuple[34])) __PYX_ERR(4, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[34]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[34]);

  /* "cython/core/triangulation.pyx":483
 *         return new_tri
 * 
 *     def randomize(self, blowup_multiple=4, passes_at_fours=6):             # <<<<<<<<<<<<<<
 *         """
 *         Perform random Pachner moves on the underlying triangulation,
*/
  __pyx_mstate_global->__pyx_tuple[35] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_4, __pyx_mstate_global->__pyx_int_6); if (unlikely(!__pyx_mstate_global->__pyx_tuple[35])) __PYX_ERR(4, 483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[35]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[35]);

  /* "cython/core/triangulation.pyx":497
 *         self._cache.clear(message='randomize')
 * 
 *     def simplify(self, passes_at_fours=6):             # <<<<<<<<<<<<<<
 *         """
 *         Try to simplify the triangulation by doing Pachner moves.
*/
  __pyx_mstate_global->__pyx_tuple[36] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_int_6); if (unlikely(!__pyx_mstate_global->__pyx_tuple[36])) __PYX_ERR(4, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[36]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[36]);

  /* "cython/core/triangulation.pyx":653
 *         raise ValueError('Please specify a file name.')
 * 
 *     def save(self, file_name=None):             # <<<<<<<<<<<<<<
 *         """
 *         Save the triangulation as a SnapPea triangulation file.
*/
  __pyx_mstate_global->__pyx_tuple[37] = PyTuple_Pack(1, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[37])) __PYX_ERR(4, 653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[37]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[37]);

  /* "cython/core/triangulation.pyx":791
 *             self._remove_finite_vertices()
 * 
 *     def _from_tetrahedra_gluing_data(self, tetrahedra_data,             # <<<<<<<<<<<<<<
 *                                      num_or_cusps=0,
 *                                      num_nonor_cusps=0,
*/
  __pyx_mstate_global->__pyx_tuple[38] = PyTuple_Pack(5, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_0, Py_None, Py_None, Py_True); if (unlikely(!__pyx_mstate_global->__pyx_tuple[38])) __PYX_ERR(4, 791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[38]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[38]);

  /* "cython/core/triangulation.pyx":1108
 *         set_triangulation_name(self.c_triangulation, c_new_name)
 * 
 *     def DT_code(self, alpha=False, flips=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the Dowker-Thistlethwaite code of this link complement,
*/
  __pyx_mstate_global->__pyx_tuple[39] = PyTuple_Pack(2, Py_False, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[39])) __PYX_ERR(4, 1108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[39]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[39]);

  /* "cython/core/triangulation.pyx":1353
 *         return filled_tri
 * 
 *     def _unsimplified_filled_triangulation(self, method='fold'):             # <<<<<<<<<<<<<<
 *         """
 *         For a Triangulation that describes a closed manifold, returns
*/
  __pyx_mstate_global->__pyx_tuple[40] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_fold); if (unlikely(!__pyx_mstate_global->__pyx_tuple[40])) __PYX_ERR(4, 1353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[40]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[40]);

  /* "cython/core/triangulation.pyx":1425
 *         return filled_tri
 * 
 *     def _marked_tetrahedra(self, clear_marks=False):             # <<<<<<<<<<<<<<
 *         cdef int *marked = NULL
 *         n = self.num_tetrahedra()
*/
  __pyx_mstate_global->__pyx_tuple[41] = PyTuple_Pack(1, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[41])) __PYX_ERR(4, 1425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[41]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[41]);

  /* "cython/core/triangulation.pyx":1457
 *         return ans
 * 
 *     def gluing_equations_pgl(self, N =2, equation_type='all'):             # <<<<<<<<<<<<<<
 * 
 *         """
*/
  __pyx_mstate_global->__pyx_tuple[42] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_2, __pyx_mstate_global->__pyx_n_u_all); if (unlikely(!__pyx_mstate_global->__pyx_tuple[42])) __PYX_ERR(4, 1457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[42]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[42]);

  /* "cython/core/triangulation.pyx":1923
 *                 self, N))
 * 
 *     def ptolemy_variety(self, N, obstruction_class = None,             # <<<<<<<<<<<<<<
 *                         simplify = True, eliminate_fixed_ptolemys = False):
 * 
*/
  __pyx_mstate_global->__pyx_tuple[43] = PyTuple_Pack(3, Py_None, Py_True, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[43])) __PYX_ERR(4, 1923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[43]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[43]);

  /* "cython/core/triangulation.pyx":2108
 *             eliminate_fixed_ptolemys = eliminate_fixed_ptolemys)
 * 
 *     def gluing_equations(self,form='log'):             # <<<<<<<<<<<<<<
 *         """
 *         In the default mode, this function returns a matrix with rows
*/
  __pyx_mstate_global->__pyx_tuple[44] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_n_u_log); if (unlikely(!__pyx_mstate_global->__pyx_tuple[44])) __PYX_ERR(4, 2108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[44]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[44]);

  /* "cython/core/triangulation.pyx":2346
 *         return self._cache.save(result, 'homology')
 * 
 *     def fundamental_group(             # <<<<<<<<<<<<<<
 *             self,
 *             simplify_presentation : bool = True,
*/
  __pyx_mstate_global->__pyx_tuple[45] = PyTuple_Pack(4, Py_True, Py_True, Py_True, Py_True); if (unlikely(!__pyx_mstate_global->__pyx_tuple[45])) __PYX_ERR(4, 2346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[45]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[45]);

  /* "cython/core/triangulation.pyx":2497
 *         return cover
 * 
 *     def covers(             # <<<<<<<<<<<<<<
 *             self,
 *             degree,
*/
  __pyx_mstate_global->__pyx_tuple[46] = PyTuple_Pack(2, Py_None, __pyx_mstate_global->__pyx_n_u_all); if (unlikely(!__pyx_mstate_global->__pyx_tuple[46])) __PYX_ERR(4, 2497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[46]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[46]);

  /* "cython/core/triangulation.pyx":2564
 *                          "and 'snappea'")
 * 
 *     def _covers_low_index(self, degree, num_threads=0):             # <<<<<<<<<<<<<<
 *         """
 *         Compute all covers using low_index.
*/
  __pyx_mstate_global->__pyx_tuple[47] = PyTuple_Pack(1, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[47])) __PYX_ERR(4, 2564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[47]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[47]);

  /* "cython/core/triangulation.pyx":2776
 *         return c_repn_in_original_gens
 * 
 *     def set_peripheral_curves(self, peripheral_data,             # <<<<<<<<<<<<<<
 *                               which_cusp=None, return_matrices=False):
 *         """
*/
  __pyx_mstate_global->__pyx_tuple[48] = PyTuple_Pack(2, Py_None, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[48])) __PYX_ERR(4, 2776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[48]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[48]);

  /* "cython/core/triangulation.pyx":2938
 *         return get_num_fake_cusps(self.c_triangulation) > 0
 * 
 *     def triangulation_isosig(self,             # <<<<<<<<<<<<<<
 *                              decorated : bool = True,
 *                              ignore_cusp_ordering : bool = False,
*/
  __pyx_mstate_global->__pyx_tuple[49] = PyTuple_Pack(6, Py_True, Py_False, Py_False, Py_False, Py_False, Py_True); if (unlikely(!__pyx_mstate_global->__pyx_tuple[49])) __PYX_ERR(4, 2938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[49]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[49]);

  /* "cython/core/manifold.pyx":170
 *         self._cache.clear(message='canonize')
 * 
 *     def _canonical_retriangulation(self, opacities=None, top_level_tries=10):             # <<<<<<<<<<<<<<
 *         """
 *         If this triangulation is a subdivision of the canonical cell
*/
  __pyx_mstate_global->__pyx_tuple[50] = PyTuple_Pack(2, Py_None, __pyx_mstate_global->__pyx_int_10); if (unlikely(!__pyx_mstate_global->__pyx_tuple[50])) __PYX_ERR(1, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[50]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[50]);

  /* "cython/core/manifold.pyx":728
 *         return self._number_(result)
 * 
 *     def volume(self, accuracy=False, verified = False, bits_prec = None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns the volume of the current solution to the hyperbolic
*/
  __pyx_mstate_global->__pyx_tuple[51] = PyTuple_Pack(3, Py_False, Py_False, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[51])) __PYX_ERR(1, 728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[51]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[51]);

  /* "cython/core/manifold.pyx":878
 *         polish_hyperbolic_structures(self.c_triangulation)
 * 
 *     def tetrahedra_shapes(self, part=None, fixed_alignment=True,             # <<<<<<<<<<<<<<
 *                           bits_prec=None, dec_prec=None,
 *                           intervals=False):
*/
  __pyx_mstate_global->__pyx_tuple[52] = PyTuple_Pack(5, Py_None, Py_True, Py_None, Py_None, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[52])) __PYX_ERR(1, 878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[52]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[52]);

  /* "cython/core/manifold.pyx":1113
 *             return SolutionType[solution_type]
 * 
 *     def set_target_holonomy(self, target, which_cusp=0, recompute=True):             # <<<<<<<<<<<<<<
 *         """
 *         M.set_target_holonomy(target, which_cusp=0, recompute=True)
*/
  __pyx_mstate_global->__pyx_tuple[53] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, Py_True); if (unlikely(!__pyx_mstate_global->__pyx_tuple[53])) __PYX_ERR(1, 1113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[53]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[53]);

  /* "cython/core/manifold.pyx":1128
 *                             which_cusp, c_target, recompute)
 * 
 *     def cusp_info(self, data_spec=None, verified = False, bits_prec = None):             # <<<<<<<<<<<<<<
 *         """
 *         Returns an info object containing information about the given
*/
  __pyx_mstate_global->__pyx_tuple[54] = PyTuple_Pack(3, Py_None, Py_False, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[54])) __PYX_ERR(1, 1128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[54]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[54]);

  /* "cython/core/manifold.pyx":1469
 *         return ListOnePerLine(result)
 * 
 *     def length_spectrum(self,             # <<<<<<<<<<<<<<
 *                         cutoff=1.0,
 *                         full_rigor : bool =True,
*/
  __pyx_mstate_global->__pyx_tuple[55] = PyTuple_Pack(4, __pyx_mstate_global->__pyx_float_1_0, Py_True, Py_True, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[55])) __PYX_ERR(1, 1469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[55]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[55]);

  /* "cython/core/fundamental_group.pyx":177
 *         return orig_gens
 * 
 *     def generators_in_originals(self, verbose_form=False, raw_form=False, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Return the current generators in terms of the original
*/
  __pyx_mstate_global->__pyx_tuple[56] = PyTuple_Pack(3, Py_False, Py_False, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[56])) __PYX_ERR(8, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[56]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[56]);

  /* "cython/core/fundamental_group.pyx":306
 *         return relation_list
 * 
 *     def meridian(self, int which_cusp=0, as_int_list=False):             # <<<<<<<<<<<<<<
 *         """
 *         Returns a word representing a conjugate of the current
*/
  __pyx_mstate_global->__pyx_tuple[57] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[57])) __PYX_ERR(8, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[57]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[57]);

  /* "cython/core/dirichlet.pyx":236
 *         return self._number_(radius)
 * 
 *     def length_spectrum_dicts(self, cutoff_length=1.0,             # <<<<<<<<<<<<<<
 *                               full_rigor=True,
 *                               multiplicities=True,
*/
  __pyx_mstate_global->__pyx_tuple[58] = PyTuple_Pack(5, __pyx_mstate_global->__pyx_float_1_0, Py_True, Py_True, __pyx_mstate_global->__pyx_float_0_0, Py_True); if (unlikely(!__pyx_mstate_global->__pyx_tuple[58])) __PYX_ERR(10, 236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[58]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[58]);

  /* "cython/core/dirichlet.pyx":666
 *             output.write(self._to_string().encode('ascii'))
 * 
 *     def export_stl(self, filename, model='klein', cutout=False, num_subdivisions=3,             # <<<<<<<<<<<<<<
 *                    shrink_factor=0.9, cutoff_radius=0.9, callback=None):
 *         """
*/
  __pyx_mstate_global->__pyx_tuple[59] = PyTuple_Pack(6, __pyx_mstate_global->__pyx_n_u_klein, Py_False, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_float_0_9, __pyx_mstate_global->__pyx_float_0_9, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[59])) __PYX_ERR(10, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[59]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[59]);

  /* "cython/core/cusp_neighborhoods.pyx":190
 *         return self._number_(M), self._number_(L)
 * 
 *     def horoballs(self, cutoff=0.1, which_cusp=0, full_list=True,             # <<<<<<<<<<<<<<
 *                   high_precision=False):
 *         """
*/
  __pyx_mstate_global->__pyx_tuple[60] = PyTuple_Pack(4, __pyx_mstate_global->__pyx_float_0_1, __pyx_mstate_global->__pyx_int_0, Py_True, Py_False); if (unlikely(!__pyx_mstate_global->__pyx_tuple[60])) __PYX_ERR(11, 190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[60]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[60]);

  /* "cython/core/cusp_neighborhoods.pyx":289
 *         return result
 * 
 *     def view(self, which_cusp=0, cutoff=None):             # <<<<<<<<<<<<<<
 *         """
 *         Create a 3D picture of the horoball packing.  One can specify
*/
  __pyx_mstate_global->__pyx_tuple[61] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_0, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_tuple[61])) __PYX_ERR(11, 289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[61]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[61]);

  /* "cython/core/tail.pyx":53
 * 
 * # Orientability.orientable = 0
 * rev_spec_dict = {(5, 0) : 'm',             # <<<<<<<<<<<<<<
 *                  (5, 1) : 'm',
 *                  (6, 0) : 's',
*/
  __pyx_mstate_global->__pyx_tuple[62] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_5, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[62])) __PYX_ERR(2, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[62]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[62]);

  /* "cython/core/tail.pyx":54
 * # Orientability.orientable = 0
 * rev_spec_dict = {(5, 0) : 'm',
 *                  (5, 1) : 'm',             # <<<<<<<<<<<<<<
 *                  (6, 0) : 's',
 *                  (7, 0) : 'v',
*/
  __pyx_mstate_global->__pyx_tuple[63] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_5, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[63])) __PYX_ERR(2, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[63]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[63]);

  /* "cython/core/tail.pyx":55
 * rev_spec_dict = {(5, 0) : 'm',
 *                  (5, 1) : 'm',
 *                  (6, 0) : 's',             # <<<<<<<<<<<<<<
 *                  (7, 0) : 'v',
 *                  (6, 1) : 'x',
*/
  __pyx_mstate_global->__pyx_tuple[64] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_6, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[64])) __PYX_ERR(2, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[64]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[64]);

  /* "cython/core/tail.pyx":56
 *                  (5, 1) : 'm',
 *                  (6, 0) : 's',
 *                  (7, 0) : 'v',             # <<<<<<<<<<<<<<
 *                  (6, 1) : 'x',
 *                  (7, 1) : 'y'}
*/
  __pyx_mstate_global->__pyx_tuple[65] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_7, __pyx_mstate_global->__pyx_int_0); if (unlikely(!__pyx_mstate_global->__pyx_tuple[65])) __PYX_ERR(2, 56, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[65]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[65]);

  /* "cython/core/tail.pyx":57
 *                  (6, 0) : 's',
 *                  (7, 0) : 'v',
 *                  (6, 1) : 'x',             # <<<<<<<<<<<<<<
 *                  (7, 1) : 'y'}
 * 
*/
  __pyx_mstate_global->__pyx_tuple[66] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_6, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[66])) __PYX_ERR(2, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[66]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[66]);

  /* "cython/core/tail.pyx":58
 *                  (7, 0) : 'v',
 *                  (6, 1) : 'x',
 *                  (7, 1) : 'y'}             # <<<<<<<<<<<<<<
 * 
 * triangulation_help = """
*/
  __pyx_mstate_global->__pyx_tuple[67] = PyTuple_Pack(2, __pyx_mstate_global->__pyx_int_7, __pyx_mstate_global->__pyx_int_1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[67])) __PYX_ERR(2, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[67]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[67]);

  /* "cython/core/tail.pyx":301
 *     length = 0
 * 
 *     def __init__(self, indices=(0, 0, 0)):             # <<<<<<<<<<<<<<
 *         myslice = slice(*indices)
 *         self.start, self.stop, self.step = myslice.indices(self.length)
*/
  __pyx_mstate_global->__pyx_tuple[68] = PyTuple_Pack(1, ((PyObject*)__pyx_mstate_global->__pyx_tuple[26])); if (unlikely(!__pyx_mstate_global->__pyx_tuple[68])) __PYX_ERR(2, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[68]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[68]);

  /* "cython/core/tail.pyx":330
 * #  Cusped Census
 * 
 * Orientable_lengths = (301, 962, 3552, 12846, 301+962+3552+12846)             # <<<<<<<<<<<<<<
 * Nonorientable_lengths = (114, 259, 887, 114+259+887)
 * 
*/
  __pyx_mstate_global->__pyx_tuple[69] = PyTuple_Pack(5, __pyx_mstate_global->__pyx_int_301, __pyx_mstate_global->__pyx_int_962, __pyx_mstate_global->__pyx_int_3552, __pyx_mstate_global->__pyx_int_12846, __pyx_mstate_global->__pyx_int_17661); if (unlikely(!__pyx_mstate_global->__pyx_tuple[69])) __PYX_ERR(2, 330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[69]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[69]);

  /* "cython/core/tail.pyx":331
 * 
 * Orientable_lengths = (301, 962, 3552, 12846, 301+962+3552+12846)
 * Nonorientable_lengths = (114, 259, 887, 114+259+887)             # <<<<<<<<<<<<<<
 * 
 * five_tet_orientable = (
*/
  __pyx_mstate_global->__pyx_tuple[70] = PyTuple_Pack(4, __pyx_mstate_global->__pyx_int_114, __pyx_mstate_global->__pyx_int_259, __pyx_mstate_global->__pyx_int_887, __pyx_mstate_global->__pyx_int_1260); if (unlikely(!__pyx_mstate_global->__pyx_tuple[70])) __PYX_ERR(2, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[70]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[70]);

  /* "cython/core/tail.pyx":334
 * 
 * five_tet_orientable = (
 *    3, 4, 6, 7, 9, 10, 11, 15, 16, 17, 19, 22, 23, 26, 27, 29, 30, 32, 33,             # <<<<<<<<<<<<<<
 *    34, 35, 36, 37, 38, 39, 40, 43, 44, 45, 46, 47, 49, 52, 53, 54, 55, 58,
 *    59, 60, 61, 62, 64, 66, 67, 69, 70, 71, 72, 73, 74, 76, 77, 78, 79, 80,
*/
  __pyx_mstate_global->__pyx_tuple[71] = PyTuple_Pack(301, __pyx_mstate_global->__pyx_int_3, __pyx_mstate_global->__pyx_int_4, __pyx_mstate_global->__pyx_int_6, __pyx_mstate_global->__pyx_int_7, __pyx_mstate_global->__pyx_int_9, __pyx_mstate_global->__pyx_int_10, __pyx_mstate_global->__pyx_int_11, __pyx_mstate_global->__pyx_int_15, __pyx_mstate_global->__pyx_int_16, __pyx_mstate_global->__pyx_int_17, __pyx_mstate_global->__pyx_int_19, __pyx_mstate_global->__pyx_int_22, __pyx_mstate_global->__pyx_int_23, __pyx_mstate_global->__pyx_int_26, __pyx_mstate_global->__pyx_int_27, __pyx_mstate_global->__pyx_int_29, __pyx_mstate_global->__pyx_int_30, __pyx_mstate_global->__pyx_int_32, __pyx_mstate_global->__pyx_int_33, __pyx_mstate_global->__pyx_int_34, __pyx_mstate_global->__pyx_int_35, __pyx_mstate_global->__pyx_int_36, __pyx_mstate_global->__pyx_int_37, __pyx_mstate_global->__pyx_int_38, __pyx_mstate_global->__pyx_int_39, __pyx_mstate_global->__pyx_int_40, __pyx_mstate_global->__pyx_int_43, __pyx_mstate_global->__pyx_int_44, __pyx_mstate_global->__pyx_int_45, __pyx_mstate_global->__pyx_int_46, __pyx_mstate_global->__pyx_int_47, __pyx_mstate_global->__pyx_int_49, __pyx_mstate_global->__pyx_int_52, __pyx_mstate_global->__pyx_int_53, __pyx_mstate_global->__pyx_int_54, __pyx_mstate_global->__pyx_int_55, __pyx_mstate_global->__pyx_int_58, __pyx_mstate_global->__pyx_int_59, __pyx_mstate_global->__pyx_int_60, __pyx_mstate_global->__pyx_int_61, __pyx_mstate_global->__pyx_int_62, __pyx_mstate_global->__pyx_int_64, __pyx_mstate_global->__pyx_int_66, __pyx_mstate_global->__pyx_int_67, __pyx_mstate_global->__pyx_int_69, __pyx_mstate_global->__pyx_int_70, __pyx_mstate_global->__pyx_int_71, __pyx_mstate_global->__pyx_int_72, __pyx_mstate_global->__pyx_int_73, __pyx_mstate_global->__pyx_int_74, __pyx_mstate_global->__pyx_int_76, __pyx_mstate_global->__pyx_int_77, __pyx_mstate_global->__pyx_int_78, __pyx_mstate_global->__pyx_int_79, __pyx_mstate_global->__pyx_int_80, __pyx_mstate_global->__pyx_int_81, __pyx_mstate_global->__pyx_int_82, __pyx_mstate_global->__pyx_int_83, __pyx_mstate_global->__pyx_int_84, __pyx_mstate_global->__pyx_int_85, __pyx_mstate_global->__pyx_int_87, __pyx_mstate_global->__pyx_int_89, __pyx_mstate_global->__pyx_int_90, __pyx_mstate_global->__pyx_int_93, __pyx_mstate_global->__pyx_int_94, __pyx_mstate_global->__pyx_int_95, __pyx_mstate_global->__pyx_int_96, __pyx_mstate_global->__pyx_int_98, __pyx_mstate_global->__pyx_int_99, __pyx_mstate_global->__pyx_int_100, __pyx_mstate_global->__pyx_int_102, __pyx_mstate_global->__pyx_int_103, __pyx_mstate_global->__pyx_int_104, __pyx_mstate_global->__pyx_int_105, __pyx_mstate_global->__pyx_int_106, __pyx_mstate_global->__pyx_int_108, __pyx_mstate_global->__pyx_int_110, __pyx_mstate_global->__pyx_int_111, __pyx_mstate_global->__pyx_int_112, __pyx_mstate_global->__pyx_int_113, __pyx_mstate_global->__pyx_int_115, __pyx_mstate_global->__pyx_int_116, __pyx_mstate_global->__pyx_int_117, __pyx_mstate_global->__pyx_int_118, __pyx_mstate_global->__pyx_int_119, __pyx_mstate_global->__pyx_int_120, __pyx_mstate_global->__pyx_int_121, __pyx_mstate_global->__pyx_int_122, __pyx_mstate_global->__pyx_int_123, __pyx_mstate_global->__pyx_int_125, __pyx_mstate_global->__pyx_int_129, __pyx_mstate_global->__pyx_int_130, __pyx_mstate_global->__pyx_int_135, __pyx_mstate_global->__pyx_int_136, __pyx_mstate_global->__pyx_int_137, __pyx_mstate_global->__pyx_int_139, __pyx_mstate_global->__pyx_int_140, __pyx_mstate_global->__pyx_int_141, __pyx_mstate_global->__pyx_int_142, __pyx_mstate_global->__pyx_int_143, __pyx_mstate_global->__pyx_int_144, __pyx_mstate_global->__pyx_int_145, __pyx_mstate_global->__pyx_int_146, __pyx_mstate_global->__pyx_int_147, __pyx_mstate_global->__pyx_int_148, __pyx_mstate_global->__pyx_int_149, __pyx_mstate_global->__pyx_int_150, __pyx_mstate_global->__pyx_int_151, __pyx_mstate_global->__pyx_int_154, __pyx_mstate_global->__pyx_int_155, __pyx_mstate_global->__pyx_int_157, __pyx_mstate_global->__pyx_int_159, __pyx_mstate_global->__pyx_int_160, __pyx_mstate_global->__pyx_int_161, __pyx_mstate_global->__pyx_int_162, __pyx_mstate_global->__pyx_int_163, __pyx_mstate_global->__pyx_int_164, __pyx_mstate_global->__pyx_int_165, __pyx_mstate_global->__pyx_int_166, __pyx_mstate_global->__pyx_int_167, __pyx_mstate_global->__pyx_int_168, __pyx_mstate_global->__pyx_int_169, __pyx_mstate_global->__pyx_int_170, __pyx_mstate_global->__pyx_int_171, __pyx_mstate_global->__pyx_int_172, __pyx_mstate_global->__pyx_int_173, __pyx_mstate_global->__pyx_int_175, __pyx_mstate_global->__pyx_int_178, __pyx_mstate_global->__pyx_int_179, __pyx_mstate_global->__pyx_int_180, __pyx_mstate_global->__pyx_int_181, __pyx_mstate_global->__pyx_int_182, __pyx_mstate_global->__pyx_int_183, __pyx_mstate_global->__pyx_int_184, __pyx_mstate_global->__pyx_int_185, __pyx_mstate_global->__pyx_int_186, __pyx_mstate_global->__pyx_int_188, __pyx_mstate_global->__pyx_int_189, __pyx_mstate_global->__pyx_int_190, __pyx_mstate_global->__pyx_int_191, __pyx_mstate_global->__pyx_int_192, __pyx_mstate_global->__pyx_int_193, __pyx_mstate_global->__pyx_int_194, __pyx_mstate_global->__pyx_int_195, __pyx_mstate_global->__pyx_int_196, __pyx_mstate_global->__pyx_int_197, __pyx_mstate_global->__pyx_int_198, __pyx_mstate_global->__pyx_int_199, __pyx_mstate_global->__pyx_int_200, __pyx_mstate_global->__pyx_int_201, __pyx_mstate_global->__pyx_int_202, __pyx_mstate_global->__pyx_int_203, __pyx_mstate_global->__pyx_int_206, __pyx_mstate_global->__pyx_int_207, __pyx_mstate_global->__pyx_int_208, __pyx_mstate_global->__pyx_int_209, __pyx_mstate_global->__pyx_int_210, __pyx_mstate_global->__pyx_int_211, __pyx_mstate_global->__pyx_int_212, __pyx_mstate_global->__pyx_int_213, __pyx_mstate_global->__pyx_int_214, __pyx_mstate_global->__pyx_int_215, __pyx_mstate_global->__pyx_int_216, __pyx_mstate_global->__pyx_int_217, __pyx_mstate_global->__pyx_int_218, __pyx_mstate_global->__pyx_int_219, __pyx_mstate_global->__pyx_int_220, __pyx_mstate_global->__pyx_int_221, __pyx_mstate_global->__pyx_int_222, __pyx_mstate_global->__pyx_int_223, __pyx_mstate_global->__pyx_int_224, __pyx_mstate_global->__pyx_int_225, __pyx_mstate_global->__pyx_int_227, __pyx_mstate_global->__pyx_int_228, __pyx_mstate_global->__pyx_int_229, __pyx_mstate_global->__pyx_int_230, __pyx_mstate_global->__pyx_int_231, __pyx_mstate_global->__pyx_int_232, __pyx_mstate_global->__pyx_int_233, __pyx_mstate_global->__pyx_int_234, __pyx_mstate_global->__pyx_int_235, __pyx_mstate_global->__pyx_int_236, __pyx_mstate_global->__pyx_int_238, __pyx_mstate_global->__pyx_int_239, __pyx_mstate_global->__pyx_int_240, __pyx_mstate_global->__pyx_int_241, __pyx_mstate_global->__pyx_int_242, __pyx_mstate_global->__pyx_int_243, __pyx_mstate_global->__pyx_int_244, __pyx_mstate_global->__pyx_int_246, __pyx_mstate_global->__pyx_int_247, __pyx_mstate_global->__pyx_int_248, __pyx_mstate_global->__pyx_int_249, __pyx_mstate_global->__pyx_int_250, __pyx_mstate_global->__pyx_int_251, __pyx_mstate_global->__pyx_int_252, __pyx_mstate_global->__pyx_int_253, __pyx_mstate_global->__pyx_int_255, __pyx_mstate_global->__pyx_int_256, __pyx_mstate_global->__pyx_int_257, __pyx_mstate_global->__pyx_int_258, __pyx_mstate_global->__pyx_int_259, __pyx_mstate_global->__pyx_int_260, __pyx_mstate_global->__pyx_int_261, __pyx_mstate_global->__pyx_int_262, __pyx_mstate_global->__pyx_int_263, __pyx_mstate_global->__pyx_int_266, __pyx_mstate_global->__pyx_int_267, __pyx_mstate_global->__pyx_int_269, __pyx_mstate_global->__pyx_int_270, __pyx_mstate_global->__pyx_int_271, __pyx_mstate_global->__pyx_int_272, __pyx_mstate_global->__pyx_int_273, __pyx_mstate_global->__pyx_int_275, __pyx_mstate_global->__pyx_int_276, __pyx_mstate_global->__pyx_int_277, __pyx_mstate_global->__pyx_int_278, __pyx_mstate_global->__pyx_int_279, __pyx_mstate_global->__pyx_int_280, __pyx_mstate_global->__pyx_int_281, __pyx_mstate_global->__pyx_int_282, __pyx_mstate_global->__pyx_int_284, __pyx_mstate_global->__pyx_int_285, __pyx_mstate_global->__pyx_int_286, __pyx_mstate_global->__pyx_int_287, __pyx_mstate_global->__pyx_int_288, __pyx_mstate_global->__pyx_int_289, __pyx_mstate_global->__pyx_int_290, __pyx_mstate_global->__pyx_int_291, __pyx_mstate_global->__pyx_int_292, __pyx_mstate_global->__pyx_int_293, __pyx_mstate_global->__pyx_int_294, __pyx_mstate_global->__pyx_int_295, __pyx_mstate_global->__pyx_int_296, __pyx_mstate_global->__pyx_int_297, __pyx_mstate_global->__pyx_int_299, __pyx_mstate_global->__pyx_int_300, __pyx_mstate_global->__pyx_int_302, __pyx_mstate_global->__pyx_int_303, __pyx_mstate_global->__pyx_int_304, __pyx_mstate_global->__pyx_int_305, __pyx_mstate_global->__pyx_int_306, __pyx_mstate_global->__pyx_int_307, __pyx_mstate_global->__pyx_int_310, __pyx_mstate_global->__pyx_int_312, __pyx_mstate_global->__pyx_int_316, __pyx_mstate_global->__pyx_int_318, __pyx_mstate_global->__pyx_int_319, __pyx_mstate_global->__pyx_int_320, __pyx_mstate_global->__pyx_int_322, __pyx_mstate_global->__pyx_int_326, __pyx_mstate_global->__pyx_int_328, __pyx_mstate_global->__pyx_int_329, __pyx_mstate_global->__pyx_int_335, __pyx_mstate_global->__pyx_int_336, __pyx_mstate_global->__pyx_int_337, __pyx_mstate_global->__pyx_int_338, __pyx_mstate_global->__pyx_int_339, __pyx_mstate_global->__pyx_int_340, __pyx_mstate_global->__pyx_int_342, __pyx_mstate_global->__pyx_int_343, __pyx_mstate_global->__pyx_int_345, __pyx_mstate_global->__pyx_int_346, __pyx_mstate_global->__pyx_int_349, __pyx_mstate_global->__pyx_int_350, __pyx_mstate_global->__pyx_int_351, __pyx_mstate_global->__pyx_int_352, __pyx_mstate_global->__pyx_int_356, __pyx_mstate_global->__pyx_int_357, __pyx_mstate_global->__pyx_int_358, __pyx_mstate_global->__pyx_int_359, __pyx_mstate_global->__pyx_int_360, __pyx_mstate_global->__pyx_int_361, __pyx_mstate_global->__pyx_int_363, __pyx_mstate_global->__pyx_int_364, __pyx_mstate_global->__pyx_int_366, __pyx_mstate_global->__pyx_int_367, __pyx_mstate_global->__pyx_int_368, __pyx_mstate_global->__pyx_int_369, __pyx_mstate_global->__pyx_int_370, __pyx_mstate_global->__pyx_int_371, __pyx_mstate_global->__pyx_int_372, __pyx_mstate_global->__pyx_int_373, __pyx_mstate_global->__pyx_int_374, __pyx_mstate_global->__pyx_int_376, __pyx_mstate_global->__pyx_int_378, __pyx_mstate_global->__pyx_int_385, __pyx_mstate_global->__pyx_int_388, __pyx_mstate_global->__pyx_int_389, __pyx_mstate_global->__pyx_int_390, __pyx_mstate_global->__pyx_int_391, __pyx_mstate_global->__pyx_int_392, __pyx_mstate_global->__pyx_int_393, __pyx_mstate_global->__pyx_int_395, __pyx_mstate_global->__pyx_int_397, __pyx_mstate_global->__pyx_int_400, __pyx_mstate_global->__pyx_int_401, __pyx_mstate_global->__pyx_int_402, __pyx_mstate_global->__pyx_int_403, __pyx_mstate_global->__pyx_int_410, __pyx_mstate_global->__pyx_int_412); if (unlikely(!__pyx_mstate_global->__pyx_tuple[71])) __PYX_ERR(2, 334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[71]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[71]);

  /* "cython/core/tail.pyx":357
 * 
 * five_tet_nonorientable = (
 *    0, 1, 2, 5, 8, 12, 13, 14, 18, 20, 21, 24, 25, 28, 31, 41, 42, 48, 50,             # <<<<<<<<<<<<<<
 *    51, 56, 57, 63, 65, 68, 75, 86, 88, 91, 92, 97, 101, 107, 109, 114, 124,
 *    126, 127, 128, 131, 132, 133, 134, 138, 152, 153, 156, 158, 174, 176,
*/
  __pyx_mstate_global->__pyx_tuple[72] = PyTuple_Pack(114, __pyx_mstate_global->__pyx_int_0, __pyx_mstate_global->__pyx_int_1, __pyx_mstate_global->__pyx_int_2, __pyx_mstate_global->__pyx_int_5, __pyx_mstate_global->__pyx_int_8, __pyx_mstate_global->__pyx_int_12, __pyx_mstate_global->__pyx_int_13, __pyx_mstate_global->__pyx_int_14, __pyx_mstate_global->__pyx_int_18, __pyx_mstate_global->__pyx_int_20, __pyx_mstate_global->__pyx_int_21, __pyx_mstate_global->__pyx_int_24, __pyx_mstate_global->__pyx_int_25, __pyx_mstate_global->__pyx_int_28, __pyx_mstate_global->__pyx_int_31, __pyx_mstate_global->__pyx_int_41, __pyx_mstate_global->__pyx_int_42, __pyx_mstate_global->__pyx_int_48, __pyx_mstate_global->__pyx_int_50, __pyx_mstate_global->__pyx_int_51, __pyx_mstate_global->__pyx_int_56, __pyx_mstate_global->__pyx_int_57, __pyx_mstate_global->__pyx_int_63, __pyx_mstate_global->__pyx_int_65, __pyx_mstate_global->__pyx_int_68, __pyx_mstate_global->__pyx_int_75, __pyx_mstate_global->__pyx_int_86, __pyx_mstate_global->__pyx_int_88, __pyx_mstate_global->__pyx_int_91, __pyx_mstate_global->__pyx_int_92, __pyx_mstate_global->__pyx_int_97, __pyx_mstate_global->__pyx_int_101, __pyx_mstate_global->__pyx_int_107, __pyx_mstate_global->__pyx_int_109, __pyx_mstate_global->__pyx_int_114, __pyx_mstate_global->__pyx_int_124, __pyx_mstate_global->__pyx_int_126, __pyx_mstate_global->__pyx_int_127, __pyx_mstate_global->__pyx_int_128, __pyx_mstate_global->__pyx_int_131, __pyx_mstate_global->__pyx_int_132, __pyx_mstate_global->__pyx_int_133, __pyx_mstate_global->__pyx_int_134, __pyx_mstate_global->__pyx_int_138, __pyx_mstate_global->__pyx_int_152, __pyx_mstate_global->__pyx_int_153, __pyx_mstate_global->__pyx_int_156, __pyx_mstate_global->__pyx_int_158, __pyx_mstate_global->__pyx_int_174, __pyx_mstate_global->__pyx_int_176, __pyx_mstate_global->__pyx_int_177, __pyx_mstate_global->__pyx_int_187, __pyx_mstate_global->__pyx_int_204, __pyx_mstate_global->__pyx_int_205, __pyx_mstate_global->__pyx_int_226, __pyx_mstate_global->__pyx_int_237, __pyx_mstate_global->__pyx_int_245, __pyx_mstate_global->__pyx_int_254, __pyx_mstate_global->__pyx_int_264, __pyx_mstate_global->__pyx_int_265, __pyx_mstate_global->__pyx_int_268, __pyx_mstate_global->__pyx_int_274, __pyx_mstate_global->__pyx_int_283, __pyx_mstate_global->__pyx_int_298, __pyx_mstate_global->__pyx_int_301, __pyx_mstate_global->__pyx_int_308, __pyx_mstate_global->__pyx_int_309, __pyx_mstate_global->__pyx_int_311, __pyx_mstate_global->__pyx_int_313, __pyx_mstate_global->__pyx_int_314, __pyx_mstate_global->__pyx_int_315, __pyx_mstate_global->__pyx_int_317, __pyx_mstate_global->__pyx_int_321, __pyx_mstate_global->__pyx_int_323, __pyx_mstate_global->__pyx_int_324, __pyx_mstate_global->__pyx_int_325, __pyx_mstate_global->__pyx_int_327, __pyx_mstate_global->__pyx_int_330, __pyx_mstate_global->__pyx_int_331, __pyx_mstate_global->__pyx_int_332, __pyx_mstate_global->__pyx_int_333, __pyx_mstate_global->__pyx_int_334, __pyx_mstate_global->__pyx_int_341, __pyx_mstate_global->__pyx_int_344, __pyx_mstate_global->__pyx_int_347, __pyx_mstate_global->__pyx_int_348, __pyx_mstate_global->__pyx_int_353, __pyx_mstate_global->__pyx_int_354, __pyx_mstate_global->__pyx_int_355, __pyx_mstate_global->__pyx_int_362, __pyx_mstate_global->__pyx_int_365, __pyx_mstate_global->__pyx_int_375, __pyx_mstate_global->__pyx_int_377, __pyx_mstate_global->__pyx_int_379, __pyx_mstate_global->__pyx_int_380, __pyx_mstate_global->__pyx_int_381, __pyx_mstate_global->__pyx_int_382, __pyx_mstate_global->__pyx_int_383, __pyx_mstate_global->__pyx_int_384, __pyx_mstate_global->__pyx_int_386, __pyx_mstate_global->__pyx_int_387, __pyx_mstate_global->__pyx_int_394, __pyx_mstate_global->__pyx_int_396, __pyx_mstate_global->__pyx_int_398, __pyx_mstate_global->__pyx_int_399, __pyx_mstate_global->__pyx_int_404, __pyx_mstate_global->__pyx_int_405, __pyx_mstate_global->__pyx_int_406, __pyx_mstate_global->__pyx_int_407, __pyx_mstate_global->__pyx_int_408, __pyx_mstate_global->__pyx_int_409, __pyx_mstate_global->__pyx_int_411, __pyx_mstate_global->__pyx_int_413, __pyx_mstate_global->__pyx_int_414); if (unlikely(!__pyx_mstate_global->__pyx_tuple[72])) __PYX_ERR(2, 357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[72]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[72]);

  /* "cython/core/tail.pyx":461
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 11031, 1)):             # <<<<<<<<<<<<<<
 *         if ObsOrientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/
  __pyx_mstate_global->__pyx_tuple[73] = PyTuple_Pack(1, ((PyObject*)__pyx_mstate_global->__pyx_tuple[27])); if (unlikely(!__pyx_mstate_global->__pyx_tuple[73])) __PYX_ERR(2, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[73]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[73]);

  /* "cython/core/tail.pyx":496
 *     path = str(manifold_path)
 * 
 *     def __init__(self, indices=(0, 17, 1)):             # <<<<<<<<<<<<<<
 *         if ObsNonorientableClosedCensus.data is None:
 *             datafile = os.path.join(closed_census_directory,
*/
  __pyx_mstate_global->__pyx_tuple[74] = PyTuple_Pack(1, ((PyObject*)__pyx_mstate_global->__pyx_tuple[28])); if (unlikely(!__pyx_mstate_global->__pyx_tuple[74])) __PYX_ERR(2, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[74]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[74]);

  /* "cython/core/tail.pyx":619
 *     max_crossings = 11
 * 
 *     def __init__(self, components, indices=(0, 10000, 1)):             # <<<<<<<<<<<<<<
 *         self.Christy_links = tarfile.open(link_archive, 'r:*')
 * 
*/
  __pyx_mstate_global->__pyx_tuple[75] = PyTuple_Pack(1, ((PyObject*)__pyx_mstate_global->__pyx_tuple[29])); if (unlikely(!__pyx_mstate_global->__pyx_tuple[75])) __PYX_ERR(2, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[75]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[75]);

  /* "cython/core/tail.pyx":679
 * 
 * 
 * def left_pad_string(str,  length, pad=' '):             # <<<<<<<<<<<<<<
 *     return pad*(length - len(str)) + str
 * 
*/
  __pyx_mstate_global->__pyx_tuple[76] = PyTuple_Pack(1, ((PyObject*)__pyx_mstate_global->__pyx_kp_u__9)); if (unlikely(!__pyx_mstate_global->__pyx_tuple[76])) __PYX_ERR(2, 679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[76]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[76]);
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_tuple;
    for (Py_ssize_t i=0; i<77; ++i) {
      #if PY_VERSION_HEX >= 0x030F0000
      PyUnstable_SetImmortal(table[i]);
      #elif CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      if ((PY_SSIZE_T_MAX <= _Py_IMMORTAL_REFCNT_LOCAL)) break;
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], ((Py_ssize_t)_Py_IMMORTAL_REFCNT_LOCAL + 1));
      }
      #else
      if ((PY_SSIZE_T_MAX < _Py_IMMORTAL_INITIAL_REFCNT)) break;
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_slice;
    for (Py_ssize_t i=0; i<6; ++i) {
      #if PY_VERSION_HEX >= 0x030F0000
      PyUnstable_SetImmortal(table[i]);
      #elif CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      if ((PY_SSIZE_T_MAX <= _Py_IMMORTAL_REFCNT_LOCAL)) break;
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], ((Py_ssize_t)_Py_IMMORTAL_REFCNT_LOCAL + 1));
      }
      #else
      if ((PY_SSIZE_T_MAX < _Py_IMMORTAL_INITIAL_REFCNT)) break;
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 14; } index[] = {{1},{1},{5},{38},{3},{6},{9},{7},{7},{5},{8},{3},{8},{2},{13},{16},{3},{7},{5},{5},{176},{1636},{767},{2163},{45},{119},{33},{65},{284},{46},{27},{9},{14},{37},{92},{96},{54},{29},{6},{16},{36},{473},{64},{25},{26},{38},{33},{38},{49},{36},{44},{41},{32},{41},{61},{39},{52},{39},{38},{37},{48},{46},{33},{61},{53},{28},{14},{15},{551},{15},{16},{54},{31},{28},{32},{1424},{36},{105},{35},{33},{40},{310},{5},{23},{17},{3},{50},{3},{9},{38},{5},{3},{20},{23},{393},{2050},{48},{51},{19},{55},{1206},{502},{15},{6},{17},{35},{35},{47},{247},{295},{1359},{347},{265},{15},{17},{179},{1336},{70},{6},{377},{61},{299},{590},{192},{100},{1192},{147},{1350},{22},{27},{24},{25},{28},{129},{131},{17},{47},{23},{11},{17},{6917},{51},{46},{31},{32},{37},{26},{28},{32},{24},{25},{26},{30},{37},{18},{30},{36},{26},{32},{40},{37},{34},{36},{41},{30},{42},{30},{34},{26},{39},{43},{37},{26},{48},{28},{18},{40},{25},{27},{14},{4},{23},{15},{179},{35},{66},{19},{18},{34},{413},{15},{23},{60},{68},{68},{272},{27},{38},{3},{14},{442},{62},{41},{1004},{298},{1268},{572},{431},{317},{227},{610},{165},{143},{193},{817},{1106},{128},{151},{139},{308},{238},{208},{255},{166},{180},{155},{156},{156},{1329},{518},{260},{377},{351},{3297},{389},{1461},{838},{2377},{1049},{714},{107},{118},{316},{1296},{1292},{647},{206},{354},{1296},{496},{333},{431},{228},{781},{1991},{446},{249},{1317},{11001},{392},{2370},{2437},{359},{1312},{1126},{281},{18},{777},{534},{844},{14},{825},{801},{28},{57},{51},{43},{52},{53},{66},{102},{19},{47},{20},{838},{37},{29},{83},{33},{45},{63},{43},{39},{31},{44},{51},{34},{40},{36},{42},{37},{43},{35},{42},{29},{31},{31},{49},{64},{63},{38},{34},{82},{36},{42},{69},{114},{50},{44},{68},{76},{40},{27},{26},{32},{72},{26},{33},{40},{42},{50},{53},{62},{40},{49},{55},{36},{37},{34},{53},{50},{33},{37},{18},{62},{61},{22},{41},{32},{24},{39},{41},{41},{73},{46},{40},{66},{34},{37},{38},{34},{32},{44},{92},{15},{33},{35},{36},{37},{37},{53},{41},{40},{39},{48},{34},{35},{60},{28},{72},{29},{31},{32},{35},{35},{39},{46},{43},{42},{46},{45},{34},{38},{30},{34},{40},{25},{42},{30},{65},{53},{41},{34},{45},{29},{34},{33},{42},{46},{50},{888},{807},{289},{138},{428},{424},{358},{33},{44},{19},{99},{46},{46},{65},{55},{45},{4},{0},{2},{3},{3},{1},{3},{4},{2},{2},{3},{2},{1},{1},{1},{1},{1},{1},{4},{1},{2},{1},{1},{4},{1},{1},{2},{3},{7},{2},{1},{1},{4},{3},{1},{1},{2},{19},{37},{53},{8},{34},{14},{9},{2},{5},{5},{6},{6},{25},{7},{30},{8},{3},{6},{11},{9},{15},{30},{24},{39},{17},{5},{6},{29},{21},{34},{25},{33},{24},{30},{20},{29},{2},{3},{3},{3},{1588},{15},{7},{8},{6},{10},{11},{22},{19},{11},{6},{11},{13},{18},{7},{2},{1796},{35},{4},{18},{11},{22},{22},{17},{17},{506},{21},{9},{69},{7},{23},{28},{10},{7},{12},{8},{11},{50},{17},{28},{17},{13},{12},{7},{16},{4},{10},{9},{22},{21},{5},{11},{8},{3},{12},{4},{2},{2},{7},{12},{15},{17},{22},{44},{31},{17},{41},{43},{10},{15},{4},{11},{9},{20},{12},{26},{5},{10},{7},{16},{41},{14},{11},{6},{1},{12},{23},{25},{32},{18},{17},{8},{24},{19},{19},{17},{1},{7},{1},{17},{29},{35},{37},{26},{29},{34},{25},{27},{26},{27},{27},{32},{23},{34},{25},{25},{39},{26},{30},{31},{22},{24},{16},{30},{36},{25},{27},{34},{29},{38},{26},{27},{26},{26},{38},{25},{26},{26},{36},{35},{29},{27},{33},{30},{21},{29},{30},{28},{21},{23},{17},{35},{37},{28},{30},{29},{50},{28},{28},{41},{27},{30},{26},{32},{41},{30},{37},{35},{26},{22},{14},{18},{19},{32},{34},{22},{29},{6},{12},{14},{19},{18},{15},{15},{14},{11},{21},{12},{13},{16},{11},{8},{17},{16},{12},{12},{24},{21},{19},{1},{2},{7},{8},{7},{15},{13},{22},{1},{17},{11},{19},{9},{10},{16},{1},{2},{10},{17},{5},{7},{1},{15},{8},{13},{22},{6},{14},{1},{5},{5},{4},{13},{15},{9},{7},{23},{17},{33},{8},{17},{17},{20},{18},{24},{18},{1},{4},{13},{5},{13},{25},{22},{1},{7},{8},{2},{14},{26},{30},{34},{18},{27},{23},{4},{10},{13},{11},{14},{23},{17},{24},{1},{2},{2},{7},{12},{8},{40},{35},{27},{32},{24},{33},{20},{21},{21},{31},{18},{25},{17},{38},{19},{15},{17},{21},{13},{14},{15},{18},{26},{18},{25},{14},{20},{29},{27},{26},{34},{24},{22},{24},{30},{28},{30},{22},{14},{27},{32},{23},{26},{29},{15},{37},{12},{22},{31},{60},{31},{11},{20},{5},{14},{1},{26},{35},{35},{27},{36},{22},{22},{20},{4},{21},{17},{26},{14},{15},{18},{6},{1},{3},{14},{14},{26},{23},{23},{16},{28},{25},{25},{14},{26},{23},{28},{40},{37},{28},{37},{35},{25},{37},{34},{25},{9},{13},{10},{18},{7},{16},{23},{16},{8},{18},{36},{38},{27},{26},{27},{25},{36},{27},{20},{1},{1},{9},{2},{2},{4},{26},{16},{10},{9},{18},{17},{17},{21},{17},{6},{11},{12},{10},{14},{31},{7},{13},{31},{33},{33},{28},{20},{33},{40},{19},{24},{29},{25},{31},{27},{32},{27},{24},{31},{19},{36},{1},{4},{13},{21},{24},{25},{31},{27},{29},{25},{25},{26},{26},{26},{42},{57},{33},{41},{28},{30},{32},{29},{43},{34},{56},{55},{60},{47},{47},{47},{28},{37},{25},{25},{30},{27},{23},{24},{27},{47},{48},{18},{19},{24},{20},{23},{23},{27},{34},{27},{31},{30},{34},{33},{22},{27},{29},{18},{18},{23},{28},{31},{20},{19},{53},{41},{29},{23},{33},{18},{22},{35},{22},{30},{34},{39},{4},{11},{12},{1},{18},{16},{10},{17},{15},{1},{18},{16},{10},{17},{15},{1},{0},{1},{1},{4},{19},{14},{7},{7},{10},{10},{10},{10},{10},{8},{3},{8},{9},{3},{14},{5},{11},{12},{3},{6},{13},{4},{8},{11},{9},{5},{15},{13},{11},{18},{6},{1},{11},{10},{8},{4},{4},{9},{5},{12},{3},{9},{15},{4},{6},{7},{6},{18},{4},{18},{7},{10},{2},{2},{2},{2},{1},{16},{25},{8},{15},{13},{12},{6},{10},{10},{12},{11},{8},{10},{7},{10},{9},{19},{11},{16},{30},{8},{25},{8},{7},{15},{6},{6},{5},{8},{10},{31},{26},{8},{7},{12},{19},{19},{6},{18},{16},{17},{23},{32},{20},{11},{12},{18},{23},{6},{9},{17},{5},{11},{18},{5},{23},{20},{17},{7},{3},{4},{4},{5},{16},{6},{11},{4},{7},{13},{13},{19},{7},{8},{15},{20},{15},{7},{14},{14},{15},{10},{15},{19},{14},{12},{7},{4},{20},{11},{7},{12},{5},{21},{11},{10},{22},{10},{11},{6},{11},{17},{32},{13},{15},{9},{2},{6},{15},{13},{22},{10},{24},{11},{12},{10},{12},{9},{9},{10},{17},{9},{5},{25},{13},{6},{13},{13},{6},{7},{6},{11},{1},{4},{8},{9},{8},{8},{8},{6},{9},{16},{10},{18},{16},{6},{9},{11},{11},{4},{3},{7},{8},{5},{4},{26},{16},{4},{12},{8},{7},{6},{5},{11},{9},{1},{4},{10},{18},{10},{12},{9},{17},{13},{19},{13},{5},{12},{19},{24},{3},{5},{11},{6},{3},{9},{6},{9},{7},{4},{9},{7},{3},{4},{13},{9},{5},{4},{10},{4},{8},{22},{12},{15},{12},{7},{10},{15},{16},{15},{11},{1},{4},{9},{9},{9},{9},{10},{9},{26},{9},{5},{8},{8},{4},{9},{8},{10},{8},{5},{9},{4},{8},{12},{14},{7},{6},{13},{18},{13},{10},{20},{7},{8},{12},{8},{30},{4},{7},{12},{11},{22},{19},{15},{5},{5},{4},{15},{4},{6},{19},{10},{17},{11},{12},{12},{12},{28},{9},{10},{8},{4},{7},{14},{14},{11},{17},{1},{6},{3},{14},{10},{10},{3},{9},{15},{14},{14},{10},{23},{7},{4},{9},{3},{14},{20},{43},{8},{16},{19},{43},{31},{19},{27},{22},{7},{24},{11},{12},{6},{16},{20},{7},{5},{7},{6},{3},{4},{7},{19},{6},{14},{10},{17},{8},{13},{9},{10},{3},{1},{5},{8},{9},{25},{13},{20},{27},{18},{20},{4},{6},{10},{9},{13},{5},{22},{7},{8},{4},{8},{25},{15},{13},{22},{20},{10},{3},{8},{8},{11},{9},{17},{9},{13},{10},{15},{5},{10},{20},{15},{15},{19},{11},{13},{19},{11},{17},{13},{12},{18},{18},{16},{15},{9},{19},{23},{19},{23},{19},{23},{13},{13},{14},{15},{17},{20},{13},{6},{7},{10},{16},{15},{6},{14},{4},{5},{8},{10},{1},{4},{1},{3},{4},{2},{5},{3},{6},{1},{2},{2},{2},{7},{18},{4},{4},{15},{3},{6},{7},{6},{15},{21},{6},{17},{4},{5},{5},{5},{5},{4},{12},{14},{12},{29},{5},{3},{6},{6},{9},{13},{9},{10},{18},{6},{9},{5},{1},{4},{4},{5},{12},{12},{8},{5},{8},{15},{15},{14},{13},{13},{14},{9},{3},{4},{15},{6},{18},{4},{3},{5},{4},{8},{6},{7},{6},{3},{13},{9},{12},{27},{8},{9},{17},{7},{13},{6},{29},{4},{5},{10},{7},{9},{21},{5},{15},{10},{4},{14},{12},{17},{7},{1},{4},{8},{5},{8},{13},{13},{13},{13},{12},{9},{7},{3},{16},{8},{7},{7},{4},{8},{7},{14},{13},{8},{5},{3},{8},{14},{13},{10},{9},{9},{9},{15},{19},{7},{14},{8},{18},{11},{9},{15},{12},{13},{23},{13},{12},{8},{16},{12},{7},{14},{11},{12},{6},{8},{23},{9},{17},{7},{6},{3},{5},{13},{15},{13},{18},{9},{4},{8},{5},{6},{13},{10},{17},{9},{19},{14},{2},{5},{10},{6},{11},{21},{1},{3},{4},{16},{13},{4},{6},{4},{5},{15},{4},{8},{10},{17},{15},{4},{5},{5},{5},{5},{5},{11},{15},{16},{6},{6},{5},{14},{15},{29},{26},{22},{10},{3},{7},{8},{10},{9},{6},{11},{12},{20},{5},{8},{7},{22},{46},{33},{33},{33},{41},{42},{39},{27},{15},{20},{14},{12},{11},{10},{33},{14},{1},{12},{1},{6},{9},{4},{8},{2},{2},{5},{4},{8},{9},{4},{26},{9},{6},{4},{7},{7},{10},{10},{17},{13},{16},{7},{14},{3},{8},{13},{8},{4},{6},{22},{23},{6},{3},{7},{4},{8},{4},{6},{13},{19},{6},{17},{15},{11},{6},{13},{19},{5},{5},{19},{5},{3},{11},{6},{4},{1},{4},{22},{30},{38},{11},{19},{19},{21},{11},{23},{18},{26},{4},{8},{11},{13},{4},{4},{7},{12},{4},{4},{3},{11},{11},{16},{12},{8},{21},{30},{13},{19},{13},{21},{7},{11},{10},{11},{12},{19},{12},{5},{14},{6},{14},{8},{19},{18},{17},{13},{4},{12},{5},{4},{5},{8},{17},{8},{21},{17},{10},{4},{10},{4},{7},{7},{10},{6},{4},{13},{6},{4},{5},{8},{10},{10},{12},{5},{18},{9},{21},{18},{5},{10},{5},{12},{6},{6},{4},{3},{4},{7},{21},{3},{10},{8},{6},{5},{7},{6},{8},{7},{3},{5},{7},{8},{23},{18},{22},{14},{16},{16},{3},{1},{5},{15},{4},{17},{7},{6},{7},{4},{8},{8},{3},{7},{15},{17},{13},{5},{5},{4},{3},{16},{5},{11},{9},{5},{6},{10},{27},{15},{8},{5},{12},{13},{20},{18},{20},{28},{7},{12},{9},{13},{4},{9},{5},{6},{1},{33},{4},{7},{7},{6},{26},{51},{34},{6},{5},{20},{12},{11},{1},{11},{5},{6},{12},{8},{6},{21},{12},{6},{12},{17},{14},{20},{14},{12},{11},{15},{21},{8},{4},{3},{6},{1},{2},{2},{2},{15},{11},{10},{14},{13},{25},{12},{28},{4},{12},{9},{11},{5},{5},{1},{4},{1},{4},{1},{5},{1},{12},{15},{0},{1},{99},{11},{11},{25},{416},{31},{2},{667},{54},{75},{282},{45},{111},{17},{156},{21},{285},{400},{506},{289},{164},{42},{29},{29},{15},{26},{297},{36},{548},{230},{56},{143},{11},{60},{165},{136},{111},{11},{41},{34},{27},{25},{12},{179},{558},{20},{48},{70},{31},{46},{257},{87},{109},{200},{91},{158},{154},{466},{18},{190},{48},{194},{181},{14},{15},{16},{36},{16},{25},{12},{110},{115},{31},{50},{95},{262},{46},{46},{110},{2},{149},{27},{92},{50},{49},{12},{31},{261},{253},{300},{59},{75},{296},{72},{72},{72},{61},{60},{60},{141},{120},{104},{107},{65},{14},{116},{106},{22},{67},{68},{108},{128},{73},{72},{106},{52},{43},{71},{116},{74},{52},{41},{31},{124},{146},{77},{11},{16},{116},{77},{29},{29},{29},{68},{203},{45},{127},{42},{36},{31},{30},{29},{53},{55},{36},{42},{68},{68},{9},{138},{25},{48},{9},{123},{89},{222},{23},{138},{12},{424},{166},{166},{209},{250},{48},{120},{135},{201},{89},{76},{18},{198},{203},{24},{17},{17},{101},{40},{335},{71},{31},{36},{210},{99},{18},{134},{11},{19},{7},{1125},{31},{232},{50},{512},{198},{89},{31},{20},{20},{20},{15},{15},{20},{46},{20},{29},{14},{9},{13},{11},{11},{33},{123},{19},{13},{11},{16},{204},{11},{14},{15},{9},{18},{14},{18},{21},{108},{42},{235},{76},{53},{115},{93},{9},{50},{65},{49},{44},{56},{13},{60},{214},{2},{2},{2},{7},{11},{48},{66},{2},{38},{81},{55},{182},{155},{80},{81},{2},{47},{169},{58},{20},{89},{424},{41},{247},{25},{94},{247},{53},{53},{53},{60},{86},{56},{15},{46},{86},{213},{67},{20},{20},{212},{36},{234},{7},{9},{6}};
    #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (44325 bytes) */
const char* const cstring = "(\265/\375\240\313`\002\000\\\036\001\032\347p*1\260\210n\266\001\006\255Z\377f\335\223\326mC+%\004\310pI6\271\277O\232\207|v8HQT\364T\3212\254\001E\203\366\007\375\007\365?\035\016\212\002\232\002\234\002\232\355\206\236\210A\345\305\355w\267\217s\216k\316t\2656HP\320\300L\303\377=\267\004\216k\332\303\202\207\207\005\013Z\353\351\016\254)n\\\017\217\346@\343]i\241\000\320\312\017u8i\275c\236n\025D\021?\016\347\026\033\317\306C\267\255\031R8\240\300\234G\375\366\346\316\375\313\315d\030\300\275\364\227\020\244A\255I\273\275\355\211\371Yz\202\201\207G\346\33477*=<\256\377l*\3719[A\250c\244\205{+\333\213\246\363F\234&\214!\204\220C\006/\267-\334\32243\255}\024$\024\330=\005)F\022,\301\330,m{\234\321\230\363{\373\255k\335G\273s0a|\234K\226\370\261\355\324\241u\253\354]}\236\370\255\027\224M\203\236\246\033'R\030p\202\235\201\223\315n\216~\025\3704\325\304\304fP\014\240q\200'[\345\030\000~\232\207\367\3756\016\231\023\321\022\303\220\302\004/(\3607\355\031^S\r\206\274\257Z\213\255\025~[o[\247n\t\221\366Z\250\274/'\373l\356\252\255\370m\267?\373\253\010t\205\247\311\3029K\027#\360+\251\254\260Te\031\344\237\335p\240\322\"m\315ng\234\254\026\2420\304\321\371\326\323\203\260\210\201A\202Rt\240u\312\367<\013\361\247y\252\210\222\244\256q\034\024(P\300\024\244^\236\337\277\331\030\276\363\353\212s\027\352\373y]\335\352\3450\2561\355\215\337\253|1\336#\310\253\325z-,\230\3138\316\277\316J\375r\271\"\371}\223\327:f\266s\222\035\323\027\236S\302\377$\327\2263Wb$\225\334}\235\014\251S^@\274\333\314\271\365\2153\233\3642\227!n\326\212\244\335\361&g\325\254{\231\0137S\331]\215\270>/\233\2642\342q2h\301\337\354\267\345}J\221\000\237\362\306\365V\353\361\355\313\345\237\263\265j\353E\326\004^r\225\312\264\3129\353\306\227\266\264\215\221\237\002\316\264\371/\365w\353\271\345\273y\002Ze\256\326\213\255\332\305\"\375\302\373\017\202\037\230\231\023\230'\017\t\024\004*\303\376\212\026bv=S\004E\347\251 \312\211\331\004\301\222\370\253h\201\243\246\210\342\246\004\216\251\035S\321T\301""\"\\\210\304\005\353\212\024\014\225*\302+.PS\244S\214\021\204'\000\206\347\351\200\016P\242\003\220%\221\304\341tL\004p\234G\000\006\350<\022$9RB\031\377`\377Zyy\331Z\202bU\021I\214`W\025\271b\244\242\"\027EI\256\t\303,\352\212H`\234\244J\302\244k\232*\213\232\250\311\272(L\022\251\"\204ITeE\314\212\222\013c#\236H\316\307YqJ\313\3656?\370\233|\347\252mw\333\336\375\370(r\374M\313g\177f\240\365\333-\003\255\025\316\370\272\256b\334\220\013\357\026q\001AAx\032\375\302\306\031\333\231\351W2\344\324\277\210\312\361\010\324\323Df\177\325C\001\204\031\317k\372\t2\217\311$\343\271\206\374\352\034\317\351\233\244\2256\275@D\260\\\370\013\r\003@y\335\002\3776\264\031<\025\347\276\254\330,\nc\375\342y\223\0253)R\222H$fTfW\204\312\274\266HS\225\231\325\313\262\317\\\317\254\337\255m_68UOI\252+\223,\352\357&9{\263\353\272\262\020\207\020\217\004\233@\\b \004|\267\266.\200\030\350\200\236\003\\\207\263@G\307C\211\013\030\222\232\203!\006\"\024\027\3104\034\237\013\376e\347Y\250\227\361*&\250{\030\031\010\206>6\030\201\255^g\375A*H\275\340\211\255\326J\024\360L\336\276v\016\177l\255\371\326vC\203B#\203\242\242B\342\342~U\301\177\265\033W\214 \362\244\"\001\214Y\365\357\326\332\257f\2769\177\220\312Q\3119\177pO\355\223oS\"h\202\"\307dA\000\017\245\203!\216\016G\000\312\204\203\223m)\332\002\216\006\271\\\237\367\345e#\272\225~\374\367\324!4\032.\305\367\202\314\365:gz\035\276u\215\357\177\235\334d\245\342u\233\364\342\021q\2420L2]\216w\337\254\030\350d\331E{xL&\364\361\314\324\344\177\365\034n\3468\nuik\303P3g7\034>\265\276\236o\333\3033a\354TN\207\263\314\267/\313 m9]\373+9\237\262}\243\376\315\266rK\376\005\310\271\254\310\315\275\347o\020\356\333\034_\352\367e\210G\264R\n\206XE\260IbE,J\212P\023\234$K\222X\221)^\332\345Z\250\317\031I(\030\254\210\202\241\342\003\274\240!\246\n\r\nE\202\021\223\304\211\022\251\254\013\213\021\213\\R\214H\221\352\222X\026UQ\322D\305)\302I\222,8qL\021\202\302\201\204\005\001\027\320\302\376\366\211\211\305\244/\364\266\334\352\177s}\206\332r~""\361\353^_\236\312\316\372\205\017\00449\025\032\267R/\322\266\2752\220v\275i*\024n\241N:l\235\263\020\273\014\251v\362.\267\336\232~O\240\255\016\230\3417-\337\254\357\366K\350\232b\344\304B\302\302\002\345q,\317\363X\234\212s\247\204\203\200\243\316\010(\025!<\341\020\016f~*\234\326\247\322\325\006\0148\241\331\344\3342[\3234\034\017l\000B\340\000'\203\007 @M1\344\200-\232&vH`\333\347\346\364\366 \2370\261\002\226\"\305\006\260\"'`\004\217#]\357\230\366i\0332TB\220kN\316\032\305&\323\263q`\277_\351o^>\021\2060\253\222AN\306\340\271)?\215\247S\353\037\227~P\363\333:E\207\263p\266\354e\006\341g\365f\r\273\r\376\365\233\261\335\204\273e\300\010\340\204\037^\271\3119\351\004i\232\230\022#\226\2303\205\230U\n\361\033\003f\036\n$\227\344\222 &MS\303k\335`\261\025bd\210\355\206\206\311{\367^\022\36045\366\313\000\331\276~\337\346u\031\353\322\322\017\"J\273\373\374\242s+A\"\350i`t#K\204W\252g\024\0048\010W\256/\347\256mr\272\254\230\276\322n\2662p\256\2237b\312A\373>\243\267w\273\265\215X\222\331\313W\351\326\341~\320\377\243 4h`{k\030\336\331\016G\334P\351\363\243q`\340\246W$W\357?H\3531G\261\374\236\357\303o\232\246\221\215\351O\001\t\t\214\274mq\n\333\326\227\030\311I0e\212(\016\337\346\344&\365{\245\005\221\354\326\031\242\240g\342\340\204I\246\277\343cAS\205\242\311L\377&\373\020YI\240\243P\"C\314!AMv\375\265\272U\225$\"\211\\U5I\222\nNM\343L\231\365L\337~D\377\025(\252\324\250\351KKO\371\231\006\341\377\352\333\266\324Y\273\267\362\3457\224\231\023\001u\357f\277C\237\255\267\255\265^\241\030\222\236F\222$\n\343U\367\177\220\013\372\356#\250;\267\020\361\013\023\001(\224\016\216\003\024x\200\362 z\210\0205\007\205\243\2032A\027T\005\360\010\300\300\020\003?\035N\007\003oDL6\"h\305\304\205D\006\006\002\020\014%\207J\245^(:\020S\264\300\217Z'g<\212\301\374!=\216\2402\036&\230\263T\372E\315\355\345|\223\233u\351\014\375\354k}\233\334\374(\317\344\360Ylg6\004\327W\240\3143\361\205ck\307 N\2713\0064\231k\361\317B\274\322@\212\304\341\374\007\234Up\356\303\317\352\245""\"\272\216\"\t\210\207\014\r\211\r\212\006\006d\022\017(*\036,\034`\\<\0167]2h\007\0149\350*\315\314\373D\014I\221\001\202\224\305(I\331\026Q@J\344x\234L\206\302C\245\343M\277|\016C\353Ts\372\371\177\275I\35011\023q\\\204\220\256\333\245\316\311\377o\247}\035\272\362\031L\376Z\n\237\350D`\364\010\216\242\010\303\301\302\320O\016\227\353\365\254\300\227\\\230%a\224\205E(\354\222D\214QS\224P\024\026\261\210UQ\022I\232$J\"\221\260+b\3264Y\222\312\252.\030\255\010vM\221\262\254*ra\022VM\022+R\024\neY\027UE*\"\261\252HI\256Hd\272\250\251\222T\230TE(IeM\027\206E*F$\023\254\242\014\263A\353\367\033\367\207:\020Nf\2417y\316\2237'\306$\212\022\364\203\337\232\367\335\257\337b\246[\232\273\263t\027cD\232x\"c\302\326~\260\t\233`t\024>\242\034D\017\004D\235\212\002 \024&\327\372\003\206\003@\264\336\267\337ecf\"*=\301_-\246\257\006\225\337\314\031\231\313NN\207\034\030\272p2\235\317z=h\221\301\023\\\340\026*\236HQ\022J\305\212\001\256X?\346\203\317\217M\376w\373>7FR@\353\034\245\222\256\010\2328\034\312\305\214E\322D\231\262\030\305m\343\030cC\210\021X\322 <\021K\rA\212P\275\3374(\3232\215f\r\2653\275\357\333\262\206-s\030%\2075\246\262#$U&]\275\267j\354\326\245\307\273~\207J\226\036O\221k\330\242\3504D\355\221\"8\014\375\264\275c\216y\343f`\200^^I)<O\273\375\325\266\344:\nlc\343\257\334\330\370\316\253\025\307\302\273\252\2410E\327\276\371\315\024\253\206\3177\263V\255r\355~\355}{\265Z\2170\345\307\346\035\264^\177\313L\372[>\021z('\243\027w\333\t\r\017$\021\212\302\\\311o}\243|?\215\241\257 \377p=Vf\341\341\001\371K\020\017\005\032<\217G\001\310s<(\010\032\335M\244\325\242\010\206\252\206\007\216\227e\360\341\323H\227\3445\236\nr\235\346n\311a\272\214\0067\200\234;\200\232\207\206\343q\"\236\311\313\004\t\365\353D\002%20\231\"\021\013\223XR\025'\32031\024\243\303\223\246Y\200\203\302\321\222D\246\003\214I\260\313\301\311|F\220\223\272\375\217zG-r\206P\004\212\350\250\004RL\225E\356\234\232\001\301\000\000\020\004\203P 0(&\233\313e\243\301H~t\244\312\325\t\211\343\225\020\031""\217!\031\205\0342\200\030\203\004\003\004\002 \003\0204\000c\244\336J\250Dg\255\033\217j\245\006\244\004z\016h\357.5e\\\244\365H\375\352\217\025\355*Tz<\306\340\314\221\217\237\241\267\220\232\267sp\\\037\315w\251\341\245\202\215\250\\\245Me\222\033W\300\307\373\361\303\003$\325p\313\223\243e\022MZT\330\003\365!\024\007*Aa\256+n)6\005\252\212\303\225\245\207D+\344\276\036\241@P-^\225\235\037\0037I\002\004\354\214.\235Usj\264\304\357)\352\237\302\254\366nt\3462\254\331NMc\214\355\305\037\227\304\247\017^\036^\247Z\201:\323\262?\355'\337\25151#\307yp\224\021\341\330N\206\254\t~\016%\222J9\353\312\\\304ru\213\363B;=\320\306\224T\243q\236O\274\031\023\227,\261\243\240\363\250\223\003\336\032\023\272\243\217HIUU\014N\212\327\255)x;:\267\226\236\250+\372F\257\201\260\370E\002\353\235!:s\334`^|\363\207\244\250\345J/vtc\366\253,Y\354%#\270s\327\322b\016\250Qn\321\304\252\0323A^1\2675\276Mbz~<\354\024\340\366h\003\233J\303\340\t\357\357=\007^*\310\337\212\361\363R[\n\032;\035\376\370\002\333v\363\0226\330\251_\324\022hd4\306\236\256\t6\nz\023R\361\243\234S/6,\253\312\240\262\026W\3565-\356\245w\3237\274\023\026\354\334\303C\353\201\357G\207\260\275B\004K\217V\323rT\227\035\024)\325Iw\340Amjt\234\360\307\305$\257\247\233\354\314\351\324b\362#\335\315\335y\026T\223m^\023\226_\017i\313\301\213Y\307\321\016\007\224\331_iV\"\003\257R&b\316\267\333\227+f\206\025\220fc\371\320}?b\310R\261\375&\231#\265\254\216\331o\336\035\220\341D4L\236\266\021x)\305\215\201\035x0\332\226\243g\247\267\032A\321\017Cm\016j\t6:\211\225\251\363OBE\210\2157\306\035\344\212c?v\355u\033n\364\350-\261_\033\377\222\343\006\314\351F/\220\312\213_#M\202\003U\327{\265\230\240\177I\033\027w\003\312$\037o\031\367\3055\327_T|\361:\305\230l\260n\311\266\300\323\376\276\307t\315j\372\003}\244#K\003x\313\230V\256\016\005B\246\324\270\365\364\223\310\276\301\200\207U\350Lk\037\352\007\017\364Fu\216\342\207\330\311\230B]\366\242\266\266\325\202\306\306\007A\357\2267\206\216\026\223\033D\324\360r\021\344\362P+8\366""\222\215S\210G\224\020\206O\255\201K\r\267\022\211)\315\255\365\313\276I.\020\353\242lc\204w\037\236\206o\026\352\3413\221\334\200\310\222\021\177\334>\365vP\207\3076fA\357\265w\0036T2\025\315CE1|\247_xJ\335\000\221\374\364\263*0\\\0303=56\265\270kS\005JV\223'\330\252\306\002h\264v\010\023\360D\006\215S\r\265\370\204\217\350\315^\377?\317\314\270\265\364\177w\213D\326)\327\321C\257N\272\350\353\356*>\3016@N\334j\002\271j\221h\t\241\337w\220)\002\351t\374\223lo\355Q\002Q\372\n\247/\213\031\017\321c\317I\031\220\301\306\370_\tr\006\205\274Wl\354\2715y\230I\354\320\334\332\267\221\251q mx\302-\276\243\322\014\021\311\025\023\267\000*\2773\236\2012\202Dc\030\025\377\336_\032\177b\0214\005;G\241F\215\033\300{\217\263\351\200[:~]P8\023fR5/\226~.H\034\256\227\206\256\355\214\375\215>IN\300\031X\207\241\234A\354\213:\343\302\215\265\233.\032\"\241E\344\361\240/\236\212\017\025b[SK\262\222\235\347\305\312\354\261\312\270)y\354\202$'\231TpJ$\005\330%\221\247\027Zq\337\022\263\234\243\265\215\354\216$\222\210\2264<S\335\"\261c-\027>\023m\006\353\366g\270\266\037\270\002|JE\360w\251\325\210\273\260\357p\240D[\201jp=\303\031:\267g\234:\3605\230W\376\334\177\3677RC\264vq\006\027y\314\026K\016q\344\267>\001 \025\014\373\311\016\215\000P\2033$\250]\303!B\2450\341\237\2116\363\345Hs5\255v\374w\177\256\204\256\302\355o\002\311\363\177G\322\257\205Ec\217TA\247\235\027\272\266\376mV$M{\035\217\031\204\303Yp\033\236w*v\260\325Z\340\350\303\352\351\253\331-\243\372$\261\370\200\357*\225\r\212\0308\340H--e\\I\014\235\tu\027\256<\021\361\263\014\333\027|\212\205\275fZ\211}TI\216\016ep-\037Y\341.\234\215\205z%\305[<2 i=T.\374\037)\215R.!\214\371=\013\240\365\021\351\344V\364\236!\225[\367t:I\305\375.\253\224\222\376\360\307\367Z\372\232\376|\321Y\230\3614\n\210\273x\273s\213,\rv\017\005C\353\266O0\276\341\245\2051\227\211\367\325r4\241\313S\342\007\240\211\353i|\032t\003BB\202b\270\336\261\222HhS\017A\337\305|\243\260\214\316-\315\231\"\334a(9k\323\303\314m\235\205\"\202\\[\362,\246\240>U""\347\035Q\214\363(\010\264\222\354\021\225h2Z\245\275f\306\304\323\316\3337\026\326\236\232D\214\227\r\225`\021SC\304\346\262\2314A\372\250N\343r\362\251HG\236\327\342\307\330y7B\020\257\272\032\354r\266c\362,]\207\206:\204 \342\004N\274\220T\245\204lr\370s9\3553\3411{\321\267\307\232\352\343\255\211\013_\036\223\322Oa\003NWV\"\356\346\23030\250Lf\344m\263\030\356\364\203\210\223\256}\221\300\247\335\017 k\225a\356A\030\010\266\357\3422\007\207\303\307\300}l\311\001\310W\315A\244\327\371\260\211o\360f}h\2631\242\2140\363\311\307t\203\227\256\332\242\325\2240Iu\356\251\262#\027\035b\344\214_\205\n\274_\241\r\321\244\343\270<\257cA\271A\203\326\237F\374\314\356\2175\352U2\334\315\031\260\314\346&\020\033k\007\303J$m*{5\227&\246\\\311\027L\375\227N\325\004\351H\003?]\177\314FA\216\333\354}\212\322H\303b\003T\200\275J\tTjvk\310\007\250:/T\272\245hlm\246E\371[\265\021\227\317\370\363:#]Y\027N\307a\026\202\215\323\342-\022u\2728\354\215]\027v\224\r4k\036\006\327\235\324\342\326\221\204u\345f\357\374\240dl\267celT\245C\277\242P\354q\213\003\310\231\265\230\373\010~\343\276\336eT\350\036#05F&\021\020\255\366:\020\034=\317\334\\}eR\214\262\265o\255\373\235:\351x>\314\335\366\322U\231h\335\202\ncJ\200\364B\201+\215\227\335\036\312\260\366\201\216T)t\350\240\031r\001];\303\032\027f\022\217\343\320l\326N\314\310Z\260\013\031i3,\022\212VDhR\301\347\347\030%(y\266*J\301\347u\372t\266\350\246\357_\032\032r6\211e\235\360nZ\330U\220q\226e\314\221.\213\024\017\335N\237\205\331\253vy\211\274/\342\346\316\255W,G{z$:\034r\232\361\255\031\211\022\017\246(\nX\227\030\351\2150\201\346\203\252\277Wz\224\256\035\r\\7P\361\237N\302\212V\026\351\263\025\223\273\304a\377\234\224\355p\017\210mHzx\35764F\023O4\257r\354\362\375>DM\203(\362\231\326\3363N'\3118V\276\226\276{\321k\364\206\241\204iy\262j5v\2049\030\200?7\265\276\260R\316\266X\374\371-R>Wz\026)\334u\214G\030F\222\\\350}\032%\314\322D8fBl\215k\241B\356\264\231,em6jR+Y\027\325\223gPn\374$\244`<\211%=\326\241\\gb:\354\320\277h\372\205""\327\322^\226O{\2009\371\273\032\305\007\344\304\n\007H|\207\360\342\315\316n|\262\234\307C\203\324\263\215\314\300hk\2068\375\tQR\n{\342Gp\213=]\346F\243\277)\241\322\253\345W)rk\351\200qO.y\002+S\330&2\310\375W\307\377!\210\364\206\2152O\006S/\371\342\016Jg\352\007\027\377\371\210\357:\206Y\312\211\227\236\234}\253;\273P~\010]\320>\312J\313C\245\016\307\346\013N\363'!\301\367\334[\215\265\202\202\302\351c\343\316'\344\327\212\310\216-\220\202\332][\361\203[pCm\323\307\203huIO\227\362e\230\202\024\020_H\234\027a%\003\360\025Q+\254mn\204\361\345\032g?\320\363Y\242#\344\265\337\024\366\203\374\217\317\217\303B\324S\261\013\303\2745\214_5\026\223\327\224R\224\332P\374\000\242\351VZu5\243+b;P\352\231\201vB\036\314\313\267\002\001v\023>\216\310\346\016\004\201R\353%Qj\000\350\331\325\306,n\t\350\324-R\005o\267\2179\025\344\000\301:\237a\360gPt%mzE\3065\014\034\260\000\257\003\342\3756\016j\350\304\356\373!\222\354t\252\206\315D\204\014\357\355\217\002F\326q\343ec)\275\356\315=qPms\311Y1\275s\205\205\333 \352\235n(!\321\242\344\306\2448]\200ed\036\322\351\006\263k\245\376|\324S\305\356\025^\375\022bo\030j~>\226\257\254\241\214\033\321\215\350\247\177\301\352\364\n\205\345u\376\037\202Y\340M\317?\377\n+i\316\\\372?QZ\213\031r\2656\360\301\365\322\334\n\300\205>\316\326g\023g\002\335\265>a\342/b'\200\007\325wS\347\3017t\ng\032\263\237t\226J\020H\037\331m\365\200\367\177t`\034\245\354\207bXR\2533\264\3715t\376yT\342\233\027\032\343\373P\273ot\307\251\371\222\r\307`*\323\304UR\177\332\336\1778\22044\273\320iY\017bk\377~~\327G,zS\360\n\243\032\221\020\002\243\364\004\217\215\260?\026\010\2732\360\300\325\327\013\345\211\210&\316\233\317\025\r6\310l\2365\223e\306>\3018\315\t\211D(?\220\217\001\361O\001\376\367T{\316\010\244\007C\240\334\342l\232v\200N~;I\252D_!b[9|Q,8Zn\371HsEF\346\374\277\371\357\260\0025\226\331\030\356\351u\231t\377~5\021\037\203a\236\302\033\217p\362\324\357MPoc\323:R\363mpKau\227\201\024\364>\370\361\250\364x\371\345\252\363\266T)\365\317?\270\375\330""\030\342{\214\304'DH\243\35381\370\3677\320A\n\342k\037\035ve\026bdwl\202\325:\034\206\rq?P\253\336r\225\234\034\357[\321d\004>\001\257\242M\210\2261\346+\230\340\376g&\363d\265\310(K\344\226T\334Sd\377\323\024\333\317\031\341\232\013)\377\001)\033\301\236A\207\006\">\256\211\224k\346\254\344\t\267\301\320\242O\267\330\352Y\266\240\255\303\003\010\271J51\340\037\026\313:\237\033z::\032\314 sG\375 \3152\013\314\327\"\347\233\251\217\200;\373\033\224~Uz\017\367\000\361\272)\205Y\370\327\351~e\034\256\254\273\017G\266\231EEj\350\213\034\310\221-A\246\227x\320\020d\322\031f\235\362D\226\377\374\377\3276\006\034\352}\301\262\351u%\021\225\230Jp\031Y\365\330\264<8d\303I*^)\376\002\233?\"\233)3\020\253\222D\214\375\362\210\210\005\032c]8\266\237\366vH7`f\204\312\314\3454M\325.\237\026\212v\356\336\006\240\361(\204\206\017\214\373E\016\020\t\0014S/\036\250x\343\335B\271b{\200\000\274\340U/\270B\014\261\300m9[F\343\355g\"\336\327.\220\222\364F{[h\313\274&\002LR9~\212\352\000\341\235\316\320\254\315\220cY5v\213\316\032x\212w\311\302\274g\005\343m8^\201-d)<\251zQ\260\335F\260\r\362\320\257\261\014\236-U\354\255\0209[L\204i<\027\365\r\rJ\326>\241\034 \220\270\n!\357\252\0054\324\021\332\222\r\005]\363R\215\024\341\227\271\344\257\371c\203\304av\372\255\212\025\311B\311\215\252\032w\004\275\0378\326g$Rb\312;\003\031\312!D\321\300\373n\215\310\317nF\344\360\203:(\214\273\261\3766\343\203\262a8\305%\304\264\214~\342\366 &\234\013*\027\2209\276\375\342\354\331\355S\211y\313?j\351\244\315\237\305\300\202\325\363K\364\003\246\340\252>\242\340\241\254\007\3521\341s\021\003T\251~\350{\310\370\344\211\322\307Nzf\353:~`\234Zo\025An\233/\370\372\226f|\204V\\\247\006\304\\\333\030\260\276T\275J\273]\370M\025!6r\276\321\33694\200&&\255\324\014+\230Gd\031\001\234\000\221\025Y\217@92\020\365\021\325\2035\374\225k\300\304\330y\025+\344Z\333\201\267\263\261\343\326\324\253J|{k>z\212\231%=_ee\005\022\213\3624\260\247\001H<E!\212\th\354\316_\0103\341<\362\022\004c:\356\265\350\006a4W\\|\374\264""\315CE\350\265\314I\2512\242t\357\366c^l\r\272Q\3069<p\374{n*;\354R\331\310\354\263O\303\364\346\261\202Rl@\033;'\223Y]\252\0133\207\005\277^\314'D\037\020\252*\313uL\325\254\300O0\357r\346\232\211\304\275\356h\2607\336\212V\200\336R\310\301\347T.whK\3037\365\345\240\352\226\033\025\030^\256\326\214FQ\334\237\2010B'\322(ieU\267\030*X\202\000\317\375\320%2\264\312\341y\264\276\006\323\002+\231\353'\256\252rH\227K\306\030\270\3549*\305\377^R\313DF\257\263\304\001\003\314g\020\243\356262\036%\245@\210A\372z\210\tSq\261\263\3362~<\356\313c\337\244\0130%\327*\026\371d\276\345\365\270\207\023\364\326J\232~\211]\305\204\263\003\325(\255\267\001\236\010!\262\212\001\365\0078\347A!\0147\304I\302J\362`$\226Q\342\2444.\210\301\325\342E\222\265I\264\371\317}\262(\222|\023\027\276\203\361\330\206M\263\245\257\340~QzivMH\004H\365A\321\032X\nu\252\353R+[\2434}\245F\334\266\307\330f\t\202\367\350\214\223\006\274w\224\220\336\016\2760\374\020\252\262\235\365S\325\201\200|.c\014\221\361\034\256\266\226b0Gy\004\320\202Y\332\367\334\375\332\257\217\344\266\003\350\"\357\004Lj\327\252\311\213\013\242\225t\354\033\0173b\227x\344\357J\343;\232a\310:\347A/K\354\317$\230i\2361!\200\342U!\227\207u\003C\244\200\035<j%\340\032'\2274\013\016\211\223vkyq\010@_\236\031E`\227\210\260C\003\314\013\356y\210M\262\007\005\r#(\031\231\342^\245I\217O\037\344\205K\323\303\245\246\214\340s\003\221\251\342\267\312y\346a`\223\236\323\376.\025\257\377\360mc\240B\017{\010u\255*\025\3775k\247\006*\310\251-B\214w\362\300]*R{\335\255\270\034\033\032\211,\221I\\M\241\346\306\274\207z\374\214\305\300.Z\010\030Y\\\025\234U\236U\351X\247Cc\215*\3104\376j\221\311\tf\231\3626\322\206C\332\375\220\006\330\323c\257\016C\215?y\325\236\201\021\2623\325\201\364XGD/88U>\362\364\377(\032nR\305\313\024\306N)\032\260\306Gj\037 \n\032\200\367\017h\t<\027\320\300\210\252e\"\374\017\017\350\355\342S\026\200\200\204\037\230\326\007\247\206\322\231\372\021\335\215\314\300\033X\262\221\253\r^\024\201\360\240\373gn\321p\230\330\266""\256\222\336\354\013K\022\375l\276\202T\212\n\220^\354\343\221\343\245\nG\243\270A\216\337\217\264\324\237\016\351\3500\377\212LrS\372\241N \237@\037\214)_Ma\201\375\3042\213\316\301\2730\022\207\350\243\200u-I\211\376'o>\327\"\235\024\215\344o\252\262c\302\270\245\304L}\340\343Ci\232e\020pU\007\337\234\234*+{\201zwsq:\033\330\001\230\023+\312\017.\360\206I\"\37788\237\371\243\310\022\340\032W\274\257JL\315h\020\212q~\005\360Y\277\204\225\007ig\020\031\257\277b(\365\036\034\335\020\334\005\236d\342Z\022\000\304_V\372\227|\n\215\247\377A\306f\270\213.\254\024\320\272\260\256M\004\251_\332\203t4\010hE\352n=D\024\240fj\277W1o\317\214\tx\274F\001]R\350\033\\U\264\341\303\307\343\\\227\307\370\225&\365_\262\255\032\311k\022\210\344\374\356\236\325\262\331\306\375qXV\224Z\031\254\235\322'\301$\217\017\003\007\245\215\037\373\314\025\373\240\tP\340M\203\276<\211$\304\n\220\277\240?\252\323\245\002\033!\341\300S#\000\022C\240GC\025\314\321%\3047\231H7#\322u8\265\331\n:\372\324\0046\220\370\322y\016\313\362(\232\301\351\303\276]f/\007>\217\275\003\375\274\005\270@\351\224\205\226\212\263\340\373\320\374\276\370\3173A\342\2043A0?5\007\273\005a\326j\010\375@\211'\303\345!\315\361\3111\2029\366%\205#_n\017V\314\346S\243\254\236\204\241\302}\212\030\366\301B\311\300\302P\345N\204\315R\336Z$\233\225-\267Y\312=\325\324\007\242\265\367A\346X\306\203\002\202^\275\210\347\362\345]\344`\233\310\353\374\323\322A\035y\376X\000L\210n}M\352\310rt\2442\177\031\276\032\236Y\274 \300\3604U\222-2\207d*3\037F5C\350\345,\357\271\373v@\2709{w\310\344<\232\343\270[O\016\300,\236<\"9\021/\2251-\376G\210\020D\260\024L\235\021\331\202\224\273\"\000<IZ\024I\255|\335y\223\237\205\001\005(O\210\020St\222n\247A\330<\201\377\270\250\237\352\215\3710w%AV\205i2\374\033\213uLA1\014\257\250c\276\235\300\334C\263,\272\025\252\361'\200\255\341\334\350\367\277\032\337m\365\001q]H\332\2660W\304b1l|\n\261\245\326\\!\034\235\242\020O\025!\001!1\343_(\324\311Ir\"\262\217+ j\233V\321tnz\302;\261\314\036\n7\376\363""\264\240{\344\223\"\254k0j\203\323\371\260l\256\326\3240J\245\305\2457\233\004\027?H\223\242\t\213(\334\370\274\230p=H\006\204\342\366\\\255\243\326c\004p\243&\032\352\016\224\366tA\350L\003E\275~\233\251\224\203M\017\265f\370c\221\344F\266Iy\311\235\300wD\223\200\020&5\3718\347\362\314\226\2416Yk\251\nX\024-p\230\241wN:\232jD\302\216a4`\t\234\272/G\307\0026\234!% NQ\377wE[\321\253g\203\234\226\373\243XN\325\216\232\267e+\247\227\005\025\002\335\341~\346\353\306\216X\2454\215q\213\326HP\350\273\017\352,\262\346\235\025\"\327U\005~(So\361<\234\262\313\025\365\3148y\234\303\261D\300\367\002\346\027/\240\027<\r\262\274j\266\270\313\326\304]\350\340D:f\037\214MzL h\374\202+\374\363\217s:E;\014\204u@\255\211\240\244\216n\213hV\370\376H\352\347\257-,\252\254\035[\3133\2678\205\344Ki\313A\255\224\033X~\202\345\323<%$\315\216\230\263\353\034\275\336Y\2155\027\006\226|\232\354\321\313%dA\372\201O\202\026\230\335\355i\201\001\364\275\253Z\303\006*W\030\362\031L\240W}\354\t\262qr\203\236\253\231^\233p\207Y\010\376\003\366\301\314\327\226 \304\264!\234\216\003\370\345I\265\002\035\244Q\207\253\342\247\013h~u\350\216>\264\265\332\016\230\251c\267-Hp\251z\215#\315\301\252H\021\260s\346\254\300\256\216{R\343\362et(0\207;@]\301\226k\010\332\027\r\255\260\220\002i\362)w\320\243\005\346\333\027\211\277B\243\017|\240\263\355\362R)\221\346\276509fy\035\337wP$\225\006\243\256\212\204\205jU)\033mw\273A,\215\304t\372\3235r\351\225\2672\207,cQ$\361\373\254Rz-$SO\337\334\270NG\205\033\354c\355\305\351\037:D\004\301;?\214\313\351\036\370\351s-\370\010\242\227\370\t/+\030\374\312\256\373\326\224\203Y\037\203m\350\321\245.+\2732sJ\366U\315&J\200\310\324|\316\357\010\250\205\214`N \260\006\r\257\237\233\003h\203\021\210\367\036\263\"\310D:\022\177\315G\332C4\277h\342\032l\020\000\020P\354\264\275=\370\345Q^\212\303#@\216\2105\007E-\231\014\322\226\364\240\242\247\1778\252\025\035\t\026\321\311\2345\274tw\235C\022\034?\t\000L\261\364n\230K\221\302`\210\253\031b\226\010+a\247\272\245\267w%\363T<*""\307L\347\253\306iL~,S|O\"\275Y\253u\241,\321@\016\031H\331\227\016\257\3212\003\030.\310\343\344\313.\260)\311s\266\243\220\017W\261\213\003\231\204DBt`\356\016\323\027\271\201@\311I&~\005\221|\325\232\302\025\267\227\0004\025\300f\010T\216\360\001b9r=~t\004HL\000\341\032/(\000\371)\216\222\021#\010)yj\217\000$\353\307V\315\252\001\336\245\237K\361g\245\251t_?s\220\3221\013(\362\354\231\351\225<\001q\236#\350u\320\201\024\0344\302\021;a\004\0017\301{\331\005\376\224o\027\233F.$t;$\267QEETYq>\226H\260|\3264\277GcZ\256\0235\344\235\374\370J\300\310\265\013\316j\013\001\2623\365\225\2472#\254J\364\r\204\215%\374\231\336\376m*0\024!\252!%\225\0106IL\031RO\266\374@'m\276\016\353\023#\243\323}~@U\372\"\342_\254K\014\236\236\034q\006\2125\305\363\202\036\010\013\246RM\023\224\221\332\3430\231\201j\376\2275\217`w6B\233@\320\1776jf\313\366\023\307\375\253\301\227\021`(O<\\\020\027\270\237\240\257\330\371\277\205\004 \366u\260\307\002\020\346lf\005\243\017sD\315\340\1770\316\314\323\2322w\246\370\236t\377\241\016\220\363\036\021\375\023h\235\333\252\\\236\246\246\321\"B\017\240\267P\247\211\2161\322='G\371\216\261Pz\034#\235\211%\264\355\350\021\017\336\302\2663?\021\254\337\262\271\377\201y/;\227\001\005\020\257H\010e\216\017@<\204\025\237\260\035Jc\200v!@)\314\340\310\215]\326\257+\253\177\016,\345\026\013&\316\236\356\243+\034\316\355Wv\315\232\204-\256\200\260H\003\272\267L%\257\341\n3s\370h\320\355\351>W\016\333\230\364\316?S\314\n\257]\033]Jp\344$\317\003\237)\272Z\343\214q\343\246\017\027\263\r6B\247\363f\340{\377\351\033\\>\202\323\346\376\273\231k\270N\024Q\"\030cE\353\207\227|\204_\224\350yA9DV\241/u\005#\247\233\245W\2250J\0229\222\001\234\340\301\322\217[\016*1wW\003\007=0ZLr\200\215\010t\323\277\206#\3642=\214\267\352\265\261\331\272\340\325\021\310p\020}o\213\014\307\367\273\346\306g\277\257\006\313\363\222G'\217\267U\030\300\366\374\316\346\005$\264p\201\224+rD\3116\203\224\214\003B\034\2535\263\357(\217W\346\t\0168\034\365\307mv\305,\351\t\207\340\310@\272""\\\356\227\013~y\352\2573\003#Hd7\221\353_E@\376=`\300@v\236\255\214%j\234\311\206c\226D\377\260\025\320Tw\332C\267w\315O\010\304\220\242\252\257\327\223\006\034\016d\336\263'\361[YG\374\031P\343\375D\376\000jk\264\024-\240\016Yyj\220\371\r\036\t\035\247V\266\nm\344\232\326?\312\226\352\0179\353\306Z\377\377o\367<\227\")o\030/\307K\357\360\252\020H\0018\001=\001_\205\305h:b\214g\264w\367\270\020\227\237\333&L\330\023:\034\316\336d\331E\003K\345\202\263{\327\367\007\000F\032\320(\332(0i\363<\330\003e\370]x\340\001%\270qP\357d\220k\014c\022\"d\006`\334g\376\200\003\005\202H\001P\256\273\013\031-\331Gs\r\3169\373\2343\322\351g\277\346]\307{\355\361P\3273\203\336\311\264\335]h\364Q\327\034\335t\3235=($(x\336\033\304\005@\200\rC\372r;\360B\257ey\276\351rP\307WUU|\321\251\222\352T\251J\361\212\272\367Z[]\237\327Y\314M\325\225/%U\t\2314\177\334\257%US\322m\003I;M\275\202\2240\340\274\r\222\3436\330G\324:K\224\351f\207\021V\\\357\327\214\344\200&\354n\373\211\2567\033\315;\024\274\323\240\016\"\242;\177\002\026\027\312\204\304\344\341\302\200\202\221T\034L\\$\224\n\314\001\211\013\245\262\340\"\251L\034\240\234\322\3261\306\030\303\004\226\207\332w\025\r\343\317\343\001i\233\375\234\237\002\344\307?\001\002\004\200\237L\223\333o(\224\332\013\260\302\3413 \033\0254\3474\340\274\342\001{\255\275\016\025\001\335\362\220\266\255m\317\267\346\034\335H\021\020\003N\230\243,\245<>\331k\372\361\237\337\260\373`\367\336G&\203?_e\204S\327xGQ\367'\022\234!\262d\242\265,\177\324?\332K|\226d\tMBOmr\016\004(\310O!\000\336\tC\260(\233D\332g\210\317 $\331$\"\312\310h\261\265\240c|\036\345v\306A\372;\241\214\353:\031\310\323i\307\320\335g7p\350y\343\313t\343)\203\272\214\035+\355\336\336\242\254_\313\262\234u\364\035o\373\t\316j/8+L\304S\225\327\235\316\203\376\03545\215\211\370\311\365E\250\233\260\325y>\017\256\231jR\321\2727\002o\255\221\336q\\\226q\273s\357u\014\223('ca\224\252\303A\345\234]\246?\272\367\035\021\321\267\346Q\004)\347\333\263e|sZ\207>\235\276A\032\354\0060\262\035y\335'""\202\033\253\326\326+C- \024\267%\331O&\231$CdS\302\271\351\360f\363\370\303\233n\257JY\023ukU]\224tYV\245\225\275\225U/\310\003~\226L>\2023K\362\377\205\316_\347tPC\271.\257q\210v\014\022\214T\021*R-\275V\306\313\347](UlNL\232WCE\232\363]\000N\027\312\316t\301\354\324\235\252V\026v*z\263\201\247\303*\206\214\024\n3\231\366\312.\240\022\377p\037\272 wsmFJ+\356O\007j0\261\361<H\005\026\203d$5\341%\350\026\241\256B'd\364\236\343}\326\037N\256}\334\266\016PR\226\206z\211=?\206I\261R\215&\245\026)b\247\350Og\337pg\235\323\370wx\005\251\3544I\334)Q\017\022Qhw\235,\022\211\310H\037\232\004\373D])B3\2318\260F\023\321h4f\247\326\266\355\001\244\022L05\375\236\324h\356\366q\367\017c`\036y\322\302\0148?\014\315\361\337\366C\024\331(\003:\340\225\200\001C\235\026p\206\005H)f\275\214\212q\306C\354:_\313\361p\344\313\232\007\367\227\007F\"\221\260\225{\347\266\306\237\243\371\006183\260\212\260\374\364\325O\026\213\207\035\177`!%;\257m4\342\246\226\373\266\367lG\3472\307\374l\352}H\301*\010\006F\013.\013$\355\\\027\373~\016T\361\315K\225U\253\376\331y^\310\325\233o\307TM\327t\325G\3042]\306\006\031a\377l\331\020\351\356\033~\370\353z_;\325;Y\027E\331\373\350\240\r\244u\036\212\343\202T\313\252\250i\252\326V\000\030&\335Y\261J\251\215\262\002\247%F\240\225\326\001\264\310\3309G?\315\355\303\243?\334\363\007M\300\217\016\\\210$\226\231\371\035\366!!;>\323\220\300\300\315\320\200\245\017s\003\316\3067rTQ\251\024(\220\265\355Wr8\244;e\007\356O\271\320]\357\211\332]\364\307\244\234\340\3433&>\306\361\200\222\004,\177\306\300\371\230>\273\002\272\361:\005\234\213\t9\313\262oP\321\024|\243\021\3024\340\206PB@\357a\222\272\305J\014\376\363?\254+\233T\326^\366^\367\202T\325\255T\252\227\245\252dI\220\313\202\\\253\000\305aM\265\242(j\252\226DA\210e+uUR\255\246\313\2425\312FU\271\3106\210\002|I#\244\021F\240_\205\327\035M[\242\3710!\226\352\232\203\311\232!C\314D\017\363\363\330\244\254\324\000\201\333\227)vi~}G&.\224K\205\204Z\364\250\353\212\350\250t\266y\272d5 \200 \010\002\203`00,""\034\226\310D\022\241P<\367\003\224b\307R\307\007\305N\302e\240\0344\007B \005\"\020\3030\300\214\005\310\200\241\201\001\333`\000\227\347hl\245\352\331\324nD\371\272o\255\013\323$\231\352n\021k\272R\205z\226\2368\234\034G\002\226\220.\267m\3420oxhI\263dWW\257\301\266D\013\013\254\246\3428\331\035%\242&\240+\317\"~h\0224h\315M\rI\320/\007\010t\334\254>\263\360\037P\373\214,\312\242\206\032u\215fy\266w\263\355c\177\007 \223\002]j+\316'+S\307\200\223~\262\252\200^L\251q\301&\254~rq\031\007\250\006\226\013\350YR\002O\304\rR\352Q\226\035)p\335d\244\364\311j\265A\213@6\377,\n\315\331H\206\013oL\312\276\022i4R\333{\222\033jd\000\032\t(\027\371\214[CL*\n\303\\Q\245\366\256h\246Q\274vN\265\240:>$\264\nP%`Ws\023\241\347\3029\266\357A\301'\244\326\362\261Hp\337\030\305/\212\216\256\200\270\200\220\003\005\024m\366E\305\277C\371\334\254@\205\212\373VJy\237Q\211\2167\005\275\014\375\353\3023\352\345\270\313X\200W\003\255Zl\007w\007\200\227\344`\231\236.\306\342\365\223\034\302I\240\231\0340\344\027\272\003\310\302\327_\230\351\240\325\020\2058\231\354=\310\250b\177\222k\321J\247fZ*\261\242`g\316\325\354\001-\364\371\345_\362-\t[\261\270\265\363\227\236\003R5&8\202x\252\031\247\270\306\375\000x\363\330\304\225\325.Mw]\253V\266UI\313I\375\334\347\273\341V\234M\314t\236z>T\\\r<\020B\222\341\305\224\345L\034\233c\245[9/\241\343\310\223\235\266\354q\302\214\017\311r\315TS\250\034\032DN\"\372\370;\265\001\301\235\007\206\373\2616\241T\331Mw\237M\n\001\016\024S\307Gx\324\301m\036\343w\016\323\230{E\024P*\326\026K\007N\374\234\310\330\235\306\224\375\014\006\325d\027\327i\014>\362G\203\021\031\r1E\304hB\r\254\273\005N{\311\007\332!\337\263\347\262\234\021\300x\314\261R\033eE\235\316\236\014Gk\207d<(\364\226*<\212\360B\221<\324]\335\360\356\353|GpcGL\240\000k\205\2148\222P\216R[\217h\346F\002\003y&\027\234A\363\201'\311r:K\231\221e\353\267\205\312 \363_!\3640\222=J_u4\322\347f\036\004\306S_h:\226\362M\255\364\233#\306,\222\001\226\315\020\023\306\355\210\300.nga\356\313\021\260\252\325""\276E\371\202\301\352\227\353\001\232j\366\254\215\373\315\357*j\234\"\211\230\"\021)$\3562\232\374T\324\250\327l\200\324\344\023\3602\300\340\305\331\211l]T^\313\255h/2t\353\2673\340\024DC\340w\354\355\264C\260\236O\313\360\316\251\023\021\362Q\310u\tF\230\021\352J\353\220\365|\221\\\340:l\246R\376\022\t\224\336}\030\216\003_\264^\246q\267\314\271ppz\2356\257\304<\005\311\334\323#Q\214\242\244\365 {\201$.i\267\314*X\371;J\343\033\322\204\331g\0044#\000\314\024\276\327.x\030R\342n\t\277\213\026\315A\212<\270\211\207\263\rl\236\275\255\317\037.\340\244Fe]\363\2123~\247\245M{\214\24189&\331st\217\225\266\351\230%H\376Y\250\252\251O\024\342\212\tT>7m\243\247\027\234\t\364A1\255\275'm\217\0236fX9\026vWD\037\202H\017\023\302+\246kA\250\242A\226\261x\254\273\266\032\264\210W\366\001.U\261\276\030&W}\313(g\315a\260\223\257\277\334,v\243\334\010\035\351\206$\263\025\313\244g\021\334\023`\202b\244'\030B\034\253\241D?\237r\243+MN\265\245\312\306\n\202\200\017\304V\301\200\277\317\252^\326i\271\240\204oJr\362o\247\317|$\006\001\271\030\2532\252\024*\024\177)\024\3221=\037\r/\020\321 \357\344+\363\022\231\311\211\305\262[\327\226\212\366\021\246\271\013a\325\020\242\005\252\3166\027\375\321\213\244\006\355A\372\026a\212\376\375\006N\rj\367/\343\004\036c\353\334\340\031\346\256\313N\332i\307\360R\n\021\257\\\345,C\372\323\375\244\361\207-o\t+\354\221\367\257\363\255\212\376\271D\007\317\2468\302\342ws\017\366Z\323#\026dO{\274\370\317\205-\331\341\364\303]\254Q\365~\370\17725\302)\205pe\372i\315LCW\246@\344U\025J\333}\366AP\253\251O\347)\331i8\363\212\310\262\211\251\237\346k\036}\363!B\326R\343\230\242\302\032\307*\37122<\262+\202\234(\216\023P(\002zQ\351\361\267\232\272\016\373e\353\267\310v\033k\233\306w\000\333n;\236`\226\317\030\311\211\253P\360YA&\304\261\307?\303\332>\034\023\262\"\341}6\354t\027\261%\240i2\177\031[\210\253\316\340\252hN\210\002\035)x$\256nLo\003\243\367[)g\341\037\001\272P.\214;)\251\207_\335$\263^\252\322M\236\010\000r\317\265\273\3221\021\214\206\341""\257\372\365bY\301?\303\320\024\356ua?n\200\313\"\024P/\207(v\023\361\3058\305{\356(\200/\004\321A\007b{W\332^\363\235\231u15\016 g\241\253\242\027\211Iu\025q\360\243\006\271\023TE\350C\302\341\353\302A\030&\025\0365\352\330g\312\247;>I8\327\250RG*\021*\036\241J \223\030F$\342\247\370\277\232\"\330\021\317@\260!\027O\235\232\330\023\330\210\003\352\317\360\014\264D|\344\020\205\313y\243N\372\313\204\351\031\276\346\210\021dr\005\241\203*\260L\217\372\276\261}R,\327b\030\225k\315\244\317E\266h\373\257+\034\000\037\025v\304\234$~\320\177\351\311\213\227\302(YdR\030\350\336:g@\250\034\022`\341\324\341\3713\255v-\305\326\336\336\317\216a\020be\360\223\010qS\202\335l\032\022\210\267\274\002\254\207y{X\365\374\337\241P\210\177\200:\265f'\211\"\314\254\3726\361[\251>J\274ld\227\305\264,9l\361@;5\2478z\366K\342\036d\304\032\314\004\341\356\313eL6\323\373.4.<;DN\365Od\257\201\205\220\211\266\\\034\372Prg\215\330\262\234\314]\010\331\006J\215\243\217m\241M\237}\255\322\204\235\000\001\324\204T\272Ob\2444NN\343D\205\214\2578\347\251\206\300\354`\360\215S>\\\200FU\236\223~\2422\341\303\275\273\340\304\007\312W\314\2411\320\260\036\207{\3460\031\320\006\226\016\363\275\315\306\3266\336\204\366\264ub\246\t\326\244@\215\247Y\377#\362\256\206\006\003T?G\005\016\265\257fV5bY\204\367\367\252\371\301i%\025\025\345\262\333\036\231\302D\311\262\251~\302\037\030J\032\362\365'4rV\360\373Lz]\347\016\263\245`\022\025\214\336\355\251U]\205\375\364\315\200\320vQ$\305\001w\016\224d\377=3\344\256P\214\302\324\025\300\005]\237\330\177\213\227\002\312?\323\024 \257\237J\036lh\323\224\026\3263\3774%%\311\313\032\343;y\230\207\361\234l\366\240\224S\243\370\0051\372\347Q\306\360#\257\203\364)t\337\254\006\t\005U\302\221 \350\222\231u\277\210L\202r\022\305\206\361@\247\335]\340\177\203\232\223\033R^\377]\025Rm1&ds\343\214Q\205\242wk\013\301\250\366 \214\200\002\2406\230\315xf\t@\340\027R\025M^\020\342t4\357\325\023\240\311~\211=\205\214BI\320\005\373\217\211\253\002\375\367p\264\322\307Z^\220\263""\303.U\030W\260}cU\030\342K\377\266\363,\271$\377\243\275\360\201\032\262\263\326\3548\037\323N\377UI\317\224#+D\256\200\034\235\014\215V2\226\323\343y)\325\336fc_\004\375\360\232\016R|@B\343b\341\340\236\212O5\367\351\031\355a+\243\240\341\365\331\313s\223\020\222R\r\352\211\374\024\315%\202\001?\365\003\352E\036u\341\010zt\n\t\356\357\325\203C\005=3o\230\214\222\373\037Qp\322\3219\262\033\255\362\306\236\364\347B\334\035\031\261\275DI\302c\263\252\243\024\005\274\25652\267\010e\235va\314Zf \016\370\013\010S\324Q\375\263B5\025\020\266\236\337\345\353\373t?`\n`\036\232\031\274\335\312\241A{\023W\014\377\361\226\025\016\252\256@\001\201,\321\315|\023@\004\276c\256z\017\320#R\252\365\010b\317'?\030\356,\274\334\246\300\373\365\216%\303\354\2426\276\363[ \313\001QK%\207\n\253 \235\261\376#\233\276o\035\222\336\263\275\247\370\300`\244\354~%\242\336\006\320\t\"\247\333\322=\351\014\334\313\004\203-7*\320\265\370\035\214c\335:hbP\033\020\371\024\303Q\004\213\207\352P\221\014OB\376T7\304\031\350\340\016\016\360\260\2175l\320`\332\262>\320\347\326\3250\005~q\023DCd\347\2449\r\224\216P\211\020\277\356s\204\001.\332!v\331\025Xs\002\206\202i\333(w\261\364\356U\214\033\022\202Q}Z\215)\376\177\212\215o\341\217r\265\241\205\356\026U\324\t\026J\216:\315Q\202\267\220z\n\240\207kpB\301\"\302\265\205~\274\247~\267\263\372[\037\022\2614<\366:F\240\277\373\0208As\345\323P\241\367?\227W\217\321\217V/\232\322\004/XS`\027\346\311\227\213\217l\334\234\331%N\342\374g\212\014\321\263?\230\007\350\212!\374\216')x\334\024tT\316\215\242\340\026\250\321\335\033\347\014\n\026W\245\016\034\217\323\370\272r\202\235d\367\307\342\225\3374\277\005\232,\262\311\253q\000\267\377<\217d\323.\371'r&\207\202(\005iQ\n_P`\006\234\304\222\033\344+\022\2627\016\322!\315_\227\335\220y\300\374\346\242\035@3\030\227mZ\231\331\216\207iY]\023Z\234\257w\332s-a\223/\376D\323\311n\010_Z\342\273\242;v\207@g\030{w\231C\330\311U\\\363\226\027\277\326I\321\036\265\355\374\200\032\030\005b\237\323\367\343\311\375\2013\274""\037\215\213\261\204\334\263\321\232%%\323Y\364I\337\006Z\240r\306\372\256mb\255\300\222\247\034\361\374Y\316\316\306V\265\022H\206\371+w\317\226\340d\273\014\231\003\224\177E\014\357\240\203]\364\010g\275}\303\366i\334\007|\235\027\344T\2200\311\341l_P\211\367\247\340\237)\271F}\261\006\032)\310*<\364\366o\255u\357\t0\240M\010\362`\001&\247\252b\375\306\316\221\325\271\225\201u\330HI!A\340\372\327\367\006\275T\350\364\220\3259\235\332V\241^\215p\330\034!\367d\263f\034!\345\303\334\205\252w\204\352G\376y\273\232\024x\346\223\205L\351\035Y\277\0241\257\036\027\272\004G\314g\346\330\227\002\006\376B\356ml\377h\321]\363&\200w\302\007\304N\013\314\320\025:\363\311\226\245Q0;/e/p\240DQ\024\026\0274Ql\212CM\216\255?\323\037>Z\205q\376em\354\245\222\033)x\364\t+{\227\242\250\031Q\037D\030\373\330\261\367YD\367\223\2316\262q\234_\245\001\266z\244q\020_\317\025%\035\204\255\030;\371v\204d\252\016\020\234\353\265 \243\200\364m\220\016\014\002\301NH\t\006*5\tJ\341\321\217\177=@r\302\367\255\214\tB\212m\202[\377U\020\362\240\030\032\331\207\034\253(\370i&\351\036\263\002\210\022~\210\035h\356 95iWH)\207\242\267S\311L\307\237\203\3637Ff7aN\262\267TH\203%\373\227\013_nV\233\247\267\\4%v\246\016\375\020\244\301\027\216\314\213A\\J/\350\226\273\032\263\024\3569\221\273\322\326\241\216\277?x\277\322\362\217\323\026\243\231 \033\204^\237>\013\ts)\305\210\3116\246\317\"t\274<\201H\241\262.*K}\256K\267\366\272\034\367\340\300f\351,a\251\270\024J\"\2426\314p\003\337\211\236\200\315\205\002\n\365\240\005\302'\342\361W\375\350FZfvY\022\301c_c}\n\260\024\t\325$g\233$\254{W\020@ \242uB\212\253\256M\337\302}\215\345\347\302\025I\013\266'\240\352\253Z\273\025\277P\014{\305\314k\221\230\255\332\251\230\266\325\317\"A\246\26211\365\361\355\330Q\232\t\366\232/=sCp^\374\362\241<g\275_v^\303\371\214\236\334!\302\002\237\371Q\375\325\201\241\266\304@\032\017\324\3520\344\010\320\342\267\263\346\\\250s\266\347\030\213\257>p\370\374\2352#\375\252\001\264\211Q\263\340rS\276UjU\271IA\262(_\371\311X""\025\024\304\336\254\267\356\004-\2026\233\177\212\024A\223E\272O,:3\231\377\001\022k3\304\034\3737\205y\000\\\327\343yi\371\320\2639\206\343\266\036D\256\225v~\2438\316\212\035\240:N\221\221\002\253s\370\351\\\370\220\240Q\367\232\344/\306\244\327\004Z-\004\034d\346a\276Af\323.\022\320=\027\035D/\371\214\217\377\016jo3\371\302\331\2673^\357]\031\345\327\255@\013\025\236\035\307\212U\225\216\331\027>\006*\210\335\273\311\356|\342\2204ia\265\350!n\200\305\206E:C>M\313$E\n\342\030\216\347\201/\351\212o=\267\222\211QG\235\357\205\245\337\323I\256:\262\215\177\017\315ZQA\260\221N\261\321\311;\260\032\332\353\244\315\255p[\271\3208\240\232\356!\306\3749\254P\022\020T9\201\301e\251\247\334Q\266\031WN*CF\233\313gG\354\250\023\240\264\233\233\000\3579\374Wk\021\365\377\334\t\247\301\204\203XZ$\242-\347K\304\246]\306\271\277\250\001>\232m\263pb9y9\272h\320\301T\332;47\317\374\221\3141\213Q78\275+\201\374b\340\330X\205(\001\217|\271\031\345\021\266\246\301.\212\251Jh\310\335w\307$=)\027\201\350\335q\230v\221\247!\207\036\322\260\347\240\215\275\315\353\357z0\352}\031\222:\337\331\217\031\215\211\374\212Yp\223L\356\332W\364\325\244a=g\027I\364\252\230y\247~\262\016[\310\217R\211^\236\002\017\0210=X\224I\323\2561BE|)\363\303F\266v\247\204\000\205\224\243\022\316\214\np\375\277\213\201\351\370\247=\257P\177\345\214\201\225t\205\023i\324\206\342\016\246\207uoM?\316\212\277\031\312>>\342\001\203:\200\310\3032\037e|=\306z\364X\231\000\324\025$\002\335\002\026|\0227\302\345\260@\030lM\rY\031\251f\032\275N\3446\314\305\003\252\023\005/*\346\240\257\366\3140\263\335\215\233\265\023\361\201\331m\325\037\311\222k\254\220\300\001\212r\245\344\214\245r\354\206,\025\213cX\214v&\323\032\256\276\222\321\304)\206P\034\305\363\"2&\032\341B\240J}\335_34\370\302\314\266:\324\207\217\031Q\303_\361\322\225\272F\177{\363\001\240\330\334\343\022V\247.\231*\034\341\220Z.\266\231\251i\035\023\341,\227\"k0b\210}Z\217ZBXX\217\335\267\372\365\245\222\320\214\226\261'\353K\0375\271\321\312w\020\t\327\263""\355\023\004\033\322N!0\221\230O\252\2643Z\366\2403\016\3434\315~\220\353[\013r=\025\252\363\0039z\\\266\373\301\245 \262\034\r\311\016.\033\334\177V\"\275\260\207\345N\224\211\303\2020g\240E&z!N\264.\374\030\214\036\333\257,Y\324\036w\"oE\235|\214\371\033T1\001^\300\013\225\n\014\210\314\350G\231\343V*JY\244e\237\351D\3571\273\024,\177\032\026\214\237)pXY\202\t\320\346b\201\346m\3248Q\370\271\002\312b\242\0044<V\025ii\347tfj;\212\206\215\307\026\362\277\226[\2236\036D*)\327&\025\342\200\031(\037\352\3017\374d\005\014,\275i\303\374\261\323K?\274\234\3279\231\035\005\225\231\022\236\020\333\217+\006q~\321\274G{%@\362\220\317\030\265\341\363D\253x\327W\322L\206tz\017aP\000\235B\357\205\033(\034\275\r\031\322?8_\357\020\237{\251\t\376\361Xqc\372\314D%M\221\321\344a\000N\354oH\006\315\023\375\315\326\316\000\021\020\014\261\240\312\365/\353\357F'\214\304\353\034\014\225\252\033\267F\356\364\377\325\303\360\312\037*l\321\236\304es\375\000\310W;@[\377\331\274\301r+A<\203\205\rr\345\316\252J\362.\317\364\027<JF\215\327\331J\352\322\177\206\224\332\327R\315\260\232\0230%\256\0375Ui6AK\265\337P\024Q\306\t\327\351\2626\303\317B\311\213\374\355\027\221\325\225$x\327\204\016\345Y\0210\212\331\222N\242\007\2427\224\245\235\227\213\000\252\353\366\230\016T\\A\327\316\017G\250\354N\334\366\241\206\254\271e\320\347\271n\317\\f\014e\025'/\350\312e\334\022Ip\375\ri\360\002Y\347\246\240\206\202@\341\021H\271D\361\270eO\365\236b\317\300\264\277\363\214\307\270\227I[VJ\362\027\277\335\247\340\000\177\003b\321q\304\320\000TL\357\374\030Fn\373\255h\247\306\373\301Z\r\016\230\215 \367\2264\373\301ph\324\034\203\02598\n\005\356=\215\254\353S\034p\257\334\213H\013\250@P\026\270\000\322\263a\231\336\325\375\240\222yP\252\332D\365J\267\354\277cxw\344\017\020\240\355&\272\244\245\230\246\\\370\204\221*\303i\253(\345\201P>j\312EOM\224\017MAR9\206\003\353\320'g\006W\302$\030\010g\336\224,\252\020\326\243\352\323\035I\267\"\364\240T-qI\224\325A\342F\322@2T\035\257\366N$\2104{o\024\233\007\302;""\253\371`\005\273\013\327D\337.\355\222q|\223W\017\225\265L\344\310Ek\364G\377\034\203+\021E\024Nr\270\361C\334\321w\3530\013db\275\006\333\037\325l\224|\363\004\220\310&\352U\305\2641;\237\377{KL\335q\227|\2701\217\301\344\272\302\320\220\003\255\203{\225#\031\205\232\356\350\231\345\014t\221T\314t\321\211\270<LL\371xc)YO\005\320\343\330\r\2254\352\313%\234N\244]\204\220\332%L;\025\376]\016\377X5\372\026\262\020\016\251E\014\024\263\014\231\354\242\332\256\270\r*\245\350\236\356\227\014\232\362_\245(\341sa\355I\021y\365\\\206X\230\367\n\256-\007\320\016\230\2054\014\240\210\347w\246\212\2116\226\201\232qqjb.~\334\222L\203T\342W,\036PI\260\332\016\214\031\"]\004a\331\367ZS\240\213\270\312\350j\265\250\004\365v*s\342\t>@k7\315\264\306\031\016\334\016\026\231iE.\312\204\350WW!\377\021\277\316{\266\342\242\037/gt\324q\213\204\344\306\272\034\325ju@U\3617\031/\250\003\313q&\270;\261\223R\005\351\315\303\005\374\005\322\225\2516\246+\317\357\212\034.[[7\233g\305!,:\375\314/H#\327l2\353\003\240\303\245\214\250H\231\330z\246\217\254\306.j\030\236\341\311\363\207\000\0050\202\361\264\253\034,OI\204`\364 \270\2249\3226\002\267\272iYOW\274/\301\332@jp\222\023A{mp\264o\247V\032\3150\tl\003\364J\334\220\234B\241\312<\205\345\3642\245\244\030\274\354Zr\377v\210\351xI\312\3312e\020\026`/J\021\344\201\371I\323\357\322@\310\237\226i)\332\347\000\231_xM&\315L\177\027)7\366d\371\351\327\021\341\366\027O.\231O\322\316\225\213\004\374\375G\313{\266h\320v\220\024\211!2\362b#\206\032JN0\352\211\261]VB^\325\006\020\033v?\273\"\256z\\\236BwA\345\273>\206E\311SU\002\315\375\201\374\376t\013z\313S\221xOz\347\316\013\002*\204\211\342\341\022n\315\374\310\352K\272\3364\264\271\244\332\206\003\220\3433\032\277\376b^-\360}>\245\020\201\327D\356\351\303UZJt\313\267u\370\312\020 o4\357@\230i\366\251\232\337\216;\243MA\000\207\366q\320v\376\237\375\026\371\251\341\316n\326?\336#M\335q\350_Ai\362\306j_d\354\316\031\243$\327a\213\002F\354^\364\033\n\303\003s\tg\354B\362\241\231\033\222\267W9\220\"""\013\210?\030h\300N\302\300`%\r\300\236\313G\351P\361\313\347q|Qez(,\005\251\311\004\267Kq\3347\013\243-1e\276\036\\\265\255\014\342\363\366\341j<\333\252\261\266\017]\252\034\3537WHCh\311\3459\263\334\224\204e\324_/'\342r:\0315Q\220\343\177\\\325\035u\317\311\017\371\213+\254\021\266|\263\312\326 1?\024!D\031uU}^\023\240\367\2647pI\2770\206\030\3110i\003\003\300\034\3158\313\302\334\013\355\253\301\307^y\347\014<B\323d<\307!2\010\316\215Qn\222\202\n\304\205\025'|U\346\260\032\240\006\331\365\t\"\211\246\273/\324\273\355BYjK\330\206t\205\023-\244\217^\364\324FKv\362\341JD\372\231t\306\375\007+\034\002\344\3427{\004\246\362\347\370|\202\304Iv\303\000\003\203\277!\335vb\017hu\0327\337\215,\276_\360t\224s\212\356\0255Q\367\0141\305R\000\243f\302D[\344Q\032p\216\271\324K\201\001S\206\030\2418\322F\026\3025ki\201c\323\037\306:\006\260\256'\234z_\025\224\017\342\265$\342\200\335\352\255\177\2655a\3306\213\275U\244\237\374\025\312Wl\252\302:\303\361a\363\2768CL\035\303!s7\311Ei\262\262d\351\371\326\2224W\033GBl\232\205\311\374;;_\362\033\010\207\257\n$\346\274r\221\026[\221s\375\335&%\224\027\337\257\305'W\220\354\354M:\213+(a\020>%\211\240\002T5\232\243\344\371D\247\374\273\3354v\351s\273\301\374\377Z\267j\211{\\a\256\327a\322J\3242M\272+\215;$x\033\211\3434\204\357\027I\310\022\355tRX\237]n\313\370\313\032\224\356o\026\373\005J.\207\240\226\3215By\304\226\3775\321\300\354\270\027\014\327\271\315\024w\027.>L}\207\356\024m0\020\225\230j\300sd\211\232\324\000\336\265i\352G\274\331\212l\033\230\005\260:\n\244J{PMI\036\005\016\275\237m\216H\007K\351\261\002U\000\224R$(\271\336m\033\024\214\3632v\314\316\014:B\177i\321\t=k\257F\253Tx\320\215l\364'\343j\213\202\021\372\032n~\373m\036\250p\251G\017\003l^,\333\243\376\213n\\.6\206\351\334\262f\001o>\311J\350\033\014c\215\n\374\233\271}W\361J\034\350z4\272&\210\253\004\334e\t\023\214\244w\t\324\000dU\310N\273\354Q\037\335\223n\311\347zQ\225\255\003\025@\340\260!\336\345\r\217\352A\2551\265*\205PB\321\0220\017\331\"IN@\021\262C,""\304\262i\034Wq\223E>\343\241\257\215-\245LG\300\001\353\223+]\020D\351\3746.\373\007}\332MT\337\247\201n\003\264\360t\3503\311\tRw\333\361\035#D\024uR+\232\250\327\373\307oAD\2449\036\211\017\017\263\207}\234nY9\214\374\244\331\353 \305J\325\020\r4\363\206T\302\344\003\252\371\214:O\324\327\204\201\331\246\376\240\217\211;\335\376C\3723\342\241\014\017(T\306\025\014\323\341e\233\317\0279\215\3751~6\346\363E\274B\000?4[oreY!\203\024\234X(\023(\350qr\313tv\275\307\254nP;AjvS!\370Um\206\021('{\231\305\2257\274\000\215\346I\234\266!\337\017\371\364\241}O\031\230n\344u\234\007\3270\333j-Eq\240\337\243J\341:q\325\245\003\255\303\203m\322\337\250\274}\235pCA\016\231\177I\257\246\222\304\221P\251\235Q\236 \206\007\317\310\253@z\325\205[1*\376\337\356ar\037)z\335\205\203\224\0023F\350\005\364\031\246B\377fS=\351s\231\275\260E|?W2\337\033O\"\377\024\355\365\005\026hP\016B:\355\274\335V\310J\005L\037\013K\340\261\001\234\370\357\376\231\267n\362U\001R\3076|\215C\025\342\027\317?\277ja\207\331\227\237\313Y\014cv\210!y.\226P\307\212tn\345\3259\373!\254\234A\213\337\004J\006\206E\222\251\233\267\030\207\020\330U)?\331&\252\t\306/\006\240\332\211wG\205\347\207:\321\272\017\003\024\r\336\344\021\257\333\014\241\237\312\333!\231\001\017\352kF \302A\260'r\232\305E4vG)\003\204 \300a\230\272\235\232*I(\316\0143\204b8(\026\003)IR&\344\003\017\"\036\321\363\r\263\257\272\000\013\t\253\337\n\344\306\221\274\247\335\302\362\231e_\314A\323\ne)\372\340\014\026a\006\206\351\261L)0\265*\245\333\331{\256b;\366\2614\230Y\002\013\241\227Y\265\241\005i\216\370Gb\347\3515\347\027\25201\240;\351h\021\274\002\001:hX\024'\220\330\365\220gjg]\357\216W\276-\256\352\316\265\302\272\313p|\320z\255t\335\212MyU\000\000\000\000@$\002 4\0018\0015\001\371D\342.\377)\222C\223\351f\231\373\240h\330\204\373\276\234\344\376`0!FwPc0\037\303\200\321\020\003i\270\322$\307\025k\370\316\267\276B\356G\314\347\315\305\336\221\247\374\313yY[\205\2214\213dP\035\313O\177\035\270V\332\232\235\274\030\366\236\324s\224JEMVi""\373\035\366\216\177\024\305\254'n}<\324\177D\305\277\202\351\274\352\362\253\230\337\030\032\226\301\366Z\214\343\260\315\325l\330\226Y\033\302X\316\362\356q\\e~\221\355\365\366@*fT6yo\205\372\325\"\314{+\244/;\246\254\252t\277=\315gi\261\210\031\026\023\010v\377}OuU5)\224\312\214\214nW:\236\334)\221(\256\265\356@]\205\3542\025\310\227@\335^\016\371\n$+\342\347\"\r\326h\262\322\027K2cb\377\237\327!0\224\337\253M\221\365V\035|^\321d\266I\271I7\337\342\345\311?\356a\274\321\313\224\201\360q4\263\020\346\251\210\254\237Q\242/\317\023\270\377\037\330h\256\375\233F\313*<\273\313\343\307pHZ\330\266M\306\335Mf\263\005\r\307\331\243\260k&\224\221\311\010\005\303D\353\021\307\302?\203fV\267e^\323\030\356I\332\317w\335^Hoi\325\345y\221Bf\237$\376\261\262\272\3675\204\377\275}\331/\266\037d1\3668;\315\\\371\257\374\303\246\266\261\266\273\351y\235\354\243\252\227\263\242\264\200X\0233\257\212\004z\361\275\334k/6\023\254\275\237c\026\227l\351[\"\317\027\356\262\251\340=P\217\337\377s\360\376d\331aW\367\371\377\345\330\335\222V\257\003\212\014\004\242\002\345b\202\t\215W\026\nU\364\227\263\210\0169\010\010\354\320\230\245T9\265\301\355\031j]a\333\357_W\327H\322\221\254>\217\233\203&\013\213\345Z\252\261\034\311!#\350\242\031\326E>\002\204,q\314a\031R\236\366io\335}\230X\216\377\332N\335\302,\325H.Nzi\217\326\235\356\355\317u^\201\336\306\320\376A\316)\225J\225\242\030\212!(\302w\211\n\364)\241T\325+*\222t\357\304D\305\243;Z\353\334\311\272\324\373\367\351\357+{J\247\312\324(\212`(\022\202\"\212\2378\312\353\272\213\213\317\347\242$\365\371t\212+\034\307e\266\233\321l\256\215\315\263\213\306\362\363k\263\212\201\231\256\352\365\013\254)\372\226\345mQ\345\257H\016r\315\363\276\274\002\177Y\035\327^\230W\277\"\202\n63,k\203\010b{q\253|\327\024\233k@8,|\335\201Ute\031\rg7\253\341\270\315\335.\215\372q,C\n\330\007{\027\201;\004P=\311r&\275\332j6n\243a\214\353\006\232\026I\016\357\275\242\275\037\222\223*\340\366\225tq&S1IO\232\353\301\025\262\256\n\207m&\023\265[vO\244U \033\314_""\320\305\216\223;O\314\334\340\212\374\250\237\275\007\250 \315K\303&&\263\t\262\311\246E\255\310\267\236\373c\026\037\331f\323D|\263\357pY\227\301\241\201\343\351\234\362i\032\210\030x?m\216\200\200\330\307\376\267\327_E\364\277\003\313\206\351m\021\325\371\274/\305\357\336\305`Y\337\313\035\024\313\372\273\265\026\037\234,\253\236\366\366\254-\242\225V\324\237\312\227O\362\005\316\336\315j\331\226i,\346\356&\3232koB\302\345\355\010j\357\335\335\346\343_\201\345A\005\233\231mE\006\t\223\222>\271?\214\257\246\2512\311C\217\306\"\331k]\244\014g\226W\200y\005)\035\357c\272\205\256\326\256V\005\257\200f4C\340\032\303\177\300\213\324E\354\362aa\030\027\014\273\350\017\206\256%_\315\233\354b\311\3632\247\343ahpx\200\210\220\230\370PTX\200.0B\242\014\215\r\216\016\217\222\025\211*U\222\337\217\214=\204\243\276\323\366\010,\244\321e!\321\023\013\311\022\340\215J\236\016\247\323\226\217\0216\272\2148\314\346:/\000\213\264p\315\203k\036\010\234X\352\244T\001!\345\202\201\314\017\213^\326\245\200}L\314\300+\300xL\213\245\240\367,r\200\331\261Q\177\266\331\3258\r\276u\253\320\270\022\327S*\021\022\024\212D$!\341\234\177\250\317\323\235Vq>!\025\213\202R\020\304\376\345\367\365g\r\316\346\"]\232{\021)\276\210\342\024\311\333\353\314V/k7kV LK\021\346\3723\276\220\217c9vM\233\031*\366o\374\"\367\032FE\234\351\305D\013oW8\3436\233\014\247\3316\332\230e\276Om\263\331\356\246\331\014\3262\026g\234\226\321:\212\311\2065\032\234i7\303\334\366\231\215\343\002\212\350\254\264\267\370-sC\002\022\002\010\202\002\203@\000\014\016\220\te\022\201P(\025F?\262\000\265\341t\350\372,jE\273\324]-\000\235_~\025r\323\326\2228c\r9\254\315 \246\021\344\033Q\035\357\253\213\235\006\347CU\t\217\325@\212\201\335\230y]k\330)\202\307\362\242\004uf\372Y\nKN\240=\244\034\202y@;\240|\361\370\030\002KJ\342\371\003\207#\242X\345lk\261\263\237E\347M\214_\302\215y\024\240D\223\270\014\320\306\022\215%\332o\t\344\342\2424\332\263\340\330\256$\177\nd\003T@\277\231fon\276\332\212\371\324\266\001\374\356$4&\321\316!""\274I\347V\336\212%Q\347\231o\351U\241\222d1=\035a\341}{k1W\355 \220\032~\376\016z\0163\260\004b\013eM\325\250\232\032\322=\236!\007w\342\372\237S\207\331\307\224A\327\"\247\275\361\261^\243-7\223\320a\210X\276*E\377%\343h\"$\221\240\022t\273\351d\266Jn\035\263\014.j\341E\212\225\222f5j\226C\375\207\325tp\252\320\247G\224<\255Ti7w\270\361\231\273\344\006\010Q\277qL_!sr\201!sm\236\250i*9\2572\022\305\253\007\n\017r>A\352\240W\353d\0048\023\037\3636~\215+\356F\235\351%\323\373<\225\261h\210{\033\227q3s\177\375\376w\\@\352o~\03278e\262\033*\026\250\344\035\355\3639\201\242nK\033\001u\034\305\231\211\354\216\274mZ\363\254\207\325\260\206>q\taj\242\313\274\272a\022ru4\006m8\2578]\257\345qG\304\342\303\321\342%S~c\345r5$\202Q83\010\006\346\355*\023\2568\332P\261!\323<\234g\204\275\250\020ejv\r\030\374\026[,nIM5\363\223\244\033\\\323iP\220'\300\352\030y^\002$E\263k]\276\320\203%\345r\326q3\t#<\001\001A\332\331g\234jT\350\270\216r\226\2566]=\242\010E\266\225#\202\366\347\014\206\2114;\0001N0#\375\236\356#W\021=\307\256c@b\317\210Q\311\335\177}n*\327\240\250_\023\177|\232\005d_\330\324\246\034\177\356\031\202_:p\213G\207\376\335+\376\371A\371[W\266\363}\370<\r\332z\360\201\301\212\334pR;!\325\246E\1771\253n\034u$\342\326Y\374\242l\345\020\314\367mJ\206\310\007 \234\200r\351S\361`\317\002\020\320kl\261\000b\326s\0063Klz\327\004`3\224\353Q\312\034\245\222(\037\210i\377Up\332qd2S\333\036\271\201\266\204\377\231\271\366\020@\037d\014d\241\207\205\313\020\247u \r}\223\366'\026\031\0376\372&P+\301\002\342\325\341x\3600UN<X\206\217\262g,\356\351<5Q\252\274\325\221\300ka\241li\3150\352\346\r\247\304\2556\235A;\254\221A\31387\365\226\330\377]f\030\220\222l\271b\274\270\314\224\205U\t?\323\331\276\317\274vp\033.\274\274A\370\300\027\226Ma6\353\006vr\004\002~\\\315\022\357P\214e\n(\330\322\010\235\225\207\300n\313\361B\021\031\217\010\247(\251@K$\222R\222S\355A\230*G\t\255\023\363\326M\000\0164P\2111G\350\010\336\250\307\262\252\201\361\204\246%\204\266\276T\230\256\242\200\362\254C""\263-\3540D\343v+\315\346b\371\320\220\334\315\233Z~\361\"\000H\226\364i\235\223\024\205\346\2734;%\344\375\300I\364\232\261\004\320\371pQH~ t\234.\375\201\344\322\351\034\260\354\344=\305\033\3529\341\270u\272\\\250$3\330u\007\322\224\243\361*b\337\024QY\037]t\210\3130x\004\020\367\325F\222\237\322\265\331\346\347\027*\312\334\221\360\212\250\274d\333\n.\265\215X\356\343oS\"N\324\2444\354!c\322V}\217f\300M\250\2215\240\240y\212\225\227$\216\303u\275}Z\363\353\026\001\001h\304OU8_\342_\367\315\333zK\255\300\252\214@\0131\0260\343\323\202\313\000\342\333o\215\375%\236\202\337i\225\272Z\277S\266\037\n,\030d\027\034/\r\324\257R\274\200\213'\272\272\314\204\"M'k\200\346\314E\234j\375\036\371y\266\254\226\240m\251\215\024\242\n\244r\032c\323.\254\362\244\253\350\316E\326(\037\357\261\252\203\323dTkV\320\004P\343\010D\353\200YJ\267\367\266f\3045\031\225\345x\270S\272\"\367\261\216\343L\304\303\305\003\007\013\\\267f\033\2558\221\213\356w\221\271A.\201\2606\302\371d\263:\2332=\267\"\250\022\274\036\242\275i%r\031S\227?\207\210\3210x\364\256\":6\307\222\236'>\334\224\2762\233\210\264t\362\232\261\311P+\271ub\3645|lh\323f\031\033\271\n\370\257?lka\302w\224\014\350*\362\217\r.\234F\001\234\0361&\333\203\026\302/!\3270\031\276\001\r\231\303\3415(z\2108\345\3239W\343\277%\007\006%_&\210\007\023\231\234\311\231I]\320\231\034T\225M\342\304x\245`?\250\227\220\214i\232=\000\266\3617N\220\325|\032\242\263\371\362\311\270\006C\377\017\022\304&j,\330\240\241\347\310\200\376\237\3048\023\201\314\013@j\241\277\260R8\037\230\360>\30066\240\205\037\317\231\215\233yG\360\300S\206AY\267=(\256#\335\244\370-\367\366\313\317\n\351qOE\0169W\242\251\223y\250\272\221\007\245X5\030\n[\332\350\342I\237\212\314\220h,)J\210\367\335\322\n\226^As\000\200\033\003:D\246\275\"\014\025\223.\317\317\374j\231\370\2356\346Xk\371\214?0h8\020\016\272\302\334\3050\006w\235!\302\026\022\013}\312\212\272@\214\013Un\364\\d\207\266jp^\223\352W|\245$P\210\203\321=\332\226\246\335l\360!\343\201\304v\244u\354kc\014""\230\366\305\220\265\271\261\3167\377\242\021\031\000\217j\264d(A\302\013\352\217/E\214W\205|SPT\355n\344\342\212\343\376\345\243\202\2027\342\361\007T\314\331m\244\022\207dw\2437\340p\217\377Y\004\253\206,(\251B\272\3574\nS\3264\003/\321\327\232\306Y\362\0368<\r\326\021f=\023is<D\360R\324,\020_\244\230L\315\266\003}}\020S\240;\226\341\312f\201c\226_\032(Itnf\030\210\374\006\371\265)\357\005S\\\"o\336H\237Bj\325\345\t\211QI\214z\025\220\222Q\355\321g;? \311h\233\327q\331@\023\215{\222\254\027\007\374\312\335\005\272}\216_\222p\234b\334\332\004=\220\234\007\200\232\357\216\305|* ru\001g=\260\013\351\327j\330\316\266b\310\305\346\254\345\246\001k\"\366\216`Y\2628\333\313v\3645f\305\216u\374\\OD\013\370zl\302\256B\307\304uV\227T#\245Ks\305\360\321\263\251\030\017Q~{<\034\376\017\332\312\343H\220\301\250}\346\362*\241\372\270\340\315\333G\330c\233[5\274\256\033H\376\031\036x=;/\001\307\n\237k\357nC[a\243\027,\321\203O\031J\262\371\365\240\310\237\352 C\276\203\324\373\233\367<)\351\320\347\375\227\216\306\224\330J\2515\030\273;\246\205\262I\277\242\317\252\235ru\320\212\353\310\312\014\355\000\277,\362\341\215IC\342\233:!8e\326m\345u\n\311\246(\332\270h\010\243wZ\262,\305\014\3566\205\002r\324P\3063N\225{\"|6\220<,t\252\343\250R\031\300P[\366\252\014,>\n\035oq\314\235\331\341\250f\204\365Y\013n\313\010\230\340%\257\263\267C\246\023\203\313\205+\037~6Y\325\216\311!>\201\334g\314\362\370\304B+<\346N>\006#\302\330\234\254_,\264>T\253u\022\214\032\036\322\357\220\214\301\276\021\245\211\206+\252\372}\211 \252\0066\314\304\233\326\265\007g\343\367\034#\226.\2655b\314\232zS\311E\242(\026\246\033\247\253\274\335\255\261\262\301\205^\364\223t\330\266/\250De\\\2037\021\t:vZrH\271R`\322\010%\010\231\211\206\234\243\260L\334A\230\370\315\037k\304\342e\362\233\350U\311\213\222\261(\030T\255a\232~\252\026i)u|o\345\033Z\244#\224\014\3614\"\203\021j\215r\013B1\367K\025\002z\356\374\353y\025d\305\030e\034gV\234t\000\367j\251h5\001I\276\327\"\031$C\013\262\217\367\245J\257\305a\210?""\311\370<\313\246\253\250z\222\201\340\242ub\256U\271\333\354!\251t\223\\t\245\254\021j\373\205\024i\2617\372p8\206\213~\240\"\224\340\006\377=TR\354G\235O-Ss\2522h\016\215\212\354.<\3331\203\3450\370\355{>\304:\000\263I\337z\3012\252q\227c]\2239\212\342\356\246r2\256\"\252\010\2220\257u\227kQ\035\324E\340q\003C\022\231\370\370xk\373\003\177~\373i\360\026\017;L\216\005\325\340\355\312QtG\250:\000\366S\344\321\267\235N&\347qSg\333\355\213-f\244^\317\206z3Raw\237\2079_U\321Nl\ng4\277\301\347#\231\264\217_\226\226s\363\235i\230Og\304\364\007\206\273m\202\320\264\026\361\342e\354\364,\326lmS\312\275!w\3720[X\277\0105\260v#6\272\306\355\177[{\335\3446!\247\212I\362\217_\013Mf\222/\326x\275\251\230\222\251\261\362\224n>\300\306\347\346\321\240\220B\253AY\001 SC!\207\031\\\031^\023\246\346\362\355\274\2679R\210\250)\002\334q5\353d\2075\023\244\207\021\207\275Z#\357\035\331O\273\347\2241\034\243\205\031\357\345$\001\010$\207\2608d\353\246p\221\032\3375\344\351\360.\024\357\234o\177\252\320t\014\326\220\315\325\232c9Q\235!\344\254\346\273\016\035\255\224K\243\000\1770S^T \206&\332.\030r\343{\320 ][W\240\233\227H\242\211\004\027/G\377R\013S=\001\221\203\223\234\020\036\031R\214\213Z\254\300\272\313\242U\224\234\007+l\006\321(\313\326\302X{\\\237c-g\357\315E^\214\021\205K\014\244}K<\205\304\274E\311'\000\036\010\336\212\333\t<\200\3560\352oO8\033\206k\020\254=\367\217\322\027\266ZZ\035\364uh\005\020f\250@G\361\220\322\226\2716\326\307*\301\307\365\201\327\374\035\346\367\305\263\007[p\315\275h\320Fs\350\374A\205\252\206\303\227\025\223A\3253\355\334\"\212\316:m\246\333\273NhZ\024[\264\004I\370\032\014\343'\212\340\000du\021\020\n\326:6\301\333\204\345\027\340p~L..p\326\244l\2061_\373Ox\306\"W\271\266\225*\254\225\224\261-\237^\215\212\373\007T=b\222\002\3749\355\027Z\273\240\276I\215\277?u\340(\275Io\350\272\253\2328=\"\003Wh\023\330k\2572N\363y\005\360d\245u\246d\336\n\353=\261,\303\255\005\365-Z\300\354\317\275\013;0\255E\026\354\326\337\376\003\274T\231:'<\221q\2040\300""\231\213\201\330\247\300\361GS\005UdP~\001\254uJ\346l\247\037\020q\252\256\247\201\250x\246`\004}9\032\365\237jW\270\252\367\310\274Ye\260\025\371\202V\372\035\"\234y\362s\276y5\356\010>\021\325\352\003\254e\030Y\nj\253\266Bu\315c<\314\207\034\201Cj/\0253p|\203a\376\361w2/\234\364\207-+\367e\320\034\252\214E\310`\340\003\233\356\327\316\244\352\252\036\r\016\332`\215<\267\037A\216\033\300J(\350\271R\002\230d\256!\327b\036\237A.\232a^Z\211\215\310\363\037\023\353N\322]\300*\257\0230D!\2318\t\261S\360\315\226\327\341(A\262\264[Bf\256~ H\364\271\263\"\177`,\247\026\242N\025\242v\354\267T\000\344\215\273\210h;t\302wA\367\033\377\322\270\035\340\367\223\315\373\363\020CMXM~\346\t\346\000\007\376L|P\260\024$\252S~\035\000=\270\021\357\362\035>\314\r4\243\376c\032\251\275b^&wQ\030Q\300\316\270\335\250\244\371\276\211\033\013S\242D\023\362\303\356h0Hw}\262\026\334q (\004o\233\245\274\177\326#\305\362M\235\222nV\351\251A\337\214\226\246\302|t\370P.\302TI0\312\r\306f\271\255\030\ta\206\273OO\030-\307\374S\027B\244\360\266\302\tH\372\365\010B\017\3005\326\2003\326\200\243\035\274\271\252 \240\375\246\000\247\257\362\277\213\270=St}\202\247\321\2732\200[x9\222\201\330!M~\317ZY|u\343\266\263\2555F\000W\260'4\332\230I>M\020J\267\305\020G\353G\240\201e\017>rH_\206Q\222de\251\201\221\254\317\256\353WOF\223F\3150\021^\343\264\231\267\200\241\331\207DZ\026\323.\2410'\307\377\210\202\033V\311\342^\322.\312\273\273\213d\240\0241\213\022k\024\313\rU\324T(\356P\221Z\304\367%\026\212v]\246\016\260D\371m\000zq\235\224\235\342\207\311\325\300\004\001A\346c\343\312\2731\201T$\024\263\232\310\315T\344VQ'k\351m\007\264Y\206gffx\252\361QC\254[\300:\237*\264\236\361\202^\232R\320D\017\345\345\316\334\251\347\314#L\004\226w\203/\260q\274\211\310\0228g\230\225\246\326\205C9\353zb\302\004\356\036\353\343\243\366@F\301\027\3105\302\241x\365m|#G,\363\376\231\326F\0101\310\250\322 ^\2133\316s\240\253P\312\230\301}\241q\304\342\025\306\n^VPWs\214\001*\224\326\375\005\036[\210\032\276\2000\226\207\327""\263\320\320w\256\032c\313 \326e8_\343\326\256p]Zv\257\220\201pd\003\345\234B\315[\023\r\367\304{$.\300\202\017\234\211\2100\177\276@\210=\235\330\353\016w\214\324D\235\260\326\0353,|Z\314\004,\t\213K\362\226\350\264\224\247\273\030\036\3608_\346n\242\014;\201\351X\215\220\014\261s\336V\2160\n\032E1F\352\372R\024\240\335\270\333\023o\000\376\032\335d\261x1\367]\351\017+\374\r\367p`r\030\240:2\247-\217\375Q\244\311\322\227\004\225\020\277\304\r+\341\261:\202\177y{2O\\\266T3W\253\256\365\016S\031\247\0310\005W+\221V\033\217'\215\326\256\371\000c\221U\360\023\211\000s|~\344\305\256cr\315\247\023\261\221<\354m\"\213 \301~\020\t\317\nO\361c\355\201(\036\371\344\266\271\3453\351z\353\0261\233\220l\216\357\302\010\242\r\177\362K\212\327\235f\036'\020\2170eC\271H4\r\271\010\351T\320\350AD\341`\344\353\225\273{U\273VE\244\303xb\360b\032P\354\033q\211\233\034\311M\205\024\022C\234\034\331\360g\267\340\225\013\271JjT\005\216K\277B6\330\322\305\270*\306b\362o>\307P\t\263\021\020U\031T\366L\311\261\000\301\024\316>8\214\200\033Jz\030\355\372\2505\251.\005.0\210\236Yn\350\231$(U\304\314\n\374\350)\260\005\231\333U\177\330\256\374\202\215\247q\377\001\364\265Q\0355y\350&c\367\256\n\350\254\256\245\370\202C\256=O\002\350\210!]\243\202\031\310\"\317\014\301RS\001<\345\250~&\320\234\020'I\260\020r}\0262\313^i\331\307DAG \352\036Uj\267\212\226\352\237$\031_P\232\274\371\003\345\267\316\374\\%1\231L9\016L\310C\306\025\305\031\022\304\330\341\356\022\321\316\273L\010Bt`\333e\003H\367\315T\376\026\365\347\201:\220\360\207\344\3144\250\2609w\262\315\037/\257#\207b\351BTSJ\031\360\246\237\363\t\325\3042\007\016\372N\007\356\033@w3\"\271\213\315\241\300\251\016{\212\237nMU\340A(h\246\231pgD\3149\0256\017\347s\201\305\376\274\263\220\372\301$\272I\006\330r\266i\3576\216\247o\263\343\346Y\350\020d\201?\225\322\372\355\212\237D#\370\205\211\210\200\252\345T\004#\246\220SY\252\371\037\212\221\352\022BR\300\220\360T3\302\32543\217\351\340\257\307\205b\357\026\270\023\007lA\375_\033(q\216W\032""\\+\016%-\346D\216\301\353\236\025\004y$)\257k\317\205\035#\216\215\375K\207\000^\242\233\374\213\372o\rcGC\264\374V\024\236\212ho\212\264\227|\316q\037\265\2408\255\241F\275\n\331\t.\347\3324\272T\337H\034U\270\324\356\266\020\023F\215\022C\024\014\3414B\3053#\226\230Eo\025\312\211\310$c\000\341\365vt\373\304K\267\236\330i@\335\202\007p;\031\225\223\271\375}r\tr\361_\361\345\217=\325\264[\364$\323\020C\224\256\017\366J\325\271\204\016\277\310\307}\377\337\365\255s\204\357M:)\353\251\010\231\003\035/!\2600R\302\235'\314L\006\244\260\310\323\005\251\204\277'\266g\376\230!\344d\355\\]\246\366\250\024\035^\360\221\366\0273\330\3503$~&Oh:\377\236t\335\362\222\2302NG\256Hv\221L]a\256\313I\231e \244s\321W\244_\016\361\327\362\321_,\2548~\010E\322b\233\215K\013\2760\247\214\254\221\365\320w\374l\275\220\372\343\311\005\333\215\311\254\345^L>%m\220\220\205\210]\314\226\357X\342W\036\021\007\250\244{\020\024k\226Vi\004\276\364\001\200\370n\022N\034\330\205\352\252\347\374+\214\227I\275\221\3204\2346\346\367\235&\333\307W9\374\366\374\262\277m\2213F\365\014\352&6\203,&\3670r~CN\325\324x\376m\234\010*h\021\245\254\277g\253\004K\177\336\234\354PF\333$\262\302f\321\021\260\22422I\372!\327f\200\331{\234H\322*]k\305\254'\"Gf\353X\332R_\257\367\266\t\003\304\226\033\323g\260o\250\315\037-`&f\006\261\226P0\236\031\337\326\261E\277Z\3302\334'\310\227\357V>BN\317\376\274\326\364@\365Xh\260\276\377\321\034\315\366]\021\2403\003\364P\272\360\336\341\343\3477\003\024.\203Ug\364m\376\374i\261\216\345\304\0070\224\331@\204\362\364\227\020bX\333\243\3229\273\277\314\262\263\236\241>\361\256\2336I\321\213&\031\026\344\303^\232\305\253\312\204\357\005\250\030\273\206ocaK\364\244\353 ?'\234i\253\037\n\314\022\205\020\330\013\347\345\273\363<\202\033\036\034\014S\264\346c(\200~\311t\343\240\022\201S\025\214\252\t\204C\325y\t\256@\273\232\217\346UkOU\272o\340w\"\237\3514x\275\020\"\243$\003\262\202\336\245\325\273\333\0004\317\375M\310m\205\242\271\001(\0320\025#l\335\237\331\223\225\233a\3176""\216\220;\031a(\355\215A$,Il\3606\001\350\370<d[\262\234\222:\354\361h3.\372\235\"\000\221\276.\004\362>\332\327\345A\265\336q\226\216\346E\316\311\345Iv\330w\2525 \200$Gh\313>\206\232\205H\307\031\004\254\033*w\312\231\221\366\331]\364\016\335\246\007f\265\014\377j\251M\007\013\007\326\017\330\316\276X\355\334x\255/\363\013\036\245qW|/a\377!\263\"\346\304j\234p\024\226\\TlnX\232\245|\006\255\207\301\315rf!\363Ug\211]J\260\263\262\034\304\360\245\272\311\275\024m\032&\214\377\336z\304\324j\306\305\354&\254\205\315\330/F\265\2753k/\336\210\003\226?\216\335d\002\035\257\353\237\266_F\230,\243Q'\324I\224%\275\361\205\3266QC\300\345\240a\020\264\200\212\322\r\227Y\312\250\340\032\2156-\246\026\nR\210\003Q\321\037\\B>\235\034\273\215h\267e\227\262\373\314\206\306\001\037\204\350<H\355mp\341\345I\347\337\343\274\320\004\253\213\275\n$\324\007\247E\335\230\327\327z\325\270\330\"\271 \363Gd\017\345[\343\314\303\240\246\221e\214\313}\243\200\270\327\360\320I\221\355n\365\023P_\377-\"\020\373\267-Cso\243\030\010+x\n\223\277\017GTss\356Y\r\351\376\274\311\345\020\356g\242\025#Z\316\300;\347\227\242\003sL\310\207:\340Z\372\030a\266K!\262F}\354\230P\361\230\234Q\313\274\201\336$\351n@\271\244\010X:\337\323\307\325\312{\\\264t+\013\350\354\334\037\250\035kA\236`+\225\204\326|\217\365\330C\203=\324^\3140<\214\207\373JxX\353\016Po\274\374\330\251\207w\013M\233F4\235\366\364\262VL\275\020\341\203a\234k-\346\016\201\033\230\364sc\267\356\363\272\215\341\243\301\3537H\367\006\035\372Y\243\247p\372\267h\177F{\014\206\271\230\303\203\005\316\325\307\372\n&\022#MKl\241174\n\245t\324n7u\024\306\234.XwUW\312q6\250\351e\355\222\225[\340\361\300\367\034\023\354\213Z+w\3439\322\321\301\271;PPG*\310q8n\216\246|m\235d0\227\273/\236gBKmD\364\006\307\1779\352f^\336\302\277\016\2456\242\371x6b\211c\006 \273z\014\3152A\325\277\\\261\313\3265;\203-\305\215\312\227\253Y\206Q'd\346\017jj\305\335\211\232v\323\206\306j\314\347L\\\344r\201\217'\001Y}w\274{\352]R/\205;\r\251\025\250H\225\007\200G\365\347""\027l\263N\213\035Z\271\220\206>\374\206\r\355\021P\207`E;`\321\336\261\216/\213\247l\321bY\036\211\240\\\326\017\250\230\221\202\273x\236\024+\342\345>\2650\371\240C\360\363o\223\3236\344\323Odc\000\332!\345(\204\235\220\346\321\t)\032|\334\000s\322\332\322\007\251\346\331\304\230\232\367@\244\242\014\325|\301\376\205\255&\341\370\315\021\306A\365&W\374>&\250\3762\224\037R)\264V\207\353G\201\027\227c=\360\027\363\r\022\220\205\256\301\027\313-a\003\005\317\366\315s\232\230)y\3061N#\243\244\"\242L\3244VI\265\254\374\0002\002\205n\332*\025\244\255g\234\3264n\222\333\251\232\027\237L\376E\005\\\305\257\237%\007\032\230:4.\026\371\364\341\351H\037\346@j %\036c\320\300\372Z\037\3142\230\014\242!\3570\376\235\242\214z\273\374D\036Y\323\230\367\r\265\222\213\326HL\273\234 \362/51\000\212\r\247\203\232H\371\254\376L\250\210\344\237\022\341\255W\036\\Z\350\004\345\265\260\027+N\322p\257&C-\220\255\030g\214\271\032&\307A&\026k\277e\265\317a\326\352\014\221Q\025&4\005\221_\020\375T\337|\301\321\034\002\364\363N\364\310B\0351V\036y\332\r/aP\261I&t\r\333 \376\345\005\336\311\225Q\374Bn\342\211\321\324(\202`K\265\361\336\227NS\3509\224\255h\274\261\030\324\344V\343\232\313C\316\317\252\313\244\333\217q\350\345*&\330\016\006\006\227\222x2\234\033\307<Z\313\344\312\004,\335\365\032l\000Az\307\214\272RlA\324\004\332-\024\356\345\032xs\0025:\347\333\203\362\377\227\214\316\342\221\362)&\332\370)\357\211\313\226\255\236+\036\200&*\220w\212\226\257\3776J\366U\210\t\267\017\202u\325\365\252\005aQ\353\341\356ia\357\205\026JY\263\237\343i\336n_\"\005|N\341c\346\004m\251'\345\305=?\306\242\307\r\267\253B\002\035\001+\"\001\354,\256\352/\272\022\032&,\014\313A\007\365\323\356h.\032Y\246\362\313ls\241O\261M\036e\252N\354>\247P\235\367\244+\263A\263\217B\222\317\200\274\324\311\232\374\211o\241\302\005\201`\372\315\365p\255\214l\221v\331|\203x\350\200\236D~t\202\033K\007\313\"\323\203\3211\305b\316\023=q\342\334\020\004\020\375\017\216}f\2722Y\214,6#\326\231\267\201\367K\220\227'n\021\\e""\027\311\262\341\202\005\210\376\262\363\242\300XS.A\253\376xB\336[\030\036b\260\004\006\317z\365Z\205B}0\031\014%V\320\354S$\013\346Py\\9\"\230\256R\273\030\216\314\264\262P\362\330\023\20369@o\242\264\317a\210\021\t\211.4\226\203\255\357v<\007\3201\024*/=\035\300\313\341\206\323\004c\264\035(\377\017\272|6\360\233+\177\250\017\305m\223\243H\307l\243:\362a\203\314\326R\002\274_*\213~\333\223\030u\000J\230\305\005\354\361!\225\003f\307\314\257\323^\202\221+\211C\035\372\224\271\014\306c\035\265\025\270\263t\222\234\220\350\266\343\211z.z\266\364_\365L\221\004\335\"\326\261\365\271\375G{\252Y\341\375#e2\013\nh:|\026\262\r\t\"\036\247\245n\237\237\221)-P\2578\214\301\037\177/*\356Of\177\250\026\t\2167F\254U\243\220\311\244\313v\232\357\0017.b\030\301Z\360\225\2401\013\216\332\335<5\205X\322\277\330k\273v\002\205\305fl\250\277~\375\354\215\203)\247\316J\343L\242\026\216\213\245q\352m\357\\w\261O\014~1j\371@6K\274\031<o\341+)\331\243\350\274p\260\353\304@\345\331j\372\377g&F\331=\357\255\210\261\316E\321\372Am?\014\305\212f:<\261\235,\203\356=\034\265\337\212\235S\021\247\300\341\345\240_\222\022Ks\336I\324\2466Q\010Q\336\253\370\240\036\354\2033\367\345\337#W\327\243\274\002\"\362s\313y\316\365\316E\313\365\0244\377H\234>[\377\232<\200\337\325\201\343\306J\363\267\257\324\023\004\277\243\235\245!\000n\0265\tl\3705Rq\325\267\304\356\276\325\230\006\006}\004\023\\\355U\177\216\267\217\252\033(rX\344{\255\265\2173:\357i\236\203\364r=t\372\344\204\341d=T|\000\346\356\224(\320\360\272\001h:\3536\300,\311\361n\226\206\322\004\200\360A\346\006L\355 \377\377\337\337\272\356\205\004\261\232An\321\254@\215\000\215\000\221\000\032%:'\002\224*\010Lk@\001^L\210,\024*\3342\\P\310\335/>\311u\321\212\340\252\250\347\3024k\312\352\323,mj\332\254\222fuZTf\363\252\330\245\311\254v\225\310\254Y+V\251zi\365\242WeQYV\261\252\325jQj^rf\225ea\026EGJ\253,Y):K\263\252UU=2*+\263\264K^\364\201\257\207$!\310@\010\022\261 \010@\206\367\301\010G\373\"\235\014#\370:V\226\215\0359\200\020\240\230\033""\337\321H\314\377_\272`\356n\271)\344\373\023\213\236H>N\311\023\001\220\031\301D&\205\244\017\347\367\310\\z\010\334\213s$`dC\327\342\247i\232D\227\242K/`\200\245\264\220n'\201\304\260 \273pl\345\364M\237g\242$\035\224\003\364\240D\002~\0360b\251d\225e\222\022X\226\206QI\247\307@\3756\260\334x@\036\323\204%!\223'\253\250+\2542(\276\350`h\037\322\031 )$%\330\274&\246e\227\365\t\025\314Bw\231XzB\311d&\227\315\266\2616\032V\243y\230\270\232Kg\007\271\3228\216\304\016]\234\3412\024\203\371`0\227.o.\027L\027\372\226\t\177 )\031\313}\322\210m\366\036\034;\324\367-\3242-\226{37\304\344\337l*\224\n\235\263\232\264R\311T\034\034\356\310^t?*\210\336w\243\253\261\226\355\273\256\353 \274\206\206\314\302\010O`,\303\302\302&\262$\316=\356=\216\363F\223\274\331l9QS6\370n\226\336\372\206\001\371\333;_P\373\005\271\230\273\373\375\277\277\277E\376\"\317\337\240\354\335\355M\n?\356\355\356\356\355Ng\373\207\216\333\253SN}:\306\035-\306\366\243\361\351\317'\203\"\026]\212\240\207\343[\020\364\267o\377\376\375\356\361\342v\267\024\331\216^\004\266\265\035\321\351t8\034\020\266\032\034\016\3047\227\241T\355\356\3668\024\317\303\371+\033\233m\304-\232t4\030o\243h:\256\271\205t\254#,\262\"\232$\225i\rs@ P0\2314\034\014Jc2]V\374Y\027\346c\242\310\030mE>\260Z\311\310G\2458N}^\002\310\321\335x\000\313\232_,\302\240\300\264b\"\222\004[3^\265D\377\357\367i\253\341\202\032\326\002\363C\355e\343\307\037\177g\204\326\201\240\261<\357\0019,\255a\364;\342\263CP\325\277\265\014\337e9\004\305\023G,\207\310)x\036\265\252E\273w\310u5\232T\213\367>Kn\250\240\177\267\374\373\025\307\"<\361E\\\244RE\341\302t\303\266\335m\221Dgq$=\366\267l\227\360\215\250\234=\340\266\216\332\207\240\341EX\000\210K\202\233)\247;\273R\313\016I-\352\033\003w2S\361\317\343\216\240bD\305E\223\3253\210\325,\006\036\345\r\330\373l\245\236e\363\346\243\000\037\360\373:R\005\n=Y\256\022J +\231\023\017u^\211\\\352\322\236\030;\240\301\241\0250\037\201\302(/7 )!\002l\374\200'=\333\026\204\3604(\340\2011Z\347\001\020\303\274\3344""\210\375A\330\232|\325\261\206\247.H\370\245H\274\330T\376n!\242\"\2043\206M\204]\017e\322\270x\272=\003\014,\271\350\331-\361{6\234\353\007GUq\377G\266\275\333/J\230\276\254B\343\001<L\030\203F\007A8*Z?u\367\231Zl\323\330~\303h\212t\242\240\360\223\254\253\275\325\246|\332\236 y\316\314\255\376\253V\250\216\322'\017E\026\3448\032\263\370&C\263P\013\025~\3738\366r\034\317>#i\320R\246'\262\224\371\275\262\021\222\261\302\t\347\214I\204\353u:\217\rD\376\020\\\230B\360\236\207HS81\252p\202\221\370\243@\036\220\262]\334PS\373({\265Id|s\225\371\2710\333\243\332jC\027\3579\356\032\246\373WSV\034\355\023\257\332\3656<\007t3P%Dt\302\2669\346\266\035\234\261L\t\213\277r\35177\371\306\234A.\202\334S\214\204\220?F\332\324\211t\272\345#\014\024\335\251\242\271\350\025\013\004\340n\023\250\267\246>\246\341\rKD\021E\320Z\027\350%\333R\362\231\362\272\360S8N\t\2560\340]\262\225\177\327\030\227\n\021\312\216;\007\263\257|\347\256\243\021Q\003\225ie\275\317&\263 \267\373 V;N\311\372\276K\241\212\240\300\321\3004A\242\262\024w\003\263~t\311M\275\371\324\372\221Q\334TN\201 \260\3722c*-\354\217\377l\342\010M\211~\340$\027!~\014\347\245\346c\214\366\200\317\267\316\254\017e~\017\333t\250To\013\352\330h\034\254QG\317\1776yNh\302\212\334\364b\305\007\376\252\032f\321|9\r\365\271\227\301\353uP\341`\240\023\003\3013\003\013^\207\322\321\252\\i\030\215+04\354\305sm)\233\312\333\342\220J/\201\2515\324\312\354\200\210mDy\356\201\243\031\200\216\230\265e\347-\213F\2226K\334\267\245\036\251\266\234(\023\264\226A\024\026Yi\261l/\262\240\314\226%\266\275bf\263[,W\tY\222\335\262\254/\316\202!DK\242\002\265,_\\\013\356l\t^%\237\346\243\345\265\324xp9\207\343\222\220\232\313fN+\371\005\310_\210\335\262\377\005\227\332t\\\322\007\315e=\337R\262\354\222\234\243\214T\221S~\"0\027^\027\263\277\273$\231\307\313\341\222\347\303T{\027\3522\032\351\245\262%\304d/\277\255\247\037\342\367s\312\375\005\302\376\303>\252\023\034\230\314\210\263\265Q\307\006X\203\037\246a\326\215l\364\304\014QV\275)\333@\250\345""\272\2042\271\313*\362\314\355\227\303l)\200\321U\354O\267W\374\033\240\226\251\227\225\372_D\321n\261Y\272\321\236\274e\350U\347w\024\004r\377\250\230\032\200\024\312\002\342{\217\201\303`\244\241A\210\373Q$\202\021t\013\236\251(\367\242[\2344\224\204\341\032I\305\036pU{\3612\301^mM\377i\231\214\037\232x\252\341\026\265\356\222\211\315\352L\262\311\267oq\315\001\001\251\226\336y\367li)\004\036-\275\346\356\262\364\327Ot\177\341G2u\334JR\373\216\260)\2473\205{'\026\205<\241\377\351)\347j\262\300\001\004\303\023\354k\236\366?\366\344\376\343\023\300\271O\213\212?9\326?\teb\202\360\023Z\355O\3615\240v\020A\241\203\r*|\021\226\002;[0\203(\2308^%\255-\022\222\204\244\244\204\361\253\321\227dn,\227\301rn\247\361&\005^\243\006\300z\262{v\020\230fo\253\356\343\362@E6\362A\026\311\010\256\265A5\374\241\330$:\254\302z-\321\307\206\325\3105\355o\353)n\374\345\322\3549P\241K\17737\375\260+\204\307W\357\270\205\341\203\363t\250\304CN\210w\017\265\235\244Dj\272_\246\013\rZrV\010\"u\035\270\022\r\266\035=xGmpK&\037G\020\000!ti#\203\226\231`>ry\331\310\225\315\322\n\\[M\362H\231\204\353\002\250g\003\2128(\022\375\030\345\3123\3175\233\256\206^\202N@\024\352\223\321\273?\326B\253\231\307\370)\030\277k\001/\267P?\333\275\243\231\311_\010\"\233}\216_\257\363\232Iw\313\214\001q\324G\003v3F\001\246He:\247\263\22069\226`\323W\370\001\025\024C\0205\271\001\303I\266\3145~O\353*P\327\003M@\305C\272\222\031e\211\t#\017K\326]\217\256\313\265\010\233\320^\312\343\221\t\366?[\333\264\304\251h\003\326\315\237\231\000\020s0\302\245\017\247\333E\222\030\370\311J\352\357A0*\t\211Q\363\024\025 d\263B\236|\024\220\277\365\350qD5\306\003\2719\t\n\306\264\3332/\316\355,2\374 B\234\344\341]\374\320'\367\235C\332!x\267\235\302\255\267\343\177\266\035\305Dr\247?\002\337\274\311t\007tg3\253w\350\014\3371\203\330\312\305\202\261\272\017\270\3762\257FV^\n\352-\000Xtg\213\\wh\320\3351\271\367J3\276\323\010\367\235G\231\002l\374\t\316Zq\3537x\0240\341\351d\014\317-\017\217\nz\014\225\337\233\037l\255\024:""\205H\200X\2043\375w\366\274N\307\270gr\014XW\354\035Z\247\022\t\223\003x\024w[\277\1774\226\322 \375\362AB\251\030c\247)\027\247\257dJ\275a`\204B\331N\021\017\267c;\202\240\nO\341\000\025N\331\266aiL*\235q\335\341\345A\300\225\377-\260\303\321\276\016\177\330\374[\221A\014\235\227\212fsnSQ\2252v\245\005kh\336\200\2653\010|\326M(\272\274\214\rcL\024\206\275\204\334I\016|n^G7\027\346\352S\003\274eH\255\362\307\035\304\251\364\260V\263\317\0227.'\024\352.\233h\313J@7\200\263\022\357}\014\212\020\004[\223.(\001\r\000\002\327\355w\264\241\007 6DWb\tW\336\213\271>\000\210\3674\031\231D\343\211\224xC\003\340I\t\371\376\031_\213\303m\t\007(zp\202\\b\2746\320\203\276E.\375B\204o\003\223o\330\002\036\n3\344=\312\277\357\007;\264\263CJ\277\220\210\234\253W\271\322+p\323\246~\244\364p\344 \025v\333\004xJ\251\223)\266\252\022\246\317\010\001g\343\273\317\203\315\242N\334\\\376\334B\2776\251\032;D\217&\264\314\030\367\357?\276\336\251\203\312\222q\306\353\221H\010\r\205\263B\371\034D\374\310;\037m\2350)\351\267\254\t\350\225\267\320\245\261\252\t\022m\235E\r\334/\347PH\267\007\316\254)\265\252\345!`\346\340\333\225\327\236\246\220\210\211;\327\250w\327\246\250\363\220\221T.\305)\351\003\377\227l&{\362\245\002.\352\2542\352\345\222\"(\2268\226\347\233\023\311m\373a\274\t\027\306z\244Y\271\322\363\301\342\312`\247\213\010\017I\377)\227\014\204\205\353\206\214\337\036\"\211\377\027\322K\177\310s\340\204H\235\320\024\336\210\347\303j\004Xx\225\331\362>.\014\264\315\314M\0227vL|\334\026\367\006Y\202\021!\223}!A\300m\320\202I\337\213\232!\006\247\000YV\001yWn\276.W\277\nB\373\004\244\031\305\223\321\310\351\265\270\305\341\235\342m\023r\301\236+:\307\016\336c[\016>\236\366b\270\353b\300\003Iz\223\201H\346\340\372+\316\221\013\210\214\242\367s}<'U\342\263z2N\273\230\004\215wg'\243\3416\317\230\266\366\340\010M\357'\r\301\356\320_\326H\345c\307\223\256\221\034eS\213dm\235q\312c\0338R\025\032\234\245\240e^\374\220\r\324\017v\237J\205$qF\323\357#(\250Ju\314\322g \335\243\346S(G\017n\212""\306{\271\331\226\3334{\rz\277\020\320\237\333-B\300$\r\005P4$\3225\336\260\2412\253\335\312\233@`\200\304\001\304q\253\021Ba_\264\275\217Q\317\216Q\210\352zv\222\226\034\327l4\267f\214\221\324b\222\372\256\030\203;L\357\243\246\014\371\320\215E;(\210\374\312\204`\245HZ\223\256!\211\244\262\273^\304\246\216\220\037 \325s\001r\360H\255#qBP\343\254\020\226\222\030t\255\266R\206\306\323f\014\206\320\232y:\323\231\274r\277y&\376\007\000\003\212J\203\241\275~\021)7\031!\247.\312\215\363\231\307\0069'\024\233\"\222\340e\031H\275\275O\3465\343E\301\250on9\245\007XhsS\346\223v\027\254\257sh\214m\305\363\325\314\370\344\332\237\210\034\023\204\322\327\212\272\277\031\371@\233\005%\215\324\005\234C\361\301\342R\024n_\335\216\312g\005\274\332\257{\321r\353\341\373\035s\rU\365\301\316\351+*y \211|!c\366j&\353\317\213\tP-*\001\223\025\302vl\2765Ju\202\254\344N\227<\3725\225T\252\214\240\030\233\355\036\213\277\340\311R\336r\300u\202<e\300\323C\256\257-\206O\325\211\017&b\210\270\220\353\313W\370\200jL\017\206\256\025\203\314\027\320\242\201\023\204\331W /\315$\206\310(t\222\204\001\335\236\271}\302$\2059K#\202\355\230\323&cM\351f\225\231CQA\264\354H.\311\342\215v\305z\246\221\241\363\235\330\004\274\032\227\317\004f\200\375\020=\034\202Rd\346\306ti\226&!*\006\362\352\0165^\244\350W\031*,\r/\253\nP1\377K+\346L\304\3127\016i\007\322r\313%\256\244\303\350\365\021\325\235\364\022@\034<^C\364\224q\205b\250tH\nK\263\306\007,\006\2600\243Y4\036As\0053\005\220\276\266{)l\004\001\320\215\"\367\331\021\010\201\341\357BH\244\232\003\246:\010\255\247\031\002\316G\0326\027\021\273D\307\324\007Je\316\254S>\201L\n\"UA\300\216\213m\023\336\305Pp\262\032\313\307\\\371h\020\275\006S\267\230\212O\033zO\333Q\232\371T\313W\203U\372\270\002po\204\377-\207fN\247_\220\272\205\213\237v\361c\200\034\023\344\314\341\215\247p3eK9\003\\\036#&\201\361VV\347\275\no\332\334\341\226\316\270\0054\177\\\027\r\2476a\276tz\t\034\3565\352Y\270\370q\317\014\207Ha\234\216\320\2136a\352\222.;\313\200fC\263Y\020\007""\036\203\305I\316\246\327\205\027\353\240\302\025\366\275\020d*%p\277\341fr-C\367FL\032\2623\3426\205\204KE\014\221\321\021&g\275\2341\2120#0\272\351\026UY\232Y\265\324\376I\030\300r\305\014\347dx\336\231\251B\002<\222\004\313\307\\\203\341=]WE\007\\\033\337l\375\024\370\203\205\016y\364\335\025_\376\320\213$\227@\220\311\351p?\003\232e\221\2030\374\271c\006B\361\352\271\002v\032\034\347\327\010\2769\014\346\036\270\255$\t\375\335\344Sv~2\r\377\311\323B\2340\344n\204\357\252\317\324w\267\314\002\272\306k\372\274\\\213WB+\330\221(\261\273\350\273\217\0102\207\354\366\240A\217\324\245\007>/5\243\361D\276\"O\2723\251K\032g\356\216i\265R\227(\233\003\326\335\325\250\030\010\031\001\362\262i\314\232\027\"\371-\n\327\337\272*\372\030v;\017\nI#hUk\027\376\367\023\306Rt:\215\300\212\354\251\347\326\316?\301\265)F\323\370\365\254\026\207$^\300\356\313H\033\033\272\222\322\340\025\274\346\023\264#\314\274\302\271\002\233\315\312\205Q\003<7\000R\017*\032piu\2060\375#\232Rn<\261\231\020\354r&\000\016\364\267\256UU\265\340\314\t\000\260g\344\023\247\273\367s\327\252a\237\213\354&\314@\305S\334(\rt\211\216\032W\372?\022:\317\376\022\275\320\253\252Z1x`\355\360W\177\035\t1\216\235o^\363T\262\353zW\332\245Z\022\370\367\242W\025\373\331]\035\t\235\230_M#9\344\216sg\3219\204*\312\337\232\217\204\232\375\266r\201~K\305\277\362\377\0313,\205\010\010v\263zH\230d\020\244\201\373gT\371#\241\223\024\002\366\355Z|\"\241nc`\372\001\202\272\250B\236G\315\001R\030\024\034\013A\020\006\3028\320\255:\022\221DL\2020\304\0202\210\214\214\210\210\210$)H\241\320\001C)\017ad4\210't6\317\337\306h(\017a\303\235\311\364\327\353p\307\0241R\256.\374[\221g\304\366\262H$\220\231`\312\317\n\t\351oH\203+\007\014f\364\336\017\335f\251Qg/\315\236~N\030A(\235Q\202\362l\000\232O\250w\316\253\214\342\374\226\327jR\232v\362U\240.\213\207\3102\316\t~mW\333\304\340#\202\007\205\257\350=V\020\331\267G\\\036p\366,Fw\244\272\315\252\0342vc\262\370\203\016\220\026HR\361\206i\367`\262\341\362h\215\335\002\346\240ch\261;""\010\365\001\367\264?\321\314\010\361W \274\326W\264k\304\n_r<i\245\210\366\0273]D\274\035L\210x\0377\371~\203-\275\r\357\226\342y+\006\363\354ft\352\204\362@\247\367\207Ob\342\020\232\002\037\304'\323\302%\211Z\214#\211#x\034\346\363\230\026{Q\242f.\333k\360t\3447UA\234\010\261\257 \032\252f\230\206\376\237\203\241.\t<\263\243\300\226\316\302|$\202\0203\031uB\223\037\033\355\360*\0216\364\016D\242\247\357\357\277\2146Cy\0013-\253\223a\203\007h\301\t\033\002\270R\266\010\322\215D\322)R\230p\"M\233\037\037\371\324\245\0235\316w\326\033\010.nf8\267\273\333\272W\n\200\300N\367\033g\\T\023+\207q\331\277\335E\0039P\227\275b\277\356\214E\247\327!\310KT\372\336\320x\220AJC*\366\3051\250\2040z\334\000\366M\223a\022|\022_b<\347&\000K\247}\311\346\3739\364jRL\246S\313p 6k@g\315\303J\367\371\265\n'{\344\207\3370#\007MF]\253\234O\312\300dk\233m)\260\001\023\004x\017u\267z4\n\277\2446\243D\342\177\260\250\004\321\202\376\274\177C\353\020\256\334qzf \230\302\335\016\\\037\3359\027M\200\276\263\003>\253~\327y\202\004\0103xF\233c\376\313@\214\335\2058\"\372\275\255\242\301CH\004\274\231\230#ts-\246\2334n\324\202\304\224\320Js\370\260b\240\t\254\2079\364\027\250O\033a\323\254+\203\245\016`5\272`\3471 g\325\006\343\244\350\373\270\217R\037*\216\020h\351\367)g\003\241\327\201\342\272\353\334[\252\212\177F\351\214\017\020h\326\262\325\355\333D\355\225\372ij\374\275\306\344tA\004\362Dv.H\337\001\377\265\222\350j\276o\252\356\357L\334\237;\343\004\371[aZ\017&\032\205R5\254\243\230V\031\353\244r\267M\210\261\336\374\252t\374\341\256b~\234s\370\315\026\216\005e\227\205I\237\373\266JK\226Q\220\025\020A\243\204E\216\332\302\376\231\025\257\353\200\363\321\307\255\303V\335\034$\240\007\303)\262\360h_\"%\320D\022a\227\342\001m\262;\301\26723\277\0335\311\264\325F\224\377 \351]\325\355\025'(\241\275\330=Lh\321__\226/v\277\024\222Wg\216\007\376\021\215YV\022B\314\020'tk\265\315R\036\255\013\342\224\304\016aI#FX\311\360,\017@mmpmg\001{\031/\346\267\312b\321 \274\312W\231\256rmO-)\235\317\220\224s""\237\334\005q.\004G\274y\225\006\263G\214i\252(A\266\2043\023\312\262r\372\355\202\362Vk\272\2717w\223\031\372\314\236\361\351\362,X\020\322\331\233$X\375\016\004T\327_\300=\311[=\355\301\\\2331\342U\265\020\t\370\330\276\301\275)t\t[\"CWRWW\247\270\251\255\2178%eT\252*\233z\301V+\246u\006\360\210\rZ\032\320\303\016\305\374bd\005\315\377\021\034\332\205\017\251\274\234Q\351$\331\300\336,\217\265\343k(\222ne\232S2M\233~\331\0200\006\220yy+h\264\305\273\254DD\353\004\331\250\376\306\253\366\236\366}$\2543\3671\320\"\221\201\362tW\013h\004\021\360sb\005s\352\304\276\200\025\000\0149Q\344M[\2402\360H\337\365\351\255P\235\234z!o5\272\244l\256\356KS\303\221\226L.\313\247\355\363O\325\177\252\345\207\252\334\343\003\032E\201b\215\t\325h\017%\267a\374\304G\241\327\354\337(\267o\220L\303\353\242\352\326b\346\216L*\010^T4\177 \327\200*zz\274.\274\201\022\270\301D\206z\020\3403\327\320@\177f\302\326\264\260\335z\322\232s\332\335\315\333\3311n\351\210\352\362c\215\221\210y\n\371,\"\357M\2404\323\013\2161o\312\211\265\350\3307QL\323l\311!\007\241\221\271<]\033\210\371B\334\235.so\023D\262c\246\031\007\014-r\013TF/\244\323\217\347\241\225=\367cE\354g\247\363\036D\352\334\334\031\271\347\341\027\014\341\t\3037X9z\240\244\031\301w\225\256\214\343\262w\037Q'm\004&U\272|&s\364\257A\367b\355\236\r\005\313\3010\320&\026K\312_\230j\302L\002F\301\362-\220\357}\2119?Y`\273$g\204\255\347\032\334\201\250\207\010\371\337 \031\203\371E\372\222\303\21609\t\204\237\322\017\\{\205\227\374DQd\340\336\260D\333\243L\335\366d\332F\240\275\367\223\250\3308\255\013\232)\nLC\r\247\002\301\365\344\350\311ir\177\t\035\215\031[YR\307E\305N&>\374\326\021\305\221Z\266\177\247e\234\265\210\364L2\260\313s\307q,,\313|\035\273\271\221\253I\314\002\267\366\335\033\002\355,A~{x\023dT\336cZ\006\220\310*\306\252\205\000U\276\340\\\276\002\345\3138\276\370\016\253|\212\013Y\024\327\030\2002~\000\215\267\010\351\341%C\312\021\021\202\213\345\244^(K\240e\004\250\364\244\026T\0135\366\345\032A\301\3462\221;1\004R\000""\372K\210\020;\360\3266\314\300\322\n\013\037\344\006 \251\200e\302Y\370 \237p\026.4\261N\247K\3270U\223J(\205\004(\347}|M4\3001s\271WQ\036K\204\276\275\217D\304\t\357\037\371\000\361\000\373\000\255\314C\252P\312v\003\351\236v@}s\273\232\246er\013\375.oy\213\363bd\032U\310Cd\002\352\253\035\355I\333V\373*\357\331\275MC=\212\372=\315j\212\254\260\003vD\202\317\2317\313u\317N\337\366\220\230\315\356s\267\3445\243 \335\356\352f\3178\277\331\204ns\037s.\263T\312\225\007\360\332FwJ\233\344T\365W\244\001\352\273\372\"\367 \021P\312\2653\360$-49\204\356\310\351\301i`\331J\277\271\203\262k\365]d\202\352\273\271$\203 U\251\223\310r\215K2|\306\203\1778\275\256 \351(\034\032\337\366g\364\362\030Wc\206\321x\014\276G\357\321\260\330cT$*\376\212z\202CD\241\261\350-\276\300\342q\210X,\032\016\201\302\037\321\260\350\370\373\275@\302\227(<\366\014\001\331\342\317\370\276\302\340\3575\n\276BC\\\021\016\310\323\342\336\014\360\321\242C7\360\225+}\300\270\311\217\032\342\001\251\227\364\234\314\367p&\235S\266\361@\\\203Oz\356\366\321\356\343\267\337s\267\360\247\307\366\234\362\325\020\t\336\3241Y\267\244t\363\253\330\302\0330C/V\201\033\372\332=l\026\266\357\302$\027^\203W\300\274/\267T_\215_X\3307x#\005\313u\267\244\365\r\211O\363\264\323s\212\2257s\262+uJ\227+\034r\372?#h\267Q\303h\r\035\314\275\334\3320{\306\243\001\336L\313hFW\277\325;s\325\252@I\200^3q\335/\371\314+\024\224R\375k\016\310\034\352\226\255\376\332\325.\303\005\270\311f\255\032%\247\253\317\302+L\354m\337\350\304\r^q\373,?\271\273m.\257\352\223\314\312\250\352\253\033\246M\345\272\0256\017@/\350\343n\367\212>\365\202\352\367\266N\023s\233\003l\232R\005\274\300\271\340]\327\tCy\267\211\340\374n\262M\"\304A/[\225\200L\t\234PK5b=\371U\352\024\253A\270\235\240\037\267mF D\203\200y\305\005\247\223g\031\300\204q\234F;\260(\"W\337\260\335\007D\177\310\324_\262\373j~a\">@4\333=\253\036E\332\262\327\215\322zxi_\273\263Y\237\302\321\2561H\230pL\327q\"L\245Dc\273A\303Bv\201\t\254\257\2477\371-B\345Q\330\204?\030<C\253C2\213""\240\257\251\323\303R\205u7\031\237\367\225\370\222\325\243\024n\376vzu$e}\264v\320\356\201\315\241\033^\305N\273P\325\026Lv\r\365\014\230\357`Q\336h\207\364\373v\315\357u\016\010\357b5K'\321p\335\236\335n\261\337\252D\304lv\272\325\330_\371\204M3\244(;\205#\263\224\0344\254\003\361\036\217\325T\027:[\247\211\346\306\311-8\210K\244,!S\202\307\213\271\215\013\3513,\217\322eb\322\262\215Od^\226T\2232q\r\234\302#9\252\324\237\0041\017\274k{\257Kx\237Y\033\363\261\205\000\032\227\341x\245J\267\005\341_\255\317k\367n\027S\215\024\266\001/\034<\253i\324-\243\035`\037M\232I7\246\305h\314f\370\027\037\036\265L\215\035\324@\371\205\362\206\276\325\006d\373\332\203)\3140\273\262\311nAS'\211%\315\206\337X\3428\272\0039.\346UJ5\336Ex\023\035Kc\236bh\263\266|7\241p\264\221\245D\320\034\033\257q\020n\301>\016\036\3345\331\277\261\36165\276f\306\317\310\370\237\344.\271&'\342\023\203\356r\341\226pu\236\035\220\025\266\027\026*(>\356\342SLh\234\036M5\217\007\331Cj\260\371\347\"[\244M\223\300\211\352C\216\361\340\r|\202\272\250\322\343\216*42\"\"IR\2204\006\"\020\014\024\007\2028P\026\323\225mR\372\252d\310\221\221\021\021IRPP\251\321\001\232C4\344\037\034\301\274\331\273\322m\020\267\214%\276\263\371|e\020\022\030\302\232\016\276\002\376J\035N\021\013*T\247\241Op\213\001\375\010\241\250\330*\327\345\"c\211\334r1\022\241@5\362p2C\232\344\031*\r\300\025pH\014Q\243d\265\263\030a\341\261\026\207\354\267\251\030\037\350\263Ny\303\271a|\021B\244\223\262\021\2721h\"\raBz(`\351\037\264E\211 \267a\353\201\233\023\273\326\257^1\275\2000\030%\366\265m\020\362\016\355t\035\222\244\370\243rA\242\370\027K\243\222\036\336<\372\007\264\247\227\376\250\223\367\000=8\312\222\3016W|\016\214\026r\247\211\341p\270\206\313o\245\332fw\007b)\343?\326a\310Hb\264\301)4A\315\265\362\3049f\267\315\260\3052\206\361\365oN\217\271\001E\301h\322\227\301\320\233p\005\324\271\247]\350s\306LoB\230\017\014\355h\261\003=*\262K\014\323~\360\032\246\221]\250<2*\241\035\007\004\345t\317\334\033\355\002\212\311\340U_[M""\3172VV\322\316\362\216\213\\\257n\350%\022\016#\213\003a\362\347\001\235\002\004\302\234Q\241KD\227\330\264 \277\035\244\365\213a9K\375\365N\322\245\234h\347Xp&\303&\327\374\315\"X\362Z\374\211MK'\265$\242\205kg\350\001J\303\2315\237nd&J!\327\302\337\272\032Z\245\177G\036@\207\247pq\276l\2669Q]\225\264\211\243\233,\344\362\234\355b`\350\020U.\300\224\263c\360\003\211DI\250\240\272\260\033`\247\303U\353O5H\304[\371%\2670'(2\2458\251\217\237\341v\232\010\200\3635\246v\177\342`|\025\361\315\362\014\000R\031_*x\007\033\340\362\345\327wJ\326\331\234\354\242E\342\267\215<UI;\324\232\005\014R\334\367'\331b\304C\236\rYX@\203\304\031\r\td\",\203\370}\230wj\34764\367\374\275l\256&\342\255\004\000a\375}\321`\220A@8\177\377\217\335K\027\0106\356\247Xs&`\232\346\250\"\367B@\034\357\200\263\201|$1,J4hy\023&\272'>\313\206r\225\257(\200\350\354\031\017\240ST\275\263\030$R\200\225\345\316\223\364\375\243\203\204\252\017J\304\341Z;[\212\326\233S\373OF\211T\336z.\307\215\365y\034!\224\364\345\304\220X\214\326\014\002\340/h\027\200!=\355\035\307\316\027\221\016X\201\261[\345\231(-{hQ\321\306uJI\273\341\356y(\261H\277\276x\306\201\035xw\226[k'&\004\262\256g\207f\220\302o\202O\307Z\257\336\361\236\303\204\264<\223\220i\3260\200\312\305\237k\344\243\326\000\251\364\264\310w\240\216i\032\243i\354~\3720u)\300?\360\023\026\003\2465\001\336\360\315~<\3310\212\364\241y\261[Y1\030\241\346XYl\3462Ib \033J\014\360H\213\237\203m\025\003P\301\241\r\000\347\237J\372\231\004\2104\214#\021Z\360\356C\016n\247\322a\364\030\217\232\324\nTV\216>L\256\022\240\376+\272\255b\273\301\2305.\037\244\205\274\214\240\222q\313\323\370\217 -Ho.L\000\022\034b\317\324T\017\315\303\022zk\"\210\255\3046\310\225\032\327'uh\250Rtc%y$+^\253Z\342\222*1\263]q\024\357A\342R\375\252\211\206\233\322\033\326\343C8\006\343\223\226f_\254\370'\303N\244\312(\007[\317\003\n/>\025\356\371O\314\347\343\261\224\2560\022_\241B\343\001\231\323\365.\374\003\356&\254\352\365\215\277\035p\312\323\304\335\026ZV\374]\223%mf\037V\022A\336""\366<B\020\221\023\240\346\376\236\000\327\231\260c\314u\034e\234\306~;\3725 \2561\220y|\323\314\227\207'\234\234\346j\3667\321\2641(\260\273\306\263\231\301 ?`\361\353z\262p\262w\217SS<'\016!\230\275x\252\255\315\221\312\023\366^\322A\032O+\304#.\236\274\3217\036\345\344\233\007\227\264\362Y\322\361\242\007x\316\227\310\345\312\350\303|0\361\303\233#_l\235\333\363\272F}z\3554X\212_rIu\333*\205\244'g\300\305\321\342osh\253\312q\021D\205+`\177\303d=No\363\234Or\033c/\251\036:\366p\270\361\332\013`\212\364\362$\212\301\225\370LD$i\031A\273\257\025\001\256\237\035:\007'\356m\215p\2649\345\331mL\016$\354.\310\346#\020#\031d(\201A\002\224\251\301\004\232M\230\307'\216Z\240\035\357\210\001\n?a\241\323\216(\005\341be\346\210\035;\310\257\201\222aD\270'\200x\010T-\305.\211\364\370V\277\277\350$\247s5\323\323\235z\351rQ\310\2208\372B\375?\213h_\211&V\270\tEes\224\210NU=\300\300\250\261\207@\2427\032\240\344\220\347\214G\321\363\006\213\306! \020?\257E\331+`\272\315p\222\201R\035Q)\202\343\276\355;\247o\253!B\377k\241\026\010C2u\355\005\354\346\245\031\274\321\236\242K\256NX\001&\032\350\013F\244\323D\276\320\373\023v\010\013;\255\360\351\020\333\021\202\251\207\231\226\361aP\027\203\3728\201$\307\332\240J\356\035\274[\205;\342\307\322\327@\216\351I\352\264'-\212^&.\221Qo\032\330\242\r\237h\001\252R\213\321I2\032*y%\r\2709\366\354\t\034\247i@\\%Ji\356I\007\020\003\356\001\202\253\253^\347\247#\313#G4\306\333\217\021P\3743\352\331\235\210\265\365(\272\316GT\025CeC\001\212\232@\"=\360\2227\314\300\010)$e\220\317\024I\031\3443ER\001+$\036\004\222\253\252\305P\210\210\030\024\214\210\210\342\212\210\210\2015\272\003%yC\241N\330\022\005\311\245\013MX\022|\340\032\013\013\002\022\002\026\002\321\027\2743c\225\360\"\305\275\272\2033\016t\377\246\270\022\307\3618/\275\207\013\361\313\346\366\001e_6\217;\365\277\333\003v=\217\255\000\224\002\225\024\362_i\260\023^\2366\220\027'\241\331\t\346H&\367s\275V\247{\r\030\270\200;\037\204G\266\316W-\277\377\310\234\177\022\207y\221\321\356""\305\"0\\\032E\354\016a\331\032\212\361\224\371e(\271\014)\361\345\2558\337\010\366LI\247\205\004>\322<\275\357\225\363V q\257\367\306\275J:D\333\005c\361[\235\366\230B\303\266\317\232\372\235&\006\375\200\032R\031\274\3209\372\351^ \272A\021\321\001\217\361\243\027\331\013^:\214\365\2556\253\265b{w\032\3221\024\375\"\320\t\364\344\320I\366e\320;\307~.{V\342\324Oi<][\201\206\265r\355O\351\232\t\240`(\316\217\370;\265)\354\221\225 \355\267S[\347\351sn\342\3352\232\250\343\332\223z\037o7w\347\3211\326\354u\273\245D\226\357\366\255Q\005\247\273\317x\317\217|\016\216\363*~\321*\335\313\253(\337`\370\324\273\205\203\205\365\r\216\277S\031\361\243\252\225\350\022l\006\305\\\215\272\270\331\327t\033\023^\177\207\304\325Wm]s\363\250\010o\372\233\316\226\306Kd\273{\375\227'y\327\215bK\335D\322\237Eh*\024\340?\263r\266:|\342,\\\347\033\334\274\002\037y\372$\257\210 \000\241\373O\227N\346\302|\203\370W6\233&\001\017\332/\313\244\317^\351\037x\237Z\267\352\030Z\017u\237\220\326\340\277\377\305*U;\014G\033D\263Z&>iV\272eMG7T\244\356Q{\206\254\2171\344\346\031:X\325\314P[i\232\017\220\2065}\354#Z\367\321\344\227w\0145;\005k\030\002\302S7\001\263/\202\207\222F\351(\330T\253\307<\226r\247\340\372A?\236\254\253\005\373\322v\237\003\n\255_\321|\347i{\360\304\261\301\236\324Z\327C\323Pu\034\234\355\333.\313\to\316\336\222m\275\324\211\240M [\344nA\007X\223\351\177\304\342\002?B\270I\255w\257\210\301\302.~sk\\q>\316\313\177\221}W\307\215\004~\261\373\264W\320\0267\227,\241Me\370\373\2676\316}\367Cw\224\223\177\222\361\235x\311Z\323\335\343\261*tQ\362\234O\343L\n\363\244\355\274\035\216\302\244\304W\305\242\310\343\267\023\013~\301j7\301<G\356\224<S\tZ\350\241\351\306\261\211\243\342\364\241&\260R\257\253\277\257\376j\267\t\263H\035\335\272`B\252\030\265\263\341t\334\351s\265\023\276\024>\000S\317 \354\307f\323\227\313\332\352\024\344\251Kl\300\300.fX\370v:\375\347\223Q\275\220\326\225\273\310\232\342\027\306o\254\375\234\356:\ta?OZV\220\252-\324\276\352u{>y\t\033R\005\227m\3017@\201w?""\367\007t\016<\203\320A\027\341\022\014?\"\217Y|U\321\250@\r\035\251\222\261\016{jE\327\222@\266\305\3062X\222\356bM\271\357~*m\220\002Q\"+\212-\324\313\273\260P\302\356\314\263evu8`I\275\300\206\324Np]\327ue]\225\360\305\274Id\317\273\253\310\235\256WW]\263j\237\007\230&\024\266Km\215e\261om\251\326\024FZ$\373\20250}\322\354\313tL\266[c\0273\273k{?j#\253\304\023\374\354\343\032\264!4\341\033\207\224BE\342\020\342AG\036\215E}(\324\225B\034\311\231+\307'\233}\306=\262\302\241\373:\332'\354\275o5\220\3059mJ7\3101\214\037\306\316\201\255\220\03671\326g\206\317\300\373<\326g\311\200l\005\332\337\310\006W\244\215\214=u\254u\355~;e5N)\300\326\227\335\227\006\322'\031\371#\027\337@\0302\013\332\310\334~[\365z\315l+$\017=\027\217\372\344\3577\010\275\003\203\276\213\016\276A\225\372\266\000\177.\257\0243w*\2337P\213p\032\247d[\214\217t\230\030\003\326\205\277\324\205A\223\033\216\330{`\007z\212\215P\2545\355\010H\305\364\237\352[\234\216@ O\237\231#\333D0v@\311:\356#v\020@\030\251\230\341\225\213\353\346\306\262\244MV\001]1C\\\032\r\237!py\027\034\263y\301S\205\003\357S=\305AlAA\006\305\215S\324\322\216R\207\005\205S84-\246/)h[>\304\003\206?V\264\325\020\261\007\203^\305\244\364?4\322\217\375 \354\004\215\343'\036\374ViU\254\326H\350\365fV\320p\034v\350K\017G\273\2513%\325\344\321\013\346-\263G\360\r\243\265C*)\244Zm\273\354O\241\270\205\355/Q4\027\233\014\256\332\357Dr\345\235nn\304\337\242w\0302\274xC\322\212Da\227\310\2138\322\007\315\270@g/iE\003Q\320\272;\024F7D<\021\024\212RR\030\355\035\023D\271\037tb0cD*\"\305\006\372\010z\201\373\006\303Z\036.\220\237\313w9#\036\357\314\2712w\301a|R\367\255\034Y\326\260FKp\2252\021j\313\316&\t\207\270\255\262m@\230\001\317 _\006\267\210\200\370M\300\272\223\334\301[\000\260\363\315\227\355{\020\372}\3708c\003}r\016\343G\265-\326\353\n}\2056j\220\036\356\250\034\211\"\n\243+\2636T\306\324\023\275\203\317\247\372\376\342\306x9\370\265\336S\254mm%+\272\020\267\372\230\233:\267\2676\342=\007so4&~\365\255\023\021c\317\313\264\206\324""\335;;\301\000\036\272\270\321\343\276oz\033\231\036vT)\274\332\nqLd\206\014\010\214b\030\302\252\202\257IY\203\354[\333_\354#\274s\355C\020\251\024\001\036\247\273\323\220\030\017\361\327\366\364z\3329\251\370\344\265\213\014D\236\203\325\313@\005-43\321\230\206\235\266\027en\310\234\030\215\"hk8\213\335%C\203\254\005H\353\260#\372\024\0311b\037\302\222\351\245THfT\277\025Q\237\271\006\276\\\370\255\275\273\326:7^\342\016t\031\211%\343HY\236\235L\266j&\307\270f\330\2347\340-\314!\216\322\205\346\330\215&\367\355\026\261\267\272@\211\201t\254\246\250D\027\366mK\003$\267|\023p\205\366\210*\365\323|\232\350\217\242\374\371;G\267f\364\206#\255\207\255\001g\363\303NR;\320\317\377\271\3717O\340\320\324\036\250\006\371\206J\300\\\243\370}H3\270\203'\240\035\000\227\0056\030V\202\000?\2178D\232\361\227\025\261V\023\270\027&\344x\331l.e\322\215\204#cGX\250\220\000\352A\244\350Ps_\220\324\006\317;\250\326\245\222\244?\303\272\247\333\255]:\336uy\017\361\036\216hF33#\251t$\"2b2G\037\037#\r\215\021\305\210B\324\003\0000\304s\375\327\352\257\332|\033\346\017\311_H\245\021\354\325\202:\375\323\232_\243\362UL\276I\363[\363\230\210\333J[p\016\211\366\354\251@4\275MpZ\373*!\333{>c;\005\216\313\000\t\362\202\016\346\206H\277\245\2353 \037\374\242aO\315\215\330\207\236Z\247k\316\363\200\000\3766\022\024\211`B\366\r\275cl[\210\320\251\321\304]\322\"(|\005\322\317=xp\221\316\016qua\273\3738\203\311\257\267\224\213Ig\224\032\202\341\245\240c\345\024IAE\036B)u\026k6\177,\n]n\343\302;l5q\023,+\177\005\345\243\204|\234\034\227K_\341\004\023\332P\353 \251&\252\252S\267~\033\366D\272\311\372`X\352.\352yo\022[;\343\025A!\314\024\332l\341r\031/\263v\2215(\265\207\260H\337}\374L@\227\317y\351\352\360\013\312;\342\277\277\242\310Wr\316\341\234\212\343\\\237\217F\2438\312;!\216\037\250\364\362\367\252\3544\000\024\000S0\000(8 \026\016\210\306\004S\321\017$\347P\033\310\243d\304#\0148b\200\001\003\004`\000`\000\001\000\000\000\000p\372\0055^G\3165i\036\332\034\322\365\020\200SEm5\n\314\271K,1\267""\200\211\340\016sEX\"F\351,\353\205\271\361\245\207\254\271\312\240\266\341\316h\310\025\245A\020\370\276\307s\323\025q^\215\035\361\020\245\204\002\223\027\346\365\215\356)\206\rg\270e\212\271\274\024\247\343Vy#\260\300\030\264\244\034\307\334\331k>'\227.\235\030\276\r\375\330\322~,\253\331&\200F\313M\002\331\335\354dF\253\231{\212\242:R\236\216:\005\006 ~\260J!wtd\377\220\210\307\217\223B\327\231\215\2211\303\244\305[w\230\262\002\366.2\333\257d\212\027\273\035s;\263\336/\032\212\337\325\255\376\311-M\356\003-\320\347,\326,\036O\036\342L\tx\272\247Z\300\006\322v\322_\265y0\302\326\000\256\303\241\251J\254\331\357\003A\352\233U\214\346>i\200\026\203\262\321\347\322\326\3344\265\216\307\337\002\236\004\364I\347\301\014\255*)\004\210z{\035V\233zg|(\034\256\014\003\251\300G\3676\001\314\0312m\001\227\330t\274\323\210\200,\220\216\177\251\266L\202\220\230\216Xm]\234+W\324z\302R\377c)\004\265\204U?\317\300.\236\021t\310|\362\r\036\363\257\252\236\242B\247\352\0101\352c\310\252\206\223\200\224,\376\2113:1\017\013k\377\350ACx\304V\241\370\034\354c\207-\345 \233CBd\256q\324(\312\025Ur~a\310G\033&C\013\031r{\"\277\317\240V^P\027\230\301D\370\221P\010\303\003\255\t\261\345\214\245\302\214\224eM\206\t\"h\326\017_\340\221E\307\270\253\241\0358\361\256:\0138SN\335RB~\204\267\345\232\330\230\030\030\325H\374\235DP\371\024\024\217\224%\021\223\2507b\361\324Z\221\205\213\205\303v\314\004\357\231\351\373\366\321\004\371\352\212]1\216\033\222N\025\365D\tN\033r\324\247v\265\311\010\000\276\342\243\254\331\362\364P\3167bkE\036\356\"\326r\205\333\234\227|`\241\035hO\222)I\222\221\360(\265\344\335\377\006\360Bw\350\035B\307c\223\006\352\272\306\003\237a:\213\272\332\002\010{.\325\335\325\263@\253 \211\270i\245N\030G%\315=b\t.\240%\025(f\226\003A\006@\206.5\035D\0131b\035\330\210>\314)X\214/\343\026\027\224Sb<K\0170y9\376D\023v\342\3748\251\303YX>!\266\205G%f\273@\006\215\344\232\310\210+\014\247M\367/of\312j\231\004-\310\r\232d\335i\371\204\350\206\302l\376?\003m\031\276\177\324\307<""\314\005Z\223\003I_\342\365\3674~6(n\217wPz\232\247\034\260\2752K\007\"e\0376mn\367w\243;\324\234\220L\305\201\312\361\2437\007eK\326\010\317\237\325\226\026\371X\256\330l\214F\347\350.\2034\005\235l\330\245\306\344\3055\177\332BF\020]\231\0241\025\337;$\314\2527\025\2709\355\232LN3\331@\021Lu\307@\273\241qe\234\035\333\353\374\\\342\3036\\\316\034F[\014\033=\033M\215\262\237\242\207\302\276\302\361\213\253e\347\257;b\005O\2210YA\207\376\206d\236\345n\210\304\237?&(\303\256\365Y\022\301\350\201F}\004JQ\300\246D\231\347\035\021N\016@\321\227\325\265\362\000\213\244=!\235e\200\335^\372\347E\304\302\2526\234\336G\002\271A\216\222t\3758\221\364\002\305\031\365.K\331\365\013\206\r\005\020\347\365^\375t]6>\302b\372\336\272&h\354\022\200\000\306\025CP\240\301rF\351aS\222`\347\221\367\233\217\313jqVS\375}\263Qh\022@\361&mD\032\352\322\020 \020\017\261\264\rM\271t\342\344n\371\336\357.&\204\nt\262\002\274\336-$\236\342\350\n9\216\330Z\240\332Q\235y\231\260\324!h\323\305\340\304\321\230Ws\302\317\270!\001\005\365L\207\010\231\364\250\366\254I\036\357\200\262\203\254 \331\2033\227M\014?\332\355[&\225*\224\020\002\333\347\037s\201\216\037\t\224\007[\357\240U(\236.\324U\367\344CCI\210F5}\017T\n\204P\204\253]\207\370[\003q1\035N\257\353D\212\260\000\014\2409\001<\3261\206Q-XH\304\355\326s\213\233n\210n\333\024\317\325\032X\237\034\275\347\010\313\236\310\216\240\211L\027\346\333\022\375\024\261\031\2161\341\265\205uw\375\272]T\260\300\316\367L\234\3167c \353\267@\221\270\002\255\337\320\357&2\326\334?\247xdaD\014\3350\030\016C\033\301]=S\024\301O\321\370\202\376\217\016=\263>F\240\271\256\013\007\230\300\204\307I\267\004P)~3\347\034\372\275\305i\313\255.\266M\301\235\240\376#\204\207\256\272\340\030\351\027F\006$JLt$'\002b8O@\026\247\360\"0\200\254\327\020\373\001\203\267\005O\254\221\263!\374\020\217\363\007J\013\347?qKp\277\255\337b\332\373\223n\243f\002\252\211\363\361\205\265)\270\r\000\256\203PP\251\325\223\263\\\247e\023\247!\024\207\021\342\366\233\033\022\354\370]\023""\3630\247\036\224\341\336\304\234g8,\352\270\320\033\266\345\326*jr\375{\366\014\273\230\032\326\346\310\016u\332\216\030\326\333\237\306J#\000\3550\223\230\323\327\376\005\325\223r\247\332\313p\200x\201?\n\033\037\372\031\272^\246~\257\224F:\233\261b'i\310\206;Dka\215\036\343\356\204;\313\372Ks\272\253\016\267c\036\340A\374\010(\353*\333}0\027\334\207u\366l&\3365\252\301\226\000\006]\360\002\014\207\261*\225\202V\374\321-_2\021f\003\001T\210\304\277\016\033\260\333\266\033\007{\222R'\0222\374\243Dw\177\336\022:\204\271sBM\251\304Zm\013?w\rXA\375\251\305\r\275\262)\006\361O}\365GvQl@\324\013\307\035\226K.\204lg\t\235\223\250\277\206\337\353MW1fX\351\314\360\220\321 \222\246\375\274\213\354\227\004\271u^k\222\362\335\372\263\264\002\001\352\300\211\227\272\365\251m1\240\023\367\020\260\347\033R6\261\352\3715\244\"\\\215\364.k\267y(\246]3\254\323\3315\023\305\2539.\335\026nv\242:\262s?\206\206\\\373\027\300\254\025\374\227\350\240\315J?\342\245\357m\2517=\323\302\243+\204\231A\331h0\301\304\256c3\034\217\034\3429\347\230\254+#Mpy\007\312\367\200\267\204\277<\320\357\241\001\225UY\013\307K\365x\264$\333&\037\245\332\002\300-\000u\0005_\331\232@@\266\217\251&S\\\355\017a\202\032\245\000\237\200H\363\2463W\"\337[\213\341 \251Y$\177\320\372\216l\010\001\016\255Y\255\252Q\323|\341\225\225\004\252\357\023>\272\20563\244\214\273\375\261[\200i)\0200\033\367\330jIv\272\346~4\342-\330\003\201\354\323\001\026wI\r\227\216\341\365\014\363\251\026\"'\300\0160\014\001\303\247\t\036\030V@'\024\231\341\266`\2753\372\004\025\262\023<U\211\253\252\361Y\274\016\360N\336\032\311\226Na\374\243\016\316\007E\313B\313\217o\007\036\034\260\014\231c\024;q\004.b\334Y\227\014g\352+\300\260\001\031\334\367\224\257T\t\264Ps\332\037\241\235p\235\301\007\271\276\332\000[\317,n\004~(X=V-\035\325\315\027,\220\267\305\002\350\231K=\366\324D\330g\3340\021L\035\022(\364\313\032\272\351\360%\344\277,\317\352\275\357\323\th\301\034\320D\2453iCR\240\033\017.\304\2345\255!\267\350\233\017\277\330\251&\233V}o""\031\000KNS\363\254\0357K\231\246\000\300\213\230i\350&\202\222=`\031\316H\2772\270u>\024l\376\022\250\365\023\216m\212u\005\003\221\333\213P\346%\256\370#Y\275_>\177c\000G\372\344&\244D\251\245\367\027\372\034\367h\335P{;\227N\252on\212|'\373,\221\345\310\315P\243\307d\276\244Gd\273.\215\222\\\241\271u<F\221@\346\264\020\307IzVH\242\276G\275\214\260V\262\372\323\203\0101\241\3001\271\177\306\n\023m\266\320\370\323s0\220MB\335\0343+\301a\301\204\257&\"\021\273\231\307V\025$q\321\034P\004\315\004E5\262IC\224\206\227ij\205[\343\004eDM\006\\G\246i+5=\252\361\265\223BN\3036\224\357\235x\325\217\216\253\2373V\031V\261\330\241\2402\230\301\364X\rR=\177q\026\334\221\263\210#\241\360v\030\245TF \200\221\201\355\266\037\370\371\3544\212\3106~T\276\252F\303\214X\222J\267\362\305\336\210NY\253Eb\340\3353\257I\013Jw\275C\004\032\376\344\265\350\242\331\330\355\n\246<\245\023\3675\362\020\250\237O\002WF\202\351\215>\375\263\t\371\203\275o\321\\\355lDh%c8\224\213\325-\300\366$b-q4W\\c\274\024\256\004\340Y\200w8\210\037\177\277\264x&?\003\334\210\262\312\277J\200\271j\276H\016\375xu\230\252\364\031\354\024z7)\217\032B\200\375\335$\013^L\366\035\226Q\210\026?\235\255'\016h\275\351\235\253\016E\251(\304\321PvSs\363\213$\225\026\334\221\004\230&W$\025IwZd\032\025\220\251\275x\026\216/k\301R\\\215_\2761\247\224\000h\337\202\246\0134\"fT\242g#I\204\342@\316\026v\036\243\263\\\025@6\205>@\241\354\345\272Z\n\005\270U[\t\267\213\325\213\247S\"O\240H\212\221\321\251\365\232\037\016\020P \343\037#3\361\213:L\276g\177\242\220dX\027\230.TC.\261\312\213\342\311\276\241\337\006\013o'N\240\244WB,\364\357\0349J\004\354\272\021\232\201\2572\306\\\341b+\251\331\027\305C\031Q\377\230V\006\177\307\372\333\026)\332g\035\211\310\300MYh\374\337\254U\365\256\354\210\221\211\2516\300r\237\357'\351\"~\200\270\367\234\270D\345'7^\334\211\372v]&S\255\372&\271>\023\303\274\306\021V\301\311\200^\220\300t@\367\353\377kK\224*\215\202\307\204R\034\026I\260]\323\354\002\026\377~\221l\254s\244\227>\020o\tj~?\203<jp""\271\037\242W~\0028\330\231n\305U\234\006\330\220Y\272\251\3325A\203\217\233^=\346\006\006\307\313\300=-\224\233-#L\230\033\214\216\230\274lL\233\355\037[C\033\311\\\256\307j\261\214G\262.f\276\262u\035\034\177c(\020\273\325\036\3059@\314\n\306\316f\363\037\002hYt\002\224^\221\223\205\013\276\302\344\262\tk\016B\tg\026\366\331\322t[}H'\010\207\304\362\237\034.\323\3056\242\230\304\304O\305ZGwr\353\315\025V\252\000*\334\307y\367\260=\014\020`r\"\345`\177\314>\3652e\334RS\270\317\315\241\336\r\000\3316\244r\306\342\363\332\004\003\214\247\266(\305\007HD\324\273\2738\030\"\317v\2134\r\244\202\273\002Y\366\377\306\355\351\357ZX= \213\221a\320\222\312&\262)\3022\234\317\325<k\031\275\345\354\255\264e\005\324p\030^\233\200pW8@C3\272\030i`\034\017\273\036\263ed\201\244\013\220|z\210cG\267\205\370\326\217(\013\275\022\215\330\027&\221\253\212\210\r\tr\203*\371\340oW\246I:\266hi\227\036\245\277&\3700\351_\262\273B\221\024\ra\353KV}\327\311\267{\016u\240\260\334\206\355~\221\272\000\242\327<\360eag.g\204\004@\207\335\337,\243\312\002\002\003\2054\235\235\0108\304\302\301\241\225n\273\306\252\306\373\027\370J\330(\242\360q\220\372\313A\3578\"\004\354+\001\246E/\002\000\\\224\031D\250\026\010\367\351\364\337\202\024\\\300+\277\273r\224\256ai\017^\275(f\014\233\017\351\377\303PC\331\307\336\\\341\212\345u\237_\353\313\315\016\263\025\301Kn\231\037BT\366\220H\255\321\024\321\202@<\371\242]\3160\322M\320G\010\231\033h&\001\244)\350\302\027\200\341\327\001\0242\036\3219(\374\035\346tT\234\026\233fS\017\016\301\023\367D\343\0254\304=\311\306g\035np\010h\221N\003\320k\315\261ZC\332K\2110X'\256\315\337\255\366VO|b\022`\232D\362\203S\376\260\t\252u\217R\203\367G\333-9\276\275\356F~T<W\361\344\354\010\344\224+|\222\360tR\363J\260\023\351\nF\251\232%\371J\337\3012\334\327^\262\271`\246\366\010\302\221f>5@Q\315\343Z\024\205?\250\023\305\340\270\267\331|\233p\220\n-\240\270\013\212Is\334\274\226\307A\331c\333\372\336V\225\321\303\013\325\005\210\274%\013\263a\346\252\245\033\255^h\233\006""\035m\227\335\363\234\225\\?\\?\313\326\006d-=\343\1775BS\340e\346\366l\000\037{\231y\3054\\\275\322A\251\266!}\036~\362\352{\031S\321\332\222z\305'E\016\024\372Can\342\273\335l\217\030\007\260\204\244X\324\332\327\025V*\365u\263\177\"\202\356I\035\310\306j\000\304\237\351\342\313\213\236b\201/\267,\224\001\257\214`\n\377^\331\305U\034\310;z5\200\320\366\261\343\0343\312~\266\312{!\237\311vT5\327\"\366\366\340W\314DJ\366i},\3463\270\335\2478q\362pa\360\200\234\226\223\004R\266zO\tS\361\310\027\325\350\005\032\204\037\335h\300\234\0211\330V\352\025\3230]gvY\340\022F\307-\212\246\n\252B\345\252d\233\221\036j\355\022\276\325\2442\361\320\277\350N\306\273AD\333p\303j\260\354!{SqdV\007\254\t\035\253J\034\007\234|\375=\355uP\344\201\345+\320\374\360\362\205\302\337^B3\001\t\330{\021n;,\255]\336acg\302\236\222zx\361\350\n\022\367\230Pb\325\343$[=\333>\3107M\205x\303{\236a+\223i\201a\235\3743\3421\035\314l\300\324)\352\236\010c\252\330\010\347<{K\361l\300\220\212k\330M>\tow\237\006\206\327\266\366Nt\027\302\021u?/5\233\230\032\311ii\233L\327\035\314\005i\345\0336j\237\273\205\332\356\320dsR\002\007z\221~\206\266\334\257\010[l)\005\237\210\370\005\243>\3732H\201*\034\016{\335\240\346ew\217I\3377\261+3\224\272|\220<dil\350\277\332\341\003\337\236!\3706,\235\324\305\004\200\267'\031\325\326G\205v\203\346:A\310YV+\376\2732\036h\310V\215o\021\263(\241\033\013\266Yn2\346V\306\313p\253T\250L\336\233\022\246% \227n]A\001\023\312\037\272\267SF#\324\331h\372/\315\327\336\001\3153\214P\014\n#Z\354\324\357\224\325|\371\255\025\301I]kg\226\307\302\300\253M\3245S:\257\336\224\223B<@\313|oZ\355#L\251L\350H\230\355\025 Cz\026\021\206\263\343\030\031P\376D\n\240\331\356c\001k\276\254\326`\201\364\010\2033Sv\234\233\001\250\204\315)}\301\320\177.\337\222S\tR\215\314\014S\253\025-7\274h\371\335\356EO\027\263m\"w\311~\213\201\225\277RAv\273}.[J\272\306\307\340\036+:\255\3524\310[\027\007\241A\256\206a\t\353\241<\231\337\357F\034i\254\0250J!'\005d0c\017H\305\317\352=\377\267Y*\334gw)!)\211:+""\254\3240f\211\177\3152U\317{B\243\357\032\302`7-\342\321\032/\234A\213\2578\0178\255\262.\030\232\376P\227\367P\002\021\313\360\242^h5\260f\0212\003\245^D9-4\265\201p^\330\307W\037u\3257I\342j\321)\312J)\033\035SSB\315\034\363i%-7\274\036\245\321g\363\005\250?a8\325#\021\263\347\331T\320\004\304\347\254\275\017]\224\023N\030$\202\342\211\310Y\306\n\276k\013\037\216\262\364]\322\271L\250Q\276Q.\335\353T\325po\302e-\323]E\000\352*2\004\271\205<\250D\223\007,\247Z\353!\205\340\261\332\315\322\316\024\0323\325!Q\240^\016\302\000\306*4\233\355\323\215\310\010\262y\374\035\271\304\003N\301\235\0058\354h\351X\202\241\304\351\300R\236\277\202i{\016\363\343v.\177\307O\351\005\302\257#\373Kn\022\371\266\210)\\-\\\037\315e\340}\217\top\243\200f9\265\222\371\370\247\374\"\213rB^\004\334>QH\351\363\247A\360\321\234F\236\3252h1#/2\341\236\226Prb\024\315\304\"\331I\262\372\t\311\304[\201\243\2453\340\241\264_\362W`\245\022\343\343\276\334t\230\302*b\271y\342\261\373\332\210P\275TT^3\277\255=Y<\027\374x\030=\300\335\204\r\032k\246oLT\013\030r\342`*\256\316Nf\203\324\205\232\336\202\277\324\013\250 Wh\3702\225$\000\334\244\310\025V]\036\"V\3505\247b\360\344E\306;\352\330\304$X\370s\207\343\360\241?eH\233\361\367\325 jP\336\244\373\317\322\203\201*5\360\372\306rq\343\322\035\336\324\006Fy\322V\027\264\224\306\202\374\253-\016\t%\225\322m\\6B\n\315#\250\026 op\202\363\243>\353\325\210w\323\333\314\201~\031H\330\353-\352\342\361\252G\215&l\362\033\310\006\305&\264\364\377\021{\272y\216\332\261\221\320\177\226\377\245\036\212\340\372p\302\212,\031\311\013q\362q\200\206\320\006\203\352\3423\247\247\026\370\222j\231+\027\253A\262\002\311\307\247D\340\3578&EnP('o\006\307\317\373\370\225\201u\304\275\213c\335@\327~k\256\212\304A\352\265\013{`\0301\014;\373Q\253\365\350@ZUDxQ\230\311\007\250nlm[vj\260>\306|g\007\025\370\235\031\006\245\027\3057\363v\246\263\215\322\377\345\344\026O\222B \025\336OT_-C\240\353\212q;\321\2378\372L\t\000\201\223\251\307\354g\033\301GJL\036$\321xB\027\255VU\323""\247=\337\0028\255\006\352Q\266R\206\002\005\n\027OHW\006#\224\322D\332\006F\300\364Fu\277\313x\331\366%\264\222\241\025\260\353B\270&r \263\207\201(\177f\215Fp\357=\027H\226N]\202*\231\001\350\233\324\360Q\360\333\266h\203i&\310\302`\267[u\2752\357\3348#T\277m\260z\213\032,\323+\351\237s\356\241\016\301#\365\226pV\346\014\007uI-\220\301?\334\251\227u\213[h\320\022\350\0261\354\317P\212\233-\220\024\3444L\317\001\022\376\235\001j\255I\376\361I\010f\214\216\2351\344\262#{\353a\212\314\205\325\222]\3628\2323OO\027\301\212\223 E\027\030\377\322\211{Z\366Jc\275\241a\206Z?\210\rp\311\034\233\277\255\363\331Z\03316q\373L\234\306\036D\n~\326\013\225;9\261\262N\014\212\020=\376\205YB\322y\243\306[*\307\217M\36777\366sO\035A<\332\233\365\357Z)i~\263\033\367\200]\264\205\341N\204\376\240\014\271\021\034\201D\300fUi\2445\336\230\033X\371i&=\301Q_\355OIu\177&\217\324\373b\360-6\364Ld\276\311&\0100\327\263\376\3078\000a\221-\256\225fHS\275 \021\351\224V\000\334\tL\317H\353\241\305\327\317\205\365\364^\201\344\264\261\313\244\237M:\034s\001\034\225\307\247%1\004\013z\362gaPR\315k\365\202H\323\026(y|\007\230\215d\361_g\021!x\225E\0132\236\025\301\312\263\303\336\272vjF:\242\303\306i^O\277\027\300qP\377\017\304\177\332O\000\273\016\213\303\027\250L\302\351go\035K\341$'Xm\241\352.Up\035\303\000\020\016\342\241tA\t\250#\236\260\377\331?\333\252\210 \364\031\274\372\306\311\326\347\256\016\354\207'\363g\264G\211\027}\014\000\254\246\240\023\025\217\272\351\271\014\236\tB\226\343=as?&9(p6_R\322\022\372\306\221\243\026\204\025\233\200Vb\240\003fk@\\\376\256\000\235\007GI\274\200\270\033W\2427[n\314tp\r6\321\312\257\321:(\223\321\204\237\200\347\255{T\030\033\223:R D\3168a\353([jA\030B\344\260\205\014\tI\246\022\217\251\251\342\334@l\033\027T\313\357M\001\341H\020^F\200\2461\350']g|\217\230\372\331\322:J\260\036H\3475oAM\360\010\000\246\313\230&\031.\202]R\023\230q\014^\305/\207=\332e\216?\333\270F\3472`m\205%\034\315;\275G\347:\213f\320\266>]G6\306\373x\313Ak\204\3164\276\220,\r\255""\203v\372\331\007\367g0\316NZ.4\325\246\013w|\010\027Yd\344\201\301\323\354\312 3\004\035_m~\024\031\214Xd\227\263v\317\331\331'\212\037m\022\261\220\254\010\212\263\333\260{\033\230@O\036\274\360*\216\312Q\262y\240\032\016B \366\024\3359.\027\343\3767\235U\304}\210\216b\336r\\\261 W\257\3434\340\301\307\306_&\211D\010#\032N\362\200M\325\245`\375\374!\255F\261c\355\242\234\001\2054\331\030\203W,\224x8\371\241\037\010\177\237d\024\312\270\021K\t|K\207f\354n\374\252<\020\223\337R\340\307\233\335\021\344\005^\033\027\027\r3\250]\2421\334\210-kT\220M\260P\214v\364\362\274\242\341\"A@\236\366\304\035\334\340\273l\250\320N\252\025\207\024v\264)\\Q*\251\216\025\210\266\274\336)\327\225D3*4\333\t|\221\016\244#$]\377\331\375\217\204b\231\177\362)\024\035ip\307Z\347\305\002S\300=MJ\362\034\225=\002\265\307-\273,hsq%\027\345\370\334\027\177-+\033!\n\242\234\034a\203,\322\200\250h\257\232\207\013\274\275v\254\206ly_\253\357\201\271\211\033O\377\274\247\021_Z\356\222@\240e\316Pi\253\235a,\033\351Xe\237\210\310\235@\311-\251\217!~\235\346-\237\333\262?\037&s\341\300\010\251\336\220\264\260\263\246R\265[\266A\340AI0\t\256\300\270\267\277&Ta\271\210\032Dw(P\340?\310\220\237\220\230\013\017}\342\2106\"KO4\376\036\334/7\031oLK\220?\307N\366\233\027\310\241[Z\215G\\\316\t\315Y\310\005\211Uq\311\314A\027\320\344'\354\255\310\330\325o\031o\207 x;\002\\\026H\243\212\312\217M)\274\201\327\261\324\366)\270\320\242\345+\337\224\023U\342\3170\225keBR\271\030>}_h\205c\225\245\244\037w\211b\024\220\3123&\353\336\025\364O\367\027\340\365\306\231A\221\321\013c\336\000\373h\347\301|\003\300\263\021\305~n?:K\306\227\317\2405W\245\"ASK\254\351\r\320\342\n\2246\335-\227\241\200.\247#3\234\236\332\370\033\204W\331\203\242\016TY0\021\266\370F/\320\226!. 5e\320Mqaps\245\303\306\010q\347\3554~\000\251]|\322\222\327\307\226\006\334\025E\3378\303pf\262\325\341\323M\227\\\302\364\307\262\031v>q\020V\023~\207\005\330i8iC>\323;Tx!\365\364\266\0271\013mi\315V\243\030\322\271b\355\000\271\212i\230\t\322-\206""\352\303Ch\276\331o\201\277^q\240\361\221\334\305\275\341f\212\326\317j\375C\264\306\226\024\214Q,\321\003\374F(\354\230j^A\341\304\305\307\344\361\352\2673*\201\034\016\323\265\216:p\024\213\243\375/fq\373\212\313\364\316VY\342\346rt\024\322d\030\355\341R\306d\277\357\332\265a\311K2\357\304\021K\334i\"\357\351\206\217d\346\"\262\225wk\316\241O\203r8\222\343\366\033\314\276{+A\232\271\376\332\006=\215Ka\357\3211\347\234\220v\361\247\035\332K\244\213\302n^|\330u\325\377\216\246\350\317'\350n'\261W\3126\006\202\221\005\010\3305'>\325\325\264#\020i\326f\325s\253\270o\342\270x\314\272\275\003\250}m\301\r\027~S\343\370\226#\332h\251\311\001\330\300\241\333P\205$\277_\033\\\253\032\336\320\306\2633:^\022\2213\320\016&*\274\251\001\304o\231\030\203\213\347\035m\022\371yL\226\345\367\004\316~\303\301mNV{\n\325E\310\0078\206=&\374d%c\223_z2je\344a\031\212\004H\276E\272W\346\277\225\276Z\2349\177+\320\237\025\375\324\202\004\352\365\334\0202\355\257\236[\214\236#\324>/\\\250G\3438u\272\tfe\354\016\245\023!P\rU0\300\006\362\347\360\305\225\004\271\364k\346\352%\216o\355\327\264\2536\010\\\2351\200\037\001\373Vp\344\035\301b'\333\005\2755\232\232\231\rE\267t\203\273\242\017P\270\030Ec\224p\306\002Q8i\344\tmPS\315A\205\345\330\023\014\206\000\256\364\222\217\361\032,\013\210\017\350q\275YO\212\263\2548\377\002\230\332b\341\206XD\307RS,*\234Z8\314R\370w\033i\215p\317*\230\3471vu\221#\323\214?\036\216nSk\005R\004\014[\253\263\2566nT-\223\312\014;\202\331:;\215\227\244\307E\026\357\304\234\307\242?2\3158\006\0307\373\207\363\2726\260s\235\375\0278\002h\272X\321\250\"s3\230\"\333\331\263\305\354&\326Z\334\344\277\013\325\335\005\345\202\243\030'\240d\024\265M`\352\374\267\345\n#\217Q(\030\235\200\375\346L\306(\227\370\261'\270\302\006\013k.|\250\032\320$\377\221g\241|\206n\274\305ao\324\234\372\313@\216\2440\344\230\030\314\304\022D\274u\201B\353\035\207\246\346\201\275\275\354\344\306\326\366}\005w\077\077\353,\223\302\263\007\270\203\273\352 \323|\355\0247\032Z\000\310\324\210s""\216\207\n7\352\236\314\001\t|\213\214#h\246\223?\334\020\237K\016f\243\360\333W\035b\\\037\240\2749C\203w\205\235pe\031\366\227\357\201\201\231\033\375\261eb\362l\354\362\374\326\224\001\246\200\205:$\360p\017\375qV\370\300\026\024\025\364;\214'\334c\223 l\000\273{.\215\257\035\302&\311M\222\353\370\365v0S\317\341p0\337\033`\227\275]S\234Y\354\352\367\240Y\264[6K\201G\217\267Z\341+5\333E\360=\021\373#\t\257\231\027\342x\327\224\264<\373TL\302\230Ti\374kB\217\357\177\354\311\311vh\031\006\341\332\367\r\026B\224l|\200G\240L\273\364\311\325A\340\364\006\243w\331\272\360\243>8W\371\216Iyzhc\257M\004\017s\331\241\312\205\260\204\273\2647\217\236\224\261#\222\330\2779\257I\270\251\356\266\373\305\274\250\264c.\322#d\n\353'\326`\205\217\247/\313\366\035\257\364F*?\005\301&\005l\354bC\236\177\232\303O.[\t\014%\316<\326\267\220\370\314%\365q\272\244\201\243\254\346\000]\2077\024@ygt%\005\303\335\277\311a\303\342jG\314\203r\036\2552\017\246\247\316\250?\341\243\rV@\260\236\200\253\035c\001W\276\324\300\364\321\217[\260\350GE\340[\270\353\217k!d\372\345\374'\014\254\313\312\251\234\363+\247\344\353\262>\317}\211\265>d\321\371\224(Wj\262\244\341\201\270\231\273\3300:\3031\267a'0k^x\010D\312\274U\273&L\216\2774^\022\205\022\225\323j\332}\377\304\372|\367IV7$\323\311\374`\372\264\374\253\215d\335\245\032\264K\326\322_\260z&P\247\025{\031N\304\006\262y`|\231\315kZz\207?\376\n\216\211_X\222\211\025\027\271*m\"\305\232O`q\260*L\001\344\n^\013\254\014\302\361MG]x\354\212\277<\007Oe\227\241aFy\251A~\021\232S\323\242\365`\323\326{\273\t\376\336\002{O\334$\373\007\300R\016\030\332 -\350\33405\0225\255$\rj\253\024@\231\343\326\362\250\217U\237n\332\206\364\271 Va@\037\252\3425\212\3263\200D\355\305\262\361\017i\300\031\375\025\016\200O\266\314\344nI\376d\311]\256t,\362\373\\R\010\347q\355\276\302\317\251m\226\263W\360\254X\\f\200\371\252\024\r\204\002\243\302%\304\247I\372\360\213\346\020\3773:\324\205\004]\372\"q\212\035f\022Wb\234(\321\242\235\351\230\023\2376he\203\n4q\301,U\330\336J""\320\r[\177O\201v\267\230\027\032L\355\010\034\026\213\351\024K\331\352Lc\003t6\371\233\301\004\212\024\220\007\343\270J%~\274;\274Ne`\242o\375(\034\313\203\231<\233\210\021O\207\211\367f~\036)'\226\273xf\347\322Xh\352vm1\331#\204\302)C_0\267L\335\302\2557\205.\222WDW\210\305\211rH\265\264\002|\313\233\261\242\272\n}\261\340>tK\307hd\360\323\023\377u\325F\206\274^\310i\217\201X\301\256\264a\314\341\245\032&2\200\006\024i\235\217\003T\243\255\324\227\222#q\221ob\010\231\021~K\036C\214\204\371@\274NK.\243\221\177\327.\010\3603\313\374l\307\247\220\004\036w\301\177\316\201\244g\217\034[`?\372\305\204\207G\303V\351\005\023@\317\001\327\235\027\310JMe\030\210\001C\266Anj\323\303C\242(R\216\007\037\326\246k\355\266\260wb)o\004\260n\030.\330\304_\021\005\337\026\225I\014\005n0(\000=\0108\273\001\210\263W\344\001\330X\320\214H\024\352J\247M.\t\"\215\305D\311\004\365x\241\302CY\324\224Q\247\244\016\353Ez\346\266\2239I\2309\224\277\324O\366\017l\021\336\331\233\t\025C\376\314L\021\r\246\r\302F\300L\\\327\\fLA\257)s\225\241\221\034\202\205\240\275\\L\"<\373\214\202\370\250eE)\024/:\363\3232c*L\245\260qdzL\272\204Y\336?z\354\364\035\345\245\357\232\316-\251H\242\002\305p\207\211\305\276\310\016\271I2L\320\265\345";
    PyObject *data = __Pyx_DecompressString(cstring, 44325, 3);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (42005 bytes) */
const char* const cstring = "BZh91AY&SY|\364\225\315\000\0161\177\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\300@@@@@@@@@@@@\000@\000`\317\004sps\317\023`\ry.@\351\361\350\373\336;\346\253\276\341\000P\007\256\361\365\335{S\323l\37247\213\266\257\244\236\245\356\373\324\336\033\260j\370\367\274\331\237v\200\235\267f\200$R\244\242@U\021\3376\367\250:(\240\032\240\007@p\367\2064P:\365\333\313s}|8\003Bc_g\323\245\005\006\343\007_w\273\227A\340\275n\331\367[v\272\333wa\353t\350q\357m\263]:\365\202-\324\341\365\211\333L}\216D\221$GK\330\227\254\035\205\360{\205\035Ie\267n@{o\235\334\372\033\337\007:=\267\336\365\337{\343\225\367\332\217\240{\332{\335r\350\323\357}\3574\242\261\\\257o\251\313\037{{jy\365}\351\t\353\353.[\3375\353o}\340A\335yu9wv\325\366\327w\275\356_W3\357\267\212\366\257\273\357\276\263\356\276\356\371\337}\212()s4\240)l\366\311\315\357\233\357q\363w\335\236\373\346\307[\336p\001z\275[v\356}6\272\352\266\372\356\323\356\007\336d\007\257\247u\357{\331\275\325\272\273\212\3465\361\346\367\266$\276\265\322\334\355\272\305u\325\357\271\357Z-m{u\237n\363\336\361\353\332/m\200:\231Zf7z\335\264z\341\307m\263\355\336\265\220\002\326\236wvX\232\253V\367\334\366\325\342\353\356\343\276\360\345\303\327\331\275\347\275\311<V\251l\321G}U\362S\355\224P\001\\\264{\357\202\371\016\371\353\357t\373\207\221A\357|\360{\275<\035\273\335\275@xoq\275\233\274\347keT/\273\274\367\335\357\275\304\335\335w\207\317\266\357{\007\213\207\212\362-\215zR\275\231M\233l\252\366\032\016\233f\206\366tv\3154\330\312V\325kZ\255SRP\000+\317`8\003\320$\025B\250\000\002SH  \t\246@\000\020i\240\000\021\243!\2102\r\000\006\002d\001\032LB`$\375$\022\232\004\020\204&\223 &\232\247\246\323Q\240OPi2mM3\010\312z\230\237\25045=G\352d\364\311\224h\332P\310=CF\236\210\t\004\204\210@\232\206\221\350jO!\251\351<)\351=&\023\304jb\032\036\232\2064\207\250\364\203&\305\036d\323R\031\006Cj6\220\020\244\210\010\020\321\024\363S5\030j52M\351\031L\365OS\364SG\250\311\223\3114\362\r'\222a\222i\265\000h\032\003M\001""\240\"H\211\240\000M\023&\215\023FM\r#\325=6\210\247\352S\364f\204\323\320\215Sj{I\224\323M6\233Rc\322\200\331\031A\2020\004\232\210\204\002h\023S\000E<\020\247\350\322\215\351FF\322mM\036\230(=\023i\031\032h\000\r\000\000\003@\177\370\013\232\366W7\270\240\214:\331\361\234\243\002j\310\265]9\350W\224\252\310W\254\374\351\306\233\275}\353\371 \375\024_RA\275]\367\3309}k\371\334\236]xnc\303i\022V\331\000\344^\311\277v\332b\371P\244\205\264is\354\233\364\262,ty\322\346\334\234\375\030\024\365M\232o(\245\365\270\353\307<{k\016\276<O\037\325\361}\246\262\376\324x\256y'\203\331\303\3738\211\325>\274\357\315j\343\177\0265\247\347\277\216\2705.s\356\344\236k\233z\307\177P%\262\204\231 ?E:N\350)\313\3727?8`\374\362\035H'\357\311\357\3104\007\333\262J\032\003\200?\357,\017\324\201\341\037\277\034# \244\310?\212\010\t\010\032\037\277\366\367\376\337\223\350\217\361\336\367\275\367\370\250^,Q\360Fi|\327/\260\337\335\014\177\331\377\237\371\375\017\361g\342\261\241\343\237\210\002b\004T\222P\005\261%\240\r\202\376\220\326\032\341\305\205_\2123\006#\215\032f\265\275\363\014\301r\362M\322\310\3354\372\223\025\267\026\245\324\334\2335\"\332\334f\365\206\326\310=/\351v\362\315d\031\314\205}\032\231\302-l\030\360\\\221\034\274\272c\257P\313z\234WvB\226r\3632\344\326\271\232\333l\331\270\237\030\232z.K\304\224E\226@\345\273\276/XE\027v\263\017\0213xq[D\316K\212\252B\214\264a\336q\017\024<'\023\377\273\317\226\373\335\376\377\340\237\305\376\217\354\343\300\r\340\033\2047/\0017\257\027\217\366\357\337\277~\355\333\275/\0007\243\274\035\350\201\274M\353\2747\237\364\377\240\310\201\010\272\r\000\tCh\240_G$\245\3106\326\001\263\004\220\322\020\244\260\2145 m\206\000\024\0032\232\201\302\022\200\211)\"\202\000\202iTV \020\007\252:P4\240iWK\245\r!\211\216)\352\364\251\240\320:\340\017\346\014\2242S%\324\206\247S\250:de\017\261@4\n\251V]\013\033\r\266\333f\317\355\037F\330`\330\006\306m\203m\203a\263m\263\201C\310\036RX\231`(\"J\010\206\201\242&&$\251\202\246\030&\206\210\230j\002\n\010b*""\220\230f\246\251\nR\202$\n\010\242\t\250Zj\206\"\231\224 \200)JJ\032\240\210bR*\010$\241\240\nh)\n\004\242\212h\202X\206\232\032X\226ah\n\242\202\221\252j *\250*`\211B\250\"\nK\300\312\302J\231\ns\0142\301\250\242\212)\n\256\304\302\244X\302\210PJWa\255;]\216\315\211\2606l39\2600\340\210=`@\245^\330\362\317mA6IN+\332s\372gs\027@\261\254.1&\032\3733\177?\355\334\344\373\257\007=\262\014\350\343/\371=i\235\016es\241\024\244\222\377d\377\331\351\206\373\375\321J2p^\027d\010D\236-q\372\322t\274\212SQ\376H0\217\265\206\022L\024\357<\347\342\223i \226\224\250\240\346\306?\316\303M\007\363\351\307l\343h\254\261\177\366l\274K\256\323\3629A\177\031\377\307\201\351\213\325V\004l\307<R'\302B\010\230\254\272W\037\2151\237vmx\232D<v\034\332\237w\361\025%*\301?\335^O\342\261\373\231h\2177\324\347^\352\243\311\336\370\374\223\213v\264Z\376\347\017\024\2751\215[\210\254\270\345?\227x\265u\323D\037\363\223\301=+\376/>X\277\353\2509\230Hf\366\204\305s0\023\262L\0246\303\206\004\177\3171\273\320\257J\212X\3236\262n\005\010e\240f*\246#\227\204:Y\313\375\311s9\255?\351\254J)Zp ;\365\303A\266k\2451\no\221\373ki\313B\210\027\212\251\202X1!(\177\307\253a\226\307\030{\nIz\222\342\024\177\314\003\221SU\030\223\307\222\223H\221\246\030&iV\316`\376\274\030\342HX\232\033\374Hq\342\363\322CWm\373biGre\301\177\205\257m4]h9\307\234\224)~e\037\333rrT9VB\021c\202\266\232\016b(B\237\002\276K\030\316\030\255E\375g\315\206X\032\363\352r\203\312\010\370\0231\031\245\256\035\270\033\214T\351!\024\"\002Pj\310\340\346V\022\327\342\316\000\021\023.`\375\344\317z\270\022\021\204\335\370\3070\3470\237\375gz,t\340\027V\352\016\232\030\226\363\241IK\252\201\271=I\301&gO\311U~\345\032\371\032>\321\336\351\217\237%\213\t\271'\024\220\2764\372\253*$\227\255\0042a/\201S\346e\231\224^\r0b#\224j\202j\220\366!\204\307cN\224JO$:\034<y\354\234HJ\310r:\0369\335q\337:\013'\305)Y\3076\246x\342\242\311\242y%\210\252|\2551\025\230zY\353v\305'uN73\374:&;\350\342],\024\027\265\232\334\2448/\235\366bLCf\224\347\312\354b5\312""\240\370\321C\021\017\331e1\335\235\017\237\327F\231\031\360\237\346\263:\211\335K\210:\205\324I\222!\260\372\001\243\366\351\257\267\355\345.\271\020\353\363Sl\324N\255\026O\236k\2061s\363\307\014?\266\325\212\021\371\251\340\240]\270i\250\371\225)\245YL8\010\356\006\254J0\214\003\240f\235vspH\265p\336\250F\263\202\353ti\210\022HL\t\000\220\0270j\271/\217\375\024 \264\024]\016\301\306@\353\250\216B\276[\226\340\360\037\022\006\223\027WK\220g\r5\324\224oB\317\245'\210\303\006\257\275\326\361e\326WJ\206\207\224\357zv?\002m\354\243\342#\022\350^\314n\376\337\246\244\365\237\352\213K\204\265\030\250>\213\n\273\355\216\321+\364\325\245\333\021\365\216\007+9$\235B\250\307p\343=\343\340\345\376\327?\027\\$\034\366\333\346]+T.\332P\361S\347\330\360\300\367\245\321\271{\225^I\341[&\013%RO\201\t$\3527\276\270\344\"\036\273'n8\367\337\264\375*\264\2757\355\2360\377\244v\345Ei\326j\215z\323B\355\002\321q\337\324\303E\rw\036|*\004_\312[\267\236a\231y)\020\211_\026U\335\275NLf6\376\221\232\252u\035\311\257/\034A}\205\346:\330\372\3633#\337\331^\261\376\376\275\370W\260\324\033\310\216\335\272>\361\267Q\014\351\377c\031\226\237u\023\300|\226\003'Dq\202*\276\0221v1\302ps\013E\204\031}Y\361\376n\220\223\026oS\007\035\350\341\316\274m\027\214\267\355+gr\342\205\204\036\002q\355\327\262\205\244\265.Po!\330&uM!\233\007\307\t\227X\243\251\006\312E\213\260\035a\207\032\213\203j\306\3715}\313\364+\354R\220\333r\242\317\361\301\274^\277_\0072\353P\\\264r\336\244yk\231\332z\226\365?\375\215~\361Q\334\022\357\367\230\3577x;\315\357\374?\253\036\363\037\013\001`\305\2033!\r\024\024\244@\224R\245\024#J\327G\243\320\350t7\003\204\007\334\023\230~\274\241E*\322R\221\001H\322Q@P%%\0032\205\"\221\013II\0232\224\215*P\211IBQBP\304\244HR\005!\022TK2P11\021\005,T4\000\320\320\320=$\240\252\030\314L\032\206\200\310\360#V v\002\207\016$\223\005\001@4\000\367v\213\332\366\366\247o\001\177\325\325\375\031&Jj\010\202\010\236\343\271\303\2733b\265\344\357\004\245\257'\361\260\354\257\027\213\245\322$\2200""`\002\313K\203\027\017\336\355\305P\333H\332@\350@\026\261\313\257\216&\210\335:\013\322 \001\346\033\n\033\336\020\006+f8\\\0142\230i!\250\244\241(\242f\010b\030I\230\212\n\227\307\310>O\023\313\317\217\025\252Z\007\366\276\367\210\007p\001\347\205\242\220(B\232Z\002\224\n\030!\232\200\211&\002\"\222\201\242\225*#\276h2p\212*\211\250\212\0133\022\01302Rh\210\361\271\250w\313]\007\241\340NPI#H\221-)A0Z\\\311b\212 \211h\377X\234=\005@A)\321\336D\264\240UQ\036\235W\257R\350\252\357+\275\357\347\016\306\035!\376'\301\3334\246\243\030\304\220\2264\331\017T\036\240\217P\000\316\2514\252\363@\324\2173\033\341\232j\316\006\231|L\022\215uc\216\240\036\027<\341\270\020$\223S\314?5\211\270\200\202\235]\030\304\312\254\2270\\\212\240\315d\207SI\260UY\003\265\2608\327P\355jq\227\244\312\225Yah\203)e\363\2011\227 !\307\250y,\242\236oSI\3537g2nrhX\333\205Z\226\234#\247*\313v\314\321\002\272\273\254\251&S[9#\346}F<1\340f\344\357\370\027\2042<<\236\021\221\022jrb\231I*\001J-\374\213\336\001\251\035\201\270w\216\2279\234#\233\375\033S\226\345\003\246\334\311\226\351Q\254\310\252\"\\\314\007<#5m\016\211\265\210\231\025\220P\224\224\243\026QE\002\320\203\342_XN0\207P\016\250o^k\300\347\245:E\325\034N\240x\250q\2021$\214\202\211${\212\031L\356\360;\217\002\250wwN\031\260\241\260U\231\022\326*\243 \025\002\004\242\245W\020x\240qW\210\355\003\212p\321\2353\016d\315\375N\360\353 \306\033\320\220I\274\316n\336iw\377\354N\014\276\356|M\021j\033f\335iN\006\245C\032\255\254\"\365\244\217J\003x\033\304\344<\216\265\314\231\022i\003\242\360\027\210\234\210\356\3437@z\314\347\t\244h\265\273\271\271ax\211h\333\032\376\270RsC\232s^~\022x\0079\264\334\234Sb\373I\326@\353\236\376{(\337h]\226]\333b\302\235z\014\303\001\352\373-V\261\347\274UuK\352\021\344\007\251\036\240\340\207\014\346D#\226\207\036\2408\002p\204^\332)\223\227.'\023>\247I\032h\342aq\251b\320\275\341{X\254);,\314+\213\304x\356xe\232\026;\177\223_3!\260\003h\352\230q6\261U\213\032N~\356\323|P\321\224\310\262{\322\205\302\241b\213\021""\355\227,C\220\034\200\344\035\241\317\000\324\370\207\220\361\217!O\365s\341\300\332h\335L-bZ\256\332\366\2565\207sW\t\022\3306%v<G\203\3008f1\314E\362\3567#\377\307c\326f3e\010UL l\274$\034g\265X\275s\014\203\223w\332\246\307\2569\251+^\220\364\213\341\257R\3606g\315\227XoGx\020\2068\033L\304\3546\026\266\332\376\311\211\023\276\234Ld\253\235\234\036\013\300\340p\331\263-\313\271\003\226\t\255u\303y\232\306\315\305\345\273\014\214m(\247|\336;\306\337\325\310v\201\265\204{\267\035z\235\362{\305Wem\233wl\230_\206\333\366f\303?0\347\217#\227Y\327\327\333\233\247\226/Z\275\373:\266\264BJ?\212c\201d\303)6\225\022\305K\272i\2558\325\031\242x\361\266&\304J\333\265L4\330\323f\020\000>\244~g\321\304\021\0002\365\310\"\000R\254\007\305\367s\367\243\373\222\177\344\201C\343\221\nJ\nT\374\374\200\3753\357\351>\344\033\037\314|\206q\r\241\004\001\210\031\0300\221\025\222\031\201;\202L\377\007j\364\031\243\343~\317&\375\005\333\312\306\367\014\225Yk\221L\344\247\256\241\344\315O\201\351\202\356\363\367|\017\242z\032 \230\344Z\331\23066\261\231\315\254a\343\266\235f\273\372\017\365\247\214\211\221\022\246\023\330i\004\017\200\307\362\335=\213\335\232\017*9\\\254\343Z\315/j.\3775X-\223\256\354\313[D\304\354\354d\357u\223\254\247\341\341\215A3%\021}\363\3655\271\303\336\373\376\257V\337s\367s_EX\253\372\341^R\214\346\313\304\234\001\0103\262\211\303\005\016\326%\226S#\004\314\366j\006\301oXv\225\207\304\005\337\315R\321\252\2034\3163p\275\274v#\315\0370\213\302+m\2740iG\"!x+\304\320\013\364P)\223\305&m\363h1\346\205\276\213B\272\177\337\352s\000\243\2135R\225\342\t\363gD>*aL\036\212\020\207\236\303\302ZR\2310\233W\021\360\312zZ\333\277\253\237\362N\256\361\037\"\342~\364b^Q\254\316R\315\225e's\234\225R\270\377k\315TJ\355\311u\267\257\274\264p\374_\305\354\317k\333/\251\337m\267Si\034\214\254p\362?\002\217\303\016\337\343\257s1\205\333=\267\313\374\353\367\232_1\315\016h\322\2016\373J\r\"C\307\t\364\035h\364\252L\366\256OC\004)_k\240\247\360 !\222\020\344\242\213\224\256\353\r\302""\355\316\363\205\267H\330\370\374J\001<\236?\237Pi\362\230+\276#\006\tC\375p\224_k\3643\326b\206\206\2769\330\226jv \020\263j\203\003\253\226g\267\205.p\325\247\307\331\212y\376\365\030\353\223)b\232*D\271-\236\355`U;\213un\314r\234\t\237V\213;\275\227\251\355~\341\231\030\324)\316F\240|\245\371\230f\242\254e\005\017\002)\230\213\3447h$z\021B\347\215\315b\343\215\322\024M\026v$3\321\220\273/\214\027\250n\326\007\354\207\240\350\330\234 \270\302\372\002\371q\311\343}\235\037\037D\213.\310]\304\303\031'q%\023?\241\303\302\366U\234\242\253\366\n7C\2100\030|\232\334\262x0\257\n\r\2130\027%\025N~\2278\235^2Xzt\337\320\314\306=\\9Q\310\315\235&\314\372\356\3750\267K\262\322O3Z\353\275\301:\223\331\272\2177N\314a\\,\363MO>\355\023\023\005\014#\246\326,\273\214\264y\"`\216\316_Wn\235\232sQ\004\314\361\017\237\355\343\247wY\r\267G\"\271\350\037?\177^\277\243\253~\375\006rA\255f\2645\337\rThhxJ\257C\262\024\244\224\376\217\254\311\363\336\345\244A\t\361\365\2755\242\232\330^\211\254\2033\210\3335\343\237\253\256\022$\371wy\377\301\226\311i\3653\004n\017\214v\215\327\301K\023GOrZ\273J\203I\251\267?#m,\354\371]\251\236U\265\302\344Z#je\232\374\236\021\205\370l\310\272\256c\177;\004\272\360K\311\034?\237\226E\253\020\214\237\226\2148\361\374\377\256\201\240\306\273Qe\342\366f\316\340\345\3206C\321Np\331\310rV\271|\014q)afb\376\313\266\344\177:\265\314o\325\373\007\362KBC\375\320N\276\224\227\233\245\004\274F\216<\r@]\t$(L*Z\304\032\236~g7?\016\225\315%\177\222\277\201\003vh*\201\302\362h\257\3268J\333#\270\342\013\\t\211\"\324\032\234QO\206,`ZW\210@k\232\327\010l\256\234.=,=\005\031\260GrC\235\215\013L\027%b\343r\003\223A\315\343\3646\350\242\216\211\226$b\201i]\347\034\240\210\"\335\356FIj\326\314\323\300!;\241h\312\255)\364k\212f\302\341v\210\343\"r\221\227=\350Bd\005\021\277~\375\366\215\033\262\032\234\265\035\002\240\326\353\032g\252i6\331]\350YYXg\022iZFHl\362M\021\260s\344\242\311\221\323\270tt\206\274Nu\324Q\254\035\261!\201_{QE\230*M\"\203R\375\354\371`\017\372b_\365""\002\361$E\025\335E\250\320\324\323\273|\303m\314\027mm|\241D\331\370\t\316\301<\346z,l6o8\006\353\227\271e\227\343\221\241.\250vA@\264\002y\237\003\236\203x\204\217k1\372\370\207\0314D\364\326:#\315\206\t\337kHa11!\000RP\364\300\014\032\003\2068\025CW\010\347\240\363\275N\363\321{\037\326d\177\353h\031\262\201 f\004&\202\024\206\375\016{\350\354h\330m\020\001\346\223^n\000\3340FCz(kR.9_\305\303\224\343J\235\306\316\306\360\225\223\315z\311\347\327]\016W\177\273\177\237k\304\333\324Wa\265\r\032\332\233\354\\]uV]y\335\317\230f\313L\310iF\371C\343+2\203\016\201\256\246VW\225(]+\316k\363\035\321\321\347\300\344\235\205I\235\275\357\013\301\323\324\271\345\272\223\301\301\3570\317>\244,\346Q\330\364a='\25080\353b\":\207\016\367\321Wj\214B\350\340\330\252,M\272\373\361<{\375\233W\211AA]d!d0\"RXb_\241\204\214\344\"\227\031\261gZak\373\246\0342\311<\343\r\244\213\002\324\310WVM\275\335\305\003\250\375E\0005\335\335\334\213\2717q\335\330wq\254\202?\253\033m\266\340-Hz\372\266\257ky\365\037$<M\257.o^\r\2530\365\215\025\352\037a\274\034\036<\234\237\252\250\237d6XB`\201\334\031\323M4\212\307\016\0328.\204k\321\3277\265e\266\372\232P\231\306\204\215\211OU\214\344\301H\227\317\316\233\353\332\325\375_c\275\361\323z\307\307\004-\246\3731P\351\262}U\231+\016\313\226|\312t?\224O\241\205z/\026b\321\333c\231\307\210|\276\216_\223\265s\211\352\016\242\372\311\3353il^i\266\203\260\"R\0256\020\355\312!\343\2228\2472\343W\017)\213\350\245\251\021\335\332\241\021\231b'\033\340\246\354\217\234w*W\r\037k\322\002)\216\027\304|\213'$\355\255\376(;\030\023\267l\027\277\207pG\236}\275\247?\260b\n\360w1\276}8\372f}\241\263\211\274\t\350J{i\260\206\244\317\272\210'^\332\265\205if\372\010-R8M\265\0328\216\004y!w\035.;A8\237~\032\331\211\361\373\274\235\3720O4/\333(\3021\300Y\034\330\251\267\005\rV\021MS\202\310r#A\002'\036\250l-\215\nB\235\007\271\243\n\256\242KRO\251\211\311b\246\267\27152\313aB^\375o\036j;u\373Vxi\360YBx\246\346p\366VQ\375\363Xo\254\323\2078^\035\251O\0330J\361\354Pc\337\360n""\2127\247\207>o\233\340\243|\366\265\363\031\3666\030\024J\255J\332\351\025\266\344\346 y\231fh4j \370t\245{\214\212\367\031\236\\\366\357\240\357\341\034\331bn\372\234\244p0\212\252D\301\215\037\026\216\004$\251\346\244qG\267\221o\350:\300]\262\324\347\324\227\353\337\211]\221N\305\241t\347\306&\340GN\362\207\274\3610\205\360\273\350\331\003w\306\312\326\327Z:\354\330nU^t\232\224 y\305\336\363\274/\211\340\t\340\204\212]\352\264\3519Q\337\342:\250.a\004\035\355\333\336\233\311\\M\220-\273\267kq\363\277\206\313\365r\221\034\217\0176M\230u,b>u\302Eq\250\211\355\355|\361\217|\266}\335\256\346\2770M\302of\343\302%xGc\336\355\002\030\224.\227V\356\375k\242\275\302=S\037q\033\206gC=F\026\374\374\253k\205\251\306\017g^\314|\205\246K\351\373\\\341\236\233\217\247<\342\274xs\323\270\324\261WtN=\217MM\\\237W\234]\354\035\367\303\325\323t+\255\265\256R\202k2pz`=\370v\321hsY\236.\204\217A\375\241d\224l\311\350#\236\355\333\243\203N\230\372\327\373&\372)\216ShGK\337\2371\245)F\022\360\361\252\352I:\330\370.\232q\334\313\263I\274\374\255\316`\337\216c\265\274\014\222\024f\030\367\3649\361\354y\360W\035\271\324\343\301N\305\362%\373#q\026Y\354Q\356Sr\213288\230\201Zk-,1\"\017q\246@\211\203^\322v`\266\254\017\033\216\322\241\313\352\330\031\351\243\036:\014\024\270\3502\t\300{\217\016\347\265\276;\200\357\261P}rGn\251\374wz|_M\213\273\352 \365\362ng\261\237\246\307i^/i\265\364v\276\315\227\354,6'\372,\000\373\307\312r_(\336\254)\036OK\213\331\271\245\337\366\276\n7N\335\3171\034;\245\264\222f\217\206p\323D\356j\307\220\016s'\266*m\315t\303\265<N$\024=\312)\235\361!*]}I\3663\335\037\"\242\331\035\375\034:\337\264t\320t\354$u\031\324\321\351Y\345\263\266\353\363\267\202|C\264\tyr\355_s\314\372\t\331\313\357\017\2746\304SO\323\333\337*\242p*\205Y\240\365\034\r\274\263\314T\264\233:\262&\255\350\352\262e\202lB\366\030\"\263\346\360sz2\262\317\005\320\262\236\245;\2706\021\036\347\374\262;1\006<\365Fcm\375Ns\230\213\223*\251\213\250\013\0236\334L\027\262\341\233\004\264k\303\030\241""\334\316\305\030FNd\004\223[\201\332u\327\r\330\325\002\266\257p\344L4\246\342[S&D\212n\307\334\376|\347\256+O^\337\223gi{\342e`\254{k\327\306^\nL\227\346\010\361\347\314\034\330#\210c\227\351\311? \251;\373\363\346\326\230\310@\261\346\373\207\254\264C\017\311)\035\257\241\250\235fj\034\226$SS\226\016\372\244t\233\004[5\301\367\241\010\331\0164\263\234*\374\367>S\302j\203\323\323\274\222Jh\020l@\355\363\314\033_hN\204\365\360\3478kI\360u$\240\021\313\276j\004CB\211<\343\257\\o9\3474!\347\313v\247\345\372q\362F|\367\366\333\231I\222\356\236\037\311\342\216DJ\245(\205\371e\213K\010\367%9D\311\027\245#A\350\345\331\217 J\224>=\2466q\327\247\216\302\253\341\264\352\365\267'\2233\305\032\224\325\305\235s#_\"\241\002#\232Q\251\251\0264Z\211\240\361\227q\362\250\310\240\370\251\337\365\276\276\014\363\237\021\235]{=SG+\323\030\371B_\264\275I\250\236\\\357<\373\362>}\027\327\314\324\236\317\212\233\205\"\336\014HB\207\270u*\312\266\371\036&\321d\304&K\247r\317\21778o\225\340\305d\370\232\215`z\3409\210\311[$6MF\227\345\310\363g\305\315R\00127\363\303{\262}ng`\375}\203~_\320>\346q\2524W\323\006g\214\346k4\242\375\017\215\355\023\201\034\373\267\264\252\005*[\310\267\203.\242\360eUT=\307\310\253\221\030\254|w\023\354\307\257\303\254A\217R\376?\036\212\374zkIw\355\270\357\332=;\3428m\361\307(\216<c\274\rX\204\331\004f\276=\306E\256\361mq\266S\023\222)\323{a\002\233\266\032j8T\356\330\311\343\271~\376:\321^\234\365\277\244}\236\214$&H0\270\230\350\226\230\223*\264Z\361!6\302X\344\030\205\2600\366\3236\252\014Bf\273\217\220\200\263\371>\276%\201\036\275\203\310\354\336\273O\354X#\315>\035\370\306Q\013\016\313Qd\245\030\206\225;q\304\316\200\210/\277\264l\036\343\007\347V\024pg\212\241m\275\256w\263\035\357\275g\257M}\316\232~\016k\342\363\203]\216\327\236\374\361=ws(\371\020\331\261\330\313\272\233\310X\225pz\260O\r\333m\242X\036\007+8\205\270}\234x\260\315\235_\203;^\250\263\033i\3353\365k\252V^3(\231\330\234\274\233J\343\346\233\224X\355xU^y\032\302\221\007\315E\322\302\245""\rbf\022Y\253\255\215\312\215\030cR\260)\257f;<nO\"\230g9\244UIo\037\240\345\233\322\205\226\302\361\251^OL\231I\362\303\321+4)\353\343s\001\341_.5\016\2544]\325\325F\374\262v\233\373\rzV\356\270j\260U%&\222\r1\325\302\235\327h\220\331\023<\311\265g\317\264\272\350\356\251\035\344\354\201n\372<\264\362n\266\271\202\365\350\322\213\366E)\312\022\276\360\314\232\n&;u\320\305q\254\233pX{\260\357/>)t\326Rl\304\317;>C\033\032\323[\031\255s\345f0\323\204\276\233^Hg\025\312\r\252\275z\211\277N\242*\226`\316\370\2276\360C\355\336\tN\242~\254\353\025\363\375\177\256\267%\355\363\334\250B\357N.q\30486@\306\264\241\303A\021\240c&\211k\352S\232\366\217\310\364t`\314-\370\327%S\\\264Dq<K\353\212\266\247|G:\214STM\023\354\241\327\232\037d\373\217\226\227\237\234\034\031t\341\235'\350\370\0175\337\336\364v\255Mn\223\365X]\351\314|3\316+\243ycV\377Z\3139\355\014\336i\023\364\007o/\3178)\224k\206\3269\371\247\365\274=\2336\335\324L6]\273\313:\264\026\374|\303b\275\212\221\226a6S7\327\313\225^\314\340\230\257\223\372\232\003\352\244\0249\337<\223\330\\\244\013\315\355\242Y\370(\275'9\220\325\222\245\324\230\302&\271\232\274\026\321ix\246\324E\0266\235\352\345\244\327+\365{yv\372\251\316\377\014xn\371\025\373<P\335\361\212\362;K\257\257\006>\274\304k\316 vS\020\265\251 \340\177e\363\211 \370\037\263\026n\023}\241\333\021\210\365\3268\233v\301z\367\372\007u4\036\353\361\034\365\345\316\260\331\277\247S\327e\004np\216\213\017*\316Lj\313,E5\212\311::w\t5\026\020\331h+\361%\033\342\343BE\230j\211\201\014\225\010O\324\273v\373-\263\303d[ZhS\035/\261\345)i\3460B\274\031X\263\316\310\265\356\377\327u\352\343\277\301\003\241{\272\241\216\0276\340\215\245\266>\232c\316\331!a\314\312N\233\201A\350m{\361\207N\256\\\224|\030v\322\2159E\030fp\313\n\233%q\026g\200\357\237-{)\301z\330SV\003\013c\035\247~U\335ioi\336zJy\017&\351Lt?\240,\2375O\363\346\232\027\031\231\355\371]Gsl\321\257\201)N\314\351\224w\204.\330\222S\035\374F\021\343\254o\331E\373M\372\257eS\235\223f[|:m\340\355\254\266~\r\237\232""\267\257\227\342\\U/\033N>\324\307:>4I\211\257D\324!\222I\261\356\3703\207\341\265\210MP9\353\001\345}\373O\267\260{9\356q?\323\201\263?\245\207I\273;\273\371G<,]g\022bW\204v2w\355\013\016T\357\342\361\371t\253\214I\364\363\014\330\227M\346-\t\375\033\250\354I\230\353Q=\267&\252\214,\027\236\363Q\262\210$Zy\366bo7\210\357\033\214\331\3144\362Y\233\327<V\246\2470c\354|\223\234\243\214\017\032\327.D\354\207k\264\223\2452<\3478\366a\322\332\326s\230{=7\016dl\346\343g\017Y\005\222y\251\314I\223\036\0364\204;\324<Lx\347\240\315\350\316\223\343\313\242\250l\0130qH\331\333\343j\341\334\2209\025g\211\243Ft\355(\373\362\027P\240\353_i\316;\275\356#\275\016rR\316;\354\327Vc\312\214\344\3260bA\t\320\336\250\264\033\344\326)\374\247\325\353Qu\215\231\317\005\261\224\313\313\233\016I\335\341\t\271zE\004\336\337\327\277\323\231\332\3521\243u7\355L\363.s\203\331\315U\027\317\216\n\325y\341\372\357\274$\206\344\273\331\017A\243n\222L[\312\303j\201\305\t-C\346#5\321\021\233\304Z\241\372{\343\203\004m\317o\026\214[\201\255\2500\344\227q;\267$\267\347\303\340\\\337)\260H\352s0]\024j\346\231\353\023\204F)\304\313r\236\333\021un&x\201E\302\371=\2311X\023a\322\371]\374\354\371\010'\017\225\t\031\3706Hp\275Qiv|\010\325\373$\177MZ:\334~a\305k;'k\014\217g\004U\337\332\230\235E\245'\271>tW[.\353F\213\206\373k\275\351\327\032\367\263G0|\005tFWtN\334\035\265J\246\323\253\204\356\315\313\346\205w\032\331W^7X7|\367\301\347\236\317g\257\303\317\212\303e7\231\017hu\n\327d{\240\262el\271\370\021\263XjA\204\333<\375\220zc\344\333\355N\313\241d\263\316\233o\027d>h\370|\354\252\366\257.\324?\017\335f\336rn/\025\353\360A\337\321a\032\210\201m\370\207j\243\301:\370\257\251\224\220\302\002\216\205\007\263\207\245\333n\337\026\023\364\272\035^\037\2357\2521^\244c~\276X \223\317\230\207\234\021\007\227/\177\034__k\345>\316\032\204\031\037\311\233\226\347\314\353\026\276e\203\300\346E\225\355P\210\364\361\242\242\275T|\005\227\205\354\324\026\270\232\350\327\266\374m\313ho\332\367\r\0377\025\327\303\031""\302\341\035\276\254\235\260v\270\263\327\241\314b\367\215\3419+\364]\2121\024M\224\332\210\005<\256\266\315\334\006\307\026\361Il\231\234'}\355\242\231h\372\2608a^\303\337\376\231~/\220\370>\307o\230\372\3239\351\213\177\324\317\271\217J\006c\361\2038\212?\003\313\032a\027\203\010\205\225\037\307\n\301\364\r\201\033\202;\354\311\037\317\361\362\371\007g\207\343\006\214~\366\006\375 31\240b\3764_\3611\217\221 w#\224\216W3C\3624\nh\251\031\261\377{|\373\337\351\200,U\340\201\305y\017\024\302\323\211\017\375c\215\263\026\370\010)\025!\030\346\237W\227{\306L\222\230\034m\231`\312=\0231\315\0314\256-\331\265ml\246\341\037X\212\027\214\336\311sVCR<\315,0\272\244#.\276\036\267Y\267\254\212\223|7\232Z\256\357O\006\365\251\245\036\362\251\250j\332(\365\246\360\224\311e\224h\235\023\241H\211\010(Q\026\177\3104Z\235\316G\022=\016\247\017>\006\271S%\354\035.\347@\200}\275\276\257n\212\252\262\377\325\315\301.-\013\353a\r\376I\242\277\333\212\351\350\2114\302a\t\021\341\330\326`\343\357p2\335\027\365\023q\032\\x\023wqO\365~l\236\336\010Bj)V\333\354\307\302\237\020\036\267\327\361\360\313>\216)\311\r\320z\240\017\373\010\366\246I\342\022\254\277\361'\r\024\303\241\002)G\rr\376#\315Mx\000\323\000\313\034\032:M\315\023h\307\372\363_P\310\363\351f\240\305r\202\232\t\330\365G\244G\241=pc\\\rp\327c_\240g\313\240\307x\327\031\010\353/\356#h\010\246\376nIn\324\001\252\300hjg\351\346Nw\374\226\307\365w\370\373\333\327\365\370[F\216\345z\325\356S\270;\216'\027\020\307\0277\327\017\321\373\233\276?\273x\325e%\324\356@\360K\341\364m\014\035\332\217\257\324\350\377\357\371w\356}\263\2464c\203\006%\000AI\360?\340i\266\230\301\255\277\320\027/\245\276\020\324\231\271\326C\371Q\021B\231\361i\335f\335\r\3207\315\376v\013\326]\266\307\376\360W\330\347\233\215\264\014dk\030\307\217\245\312\345\250\211\263\360\020\232r.\3213h\340\340\304\372\014h6\206\201~\351\310\240\256\323B?F\357;\342;b^\324O\351\036d~y\272\241\337\341z~\036\367\341\311\373\352kJk\034\372\272\177G\306|\024\030\227\300\356Z{""\3709\356\2212$Y\350\252s\227\323\370\236\210r3\252\365q\253E\227\260<Q7b\223\352\201\245\357\374\317\223\357\225Q\373G'\262\323_\022\355\376\\\3421\344\363\211\315\3249\332I.\177\375\340\"O\342\346w\212\371\010 M\036\305.M\245\213*3YA\257t\244\333U\264\366j\315D0\353Y\263\257o\337~\306\277E\352#\336\321\271q\2219\275\202w\2476-\265zj\355\363\372\366\330\323\232j=\031W(\263\307\265\207\006g\214I6\243\342\206\003\024\352!P\244\023\020\213\307\327)\316\226\273\235v;\034\363p3\341\303\311\357f\177\036r\276K+hZ?Q\245\350\354l\364&9\311\010f\317o\370\335\2440t\354\360\352v\267\333\014\340\361\363\275]\264\371\177\"\361:\034\316e\323l\263\371\327\372M\025i\351\214\256\330<\226\274\306\177\t\206\276\2727tI\211&A\306l\221\025\206R\r\355\260w\342\366\251Q\255%\030 (\310\315\031,\324\"\346\341\225X\317O\341\370;\347I\375\221\371<\330\275x\223s\006HMF\242\306\242|\273`\026\263\264\314\005F\212\023\365\037\211_\272\267O\326\355\277uz\317\003\330h\377\257\323\3659\353Q\210\252\266\273\250D\215\2379\363B0?\356\364;gm\216\330v\310\366\350\367\271\274\300\340\330b\216\214 \337\371\272\307;hv\342\357fb1Ba\222d\230L>\311\367~?\241/\030\323L8\024\036\001\265\217\032\373\347eh\254\025Q\252\252\006)\200\230(\"\245\240\241\322\355\205\252\254\322\007\351\356\327'\325\245t*\315\371\020\334\nc\365\252}\221\022\250\374\017&\204]>V\200\232\204\365\032dE0\350\tvF\207\231\226\"G\202f\036S\362\356y\334\225\025\255\336H\313\005.\312\240\332W\205T\343\265\037\201\304\365\014\354a\027\324\362\245r\316\216\007\225\262\207BB\341\3334\207ed@u\221\314{q\343\234\351N0\323A\031T\177Y\200\362[\353\034[8\366N\231\001\275\0255\n\355\025c\261\257\320\\F\212\013\231>\225y\340\216\267fSJI\335\024<g\032&\315\002\2059\365\376\231\207R\267I\207sV\312H\020\203\031j\356\030J\202\032\331ap\275\000\320\353=\2253\266t\221\210\312Yc5,\260S\254\212\010\227K\304C\255\021\272\207\317\020\327A\004^\274\346mv\324\251\255.v\340A3VT\212\243\032\206\221Y[N\376\001\333\3760Tb\331\034\230\310\261\250+l\342\353\226\217\260\3205""\266\034\250\332\301tU\271gh\327\267\331\252\r\366|\244\032\006\255\312_F\031\326=\314XX\277\n\203~\262\264R\305L\333\214\361b\312\366\3411o\\H\2501\211\326Vb\242\272\014\361\365\237\364\037\0057\336\213\214eF$}\221\205\2317fw&\\\303\005\024\250\265\226vw\204\262uC\305\335/\023\243\036\033+q\003\211\2576q8\234\\\321\235\004\376\\\243\021h\324T2E\177\373\212\"%\260\264\301\241\371\250\2756\373\036u\250p#\241|\312\265\222\004\277\247\3407fd\343O\254!\024\306p\264*\365\305Mt\023\025\361\323\270D\266\0029\021\213U\316\206A\036e\024X\204\236\365\007*8v\027pc\265\323G\262{K\354\205\316\017^O\332\240\234\331\327\233C\272\336\303\036\307\260}\305\035\376\307\250!\031\307K\324\341\350i\364{\r\324\345S\314\257\257\031*U\330\177\362~\254\n$\235_\177\213\221\n+\025\014\356B\352\301x\252D\223HA1\006\001p\010u\017\331\3530<\340\375\006\244\372\335\014M\365U\276\214\242<\266\252M\352\210\014\311AB\275jQ\0306\370\260>d\236\016VvW\330@\265C\"\025\303\230\030\206\256\341R\030z#\017Ps\017^\260\r\312\230\342\t\236\035\366\202r\244\233l<\333$\212\312zS\207\376Jyn\357\353\247h\241\351BN\304P\370\243%?\252\377\321\005\242J\250\025\361\373r\177\265\007S\335:\204\356?.\014\354\202\304\310\221g\n\267\273;N\263\204\231\204\224\025\322d\nj\237\256\343b\3165\007\261\026G\247x\217\345\377\236e\213\244%/1)(\362\366\247^.?a\020\270\301?\265\010\375S\332\357\213x\203\317\326\025\256\360\211\370\272:O\372]7\334\370Gbj\022*\313\352H\222\031\251LZ\212u*uy\232\356\205\310\220\376\0075*\030,Mb-\301\n\215\031\224Y\233D\366\255/\213-]xU\203R\023\205E6[M\002{\363\334\211f\014\024\227\313\362\206\337\305GKj+\225b\363\217\370M7\300\306\255\237\267\"\314\025\305\213@\204\310\035\205H\316W\376E\201p+\272ZCk\373M\310[[\303\"}\304\314]\317\214\016G\251\335\253F^\035\270\356\350\026h\257{\tx\25426O.\204\206\213\362K\2051K1\224\255\266i\331\024L|\337Xs\344'\"\371\330\n0\320\271^_r\257\316+~/\344r1\337\0356\010\276\004\0316\347J4I\014\327\260^\317\320\241\257\341\"]\3571<\"\254\313Lqv\247\312\303\265{\025\370\377""\255\3263\364u\241\210\305/\036\360\261\347\213GFR\317zc\010\222\2422\231=:\021\210\237\2278\254\346s\244\317\270\3215\234j\265\021\023\2546\353.\367z\306f\237D\"\252\215 \251\224d\342D``&\203\017\227\036;w\361\207\276\217\3675\250F<X\232\354n]\214V\023\0059\361\252\276I\332\215\\\036\372\231i\023o\007\334\007\266\336\343}\337go\333\367 \347\333\357K\r\320\325SG\344\206\356\215\334\356tc\365\033!\302lw\177:>\260M\321G\376\363\316k\0371\026L\231\372%d'\026\330\337\177\231<\356\311\367HR\023\3470,\007\326\360\202:\001\213x\250$?C\234ry0\377\211~\335\036\\\336i\351\213\302$\024\016\177I\251(\354FdgWJ\021\262E\220\226\353\376\276\275\317\256\315\375\330\r\\L\211\345\323\217\217_\246F\331\202P\344\010\364$\232c\2579\353\304\256\275>k\014\301\315f\370\317\223\225\3129|\323\312:DN\\\310\376\312\203\364\253\350\225W\311\225\363\217\233\236\336S\006\256\301S337G\327\310\006a0\233D\037\214\016\334\2360\241J\027\204\344\300K\2204X=D\300\t\277vv\003\244\200\263\264\232>\215\220\365t\216\276\316\302\375\266'\375\377\177\\\242\024\233Q\377\236A\267\267\264A\233\327:\376\256N\256\350\373^\366\274\375\244RvG7\276\346jk9\326|\205@8\246\301\321Uq\026\335AG\037\005\306a\242\310\032\226'\352\202eu\016_E\037C\255\237tg\332\237\256\373t\032+63>6,Y\260}?%\210\306k\\fz\026\210:\321\232\250k\236r\006\220}3X~\2611\232c\342)|\344\016\306\261V\3066-\235\030\030\242\321\035\222D\323\t\n\264\214\017Y\231\372\234\326\017s\274\336h\3554\365\277\347\373?\021\257\276\275;\315at\004L_;4O\200\201\255\331\243A\265\207\234\333\341<Y\231\206\257a\322\353f3\313\227\353\301\261{&Xj\341\275\360\273y\341\033,x\020>x\331\\\2512\263\206\211\213Jf\024\n\310\343\321)h\320N\375\341\313\272ti#y\357\301kC\374@\307#KPz\324\202/\2773g\026\2243\347\032aQ\030yr\341\205\220qX[\210\306\363\320\247#e0\347A5\322\206B\361\275\334\316\356\\\317|H\2564\3166\263]\252\tB-+\257o\323\222\254\327-\243\356\211\232\006\243\303\317U/\340\355u\3628\347\225\371v;]\3023\2778\201/g>;`\324\3736\374\317_\n\211\242Sr\014\372(z\256\340\205""\355\030\224\341\021\033\327\032\323\233\226X\020\200N9\241\177\263\243\326A\334\025\320\262D(h\000\342XJa&~\t\341\235\214sL\221IK\250\334\032\301\211\265\215|\243\007J0L\217\365b\001q\274<\rN7\231z\273\236\240\211\235\306\240B\3763\353\235\016\376v\3130\2266\342K1\237sK\327\3560\035\226\372{^\377\250\226\264\003\351\377?\277\347\317\355\022\370\273\263\213r&q5\366~\317\367\235\376\300\034<\230\271\rSD\014\261\027\3323Pf\234\212\222*\017k\322\375\375\335\237\370\375\3343\376\\\037\2119\356\307\351u\326G\263'\347\366\366e\021$\204\333C\261?i\271\016\370\006\234\204\311F0\202\346\346\227\372\321!\306\204\001\361E\306~]\013Y\263\242\036^Z\r\347\316\345m\207\221\242\252<\216\377\337\320|m\320\247\237\032D\275\263\355\316\017e\003E\231\265\006\353\374\254N9\003\247\262\3247X \022\307\352d\017\274\227\313RB\263\331\246\256\321z\261\352s\327fq\207\322~\"\221\225\352\3029w\253T\004vG\244L\327q\035\204\314B\004\325\310vlN5L\312p\254\352u\016\241\361\234\376\237O\342\351\362\363\245\220\352\323E\036\274\272\215\324:\232_\017\265\256kj\032\020\177ZRZZG\364\331zd='KR\022=\207\252\310\330\255q?\270\275\273)\344SM\305\307\337\262\n\202\027\375\253H\311\344\236\005\244\357\234\324/\312z\207g\332\357\337_\333\373\267\235\255\032s\321u\336c\373\321\035\362\2776\375)\364\356Gh\346\243\327?\322\364\304Lv\336\363\337\333\373\006\375q\277\013\274\033d\332\343\366\271\363J\265\207\340\357\337\336q5Y%\242\0223\020W]u\355\212\212:]\375\317\336_q\314?\303\243\356\366s?\265\336/\256\332\\W\347\321\317_\241A\347\216\242\374\273\3607d\300\324\347\367ffZ\334t\343\213\036s\221J+{#\343\361\333\273z\353\371\244\301\356\226\210\354\233\246\370\377\246n\377\203\n\252\233\360\317{#{\002\256\024*V\033$\211\324\275Y\326\276\024\367\263~\201|\224\226\336\317\025\030j\326R\003\355\211\352\237j\255\211\031\020?X?\222\255\363U`\236z2|?\twy\023\031\014\341\210]\203\342\214\242\320D=\331\360M\202SZ\024\323\004T\202`\243\016\037\277\216s&\321\217\325\377\034L\233^\202\350\273\302\302nc$\002K\010\210cmi\201$-""\231\345\325\361\010D\271\344uF\232F5:t\314\207M!\rl\"\324\331\265\260qv54\271>\306\326\254u\316d(\254\333\005\tG\211\371\250\237g\365\032e\215\2437\366\350>\253\237\316\222R\275\361\177C\371\254\325\305\300:k\216\t\222S\207\212\263TT\276\221\016\225x\237J\330\206\317\352\375\0043\037\251N\337\310\2064\336\273\250\3637\215M_\271\317\005\243\266\246\317\031}\004\363!\300\024_\317\222\026A\266\311\177\r\347\341\272\301\331\263\273\"\337\304\221\317\263\3568]=B(\033&RTD\0301\014?\261\374.\314nE\354\316zc~\347\367\367\035}\270(,X\341\037\030\262IC/\233\363\253\013\013\010;c\276\207\1774\360\002\237$\365\271[\300\034\372_\215n\000IeO\266Od\3046|\026\211L\353\316\362\214\303\n`q\010B\320\374B\222*z\263\271K`\236o\324\036\374\237\032\246\306\362C\304\374+\355\304\325\240\300\227\344p\203\247yv\253\362o\036\345\302\3348\205\310\3338*0\327`\204\n\306\267sz.\245{$\014\321\314\030\342\366\2765~\030\356\266\226\"\324_\215\244QE\342p\030m\276\217O\303zg#\276\366o\023\263N|\017]O\032\226\213*n\275y\205\200wxO\217L7\253\262\3753\252\261]\317\037\002\262\366\273=J\371\024}\214z\022s\363`:\371\271\210q\361\206\323$A\214\336\221\333\347\377\330g\307\271W\"\332\355\363\t\341U\335\246c\333\014J\341\310\276\221\021\020\217\347m\245\274\266\367\337'^u(G\374\357@\214\261\217\227fs\2622(\302\345j\t\335\26539\002(/Y\010\345%\326\007\213s\037\206\020\371\277\026\335y(|I1\364%<n\353\220}\217\235\350\247\335\365mg\316\234\326\321\350\2358\316\351$\224~\236M{\316\265\360.r\374\361\374\221+\231\311\326\004\354\276=\334\355\351\024\324\226\304?\322\021\202\370\230\370\277O\257\372x>C\301\361\374\177\037\310N\007\310\207#\372\242\035\312{\272+\345c\345>_\357\3647/\324\364n\2346~\214\307v\21110\202\000\236\324`\303{\t\200\222\365{\225\264\003s\246R\035\003\237po\3543\362\245\276\301\t;\3112w\365\327F%]\032\241&\270\334N&\331\257\374\216\373\356m\235\rSs\343\377n/w\212o\206\375\021\324a\233v\007z\007\360\230|\370\267\030\003\366C\021\357\365R\031A\270\177\345\002haE\217\272\311d\025+\341\247\350$""\327<\004\241\002V\220\002\275\276A}\251\024Fo\343\374\317\231\256\324>a4;\230\314~\301,30\250\354C5\277\355\256\315\233,\351f\017hvj=z4\017\310\261\243\376R2\300\206\013DO\277GIg>\024\211\000\273CP\"\366\341\372\t\230\2562\347\004\216\331\227>\355D|\301\010?\225CJ\007A\204\351 #\361\305\315&b\017\334L\355Z\324\032+\360\257\303'\314\307\371\275\354\t\257\276\221\017\237\263\357W\352\307\254;\001\376\034\357@\214\220s\334_7\357\351\004m1\317\314\331\367\344\033\322\311\202\306\351$\013\376\301\331P6\210\315\r\244\304\234\034\232\223\346\371\315\3727\023\321\300\2300\322\301\275\320j\270\310\360\316\330i@1?\225m\251\325\031/!Xl\336\343;FCn\332\227\334\351i\202G\375>\003xd 2\230\215\336\302\264b\007\334\033'\005\205\332u\223\202\262\272\n\311\231\355v=q\216\354pp\241\331\204\222U8\034G\203\024\201\267c\263$\335\036\257\303\003\337\215\354\271\376N3u\277.h\216\217\351\317\341\311\356win\267\363\365\264\264fuj\222\037\031\342\267.\211\312\326\344\3253\274\354\034vL\033\033\340\357\316\"4\003\253\021\340&.\374u\330]\337:\023M~\2737\016\202WF\356\034\352h\201\372(R\025\265I\200\177]\203\204\014\247\354Tb\347>>S\324\331{\241\376c1\215\337.)\206\034\207zT\316u+\234\236W*\222\030i\261]s<\342WAB\n\0302\335j]\222\203\272HX\357\223\r\320YwN\024j05\243w.\275M7\010R\253d\353\3228\233=z\341\274\003\373/\271\"\0242\010\320\371\027\333\241>\224GK\256\216\272k\311\232+OJ\230\230o\314#\3279\033\023\204\260\2666\212\022\007\020n\177\234I\035\020\036\364(\233\346\317\246\203\rc\327C-=X\005\366D\213KH@\326\253\254Lw>\244@\342`5AI\357\375\250\216\207\264\301S\225\376\224\340r\205\303\252\275\264\251v\302\020\211.{\014N\376#s\005\314\323(\276\322\311\252C\254Rl\323\236V\023\035\277\203\342\033\267\302x\262\3318&\357\016\2146\",=\241\352w\030\232\021\316&\203\253\205#\223\021gq\301\345L/k?\213\031E1(\021f\236\030\306\323\024\340Z\265\240\213\341\nK\000\252\260\252Si\017R\354\321\200\252=\200\327\273\035\264|\261\235\t/\2245\t?\036\222\246\334\371\207l\270j\205\255\337\231\347[\007\324\220""\214\214:L\201\016:j\333\257\330\372#\237\3539\017Z{~\265\313\334wu\336?p^\342;\356?\366\325~\212\376\252\303\027\005\032T0Pn\213\375\304\374=\237\223\361\207\351?w\362\317\306Z\315\312\340\366?\267\001\320>v\0039\206\310\314|\346~s\254\2203\335\214\370\247(\234\245\005\031\305\350uS\341G\204}=>n\247\"\274\332\217\217\223\230f\332\036\033\2666\022,\201\231\016D\262\261\241V\203M\n\241\2061\261\252\343\033#[cd\252\334\246\354\216\225\271\254\311\314\274!2r\327\231vE\026JBt]\255\275-\032\233\266\357Vc\336\265\3145c\323P\223\213%%u\233,jj&=S\014v]\304\224^p\224\310\315m\330\033n\327\330\2038\237<Q\217\354hI\215$2 \033\247\n\360A\252a\001&\2336\364;|\205\357\312\213hk\204X\251\022\024\222\351qD\272pkZME\347\016gd\336\220\232\"Ba\254xs\372&:\2727\360A\2563WY_4\213\252\265\372\243\364RtRc\320\310\233\337\236\324\316\274\367\264!\037_\206!3\305\377&G\010\271\273J\037\331oU\262\215\210\026\215\037\237\352\260\370\374{,\235\335]d.\304\004\242\231S\236\337\2040P\037\365G\303\354\311Y\014*\233\307\325\r\264{\2623\246C\034\353\333\343\254\3369N\030\215\215\264\321p\242\037\204\375\352\321\233-\031\033\272\266\361\214\364s\222\030b\364\370\210\"Ly\016\337\256\335\361\0310&\266:9\t\273\340,\r\344\274\360\346I\331\256JN\342\375%,\260a\203\3047\266\277Q\216\256\324\203E\033\014\342'\002\010aCR\005e\312\004\373C<\037\251\327\2621(\353\333\271>\275U\206%\326\346\214r\231\216S\r\3023s\006\350t\275\316\351\303\002\030\272\001\320\016\203\035\033\226\333|\261q\315\303\333\214`\372;\302&1\274\347>\371\265\312\342\361x\362$\252\244\236\321\270\342-C\244\312\0025\360Ss\221\300\211?\020\003\032f\277\177\r\2231\335\204\236Q\234P_\355\257_\305\201\343\030AOy\337m\r\024\304D\217\253\354\356\236\212\225!\r\227\233_'@\226\t\227\341\207\333\321\304e\345N\n\252Y@=,P5W\312)b\242\3551\375\303\223X\260\367\031\341\203\246o\207\245\326\\\326\262\354J\256\243;\330|\275\353\342\017\361l\355\317\037\231\r\331h5\250f\2651\206\023\2029\007\tsM\216C:\266\253\005\220\307u\274\316\020\340\354R)\276\347\313""\375\270Lxv\372\311\235\2118y\234\250\307\231<\372\036ow\0137.\354\324N[\007\024f\345\260\034f\033\214\307g\231\353\257\313\256\276\351\177__1%\333\366\016\2237I\216\221{\213\323Y\017\331\316\232\207'p\321F\213\303\211\316\343\"=\030\234\025k\346_\222h \031z\232\017\335\371)Of\030\331\016\303D=\317\246\215Z\332H&&\212\037\313&\246\216\347\207\373vl\201\265\034;\037\322j\241\032\376\237\350\316\r\371vp\022\246\355\314\342\r\036\023\031up\023\251\252v\317)\212P\014\342\344\345u\236\001k\022\017\177\264\316\367\312;\264\2646\257\216\016x4s\203\364\274\007\366\002ggZ\333to\013\236^\232\rdp\2649\237'\251tr\326\234CE\306GogZ\376\201\257;\037\"~\000\355'B\206\347S\374\031\032\340i\337\355U\366\252\236\324OB\236\325?'\263y\362~\257m\375\257\357\313~\034\333_V8\327e_\347\3079\215a\366\301\373o\025\027\212qN&\032\236c\347\370V\206\217\201=]\236\207\t\204*B\030QA\030OF\005\303\322/\330\017h\316\361+\315\203\346\340\232V~[\344\206\354\035\004\274\311\216f\016\333Z|\335li(\276\337k6/\003\370\233k\t8\0162a\355\2608\201a\351ps\254HqF\t\320l\334n\215\200\352~\236':n\217\031\236\003]\321&\203\001\236'#Sru\312\260\300g\"j$\372\177\312}\246\373E\367of\251h\201\242\303h\214h\214n\334\366\367w \375\023\241\253r/\365\354l\235\013L\301\320;\235\024\303$\006\226\240k\340st\334\331\330\243n\330\233$\2458\313j\212\232\302\302\275\262\326\252;8c\230\330\243\036\356\2729nH/!7\307n8\022w\320\332\033\2639\3670\030.\266\247\234\363A\250\317\003R|\201\220\254\307\005\263+\346\2316i\266`\2738\0038\301\223!\262 \307\032|-\206\314\206\303.\021\306x\333\267\3451\317u\177\344\3367o\264w\031\267\006\r\3007\0304\230\345[\300\177\251\326\370yJO\035^\277/\217\306\321\337\3377\361[\245\260\266_Y\266\212\366Q\027\007\240\242\376\226\324*\257f\231<\253}\311\306\204\212\033(\\\037c\246F\262\320\004\202\340\300\031(\320\227\007E\262\343\031#o\303\205\301\262\303Of\247\022=\361B\307\031\215\343\203k\200\\6\232\260\022N\2650,\nk\t\313\222\232\026'j\206\221j'\023r%\034\360\3451I\262\314\330\230\r\221\266\0337\321""\255\252s!\352Y9\204\371Z\272\272\267xNV\206\206C\211\230l:\241#>\2166\204\020\245\246\372\252j\026KYk\225\333B\235\3136\n\312^0\267\331\262\024p\217Tn\334\013d\321\\\210\306\000\277\3473\204\235\270E\016\357\337\006\207\222p\373\211\3410`0\024Nt.\007A\2136\0330\332N\234\317\016\002\321\240\307\017EOS\225W)Lc\344\225T\212\224T\255\2625\014\36795a5\014\003{8v\361\3466\330\333\016\020m\303\207\350\341[\202\334\034\327\0076\333l\266\335+\3473Z\250\0204\343&\330\3221\237!\365\376e\363\342q\363\325\354\227\332\205\t\t/\233eY\2147X7\305\206\007\256\004,\245\200\242\\6\276q\250\346\214\216\215\364r\201;9\033\346F\243\224>8\r\237$\243\014`7\214\206xr\025\004.-p\316\310\261\270$\250!M\204\251`\325\204oZT^\245\234\343M\337\214Q\262\231\212\376\017\023\213\232fc03l\215\262\315\344\353t9\2336l\304u\225pj\373\272\376\036\334\375\254\351\304(w\375u^!\236~\377{\300\216\273\234\265\010!\376x\270{\252*\352\205~\354\267\245;\311\314~t\346\"\024 c\363\301\272i3\030U\235_\006\026\271\005\375s\244:\247\366\177\216\326;_\376\362P\n\034\334\\|k\267\313\351\233\364\020\327\320\307\200N\357\006\\\273\265he\203\025\253U\252\235%\371'PY\236e\225We\005#\025\\\303\240\305\214\205\230\021\207Z\032\006\\\357\216\235\217\242\271\252\345_<\3723i\332\205mc\332|\256q\324\0222\004M\353\"13\001\374\177\257\216H\374\223\347\200\310\272\231\207\222\311\017\215\023\343C\343\003\343_\260\365\370h\353\362}\216\252\346H\3728\336\316\236\232\374\226\216\367\271(\001\262\206s\317u\366>\346w\343N\306\342<e\261\310\207\251{PmF5\003P\324op\360x465~\037\227g\2258\373\333\036\326\177\301\257\355\236\337d\332\276\034\013G\323i\317\237k\375\275\361\331\251&\207\r\360\0345\265\206\3265\233\300gi\2724,\177\270j\330\n\022\207\360\310\344\005\375\247\000\211q`\004\241\005\202\0131\0202P\302\263)\211\t\227\316y\276\021\217\224\342\300\217\217\215\324\342\236\2548\024\025\254}7\007\0040\223\r\200n\345\311\265\252\233\202L\204P\332\377Q\017\346kG\336b\307\266\313\270\206\272Y\261\332\351\246\367\323=0\322\3229Z}.A\252\373""\364\232\233\304O\353s\277\374\331\014i!\010\366\240\3000\003\211\210\225H\3719\376G\0207\001\004=\301~\204\001J\322R\321\025\n}\350  \241\244\210Jr@\2402F\200I\200\206\254\200r\022\t*\211e\210\211J\n\032\006*X`\006\373\016\265\250\3104jr3\000\010\225)5!\205\020\246FJ\205\020s\343\376fH\235\241\342\376_\257\356}\033\373\300:#\336\035\347z\367\236\357\343\341\207\241\246\376\275\357V\201\025l/p\261\272H\033\243\034\374M\211\2613b\304\023\353\343\331\347u\314\351\233\326of\350\317/4\263e2b\343$z4\333<\364\0224J?:\0167\261W\276;Z \227\320\354z\215\026\035\034\210\373M\370/\237\342\033\255\377\254C\237h6\006\305\273\345\365\271\213\027\313\251\214\305\263\247\377}Q\312\350\350\277b7\3724^\233E)\021\307\315\356\177\216G\017%\034\020\224 \347)\230\344\000\323\031\230\014\005\014D\014E\304\037_\273d\366\307P\377Nj\317\242\320tT\323z\271\256D\3313(?\035\345\323e\336kemm\302\033r\026#i\206\035L`]K\316g+z\234\345\r\035t\267\311\014wr\315c\325\031\214\311\251\226cf\227Qj\032e\320\341\232\3369T\260\222\004\321\272S-\315f\032\036\366kD\3055\rq=\025V\214\"\206JW\030\314\234\233\\Z\320\330\3169\255m\312`\212\321\307\217z\242AIl\230H\240\244\205 \026\232\247\322\036\257\230\373\335>r\243\203\220\022\367%\270pR\344\002\221\367T\010\017'\3329\375\270\027:>\317\257N\3010\271i\361\227[\331\272\337-?\351\347b\365V\360\\f\200D\304\177p\370.\224\367\273<R\216\036W.!\246&^C\335\325\303\301\305\031\270\2541\276\300q\000\3420qX\343\373\376\227\377\313\307\271#\2049-\243\373\356Q\363\270\214d\023\014/Xfh\351l\233p\352\322\371\272[\355\336\351s:s\360<\236R\255\373\363\335\257\305\314~:\277n\247\316\377E\255\313\321\205*\274\252\266\316\374\3753\3658\006\333+\301\245\322\256\250\220I4g\333\271I\206Y\272\250\370\363\373^cd4\314\274\234\034\336_,\267K;+\032\3752\363\344\273\257\001L\020\341W\237.\253$\010B\330r\320\270\247\000sZ\006 @{\261\206\213\352\203\203\243\307AA\031\203\334\332\205\215\254\373GXs\363\005I\346\272\371\340<x|[m\302O$3\037@\375\010\375\013\364/\320?C\364'\375\277S\321\372g""\217\317\370\235\212C\017\361\303\021\204\231\264\033m\270\246\367+4\343{GD9\250\327\353\372\223\211\266\307\221kZ\030\227w\340\2646\376X\363\202<\375\352\036\021\003\320\240}\177\265\254\376\204\303\"C\331D\204\2044@\022\255\353\365\331\365\200z\325\365\251\353P\365\203\353\037Z\177!\374\337\317\361\326\0255'*\326\310\311\276d\315\340\322\373z\\\035.WU\215\252\030\371Ff\336\017\341\264\313\202\026\327\203\225\2114\270\257\r\237\237\213\263Y\2723\256\232\205m\306w]`N\037%\323\210\220\204\222S\301\027\324!\346S\324\247\235\365'\250?\303\364\376c\357mS\244G\356\3777\315\374\177g\177W\253?\253\333\202\037\263\304\315\005(\300\246QB4TD\017\317\017}\036\327\356[\250Y\020R,\024_\327+w\303\375G\023\2177Cv\333\314\342\033\276\334\203S\303_\221<\201\344|\207\220\362=\357\267\374\236=`\235\221\027\366\222\017\366\334\341\345\3003r\000\316\207\267\305\n\333e\006\251\242\343u\207f\360h\274Q\210p\340T]\324 N!`\360\352\351z2\214\320\242\"\205%\014*\211@\014\021\247\034\007\"\347\353[\221n\375\214\370\375\215\335H\\\366;\237\326I\036\332G\266#Y\215mf\323\016\237\233\203\211\307\013Bi\270\327\237\354nc9\267\306\327\r6\202\345&i\tw'\237\337\257\215;a\243\343\364\032\260\304\223'A\334\235\317s\334\367wv\2770h\203 \017\n\257\251W\341\377\227\346\373\326Og\361\037{\372DpO\263\370\223\310\331\366\353\027\376'\207g\305\303\367\243d I\2010\265\367y3\325\330\240(Pr\2303\317\344hnw6\245\304F\342\202\371\"\345\225\246/T\227+R\242\233\366\024\035\205]\324\302,\023g6\370\033\343o\206\370\333\307W\253\311+\372\366\253f\255\212\330\343\324y<>N\326\003\234 \352\237\013\271x\272\374Q\206\342e\341\360il7\364\256\306\331\246|\222\013f,G\244\372\003f\325m\003W\313\357\352c\346\205\361}=\0002\214A\010I\220\222ZRf\236\206@\301\232\0240\233\247\336\346\370\264\250\325\261\217}\273\357\245\334a\3705\233\362a\276\016p\315\317\233X}.\303vX\026^\332\322\016\241z\347C\245r\274\035\003\244Y\333\017&w\256k\262\233\335\\!\325i9\362\227\250\265\026\234\272\253\316\3103rx\241\311\344\362y>\315\254\300\315\364""\244?)\002\023\370#&\204`\200JD\217\245\212\231\002\020\023\204\020?\235\201\351\215\3775'\274\361\371\005}\336\356a\263\344\310z\362O\254\233\232\257\246\321C0\314\373q\3705\351\335\327\223\301\367\307}\270\334\214h\265\236\224\224U\036\367\372\024\255}\017\322u\264\352\224{7\030\341\342\343\355<\362\343\322\372\224i\365\017\n\274\302\361\3367\216\355\373\032MS\246\257X\0026\374n8\234\236\337!\375RXYg_\242\3726\365\372\317[\353}\177\303\375~C\357\2363\203\366\240\003\331\223A\353g\010\245*\200\242\027\212\302)QM\277G\344\037\264\0379\352I\207/\270\343\005i5\222`e\252\263\362\321\277\337y>\035\031\311\221\"\204k\020\032O\265\007\325TP\364:I\002\022\243u\352\023\077\077[X\325m^O\277\263\354W\225Z\302\315\250n\342\357Pt8\377\3344\233\356p\370=\033\304b\212(\276\307\254\363\375e\364\351\261\365\313\374@\231pxV\311\002\214P\354\300+\246\347v\232\251mCP\324\343\231F\033\336jw\230\3228\220\207\304\r\306l9MM`\240/\2625\221\276\275[:\007x\300\305\372\250\027(v\367\210?\250l\214\006\221\030\362\"PJR\330w\r\244\333\337E\231\014\372\272v\312\022\256\244w\3370\230 \231$\261\3220M@\035]\365\330nr\233\r\361g\214\375\204\002m\001\231Ww\267\265\313\357\365\226\372x\306\326}Q\264*\367\261\200\335D\245F\352\247\334\024\305\014S\363\241\367\354\302\305\304\020\315\360~\324\223\261\016al\315g8\336\326\241\252\031\315i\307\263\266M3\264 \333wp+&\244cx\366\303\246M\357\227+\r\330\2079\274d:\227ra\232\323\326\2515\\\032\203\002<\311\267p\320Y\033u\247\251p\325d-\352\224\333\310\333\036\365p\306h\3479\241\232{\036I\314\215G7\221\346=\340\312F\034u\212=K_PN\345Q\243D\206\231\233y\247\253\207[6\361\264\230N\357\301\320\355\342\321\335\347\362\006f\353\365\364\307C\247w\3447\035\216\030\311$\264\365'\277\262pWw\311\0367\037\207!0:\367\202\020\241\3710\030b\t\204\206\004v\251\376\2306\006\330f\357@\357W\314\247\225\360|\316A\344\326BB t\202\037\203\263\344?o\364\372SXa\250s\"\034w\343A\240\233\205\273&\343n\355\2224o\203\263v\027!\025\202\354#j\036\234\346\034\351n\372\260\317\347\277Nu\220""\337\014\347\206\212\007P\027M\307I!\240\233\325\221\332\262!$\031\316\355\337/\323~-^?r\234\022\177\251\231\035\311\371\341$\256\227\254l\036\253\\\237d\356\330=\333\273\236|\025\321\315\327\304\323\262\274\\\325[\305u\351\303\350\223\350\010{\001=\213\354\017`{\007\330\375y\304\376HzH2ye@l\007\312\372\376\237\304\335\216\037\253\275\245\376\234\242\213\006\004\035\313\214\223%\335\1772\207\002\212u\001&@\214\002\\\"l$\316/\306z\2635\374qG\317\277T\261>\334\237F\3723\361\357\221\2228HF\016x\310S\363\245m\261\224\217\364\343\355n(5\363n\2701b*%|\354\013\005\272\242\205\032L}\314\027\007\266\010\241\363\037-\244^\247\214\010\327M\000\276\031\1773\347u\351\372\246\264\373}I\\\300~\307E\3416\365\276\232aT\373\312\004O\202\025(\331(=\267a\233\232\364\252S\256r\202\324T\250)N\261\274G\335P\253>[\232V\255%\225+\204\342\225)\327?\233\352z\257\267\360op\333\331C\353\022\224\001\207\344\214\222\004K\360\231\224\321\001\010\206\001/\3457\246[\275\317\271C\334\247\271\023\334/\271\367\036\354C\025\3051\013\376o\233\362\356u~\217\306+\377/\235\371\277\006c\250\217\035\342\033\320\336\246\365\342q\342\361\356\375\371\355\375\037\315\301\335\3357\374=\262|\0268\257\024\343\304\342\367\177s\354\324\236\207\217\325\274\272ka!\t\265\371!\275\036\324\216o\023W\030\330\306\306\030\333\036\256\326\315\201\320]\316\347\305\234\330\362d\345\373\017\205\233\010\030[\013a\302lNXt\343\204\r@\333\361^\302c\277\014\017\035\315>J\016>\233\037\346;\323\222u\363\036\276\276\303\244\374\235\000C\\]Qh\201$\202\373H\016\265P\350\004\234]oi\274\020!\235\225\370\254E\214!\2040\341\302\034\315\034\301|\374{\345y\321\241\241b\213Gh\324\007\356s\272\272)F\230\307\037l\244u\1775/\271\3214\306\361\237[\303W\034\036\275\227ke\032Y\266\224\016\3731\023\253Dtz\327NC\216\274\010\234\351\265\017\005h\352\371\030\264\036\230h\312\263\030gex\270g\236\007k\371\253\213\220\357\315\225\201\276\036\244\311\331zu~\254\273\"\306\324*\246\245\023$\310\262\377\031\320\013\375\203\264\2144`0O\212t\352'\207a\203a\2666""\003\225\312\335\336\352ptu\370\237\025\373\377+\301K\323#\327\204\233W+l\035b\206*\272\240'\231\333\324\346f\014\331\233\223\303t\247/\325\356\373\220\036\341\32293_\206\237ft\322\350~\362\247\310=\262\252\212\277\336-\376\377\247\357E\240@\357\257\357s\367T\337\372\357\323\2614\345\222S\302\257\316\"\240\357\362\340\254[\272F\343\217q\331\342\236u\325\237\n\340Y\177\223__\343p\367(K\245\376\207\251\272[|\276\214\rLYB\2627\3173\331\206\367\307\303\354F\322\301\350r\032P\353\362v\364B\276\343\324\202\006\025\202\376\033\213\024\334\373\352\034\231\024i\2504R\332}t(\216\214\202\317\214\354\324\266qd\311Y\241\r\256]*\321\322\252\266xMl>Wsg\273\220\340c\200\351p`3Ro\204\037yg\034G%\356\271\0214\034\217\322\321h\204O\260k\246L\223&\250\356\300[\202w\003!^u\343\241\234gs2\006\347\030b\323\236\303\327b4\233\014 4\020\360\204\010A\335&\366\206\250\217\034*G\371O\314B\020?}\026\310|\317\275\351\222\025\346=`\372\347\326g\001\027\2272VsUTL\315\342\351\322\360t\345\017bm\323\224\351\322\215\244o\032\314\361eAil4\344\017&\265\251l^\307h\346@\212H\200\206>\254\320\010o\250\346\346\033C\367k\033b\320\321\264\356a,N\337\222\264\037\320\360\335sw\354O\312|\207\3343'\t\253\261\301\016\033\370\351\206\356\221\252\250\254V\251j\226&\351\372\231\016t\2273\231\2519\373\033\326\023\346\315\376\234\315\344\355\236\227\337\270\357@<\270\007\255>)\327\037\250\261\\;\210_\340\313~\231\342\261\332\240\225\374\334\236\021\010h\246\032\341\t\241\336\014S\264\331\261Q>\016&,\001\216\212,d\350\261H\252-\240s\014\377m\272\010\0040\345\327\022\306K\242\007i\033\214 S\t\2310\274po\333'z\261\210\212\345\323\215\376y\310\340\363\r\354\353\213\207:\256E\367i\301zd\221\305v 1\0054\023\037\212\033\017\261+\035P\341\310\233p\033\236<fyk\014\334\370\333J\324\366\177\256\235x\202\247\216\303m\204\310>\027\006Q('g\255\3761\336\3701=\241ks\250j\212$_([1\334'0\r\361s\204\3442g\214\250\2377\256\343\344E]\343}\371\363#\307\231\227HXw~\t\02763\345\203g\006NQ\344\374\233\226f\363\023?\267\323\216L7\222\225\351""\214.2\335\371\033\000\311\201tY\311\333\330w;\221\241'`\347'G\312\356\356\222\031\370M\362n9\351\270\016\344bpij\202\3721\235u|k4s\277Fn\275\\9\261\017\322\014\216\354(\017A\020\253\241\227\337B\317\307\340q'w7\t\252\252\217\252\376\317\323Y]\034r\036\365\312n\227\305\335\202\334a\362w#\300Z\225\257-\2255u\230\3273\306\212\210\246\347@\246\202\267\277~\375\373\245\374z7\260\270F\313n\246'\220m\014Ndc\002\234\253\240\235\031\264\2351\032\230\222E{\002&~\252\264\265Z\333*\267t@\251Y\207>M\241}\207c\313\004\230\334`\272\361Ad\r\250\241h\2727M'\243\013\273\220Ev\034K\337\304\305#7\253y\357\332\215zr4\032\204\247\312_;\361\304\013/\322(Dx!\325\331\307\260\302\242\033\372<t\240\363\327\353\037_>\235'1\317\215\343\301\340\352!\304\347\246\022\022\367\256\0328\333N\027ww\341\233a\265\234\353+\3126\031\316\032V\376\001a\343~\267A\246g\316\307\017Z\312\356\007oh\341\347\330\024y\230\224a\353~\222\204\311&J\033F\017/,.N\354\305\215\256\037\200\r\022\022\020\220\230\334\216\364\255\014\333\2539\333\333\333\242\351\231\034\346Z\227I\333\304Pa\204\336S\237\223U\257B\346\"\300\232].\227\222\356\253\234\t\264\006\275\342\016+S\0233\344\376]\375\347\275\313\333\r\347\331\265\351\3126\270\210\246\357\031\031\266\357|\373\353\246\032\333\300\357\306_\271\262\3647\\\373W\215\014%\330\3463\021\337\333\360!\222\254s\225gy\266m(M.\322\0348h\317\023\247\377\272\265XN\034x\001\233np\337\177f\351\337p\003\274\020\356\375\376\030\355z\215\3130\2209\313!{9\032\027j7\370&\r9\231;k\272o\234\003\200\260D\234i\252r \212\026\265\243\323\217\032\320<\036\030b\243\005\023m\003\362\017\217\034\361\357U\251w\251\2445\354\364\331\247#S\201\270\334\366T\264P\026Rr\211`\251\317\253\275\231L_~.\264\301\300\216\374\274\036\216i@\2165\374\231\367@R\2766\034d\227\"N\225\236}9\353\214<.\006{\252\025UjG9\351\271\267\267$BIW\312\345z\216.)\255\362\035\323\245\322:]x1\325\351\214w\331\001}\272\336\245\333\313\034\247\213I\303M4Q\315P\323\213\312\004X\261v\031\031\312h\2408\356\316]\036\245L_6\267;\023\023z\215W""\3066\010\210UAj\250\240a\265\031\206\264&\234\342A\365l\256&\234\350Y\320\213\\D\205\3440\2335\353c\233\220\034\311(\034\033\362\217<1\024\024\265]\262\341!\347|\354\220\324B\242\301@Eg\317\332}\033i\373\237-I\320\256\362\254\371\207\351\227\200\270j\245\354\340s1 \030\373\re\036\327\364\341\006\256\177\005\005\0364\306\030\271\255\2161q\022\223\252Q\200\241\\\311A:\262\006\022\224x\264.nn@6&,\006\266\353\214\215#\006,\275\314\303lm\264\246\242%\325W\367\357\317m\275\030\317\221!>\366\004\036\031\030H)h\270:\005\253\004\241\00601\362u\275\301\276\230\264\356\320\377\366\1770\210\233\360\313YE\333\216\356\374o\207)YCv\373\222\217l\356\337\263\256t\366\r\000\320\010 \321\034\014\020\240\3657\333-\201G\360\303\331\021\017\r\032\333\306!\370S)'\355|\252\266\221\232\22549p\374\353<\340\227\205\364\017\277\22796\352e\023\\\033\t\022q\226e\311\213<\217\332\366\356\365\003\345\033\237k\367.\360\231\276|\247\304\223\332\233\213\332\3115a\204\220ZH\244\304T:\026w\232\0048\022\374z\0308x\365\317\361\\NL\274>\262&\362\004w\301\372\335\221\375\236\332C\224j\251[\271\204\014\250s\373d\004D\307\253\355\337WQq\036O\342\017apT<\260g\241\372\2728\204\265zNS\242\006\017\240f`O\277\270\005,\256\316\366\247O\245Y\241U\200\302*V{H\007).\337k\215X\263\331\254\201\023k4T~\2263)\353\201u\241\262\210\217\235\211\2277c_\252;\001\370\306\"\260\020Bv\351\361\362,$\013`\034\350\374Q\0179jG)\342\373\366\004\n\034T\203\023!rJ>\020\366\0208!\273\361B\364<|\017\213t\301\321\320\202\\4\356=\355\357\352\346#\347\272\316\202X\212N\334\342\030\231\320\302,\205YA\203E\205j\253\006\027\026B\346\363C\322$\350%[\316\010\243*\220\230\343\324[9\306\204\033\321\265\234\0279\202l\033\023ci\264\260\016\000\010|U\203\\\020U\016F@>n\206\365\206b\271\005>\363\215\355\267\322$i\r\360\347\306|q\242-D\276>C\350\376P>P\347\350\3508p\351\370\352|\314\261Hr\357\346\235\263[:oG\003\272O\333\271\3660\321\3556G\246V\n(\231\300\235\310\254\266\n\346\325u\367xn\314\017\370\010\345\224\326\206GZ\025\005\006\020?\306I\325T#I""\354\360|\003\347\242lk\302\211\274\201\023\303\302\\K\005\351^\262\005\341x\335J\n\224x\340H\224\267\240\270\311F\202\213\314d\244\274@\366E<\231\300\256G\036`\364\2207\207\254\236\334!\264\024\225\3463\026-\203\274[\346\366\270\207\030\345\215it\205C\325T\023Od\005!AA1ET*0I%4Q\002\264\2510PE3\024T\313\337\245\334\264\275\207\177Os@&\254\263\020 a\220\225u\235A\017\010\267w\246E\203\225\365d\022:\343\334y\223\351\254\310\215\261\030\006\365\003\216\252@-\241\266\016!7O=\360\271\205\t\266\r\222\371o?k\300\356\025F\315\210!=\261\354\340\342r%V\256 dQs4@\351\037\357\301*kb%\340S\363\301\310i\326\305R\224\237\035\340@\366\311\253\023\0232\214\001\221=1v8\010?4\n\376\203\2605q\332h\250\271\366\372t\271\240HC\332:\270=\222]\266\346\364`\250\026`\273'a\r\336\222\211Oj\024\305\004EC\272U\266\226\2640\033\271hZ\254e\324\236\317S\341\335\3019i\277\340\371\017\267;:\004-iR\322\231\\)\250.\323=\203PuE^p\026\023\371\340\\$\3328\004c3\036\302q\362\367\360 &F!\250\215C\372:\014*\t8\031\204J\333!\344H\333\320\010\177\024\001\365\306\357a\314\326\234x\341b\355\244\271\314\306\311\341\034LLKf\235\010k(\234Pj\241\240\243\223Z2\311\024:\273\027\203U\336\2328Y\327\320\311\206\3662\340\210!\010\255\231fk\016\242\t\035#\322\340*\255(5E\345\024\0372'\025\253\230\342 \312\342\032\033c\034j1\033\221r\"!\233zj\260\343I\nnA\242\263\026V\256\211r\n\206P\244\272\302\\p\224\004\221AK\220P\0304\216E\031vJ\022\000\021\0146\022\006\277q\263R\305;CDf\006\025D\027\014]fZ\341\243\036(\021\246\014\306\307+\214i4KD\213\220\213\002\366\\\260:!\223~\204\313\001\014\222\246\020D\204TH(\244\260IT\2155;\017X\026i)\231!8\226r\271\257\361\002_>!\357hR\335\024w\006\001\323\216\202\217\265\004\"N0\361\257^\240\240\307\200\300\314\306\265i;A*@Q\031\374\377\007\214^\372\177\206\376\334&B\216\177\243\177\\\r\244\013\004%\241$hB\332\016\013\210>\331\3033\203r>\031\214j\0079k\315[z.Kr\250Z\2623N\3534\214iI\r\275\262\276\262r5\016\206C\230\312J\235\213\231\203\270\346\27155\rj\351\246sz,d[q\336d\314\232d\310j\027F""\256\366\346kzS1\267\024M\216\034\311\232x\335Y\026\246\\\225\303sd\313s6\333\314\244\326\353\325\336\267\371G\353\237\246;\207[\325\365\316\230\220,\321P]j \221\225\307\\\367\005\267\010C!\330\373+\260i\234\360\266\235\262\264S@^b\004\020\256o\226v\311\035K+\270,A\324\003\224@O\3157\322v\212i\307\010` \302\032\272\350\247\005\362\202\311=\211\304@\200p\342g)0\033\025\010\027\335\342J\251\r\231\ra]7a7\351'\360\273:\351\246v\310\323c\006\2142\300\313\306\214\356&\304b(=\203\221#\331`\210\372\202\312\032\325E\214\000\330S1\370\344\034\272\355\362\232\371\023\213\213\253\205\323\302\002RG\037\313E8\310J\2673\355X{\221\322\201\366\203y\226O\357f\361i\034\014\311s\257\016\361?a>_k\251\316(\010\273s\002\220(\026\t;ak\334\353\306\362\236\207\233\314\026\022n5\312z\010\023\024C\301\0263\2415 ]i\370t\277b\0363\333\255k\260\035\300\260\016\343\221E[L \202\000Rp7\351\314\322\367\247\325G\346i\016\362R\220i7I\025\031\\\0032>\214\375\317\253\236\034\301\233\2343r\331\271\201\315f9\315\316'\305\301\177_%\3217\246w\213\306\\Zj\205\324\373\305\257[\231\3078\374\030q\235\370\026*\257\257\345\371\345n\271\224\274\315\304\020G\254`\025\005\254\037\"\r\324\227\313\3579\321\020\005(\247ug\252\3016\357\257\307\211t\334\311FH\310U\016\376\344\250\204]\311\017\030\244\314\335\177\005\273\256!\232\345_\036\235\020\356\3721\340D!\021q\342\231\315\020\240\272\030\001H\036\251\363\325\002\341\001\250\024\277\300\350\250\020\201\256\257\221 \002\0356EB\251\242HLB\266\270$w\rN\213c\226\261\365 \202\220\034\320M0\014\"\036\031\005\373\177\227\001\273\022\001\312\3136\250x\240\031;\310\240\210<\247=\006\232\2432\314h \211&pj\212\0022Z%\025^,+-\370N1\313\222b\246\253\245\264h\316\363\302\031\343a\346\343\257(\211\303\216\332\334\233\323\017\030\266\322\0264%\245\027gda\r\250\305-\261\315Y\004-\004Yh\223R]T\024\266k\342+\211cYC\367\260\006\254\314ADh\247\036\262\344h\314\010\263\014\303\034=\243\014N\201\275\324\223\344\360\017\351yO\235\351\240\233lEh.\2453yn\004P\003\034[N\003nG\200\322\001D\353""\002\034f\275u5\333c\032\200V\310\253##@\2714I\276\207 \017>\306\203\217\276sG9\312\344\207\351)\233\371\352a\031<U\250,D'C\266G\347m\270\035\231\235\336U\003\236S\217\021\016\031\361t\350\245\323\003\025\244>\377\331\r\030\314\020\303\n|Y\225\323\206!\306},\366\343\032A-\364\230\217)h\313\204\373\334)\276\313\237P\201\320\324\314\231&\362&p\342;\275\356&G\221\347Ef\2554A\313\266\317\326\365\237\324Z\355m0p1\340\274\315\272\006h\336\246d$\2374\027\273bvI\302]G_\237\243\356,\254p\2144f\346X\202lP\207w\227\030\020\364G!\325\203\036!\373-I,p\230\361\361;\033\306\022\206\035\300s\342r>mC\035YT\375U\323\2221(p\020p8\347\024\300\366\"\205heM\002\244\310\207xw\\\344{3B\236\355k\216\343\230\237\020\310\357\032\222\226\340\344\034\002=O\"\321\334\244\n%\252Fch( \033\t\206e\273$\033\225\006\301\264\024-\020\370\214\030(\222\206\313J\204D\210\342+\0207]r)A\262\326\034%\013\2728\371\025z\035\210u\347\255=\322\262x\311\201%\025#\003\027~\006\003\204\270-\000t\225\252a\201B\177y\3558clT=.Kd\026L9\305B\374l\223\353\351\350n(\233\320)\"@C\202\026\300,Xjr\335d\301\346fP>\311\331\346\247<N\245s@\332\266\017\030c\177\353\"f\340\006\240y\035V9\343\r\325\031\272\240uF:\247W\252x\267>\334\006\203k~\360\206\342\031eN\220\320\2460\246\313\273\201vW\220\222\314\022V\024r\333\007\332\324\3631=\270\336\344]5\215#\020\322\024\306MK[\313\254\253 \322+\325\2353\246\2536\317\221\321\003\031\216\0273\032\310\330\007M(\364b\306V\r,gR\021\250\254Cq\352\333\020\\\270\260\334\313,T5\214>\253+\024l\033mf\\\265\026FKbH&\313\253F\332\255%\023C\340\324,\201\006\266\321\236GGO\257n<b\217\241\3630\315 /6m!\211+\357\2345\243\277\242QlVqe)G\335\323\216:t\324\265]Rb\355\270a\341tM\256\374\302\30766@\241(S \306Y\313\"\032\"0cTR\207F\362\356\274\336\200\205\000\204\307?\333k\032\031\214\316EKxc\320\373O\314\341\031`\333\234\003\221\033q\256Y\352\210D\0304\022\371Tf\224l\206\230Oc\"XA\020) `j\222\214i\006\363\026T\370\314\332K\336\002\017\023\311\352\205H,C\252\016&\013Q\316\207\022\252\353&\007/\035\374<\n\320""\311K\220\340X\331\307L\204$\324\231a5:\303\013\372\241&\006\326Ha\376\022\245<!\214\222\225._\233`A\235\221\204\316\263\235\014d\316\316\221:\350;\010\221}^\306^)4h3\226\003m\212e\031\323Y\026@>-\030[tS\331T\235\260\277\312)\246\332\020\313E\274{0\266Q\345\261J\315}\301x\364\212Y\330\025\2739\274CT\250<w\200\212\005\001\214b\031\326\211\264!9!\343\206f!\306\032\212\201(C\331\271\361G\273F\350\275\220\362@\372\271\007\027\210\223T\251\262oe\252\235w\206\355\351\242W:;\361bTH\266\264\332m7\017\304\2638{\250\001\363\216B\375%?\245\261\361\243\211\324~\216`\234\215\270S\034\306&\225\304\327\317\204\276\004\362d\256P\375\202I\002\204`\010\226\007\315vp\0147\203X.a\203\207-\223'Y|\332^/@\222>e\362=|\032\334\0177\020]\367\342OVJ<-C~\273\217lZ\r\033\026\230\312\362\021\217\t\n\264\331\231\247\212y\207\247\303s\240\277\317\311`\010I\206\264\002\377R=Y\226(\337!\240\3278X\341\003\205\2068Y\216\021\216\026\3418hj\031\250\032\200\326\265\026\032\270\341\236\302\221L}\270\371\365\263\000eEV\313+\343\251x\256\354\233!\205\222\367\273\357_\256\263\371\365\250\263o\302\037\227u\302o\327M\265\\\273s\201\331\212\351\340M\364\034\342\347\021\270?\260\204\207e\224t\357\247\225\323$#7\203\354\377\206\337y\234\344\303\361\\\035\263\340\3429\207;\214\006\261\332\031\202e\306a\320\331L\314d\347\233\331\304\226\2049&\203e\224\007\030\223Q6f\234\350\232\235f\030q\020fP\245\307_\240\234r\203\302:\247\005^Q3\212t\375\227\213\007\247\333\002v\362\317\227g\334\3479i\016\375L\244\242\237\254\271\376N\021\347\2209M\214p\346d\335\263\274\033VHI\323\214\223\031E&\nC\230(M\324\024\201b\355\262XVJG\226Z\302\010\250iNJ-\007t3ju\000\355q\333\232-\014R\027\017\204M>\323wdV:\215\221'Ju\3638xP)\020\005\241\274 \034\326_\010\350\360LW\243V\000\336\307o\035f\0002&k^\004;&\023a\333\275;\034tb\007@xA\317\016\265S$p\315\345.w\211!u\327\\N\2159\322~`\317W\3063\002GPo\277r\016\271\355\003\255\216\346\272A\306\327\2346\327b\272\347\203`,\233!C\216\025\r\372\324\223\261\325\r1P5\021\232\004,\\t\357\010'\300\355'i""\2064!\273Ag<t\254yk\303n\303\202s\3233\327:::\332\350}\020\374c\203\222\347\251\343\277\033\355\311\343.\211\315\306\274\256\004\264\336\354\362\311A\266V\264\031\226\223N50\250\233\224\224\243\207\216\370i#\265\335\\\030\225\361D:ek\314\3142\03621\213\316\366\304pa\340\373\027tK\245\242\021\214t\21372\2551\007{9\207\203~\2046u\217'\321\242U\221;!\365\2744\333\306\263Z\270D\311\271,\245\252\225\333rBo\026o\252IVz1Z\201Eo\006\211\315\201l\013dqR\335F\023\251\241\241\214\007b\030\320\223\262\3441\345\005\330\375\370m\370u\315\233\305w}\231\021\326\t\206\360\357\024\357\016\350\327\227\346]\261\217=\031\010\315t\210\301\027\345\206w\303\214]^\024\265\323\035f\234\344\311\215\326^\035\335\250\203uC\032\252\021\035*P\n\014\020\241u2\224\251\335P\37656\326\202,\200\201\026\256\332KC\242EV\343\221\304\264#2\333Q1\255\265\016\032\n\312;]\0231o\2115\243\016\351?)\302\266\271\372\304\365\033\350\231\2175d\232\354\375\272\234\314.\313\325\2603\243T\223\270t!&\316\022It\372\221\031\254\010[\272\354H\014\217Gt#\032\360<-\273\375b\272\351g\213\030\224i\216\013\220\362n3\256\331\324Dv\343o\347\255];F\214\020\316\347\004A\337\033\256*\340\3466\270\270\343Er-hI\3667r\2433\325b\250\324\352T\235\342\033i\260\332/\031\t\023\276\006)UUx\303qg\023@1&e\344Cnl\344\3457a\261\254\203\272Z\203\254aN\336\024\352,\27573\235\t\2232J\202\022\301\255V\314, \353y\221S\032e\311p\023\200\n\320\0366\210\252\252\032\336\2740e\021s\374\250#\000d@U5;R\030^\336\244\351\373\220\264^\002\306\205\034j\r\033\206\237\244\364\213\243\264\034\177\205\361N\330<\265\216\244\246d\303.\217\240\344\360\336\343\362\257\306\337\266\311\354\316\372O|{\333\3335\207<#\334\315\014\0148\006\001\263\301\202C\210\342\177\351CRpL]H\006\271L}\3748\306\020A\347\234Y\371\\SX\013\243M\345!Gv\242\010\n\010\"\031\334\276/MO\307\327(\357\216\217\211\214\220\306*0\270\177\353jx\236\336f7e\221C\264\300\233K\325X%c\351_\307\271\213T\352\035\216 \303A0\364\275\224\363\342\354\265\333\277s\247\345\315\372\374\336%\361\203\252=_C\024V""\036\231\0352\236zA\344[G\2461\232as\317\230Sw\3142\321\356\251\255Mw\331*\324&\325GK\336v)F$\335\"l\333\n\242\235\314\334\255\323\206\335sFxVF\332\232/e\323\305\312N\010b\254Db+\306\261\261Y\344n\352r\025L\306\032\216\320NFK\rR\256\316\353\251\000\223\t\303\207\rA\324/5P\014\314\334T\315\224\227\001QwU\354\340\036\r\016u\025\014\323\235\217\215\313\364\314\343\303{\305\020t\265\2110@\345\307\311\263\032\254\002\240\323T\245&7:Ya~\273k\207c^{y\356F\004\355\321\243\216\3157\363i\245\035\315\336^T\t|m@}bKH\3509\372\320K\016>\023y\215\220*\331\217eOg\362\003sd4\347I\352\013\260\0175?\0012\014\207\325C\227\301\346\355\201\3007\267u^P\333\023\314\371\347\216\247\217\004\346lER0O\014\302p\022-\370\217fZ\007\307\263\272\300I\034\335\331\3031\320@\276/\204\274\331\263\r\307t\036q4s\323\2146%\3159\321\313D\263f\205\361s\322@\010\021\204Y\022D\tm\005\303 y\\\372\310\033W\314\277?m\233\363&\244 >\037\230\364\301\311\017]Q\372\324\210i\2305\t\262\337U&6XcAZ\"\032\363\364\205\266#\017\257\331vb\312\314\275\277\037\207\215\335\236\232a\301*\n\")\2318\244\362b\377\323_H\3139\326\235\236l`{;G\360\022\024!H\320\263\001I\t-\013\227Q\301\271\204\257\000\330\331\220\001\243'\256\300M\002bz\254\203P\307\200\000a\206\007\302\215\250R\326\034d\014\370\2217k\016\372\306d\362\261\326\370\001\300\215\3551\200\017L\004N\016\2271\312Xj\210h\n\242e\204\222\010\252\010\002\202\210$q\2652\312\022\031\006\330\226\276\245 \275ih\360)\322\3515\313\314V\333m<P\016m\220\204\351\222\322a\332DD\311\t\"\320c\026)\317\343\315\367k\220\016\034K\365\352c\245f\344!\200@\005\345\023NA\252\032\234\373\271\354\267'<\335\310\317q\345e2\\!\321\303\241\006:\303f!\263\313\335\277\251\267q\307\026\252\272HQ\213\314\261\221\2138\346\242~{\177v8\341\340ZK\304\206\223\r\204\025\276`\202[\230\251\341\026\206\206_\316\367\224gt\330\214e8\034\0169\331\017\234W5\206\324b5=\253_\230,\342Vs'v*\203\352\266(\005\003m\307\201\234\004\2709`!3\310\260\261\303\025\356\341\303\267h\223\t0\205\014d\003Z@1\232\327\331rs\260\374Bf""\013@\350a\t!2=x\303\360;{\200\317\304{\362\331\3170r\267\034\373\r\252\206\237\360D0S!L\316QT\3451Q`\300\242\310@i\024\030\216\342TH\370\"?\002N\342\374\r\301\327R\270`\276\035O)\246\323P\034\355V)^2\241<\221F],';\277\023\0204\210e\235XP\353\322\rH\001~\357\026\234\024\251\0040w\226\340\023\026{\027\222\264\036\373\034\276\274;\020Y\267\302\225\007\016@\342\230N\316\275\305\267\261\374\263B\323\313\363\036\343\267\034\222\272\350\351c\021}\363\316'\\\346k\234ki\333v?n\236\030\345'\333\220b \\\301\206\032\254\205q]\3467\232\"\257\230\352\267\255y\037b\371\326\316\375\221\003\273\314\302\345\341#z\253y\353\226\315\366\315\343]\271\232\311\276\036\014 \333Ao\017D\204\265\271\225*\231\351\211s\265Kb\"S\004\351\363Y\312\270T$\331\255T\336\205\030dx\301mB\005/\230\213\314\250\255$2\031\"\204\201A\016\304\023\2114\373\246r\322\316n\326\251\320\346\013P\351`\305T\323\020g\ne\020\370Q;\305\251\326\362\t\2301\230\277\014\034K*\316X\031\205\247`\327X\306\310\276H&\263\254\201\345\316,\361\211\304\204S\362\324\357\010cm\332j\334T\362\222\351\020z\336Nd\325\267`f\016\004\315\036|C}\231\302\203\226\356\r\350\227g\245X\260\2347'.\007X\034\206FPz\212\017\202\322|\004\035\223\302<q\024\303rd\330'\013B\022]\301\214%\0100EQ\246_wp}d\275;\264\254`\010\217\007io@\221`\201\373\215\272^t#\336\270!\312\353\303V\264\207\256\010\207%\014EI\316R\252X38\305\231\233mn\027\234\003\213UE\024\204K\000T\201IRCI\t\026\027M\002\006\214\253c\233\342]\007L\376\211\217^p\316\313?\0044x\016\240sN\314\351{z sjD#\003C\317\350\356\316\276:\353\346:AE\t\023\310y\260bI\240\323\001\230\227p\205z\365\252\t\r\007\345\371\343\024:\305\376\315\32132\354\320\376n\315\360OvH3\343a\r\350\214fk\313\216\267\213\031\226{\263i]A}\025\347H}P\372\244\372\241>\243\364\000\372C\351\370\277\364\365\207\356\3007\301{\302\324Y\205\241\"\001\036t\201x#p\303fC>\014\003A\r!m\2104\344\024\246\320\032$\325\211\230\2519\216Ha\006INK\225\014:gB\023:`\202 \210:f\362yy\300\371(\242%b=\277\306]\177\237_\223\264\023\310}pE\021m\352q\367L""\354\365|\277\324\341\317\232\343%CE\034\242\370q4h\325\373ZrV\203\367\261\017\313\013I\332\243\310 A\204\330%M\317A\277\311\206P\003\026`\236,P)U\316#\256\315\310\\h0\326\266\232\002\023 \252\276\256\230\363\276Y\317\216\365\265&t\242F\307a7\037\025\355\331A\236n\271IX|_V\334a\"FI\302\215X\325|\271\326Fn\023\033\330\0342a\310\312\232v\3216\2729\275\223j\246X\213\001\316\255\313\220\270\006\333m\205\264\326-\220\221\331\017/\035:4\004\024r<\021\357%yJ\365\201\025\353\331\210\033\t\333\"\321H\220\212}qP\300v\347\013'\033\323\266\251\335\270\303\355\355]\344\014L\371T~\357\335\255\366S\2727-p\306:\342!l'\354H:\366\374\344\371S\210w=\013\026\321\014\301\300\316\030\360\347\217v\037\177\016\253g\r\344\220\320Aw\243\030G\365h\323\230H}'\322\007\322}2}!\367\376\2239\360\331\001\037\000JZ\364k\007L\240\225\253\271\221r\002\326;B\001\371\273fDX\207\021\007\031\000!\350\207\367\336\003r%\277F\"\214\215\261\375\322\327\315C\020=D\373\315\264\024D\001\360J\344GS\004*\252\030R\266;\264'\257'o\210\365Cc4VN\217\205\241\321mh\317\362\303\332\034\37504`\257T\254\2052\312\253*\200A\246\240B\245\3142f*\210\262\002\"\356\036\325\275\316\251\223!\364:x\2164\313\030\3664\037\221\205\005\233Q`\332D4\251\360\241aiA\325\247\2334\206\256\211\\h\373\316x\032\346\224\350\222\303\240a\3020\206L\345\214}\037\247\2269\302N,\234\2204\277|\361s\217y\221\207\305\025\216\006\236\235\021\256s\356\243f\314b\203\273\340\313\225\325\3209s\253\030\020\026\343\t=\376\024\330\000\340\365\020\007`\330&\333)~\002f-\000\343\366\366a\352\376M\242k\212\302 m\002\221\324\021\021\372c\201\250\307:7\333\234\n4\032\r\031\246]\325t'\226\357G3@\235\204\267\nn\243h\255\003\002\250\224H{)\360\362ua\3168\035Ls[\305j\317\305\027\272p\215C\030\200\034f\0324X\340\305PL\300\342\035\\E0\235\345\r'~(n\263n\200qN/S\213\026\360\357\177\363\222\236\320BM\260\340\010M\234\2045\0210\224\301\025\021M\tU3E\024\032l\206\\\254h\304\357=8\232\250R$tF1z\234-a'rUA\354\310\275\377!\t\000\314\251\370\310\203\"\007e\204\356-Y\221:%\253@~""\037\212\220d\201\n\202\226\023\3154\276\235w\2100\201\302F\200\"&\244&\n\250 \240\246\250`\251J(\211\244\242\222\204\240)\022\252\200 \210\202\010\nR\250\240\241&\nR\201\210\"\006$\010\222\230\204(f\022\200)\000\246!\nP)\t\202\210\202 \252\"\026\250Z\nH )\231B\221)\"V\222\346l\362\340k\264\205\222\316\201 v\036\232(\372\224\032\205\010\233\364\007\273\227d\277\306\213\340feY\2300a\204f\332C\204\201\342\240\367n\206\237\n\014\265Ve@\342\231\347\r\210\206\036{\0161m!\250\303\031\344\372\330qN\n$\0379\037?\r\223p9\222\363\n\224\242*&\210h(\342\003\211\332\354p7\300\004\220\252\361Ph\342\215\221\014\366\333\350'\237~h\360\303}t\276hP\034\351\322\213\245\2208B\303\014\311\235\251\236J\220,\355\004\324e\230e\001Z\005\232\275\304\261\315\n@\334\216\302T\376\367@\316P\\\327\310\244>NS\014\010Hle\035\314l\315\266m\201\256\306\336\331\266*\352\0224\337\034\001\303]\377\260\032\327\251}\024h_\221/\312 \2612\262\305Z\302\217\346\024 D\312\002\202\242\201\202I\331T\023\027\000\301}\007\0323\024\365\005CG\324\214\230\006\241VE4\306,p\227`\260a\337Q\027I\352\216QQ\221D\223H>\010\231u@n\261\006\263fG\253\363\313\334\234k\243\206\227\233v\344 \354\"m\267\001\250\302R\3269\030\224\025\230\325\206rU4\000\230\240K`\247\267\354\375i\245\003\017On\303<$\324\376X\332H&bf4\311\363\240\202\235#F\307zx\374\214'\333\366\327\266\036Z\300\324D0\030L\245\235\210&\234p\r8\206\247b\363D2\2026\377\033G\303c\305\200\300\005d\224n\343\362\022\362\261\213\351\251ZV\332\270\316c\233*\356\342\031\237k[h\301\007\270\017\266S\007\221>\244\370\307\304\324\344\006I\354\213\333<\301\344\373\370X\305\\h%\"\210mI\nTD\014\314\327\251\035n\257\324\205P\210\005)P\335w \203m\336;\220&BH\235Dhw\324\204\036\224\230\020g\313w\353/\017X\203\217\022P\221W\027K\0003\263\350\332\364\240\255\347\364\006\027\275\313\202c\023\030\236V_\345\023\027\236\354ks\204O?S\344\354\016\204\270K\3614\360;{?/\271\366x\337\267\334\372\034\263\247\237\237^\303x\255!CI\017v\241\n\026I\324>\335\035\351\240_\032(\230\022\201\304\002\304Rv""\264\310\253\367\310\013\201\005\265\0244A\031\311\316\033\241\257C\207y\326p#\t\340\370\344>]B\224g\223\r\275\222d\236\210\355\355\341GMA\220n\200\034\203\021\326\356wI\021A\0341=\2105\030T.L\366\206\030\311\251\310`\224v\225\240\353\032g|\024\222\230\213Q6\020*.0\311=\373\330/\327\205\214E\343\004\345\023\305\372\374M/ \241\350\007\003\035\275\347\n\362\023\t{\322\3615\215\006\324\373\215W\314\0209\363\n^\250\341\r4\0249PP\226\205\236]\347\317V\357\356X\023\264\361\365\271O\313\220\3155\3506\231\322\205{\263WV\236\316~\035\235\203\006#\302\005)\017\346\313\267-\325\360xs\3719\3370D\310\251\221\267\307\271\276\230\334\254z\376\250\236\n\266J\030n^\013\032`@\266\314b\354\257W\233\373\242#\271\364f\351\272\360\347\206A\335\262\372\306\023B\355\251\205\341uyT\207\264\325\251\032\226\227\316\245R\340\341f\376\032<\366\305\251y\307\006\270\370|\307\033\317\0047d\363K\310\313\364\363E\276t\320\252c2(\375\204\035<\030\224\314\215\020 \r\004H\216\273\262x3Gb\021\260\301\251\033\010\233\334[\3035X\336\366>(\364P\364N\370]@\361v\231W+\276\273\030\216\325;\310\2451\rHQ w\221\355\335$\332!\246|\rp\356\000\333g\327aP+t\300\3069\235o9O\314\207bF'\305\246o^5\375\037\202\216\375.\3135\rz(\035\021yi\013\207=\234\254&\004T\204@h\025\246\206\204\n\005\245F\225)B\201F\225\n\022\204h\245\032\005)Q\"i\210\005(\025\246\277#\242\246E{\262\203\200\035\253\275\2606\331\311'\204\220\324\033\360\"\247\214\356\017\266\001h\212A\014\221\327=\373w\226w\243\352\201\3146t\252`\362\224A;\340\005$R\304S$\301P\022\301\032\200\305H\214`=\231SRPY\200\322c1\254\350\030b[E\027\256;\316\222?\247\2457\351\337n\001\233\305\331w\336\216h\341\233\305g>T\204\223\201\371\252\372*\372U\003%m7\325\220\"\024\343\235\272tfE\024\337\r=&\220$\302L*\360\352\001\350\233\025\317)(\325kx_\262\310\336\301$\347a\320\221\261\022T\372&Y\220\371`\3365\330\017\271\340+\357\227\254\200\302\003h-\314\346\026\r\303\340U\314k\202KD\3014W\216\224\341\016pn@Ap@\340%!\342_\315~Hf\202\202N\0215>\t\014\337\253\207\023\027g\001\027\326""\230P\366\272\252\3600B!\320\320\266\336<l@M\2269;\303[\214\310\204\331p\335\267M#\200\001\230\254\357c\203Q\264,\227w\274!\334N\360\344nQ\221?\211_\n\236>\r\200f\020\316\3459\272d6CH\207\033\313\030\004?\037gz\370dU\231\020\303\272HL\230\022q\335\246\244.\2707]\203\2567]\272\335\326\355|Z9C\211\352\232\372`m\240La`\321\200\226\211\223MAt\314\375\222\226\325/\006\\\331\20630\235\202vv\007c\373\217\213\331\375\375\216\330\235\260\204\016\270\005G\204\261\013\016\335k$\376\304\257\246\r\351\232F\013l\342\373\031\373\327\261\262\006\375 \024ws\331\215\37016+\211\321A\300\035\027\326\265\352UEZ\325;3^\365\2158}\301.\317o\033\277\216\023\217\330H\300M\2312\034\231\346Ns-,\026\033Vn(\2208m\355l\233,l\266\306\301\257\255i\244\306D\204$\t28\251\370\2102\240\240\256\3742\010c|\310\010\262\027\002a\232(6\315\006f\206 i)\202\032mAFIf89\230\222$\224\246^\305\252v\314\307}\364\006\202Br\010\263\301\n\007\255\241D\343Ji\247s\341\347\347\264\211\262\261\004\304\303\007\024\307\006\354\214\215\343\007\236\214\025\324-\003H\024S\020Y\035\025k\335-L\234\325\370\300\265\003\341\000\220\365\247pC\034\337\243\355\212\322\304\n\356\234\336}9\033h\301bA\036\362\025\220\302\000\240\265M\025\002g%W\274\237G\334v'N%5\252\014\0070\250\022\210d\0002AX\227\266u:\231l\231\256\307\344\346|\362\324\272\244\256\245w\320\225\243\334\350\345\324\242\315c\230\324\257\013\225\222'\341`/,\201\240\204\213\251,RAq\303\301\014\004(J\235\357\021jJq\240\340\266\375f\2170\372Q\274\344\256\362\017~F\242\232\246C\256.A\r\274\003\204\337\024\032y>\036\033~\260rn\031u6\353\325\230\200\375\305\307\014,Z\246\235\310\201\245S\337\364\231\271\203p\370\240\0340:\355_E5\200\036\277m\233\301sE$\363\365\336<;|\341\344\343\317\345\337,D\031\254\245|y\200B\357\226\010\316t\265\230m\343\333\2735\302\331\204\373\220\r\323\034\261\266\327pi\276\374\200\305\003^\004\221!\004\tv\362Gt\330\206\207\001z,@\247\025\340\2503\315\346\362h\370\371\223h\246x\000ixD\325\025\353-\333b\213^\334(\270\033 }\331l\022\231\237\314\303\200XV""\362/q\263\313a\274I\027$6i\241{\035\010\022&\355\225\204\275G\273\377\013\226\035\243\010\326i5\221\2542i\t\210\215\233P\323\242E`\310\026yY`\304.\024\245=\n\240\022\232i\034\226$^\031\223\"9\216\242B\"\324\232Kh\031\305\034\217\226\376Df[D\357\201\370@\334\356,\034\203\370C\217|\323\273Q\344\327$+\264f\371\224|\376\362\303\346K.\207\335|\347\035\177\221^Z\355h\361\t5^\341\234\235\274<\202\372\220\201\315\326lMN3_\267\024z\314\307\030@\361\366\372\263\353j;\354u(\322v\246\342v;\010\210\340\025\313Q\346\270\211\"\333C$\333O7\254\000\302M\261\223\021UUf0\300r\310\371\370k\230\204\001\355\375bD:\000<C\336\214@w{\017q\336-T\347A\303\337\333\227I\240X\214\023J1tvHa.\3030\3032\333cR]\314vC\021\260\354\203i\211}\004}\004\037@\372\007\243~\317'\242\001\032^\201c\276?/C\273+\032&]\201\210\0079\223\300LN\241\263\262\344\251\323\033\242l\276\335\007x\203\014\337I1\330\343&\334$\344\024\346\3114\031\271\2651\232;\023\215q*]4RP\322\365\0070\010R ]\021\211AD\261$\261\332J\320\300\340\242o2\3754\302$\201\350\262\232u\005\255\023\371c\352$\320\252\025\006\027MBl\3456\026n9\241\272)\316\001P2.J4\037\334t\371\272\354{\036\035\363\213\267]\345\353^\302T\202\264\265|I\216\257S\007i\271\013\250\307\232\375\300jMI\204!\340\006\356\340\306I\230\2328\227)d\221\363\324\243T\256\364\024\236L\253)\355e\263\353\360\311X\317v\271\366;\277\361\374\030\301\252\0373\306?\001!9\023\354\367\237\242_\177\221\243h\266\325\r\005\205R\3220\004\033\245\n)(PMIR\222Ra\251\265g?5\3564\021F{z\004\243uP\223i\333\315\201\275\263\005\022\232\252\0211E\032\343\310w!\341A\260\202%\025\350\273\361\232\357\372k\2165\031\235\331\266\0256\2340\247\202\343\231Cg\"\223\030\237'^&\210\003\336\220\224\305\320\260\022\031P\240\030\354\243\314\340\234\217`3^,K\341\201\341\333GN\006#\222\022|H\345\336\215\264`\027\344\242\225\262a\350\215.\006]%)\251\rZ\250\343\331\330S\235\003\216\2636\241s\347\023\021\037\027V\354\003\016\2069\356\335\210A\323\214-\200\360\243\020\266\202\205\270\003\240s\313\201\262\302\232aa\006\007s""\021\3011\372\022\">k\004Q\010\376\277m\367\305|\375\240FU\312\203Xv\333\217S\342\206\007\n\363\362*\331\354\356\345\261\230\202D\322\251\026CY\262\020\"\262\263\020\211Ir\372_\307\313o\337\362kK\021D\345\3045\232\2063\003\326j\323D\261\306\330\320I\024q\221\225\216R\201\010\035\306D5qZ\225h\215\006\030\341r\02646\232YZ\301\016\2217\371\256\027\006T\203\350\341\201\204#\0367\004\217nC\023\306\r\014\204\220\222\322A\253jm\033\305\033FB\r\006\220\027T1\271\025`\312@\333\255\334\247\230s\355bU\n\265\001\366wc\207\301\360\224c\315\2726\020L\0020#\222!\250\331\214T\306\224\312\250\331\024\2222\013\367\257\200\363Koc\311\016\232q\343o\036[\225\016@n\031\n\241\033M\224jHY5V\234w \333\nB\016\304\331K\034\230\013jD\2511E\024{\272\224i\211\010eA\001R\350\007\371\215\345i`\3100\216H0\222C(\251=\243\313B?/\364\361a\226\032(\322\032\270\007\200{\352s\0014I;\0046C\266\2500\227{\235q\tI\013C\0133F\020Y\001d\006I\326)\2210\035\322d\305\020A\024I\013T1\021\023#\373\277_\345\017\306\3757\177\251\235\\\035 r!\252\340\302\230\342\340X#vJ)\200S-\201\306\t^\361\230\320\320\333\341\251@\304\202\260;\3253 \360$]\335\310T\314\314E\006B\020X\"(\322Q\221\266\262\020X_>\3326\231\222M\340\306\023\030(\305\371\274\275\273\003\033:\\\240\330\321\234\340\343\373\010\007\226D\204\311\030\346@\364W\201\302\206MpO\242C\302MG5\014\000\315V\220Yh\026Qv\006>\034\372\263\001\2143 mXDC@\rVZBR\025\215\202\320\320\\\202\033\025s\"\030\302\225\250\214\203E\240\3306\ncI \306\222=\366\023\014\321p)\306\200`\322CbJ`\244\026\265\"\n\253\256\273\2152\300q\322\240\321\356\342d\304\215\025C\253\022\210\321\206D|[J\326\\d\221\206\346\3775\005\276G`Ih\310Fo\360\313\025aPZ\311\203[\251\224\231;\343\0032rt(\024\227\036\321\213U\355X\033\377t\255\274\221h\355\312\367\016z\213\272\370P\365EH\014a\004K\301eJ\245\002\373\362d\255\002\024\2112\212\320&\204\216U\031B\237-\346c\000\031\030\010\242I0\202H%\262\"\001;K\002\210Z\355G\214\016\272&+yu\027i:N\213a\340\234B4\204\302\206\240Ch\311C+sG\007\262\013\0020\206`\315\360""\305\315\230\301\310\272w\243\206<\017\356\307\366\270\366M\036D\200\270\007\212\t\217U=\247\337\330\002[<\371\n6\331\332m\255\\\000\030/\004\242\301\273\331\272\323\257\332Y\274Z\345\306\327\302\226E0\"\002\300RE_\325%\022\315N\234\303\035SE\001\201\364\363\350\221\360\3534\243v\371\353\272\335zk\225\352D\225A)\027)\"X\215\357i\310\253F\2235\010$\334i@b+\025\307\240b(\032y\220\021\241\306&\314`\021\241A\201\331\2550Y\361\367\206]\305\2323Y\243\3428\276\017\201\371,\013\264\321\322P\207\263)\276 \351\0146\t\263H\021\244\247\236\211c1\364\322\264!\032\211\203w,\300\200\321\006c\214\312\322\024EJ\216\342\220\242;@:\235\234\016\022\033\206\311\221L!\033$\246\344\032\204\235\260]\241\247MAi\261\311D\324\302*\204\2645i8s\236\356\361$\245^\370\025I\342\367YH|\026A\231!Z\221\244|\177\031\231\032F\223\003\202\306\2241\221\350a\226\331\343\334t\355\360d\343!\223\260\023$\027+\337\370;Q\350c\356\376C\356\376\017\003\341\357\344\316\324\374gqJ\242\377\030J\030dIL\014\242\006~\371\005\003\"\003v/\201\262(4WZm'#\311\214Tic\255W\346u\337\362#\272]\305\305\326\275\276\032x\361\245$\323\2142;\221\360s$\215\244\204\223\032\353\004\025\371\257\321b\376\313\235\014\020&\304&\272\277\242\314I\330\2771\306\\\242Fj\257c\265\353evo\266\222^\006S\257\014\324-\013\021\367=\341;[\200\276P}\235\263%\367I\031\021\245|u\302&\374\225\311\324\033z\265\326&\021\020(\324\277#\272\001CP~\031S\020\223\256\300\036\364\035\222\026\t\202wI\375;\271\257{6\210\241\306\001\220\034\220>\371\310:F\"\024y\373U\037\031\004\241_\275\n\006\020Q@\265|8\n{:6\352\243\250\302m\203\361\\\273\315\002\344v\206\342JT\313n{\277\237\254\375\017\334LO\317R\016}!\220\364C\341\2325\326\220v@<\320A\003(\001\261\210\201\336\363\346\240c\3249\273q\037\332\223}\375\242\231\226b\362\t\351\026\016]{\270\245\0319\230h5\370\t@\3014\207\301\r*\353\222\370\244\247o\214\320>\020\247.\307\0046%\013\346AD\024\300E0\022\201D\320nkq\347t\312\267\326\203\335H\210Z\241OtMm\304\203\023\365e\360\000\353\305\362@U)\255\224M\311@\244(bA\320\362""\024\353y\320=\027]\261GT@d\210r4\340\023\003\316G\346@\355\001\264\010\357\032`\322\222\006\211A8\020d{\262s\346\007\256\320\022B<.\022\212\362\022S\332%7\201M\210\331H\245\020\243D\013\005\304\205\254\303Hj4\004\246>\356E\026)$p0\355\213\\)O$K\342\205O^x\033l\023\226\245\357\355\350\344\242sO\316\030\001\245\300\005\216.d=\020NR\305\363\346\005\240\330\004r\022\360@\211\021jf!\022\224\245\r\346H\313\024\363\346\010\346\315X\200\343*\334\271\243\315P\305\016!\177\202d\030'+k\2564\223\257\215\270\032\355\227^~quD\254q\323|\352j\032\201\344- \307\313\006\211\005\2117$$\20066(\326:\305X44\247\252\\&4T\3213\013\217\025\"\351\202\255&\332z\3109\324#\017@\\\251\251V\026\031\235\265\277s\233\0033\335\257\023\214\010q\231\371'\024\017\314\341\006\337\034Ob\234\375\360\346\360(\016D\224\207?\241\036\326\354\0315\016\315\270]\r\340\204\"\226\321\tUmHe\275P\272\032\376\r\271\0378\340,\n\223\027B\243\357\304\270\373\030?5\027\020=\376Tc\000r\236\2720\202$\037\204\337J\002\245Q\327\nT\336\201\255\244\223\313R\207nGq\250\016\211~*`\236b>;=\311\004z\272\036W\312K\317\251\261\243\322#\210\354\207l'\256\302\017\006|ICT\262\016\263\006j\256\222\032\201\345\352\t\200\231\t\235,\226\013\244{\003\346u%\223A\3159\371\316>\344\024U\327\324\024)by\315\272\321\0346(h\277\313\266\300] ;\036\001\355\352\003\244T\017\212\rFA\220x\220\241\222E\216K\035\374\002\266\366{[\367s\317<Hm\017y?t\025Qdb3]C\317\t\345Q\017\002t\250S\\\304\316\t\201R\332aH*\350\273\250\217e\314\267C9CL\225;\245\207\2636\230\257d\335\323hr\212\214\016SQ\346\305\000-\001Mt\246\200f\337V\302\363D\253wt\275\030B\355ad!z|\343\003\353x\340d\370\235%\260\310\243\000G\357\237L\373Zz!\340#\020\220+\304\010\301\374\331pf\224\222\032X\314\353%\242\0027;[\220\017:KIi\307/\313E\210\025T\251LA\004+\3103\020\034\257\317\315\036\332\341\312^Sw\343\353cX\232\255Q\2023\001\002\365\350\262\207\177\252\341\215\345y\317\244!u\221\245\334\030\021\207h\020\301\244\322\013\312Z\361\336\262\336pv\371\361\014t\027PS\3064d\333\312\302'q\232\014`""\264T\302\247~\277 |8\334\206W7r\270Ry\251\362\301\350\r{\034Z\251 \222\204\224\"I`\363\253\254\220\017\314\251r\\Y\r\265\216\344\005\206\253\305\371x\371l\263^\005\351Z\\\321\324\200`\003\301\354{9\023\271\214Ag\245\307\032\322M\014Y=\177\203\263\354\330Qps\024\017]\014j\347^\203M\027\310\347\347=M\234&\202\003 h\242&s\300\326\376U\270\247\266\010\365\017h\340\361\014\001\263\336\256\306\204\3237\363\266\355\341\343b\003B\3305W\322d\345\362\336>\njSf\026\270&\216\207\224\201\246\225y\300\016\332bN\272\005;\217\227\273\241\356\304!\004\311\317\223\223\2348;\274oy\327\264\222y\366:\371!\205\267\336\254c\n\220/\317\0015\203\263\256\204\251\277\224\002\314\253+\235;\342~\232\342\276\204\313\220\006\354\363\235\212#U\026\205\2557V\033\203~\241(7S\221\231\273\254,e\232\014c\t)\\\220s\314\275\016\376XM\324e\237\0237\271T\356Czb\251#&\357\212\210n\275{\370\035(\007\276@\322\306\2102JG\037\31609\205\345#c\206d\221\302\020\267\323\351Z4\021\263\303{+k\261\034\231\210\031\371,N\024\\\255f\357\316x\267\203d\323\034%\213P\265^;Y\254\215z\32516\344\207LI\001eT'L\363;X$>NVZn:t\311\320\210\034\377\r\346\344\333\370\246\331\301\017\276\210\305\024\004@Y!\324a0\201_{\354?C\364_\336\260\303\002\237\312\200\266\202\302\014\010T \356\250l\203\272\247\336S\366Wm\270\231\007\t\336\324~2\344n\005\237\027\305\376z\316,\303d\244\372\211\213\201q\210JKN\324\365q-QIJ|\260*Z7L\271^\265\026x\003\036\267z\247\\.\004\3101Ps\222\273wI\251\206a\003Lovh\246\0052sXh\232\324\0327u`\326\371\2336\307\2236pcz\305r\266M'\231an#y\271de\205rrK\0365\247\031;u\235\263\2632m\223\027v\354c\037\267\345\320F,\202\035*J#\024BDUC\330\323\354E\244E`\250\212\211\352r\302\306\002\210\262\032iL\221\217 \246B0i\246\330i\210\2164\030A\264`\315MEE\006\215\265\246%\210\2517\214Y\242\232\214\260}\331u\006\262\303brj\212H\245\364\356\t\232\n\n\302~KO\265\202`m.&\250\035f\2434Y\250\226^$9db\353(v\227Q|Cv\002\006\005~\"i\033\230\333\001'\260\301\007\270\355`?\024/\200\"}\217\357\247\362fq\371\347g\233\265C\002L\254\242\214A""\212\214\307\000\2704T+\035\210\024\326\026T\033{H\335\221\036\221\310q\010\225\311\014X\353\324\3309\037\177\033cCx\301\201\026A\ti\223\361\302\341\225\350$\265(\247\367\276n\247\007\273\r\001\004\017L{\014*\245\344z2J\355\253`&HBQ(m.\360.e\250\3263\030\351\310h\024\2024\325!v!@\2420R\325\242\352\312D\005\006\256D\262\326Lx\302\222\014l\254QB(\210\021\236\030\362\306c+& d\377\003R\202\006\320\2322\374%\211B\202\363\365\316.\205\024f\244\316\310w\340\375\224\314a(\021\026@\034\246whF\344K\361\256\242Q\333\356]V\003\246T\031\240\034y\365_\002\230\312\246\242h\326\247\342V\274xz\212\021E?\223+\334\226\347\254\320\346r\304\335\356\347\321\260\364\031\236\036\212\302)\347\366\331I\3050\017\240\251B=\355\337.\006F\"\rRU\366\340Hb-\346\233&\2106\367%D\347z\013\010TK\220<u\300\351\256\264M\367\206mH\035\361`\220Q\220\nm\264N\253\206:$\341\327\255\221o,(\030\214\036\324\377\273\003T\320a\326\252JE\016\235\356\260\337\211\335\307\2344C\223!Q\223\266\265\353\002\346\\\202\032\220\375\210\256\016\225\010\341\206\260%\300\307\326\300\323T\021\014\3050AIL\242@\322L\224\221\021J\251B\020RU\021\025B\004\020\nK\000\327\330\005\204\r\001\010x\000A\324O\022b@3\347l\221 USUE\002\322\000b\207 R7\031\022\306\303\215\n\363\261\330\247\341\313\016\315\211\240tz)p\222)\252\002S\271)!\311\303\327\236\210\367\013\231\314\0164\211\323k\024\032\340\245\264\0330\310!\023\367\256\006\030\332\220\314\n\313\304c(\263\227f\334\235\332d\202)\204\230V\022\222\252\225/@!\201$%\nC\230\201\031\243X\002\303\346\325\233\020cxe\005\374\266*\314\302BQ\346\017<T\016Bj\374\374\365\236\362qN\002?\200\036\241\014\365\016\331\334{\373}\221@UF+1J\3150\241\020QM\014D\210\020A\021CK\021\004\312P\275Nq\310H\340vz9xx\260\204\010x\302vQ%\035\3326M\217-\333\004v\345f\315\213\236!l&\276D\330\304\320\357d\0040A\032\234 \326\370:H\226\026\002'Xa\2618U \025BU3i,e\200\254\222\200\240\310\212\220\223-\243a\016v0\354\3758\333\357U@fM0\252\201T+Q\030\241\214\000tIY\035\232\313h\316(\003\363TR\205!\017/C\202;\247 \n\026\201""\002\\V\342'\010t`\206\215LEg\035&\215F!\233K\204\nD!A\014`\223t[\250\314u\030n\220\335\020:L\035 :M\323\242Dq\027\014w0\020\351y_WJ\275%\013'\334\226\257u%\365\277=\341c\177F':\215\273\361\223_\013\336\\\310\350~\333\205u=\331\261M\227+\010*\024\226jn\325Iz\312\351\370\273\276\037\217\251y\260\201F\371{\014\342\320]\2217\"\200\363^\247\223\371[\230U\250\210\177\250\363\363\036Mvs\212\365\316\355\236\016\327wm\257=\350P\266\350A\270DST!|)g\034X\021lf\304\351\2446\221\223\300{\303\310\312n\001\033\256\316\330\241\302\224EL\270\207O\t\331\337\2371\224\0240\203v\214\320\317cZ\264\206\2563\316\352\303\310\206\253\223g\n\027w\"\243\271\rc\332\357\347\255\372\336\245\276\277.\367\307'\036\251\323%B\242 \024[\224\357\354X\347\235J\"\010u\346\212\353f\344\222\311v\";K\347ow\357TO\210\327\246+\265\342;\303\0054B%\270\230m\025\356\347\214^\2176\356\232\347E\036hu\017\305\301\214n\311\243)\226\telzcp\306P\371#\310\306\274K\210\363\207\021\234AC\243\021\347\223\236\343<\245\275R3\314W5\336*\0036\017(\265\300\274\351\236\224[\300\362\324\240\246\231c\"k\235\374j\212\247&M\301[\321\372\364\024\202\361\020\030\324\010\306\014y\001\371\257~\214J\235\266\301\305{O\005\\>)\373\033\262<l|\nvZ!\322w\365VjKi\363\362\357\330\311\215\306\002C8~Vr\207b\360\013\226;H\350\"\320\340k\024\323\212Zk\315\270\256Dj\276\231{N\301\352\230\252\212&1\235\334\0302;>\346D:gD!j!)\026\274L\313q\337\231\314\371\361\325g\034\217\024\323\016)\332m\n\331v\257(\262\035m\270:\314\234#\013n\371\346\016{\235^\203\233\204[\\.\025D`\270\334\3040\223w\031\323a\242\023\024\217D\027\313AQ\344\341^\005\220\341M\253\340`\272\323\343\"\340\0306\303\375R\375\326u\210\275\rM\211l\306a\237\340\3346\205\330\025$(Y\355$o\256\002e\2550\244\037\311\336N\347\224a\226N_\002\024\340Z\342\232\212\370\037\310\306-\326{x\343\256#y\314g\023\315BN\350\215\254\342\201\364\375\304C\271\234\216Z1O*4>\371\331\274\030k\035(\343\275\3178\342\362\251\235\347b\034\241\316\226[\024\273\300?\020\236TK\022\323:n\231,>\260?\017!Q\277\352k\217""\016\376cr\330\327\253i7>\027r\361\007\256_\267\244\2120;\321l]{s#4\026\376\204\004&G|\202\324S\263\016\001^ui\344D\0134J\023xw\rg\2005\350$\224\224\210y\3367T\303\255\273\3733\224\020\253\315\274\3263\035\037\340\230\313\256[X\317\027v\225\3035\003\306\273E\267N\354\317t\207\223P7\265\340\2553\252\n\363\317K=D\034\246H\322\341Bo/\016\333A\346\310\301~\337{\014\226N\351#~Y\037\215\314\233\260\2611\014C\033D.\t\362\032\242\356\346\255A\257dY\263\003d\235h\241\255\"\321t!\202T\210h\226=\236=[\rl\331fD\205I\243\006m\243k5\2243\221\002\211L\253\004\243v\366\177\004#is+\366`x\017i\203\364HC5W\361>\005\016\035\013\243\027\361d\2528+\255\212\226\224\241)\300\307\n\225\252\372\022\323\260\324\263GS\230\373\317[t\201\217\036\354\374\222{\304\356\375m\232S.\217X\251jt\312\222\344rd\217\300\326\030\334\2032\346\030\330\325\364\271g] \r4\331\244\252`x)\213fy`\363\253\253\223\327R\321\354=\226/p\357\307(!\270\314R%\304<\313\3004N\216\226\3068f\3469\371=\035\217U&\t\353\332\273\235\217k\252\263\002\0230\007d\303\034F\352{K7A\341y6\251[\002wd.\330\303\311$HR\362\356\237\031\177@\223Gh^\317I\261\024\254\332m\267\205\035s\014\317\007\366\351$\322\231\352\253\244\343\313^\376t\353\345\327\221\375\323\333Z\031\341w=\025\266\333\247.\324\206\357a\016\3057\244\375g2'\256\212\005\003\336\236k\320\355\340zo\256C\311\233\033\353\330\362\236.\206\230\313-\233o\261\020\356\276*0\250\376\221\263\227\030\353\247\246@\233\203d>\353)\255\333l\372\233\324\361\r\210m=\234w\365\301N\344J(\303}\006O7,V\224\025\024O\017\206\214/\217g\301\265\223\273\264\256\332\275\272\\\205r\323\315\340j&\030\272!q\265\2519\213d\316\014\"\354\353\307\003\216\3729\271\007]\367\351\310]\246\263O\016\234i\257\014-\262\0263\021\223\233T\346f\275}^\207\326\035\347P#\251\237f\246XC\r\353\211,\030_\036\334\210\311-w\236E\n\3572\001\t\010\020\215\333\371X\275\254\323#f\271\000\360\210\022^x![%\217\010\224\221\221{\205u,*\"\362\3559\365N:6fL\226\364\210\356\226<`\242y0\315\325\243?\034\373]\006\342B)\010\241\233\263C\200""\234\365\203o\026Y\025\3319\354\271\251L\327\267\355\320a\242\374\357\204\n\325\307 u\252$s\024V\255\375\226-\037\t\322eH\265\022\202C\t)L\314p\263\267\034\n\277BP09z8\006\257gYs\325\022&%\360<\275\2543\302w*\351l\254\001\223\014T0u\341\333\264B6\262R-\206\310oE\031\261\250\330 \030\230\340\261\226&.\\\026\0356\357\302uI\311\333G>m\334Cxc\"\033\345\360\033\007\202Y\003)\006\233;\231\353\010\212\207\345\352\334<\tr\243\322r\037.Fz\346\247k\304\315\222\010<\3208\316\231\3204&vy\264\365k\331\267\035\t\342\024\211\024\010\350\321rx\245\004tP\332\006\314\027\217K\212Mp\303\"*\240\233\377S\255\234\3204\010'\257\333e\361\361\326\210\354\211P\201\t!\206\272\260nA=\354\036?v\353\272\376,\334\234\372\355\233e\002m\216 \037\202f\312\355K;\354\370\270l\371\200~\221\017\244\017\235\016\223\035\003\244\035,[:\036\326\201\035\244\306\201\r\007h\321\265N\"\226\206\366\305P\225\024\322\364\312\210P\321\212\021\241\221\202\323\311Y\234\024R\306\326H\020\310\204\353\362\356\033rP\244B\314\2714\316\220\302M\366\336&\357F'\203Y8E\221{\322\254\2564]\311d4#:\334\224\276\224\334lj\311\2468L\317}4\023\325\034\310.Ps\005\303\326\\x\204\016\272\220u\204\235\235f\316\014=\254\337\021\332\261\216HAp\353\257\030\\D#{\302\347,\245\321\305\333]\034\352\\\341\266p\261MC\273Q\246\356\241\021\363\373K\014\206\316\201\303;4f\256m\310\245\230\222\247|\320I\001\325\232\302t\027\2501\nWb\311k8n!\356i\223&|A\031\247\331\023\027Ffc\016$\370\350vK\241\367tqpp\034\352$\345\243;\216\322\031\303G+\211\352\237\032\007\323\350\346\033\347(\332\231\2735\334\220\331I\223\2750}\250bqri\005l\247\316\337y:e\007\t\026\270\333A\"A;\340\370\221\000\300K\314\"0\334;b\204\233\263S\014\305\r\273\350\213:\235\303>u\306Y\363E\234\232#\202\221b$\001\323i.-f\360\342\207\206\035\r\200C1\243\235[\264\022J\246\313\224JJs\272\2662a\003\300\324\241e\272v\033z\001\315\213\25048\030\220aVY\350L0\310\374l\3076\270\242\222z\326\353\007\252\202]T\372\267\3210\315&~,\357\003<\274\333p_V\037\010\021\023BzhNZ)\0208\005\242\330\352\330\350""\331\207\030rH\345!\3124'\205\024M4\214\020\224\201C\004%\001\033a\222\023-\0032\004\234v\340\036b\234Xz\3705\315c\365\032\264\315\267\306F\003cjV\026z0\224\230U\021\210eMw\001\350dpz\310\3010\245DP6\027I3\003\023A\021\003{IM\206\360\3246.47\341;w\354\253\355\266\322w\031Y\255DS)B$\312\323=n;\307\246V\3221\252\303T\234\346l\322\326\342\024\360\0060\017F\337G\267\322=\262\205\263'\230m3vf\354\320\035\334\316N\361R\242\014\303\260\264J\251\2110Y{\364Jw@4\242bh\035\301t\330\201\242\213\265\335f\363\205\007l\344q\217A\246\310\240\242\316\303\212\036\\\302\001\300\260cC\211\215\340{\3675\304\260N\252G\323\006\310\302\324\036\210'\276\306h\247\004\370(\243\331\003D\266\006\221\t`\347\276\374\270r\341\313=\213\363\332\346\3723QQ\021$+\3162\241\351!\203\311\2108E2A\236\335\260Kh\227\004\316\3374\2154/\201)\220:\330q\001\341\307\001w%bi\032\006\222\224\032\374\331\014\201)\026\205\241\241)A\241\n\021i)J\021\nA)\177f2\007\204\246N\370\333\354s\365R&F\224\304\3202\247kAh0b=\303\204\243.\230\307T\006\24053`\006bb\210v\"\357\305n\007:H\014\343\264\233!\232L\006\320\341/\271&\340\250u\016\362\327J\003;\032\004\213!\340\217\005\263md 5\320V\r0\353\277>u\n\263\035\324O\265\036\323\260\346\033\267o\224\214\020\356k\022br91\227\227\300\321\323\261F\225\254\226 \310\211v\266\023)ZQ\342\221`\275#\rF\363BS\nZ\234\t\222\034\264Hom\024\230m\0148b\301\020\231\315a\014\014\006$)*\211Y\204\035\341)\331\212v\206#h7\205\240h\035\263\005W\010\031.Y\201A\251L\341\221'\0024D+\001\020\001\264\272\240&$\332\230\206\2661\0138i\310\332\nJ\013\0145!\264lH\221%UL\0326\305u(\304\256@e\234\300:n\370G\036\016\312|\316\006\271\314nbb\306\003\324\036\307\266\304\336na\271\006fMp\343\256}\312y\010\rT%\"\236\020\005 P!XB\361\014\360N\270\033\"\263p\353\206E\3037\326o \221\204\204U1\304\316p\2069Y\317\376\313y\031\2530\341\271xN\005SE@\244.\233\263Xw\357\241\034H! )!\"\027\003\\op\256\233Sr\356\317Aa\210\236cUT\243\251\313E\032A\022\343s\\wxQ\330\031\235>\014\027\234V\220\301\263\274\246\333\270\254\221=U\026""\2224\306\020aR\2157\031\362\030U\203\304n\244\217\013\017\205\003\030o<\002;\223Ha\nx\210[\233\341\345\200\246\255\361\215\220|\223M+\264o\331F\213\014\342*q=\356\033\005B\003\277p\205\272\215\000\005\351\3037\023kV\020\036\023\226\263\016\332jy\232i\254\264\0334f\243(\361\254c=\205\030V.\314\325t\331\033\332\343EH\352)\204J2\263\020\240\351N\313Y`\324\326+<9r\212p\242!\311\201\346\034\356\3257\005\364sx \035\271\264U\021\035\270\340ST\2470\007h\005\327L\235\261:\234q\244!\342\316\354\201\355L\276\023n\023\215\006j\2426U\002\025\026\223P\024\215U\024\276\324\205\306*QZ\273.\r\037\214D\242\203\205R\020\225\306\264k\300-l\261\373\347\260U\366*{\005}\210\036\304\366>\314W\021\305q\014_\263\264\000\327\337\373\233z\341?!KV\277\326xX\000=G\212\373\220\373\320\315\331'@O\310\263\3510{Z&B\000\n(G\264\016\261H\300DT\225\006\n\020]rkt[Y\347P\tl\021\2208\344%\251\2747~iR\006:\037h\323\230\004\270_1A\345-\272H\200\211\222:\317\305\343\014E\367\263\360\242P \304\"(\211(\003\364\206\213\324\235p`j\236j\376\311\255\nhe\027\232\371\r\364\241\020\315\020'\200\001\261v\304\260\3312\223)\240\260\227\245/{W\274~Wh\246\361 \224\210@\002\201<\357\370\273KX'\345:\005\026\364\234\276%\261\277\273\017\317\273\007\362o7i\237g\345\307}\227\264/\305\370]\003\271\010\024\357\204G\323\322#Q@sDd\t\017\234\203\246=\2206\341\337\350\300\206\024A{K\336\203\334U\217\351\3470\364@\221d/\024\344\302\230\202:\027\023\320N\333 ~\202*\206\237n;\313!\236\305^\301l\274\314/xa\212\340\023\322GPo\267\037\031\370&\"\207\323\307\307\344\333\330&\217<\030t\351\241\326\265]\351\340L\020D\304\005*\021J2 T\007n\000\246\217t\370HBtZ\303\340\362\370\306f\265\221\363\257\2226\265\024\2251\223\270CrR&!)\n\240h\270R$\233%\310\352U1\003\211\002\327\032\223\352F\302\262z\274\266c\2267,\033\226\334\260\346\2077\233\261\271\224n\177T\372\234mQe\317;;0\330&\357\261L\242\374\246\022yyV\2639\010\376\202\025>1\333HD\242|\211\275C\2720Ra\353\365\221\356\343vFM\326\303U&>\346\021\254, \300v\253k$%$\3132C\002\262A\215\021+\033FC""\033~\336S0\020\301\202\375\t\001\236@q\010\203D\237\005\032\235\236\365n\237W\267\020S;\234\t\034+}\255c\215\315\007+\330\325\016\024\241j\202\014\373\220\340\206=S\003\260\327RpPy\214\336\r:RLd!\204%-\345\260k\317\272n\016\315-\330\026'\\\017:\324\232Gn\027\260\3007\342\376)\276\217*\200RtPpY4(\334a\223\022\226\343\r\241}_S=\366\033w\255\2741\274\006\360\033\314o7\244\364\246!\211\257W@\3302D\203$\237\213\370\013\033\345\341\317\364Z\304}<\253Aa!\214I|i\354}OUUX\001\357z\\}o\355\340\007\302\227\025<\301\324\210:\355\206\026\260\326\241}s\320\200\275X)\222\021\r\007\331\235\376\205\343\353\330\016\022<\320\372\307ghl\216\360$\200\347\252MQ\364&\232}\004\0136\333\245J\325F\204C\037T\003/]\351\035\005\332\034\363=\203N8X\3168E\036tz\376\177\001\017\001}\3607\003srZG\260q\330\273i\360v\324\"\232!\236\357\007\035\322L\220\231C\317\010\001\361\024R\260<\215\377G\223\222eA\212\303\206\375\370\300\3237$\205\311a\250m1\r\007\323\210\200\246-\2404\006d\220\356\235x\211Ir/\220k\337\265^w\206\313\210h\010H\310\255\342$>a\006\246e!a\310\335\334\315\360\367>\277\305\354\017\244}&\221\244i6\341\275\252\341\221\336\030\242C\261\316\220\353\n\2169o\023\247E\346P\241\016`.i\037\025&\345;pt\237\014\215&N\343\235\035T\\\234\022\331\305\232\234(\022%TI\301%\331\372C\"1\264\316\320\230\247\343E!*t\325\210\031\260\232t\233\267\004q\3176~Q\316\210g\2273x*\326\366s\031\037\342vb\332M\322#*\262\343\223l\366\202\332\251\273K\250^;g\271lE5\253\236I,$\326\216-C\241\031\275\217\t\266\232^f\374#o^C\211:\007\213\016\265\253\322\351\022\035\025\304\020rF\215\233\026\2230N\3451\273\341=\276\376F\331\336n8\356\\\233\305F\n\252 ,\220BK\373^\037\246\326l\204\177U\314\251\323\336\001\336py3\307%\234\2060\013\321\246\240\256\222C\336\241E\200b\240S\255h\003\021\361~/^\301\311S\020\005\013 \333\020\003\"\270\301\033\271o\021\020\305O*;E\237\034\345\306H\031\373\n\204\003\345\333\001\341sNz\352\277B\007\020~\242Q\003\340\2000\016\273\351\327\256\342\306\2565Q\250\323g.\314_^\\\374\274BO1\225]V0:\006T""\331ilI\241\233\347\335\334cq\233pm\300\334h\360\02737\364\326t\271]\316d!\370' Q\327\3430\334\034^(YmNS\310\030\032\006\367\022\003D@\232\200\232\005\265\364\342c=\230\317c<l\360\301\301\3479\237Q\240#\204n\016\340\373\331\372\212\371}\257\205\377T\221\321\247\260\324\224\261IM8\375N\277sU\315\336\360\362\306<?\231\363\304\224\275\213\327\233O\233\314\275\313?\243\2243P6<uu\345\177#\3205\001E\027v~\317{\336\"G\343J:\010\204\247\371\256p\365Q2\277\217\366l\214^^E\3739\225\376\371\332\201J\214\343\031{!\317\206\035\263N\017\227\3163\211\234N\025\333\331*\ts\023u\177nq\222_\031t\317\017\031\314\\=\242$\270|=\333\335\334\244\217\370N+\027\232\300\251T\345\353\021\213\247A$\246\356\241\030\234`\367w\276\264\314\220\022\255n\305\276$/\265vD,\357\217\362\301\375\002\177A'\355\302P3\014@~\234&\005L\262UT\264L5IKM,\263-\0054\001E\004\316FE4\322\214\207\371\246$\242Ri)Z\003\262\245\034\205\211|\277\225\247\017L\210\250j@t\177\240\300\373\207\311?\217Q\257\3022?j|\272V\362!F\246\021\001XI\024eH\370\354\022\374_?\366[\243\370\305\240\017M($A\243Ct\201\033F8\2061Vc\002\311n11\013U\201\025\206XV\321Z\267gSBY\000\214\031\204\024m\216D\332 \327\267_\277\0023\366\211$h\247\3242\230X\312g\353\271,hb\036\306z\235.\355b9SJ$\264\035h\303\252h\310e\026h2\332 \302\332\022|\203\352\021~\357\3342\237\031\376v\241\006\2531\374}J\301\260\0315V\030\344\232\273+c\177^\234\333j\006\024\021\306P\306\203\215V\216U\022x\316\037\237\203\243\377,\205\373\221\177\353\017\222X46\037&\034z\376n\213\303W!m\254\270\3521MR\213\230\305\030\025VAF\202`\037\345\220\035\364\342\007\r\303\r\377\212\374\222\276\226\005\376\314\317\371Y^E\031\232\321cX\230VD\3530u\233n(i\202\277\3011\253\226\327\366\020\357\347\377)\314\342b\033c\022:\357j\033mprw\246\231d\356\323\321\240.\367\021\324\343A\266j\220[`\302\322\226\346\0131\241\230\305\202\202\302\221Z&\022\347\332\302~\003\337\225\177\014\272\301?p\317\254\361\266?\247\255\352b\033\376Y\325\204\033\217\220\256}\352?J\212[\267FQ\230};\003\257\343\247\033jc#\2206""\021\262\r\\L\201\326v,x\017\352\376\201\372;\214\375/\342K\376y\221\233\352\357\003\372\031\316\r\0303\366o\352\230>\241\276\273N\365i\205a\246\2436\024\245{N\"\013\3027\223\366\331\357\203\"k\207rw\275\336-\3454\330;:k\006\322h4\372\347*\3438\373\2175\003\272\333{\nE\324\3123T\322\213\351}/\262k\351\376\242\354~\276\276\245\330\243+\343&\364\363\000\34288\337Y\374\374\342\257K\375\364;\272\314\020\304\333\346\242?\376\235\321op\026\247!\037\206\231\277\016\227v\271\207Zr\260\\$\235\206\310\333\201\275\251\210\277\21304\223!\003U'\t\211\t\201\177e\376}\256\323\373\026\036\337\334\375\272%\002\202\037\3360\213\177\212\017\304V\032\000\245\327\354\311(B\251l\264I\304Q,\220r\010r\211\021Bg\024\273\215\3173\233\253WI\313\221\350\340\316\032LM(\223\227Q\2665\250A\034#\344;t\020P\177\366\322\013\263oXo\223,\003\023v\022BI\033\350jC\373\337\213\371\017\253\365G\365\215\365\275m\376\266\2276\263\374%\346\3152\307\3639\275\275cx\"\177\273k\203\361\274\336\234\300D\227\r\375\370\236\213\335l\347\033kd\223:\235aG5\220\262\344\276\027\377*oKC\256\262\326u\324\217\rB\n\264N\244\r\367\233\273\322\220\3046\330w\213\332\267[\335\357\243\377\277\004\305\374;\236\372\370&:\247\372\304\237\350\376\0104\311\3061\265\024\310\230\037\257\274\022?O\217\340\243\374\334;5*d6\334\214\253\201\322br\353\232\206\223\213\264wc\020\223%\203\243\215.\014\274\020^{Iba[\t\357\234\0318\241\275\370\324kP\226\262\346\264\355\0370\215\230\326:\016\r\207H\266\200\357|\177\027\361\361Du\362%\002\020\371B\010\371g\030\023\214c\020G\324\217\2338\"\362$\1773\266\226\317\345}[\266r\360F\037\204UR\301$\307\376\356\351$\373\311\324dcS\274\271\220\336K\002\rN\274)\257\030\365\340\266,d\361\305\203k\307(}\323Z\002\370\365\205\214Q\236\035J\327\265\377o\261\366\016\231\217.\177\233\367?\367\375\352\316?v\302\010o\373\250\210\203|b\270\277\373\357\227\211K\375\354\230\276%(x'\021\213\246HI\331\212M\307zn\225\367\303\305\242\216\317\036\213\251\3125\000;u\377'\201\tuw\310\362\251\326Y=\211\312vs\233\343y\247\202""\204\343\n7\032!\376o\343\367\317\336M\257\366y\217\262\250L@\327\373J2\212Z\031\277\203\207\3720\377\327\003u\0229\\q\337\370n\177\213o\341\356z?\350\205-\255\230\216\235rA+\273\212y\321\231:Q\326\\\177\276\234S\252\232\271\251\250e\2148s\267\274\254=\221\276]\271\306)_l\321\010%\273;\220\265\325\220\345iB7t\3556\252\325`\023:v\223\367[\357 ?\342~\367\372\037\244\251\277\343g\357\375\364\355\257\277\374\031\033\037\300q\377\002x\273\316\033]a+\346\005\324\323+~\0042\343\021\344\316\314K4g!\235'\323\327r\323\271<\252\343HE\233\246\250\224@\241?H\211\266\347/T\330\036\221\370\353U\3158\245\000\255Q\312\037\n\231(}\275\366SB\224\316\223\235'\271\237\337\375\325\373\316}\377\274\227\340CO\360O\263\367\354\261\277\013\352\211F\265Fx\250C\237\200?\004\360Mp\3346\371\374\002}\335\021\264\023AQ\004C<4R\2265eGW7XM\000\341\3164\326tQ\327O\243\360\246l\307hg\323\3165\000\216\320\334\250\252-a6\033hg\246i]\251\242\304b;\335Pd@\252\003\225/\257\352\361\2368x\224`\233\313\342\377\370\362\375\365\3746#Y}<\026j)\372\300\325\374?\207\210\266\302\265\323\273\331\376\356\267\374\275\373a\314\364\354$\035\321\031\236\245r:\312\304r\2410\222n\317\333\030\273\037s\261\370,z\334\243wl7\206\336\262>\354\201\211\243\273\226\225i\3532\201\343+\035\344E:\n\310\264Z\014\227\332y\374_\366\330W\233\321\017A\347\246J$\323\023?\225\030Qn\004\205\342?\021\270l\037\251\232\243\037\214\311\376\222\370\257\307O{}vq\234DtuNIH\325\221\014\346E\027\274\314\377\247\004\010\345\023\241\307Z\035w\247\2073\202\005L\225\245\037\204Xu\241\351zs\276\303\0234\237U\0203\2168\361\007nl\264K\367x\375\343\367\327\357S\177\234\374C~\373\301o\022\362\360O\342\374\031,\224:kC\240\257\305\370\335A\2038(7\367\226\261\234\300\016\233+\361\010\374O\320\350G\343\024\345d\241\311n\235\253.:d\203\027\330\324\340\316\024p\255\244\324\031\257\345\214\010\326\317\365E\316\216\024\2629s7\216e\246!^w\223\247e\024\363\245\344\036;\347\231y\177\333\277\351S\374\335\277:\034\374\224}?\234bD\377\025O\361\274U\247c\024`g\374\315\331%""\327\016S\n\363\257\303\241\373\371\3076(\224\272}\010uf\270\353\305e\373\220w\345\312\345\233$F8\247W\335,\020\231\030\210\217\034B\361\333\274\251\310b]\210\\\370p\202\234\256Gkn\204\350\321\023\231{1\260\251\375\357\341\365\375\371\342}\342\270\275\337s\361Na\203\367\275\336\031\247\336\330\377b\251\312\376 \237\365\307\020q\245;:\333\347\023\000\222R\032\\.\247x\023\310\004!\203I\232US\327\374\0365\272 \223}\246\rV\023J,\207h\035\361:Rcv\030xj \313\326\221(H\354\233\010\213\311\221KL\223\261Z\032D\236.\310L\246\354\364\305\341\373\010\027\233\314\277U\357\372\021\370~\220\364\363\356\316D{\206t\257\270\275\336gO\336t\260\355\320\367\302\005\367\242\323\362\322\277\032y\233R\254t\325O\014\262[\226*q\3578\202'{\202Y&7C\305\270\371\213\220\332E\274\3049\251\304*#\262g\027\017\210\311_\300}\323\361\377\257\325\177\371\373zb\307\355\006\241\177:O\320\217\356?\353LD\217\331\005p\375\351Oc\316#N\355\2178Z\233e\323\303\234A\035/\311E\250\347\227;\367\213\347\034\365\230I2\026\222l\032|k\274I\305C\342xp\274\216\312\240F$\216\215\306s\220\311;\027\020\374N\257yA\334\275f\017\341\037k\367\033m/|\367 \375\323'\273\370\010k^\377\271\333\336\322+\370\363\005\234q\371'\025\254\26787?\222\001\372\323A\201\337\362&\355\260\270\266\272\203\010\333\271\203\030r1\273}\356\204\224?i\316I\3173\231\346\273@b\370\036Q\032\313\n%\026\234\335;Y\n\022\357\371\327\341\207\321\372\277\247\366\234\210~\220f \217\330_\252\375X\373k\336\361\327N7Y\370\037\276\334\360\251\371\221\r\303\37678CM\214\035\222\310\331\347\256C\246\314\235\243\357hW\036\231w\203\273\030f\210jG\333\250y\260\352\230\256Yg\356{\377j6\036\307\361{\245\373\276\373S\207\335\367n\256\376\376\036\261X\326q\374u\203G\362s\003\376B\210\303=\177#\271\227\265\234k\2470W\370H\351\3428F\316\330\337\362v\256\363\306\304L\3071\270`\265};\233g\nw\023\277RX\340\331\010L\362\373\203~\361\356X\323>\367\335\247\336\372\307\337\373\377\203F\275\336\303q\377\330\354\373\374\207\034\254\324\253S\362\376K\356!\253x}MCW\032\231\264;\361\023""\247\315[B\322es\006\356q\213WN\353\362rj(\241\361\332Ro\007\337\023z\222\036\363>\363\017u3\335C\323>\353p\373\327\335\353\336\272\367\371\002\236\374}\273Lo\242\334\223\227\300\343\227\273\277\343qo\240\255$\334u\030&\205\t\372\306\247e\330DJ\272]M\337\317\346\363#\276\316~C\230\275/\350\031\036\205\024\2754\222)~\362g\357\356R\316gYH\247:\346\363T\306\342\323\314\016f\275\347\356\361\303j\275t\364\221\0253\262LD\203\270\274^_-\321~\016\371=\r\367\304\363\320\353\362\034o\313\323XAw\2353\021\310\371\367n7\221\037X\326\027#D$\236/\255M\034\036\365\344\323\224\203\361E\223g F\310[C\261U\276?\023\237\201\004\376?D\240z;\276\203\317\351*\237\336\332{\316\033\177\212\261\224\366#*\r\375g\r\005\025\235\345\354%3\363pJ\007 \321\212\214\220\253y\320\341\351\241\313\277g\207\305\351\276\311A\331\333\314y\035\274\357\035h\322\276\334\377\203\354\316\355\261\3445\203/K\276\203\r\344\266G\233>\335JY\t\313\320\355m\025\324S(;\216\250\255\347\356\236/\257\017\233\305 M\037\031\342\231#\313\347\3635\037}6Cm\376\376j\277\201\030\341\313d~\034\360\233\360\333\335v\014Zr]\267\303\264e\022\205(\205\003\302\213e\002=\237\253\305\223\372\236x\277\2057\216o\350\361H\207\225}\376g\363Z\016?@\023s\014\237\034\347\2331\206\036Q\201\336\032\324\343\360\303\033\273_\206K\305\302\255\300t\251\221\017=\236_\265\374I\217\034|Qo4\230\217\220v\235\036i\323\242(\216\236/\346\205\001)e\345\316\362}\307Z\274\361\352\014:\236\033\373o\0364\374$\352u\367\027\205\035\016\202\202\3517L\252\246\312|\232\276\177\033\245\374\2731\373\217\017\217\310\211y\010\323\004\016\210\334\212G$yY\366\233\275\261i\351\266.\201\363v\360\177s\370\213\341;SMU\325\365vW\217\355h<\035x|c\311G\226\217\034\037\316\345\037\264J\220$\353\357\363<|\307\236\213i\376U\306\221\307\252uE\223\247\215O[\236/\263\355\276mxZPo\037\213\317\344\246E)\277\204I\t\335~\0361UH\3742AR\342\\\255p\341*3!\215\275YXulH:u\350\223\330Fk\357\354\371\276\343\356\361~\362\364y\177xz\nx\302\207\240O'iYB\201BG?\321\307[\253\337\341\337\007l\276c=\221""\327\342\2628:\373\307\336\375\377\277\370?\201~Y7X\210pt\357\3748\214V\023~\024\261w&\221\370+\360\306p\304\353*%\352b\234~5\350\375\275=o?\222\020<\336M\231\036_\034'\351Ty\376\37152\364\277\255\n\227\247\323\n\013\222 \230\272\317d\243T\245\024Q\021\356\222\223J\357\327\342W\033\303\344_\261\263\345\017)\350\362RzO5p\267\357\231\013S\267Kk\370sPS\272\332g\0217\370\267R\255f\344*\\\356\341\244\250\037\366\363\375\255\341I\274\236(\236\177\314\211\t\371a\026\364:\241\316\024y\342\212f\020\257\321\t\3165\301\336\265\000\220\241\365\372\377o\231ya\373A\377i\023\202\362}\360'\020\241\335\247\021\323y\217?\"\311y\376\372\250)\204\213-\364\020\222(\217\237\254y\037\3567\375\021\214\274\310\362Jp\373\321\345RL\227\354\212\242\361Rh\302\210\225\323\032+z\374\237_\330\276\327\375O\020\242\274^G\242+\315\003\312\242M\177)N^iL\250u\024\365\371\241M!\347\231%\017\247\354]\217\257\303\373\236/<\302\212<\252\2374\252\204\211?\2262\242H\214|\322+\235\020>\237\263\303\323\377'\360\3717h\231\342\036G\2221%\343\207\222r\2522\363N\026\310\242\020\027\327\363\365\376\337\272\0363\302\362K\354\027\206o\017\271\310\236*a\342\3618\365L\235B\266U4\255<\237O\313\363}?W\325\377\357\t?%#\375\312Ix\343\341\204\244\321\215uo\302U/\024\035\347Di\337>\217\247\3717\357\341s\353\231\017\257\371F\231G\307\345\223$\022Ro Y\003\213\363|\277G\331\363\220>\231\312\016}\016\020!B \336\027\373>\312*\237\002\231O\007\352\206\375O\256\0371\364\273\312O\365\"p\232'\366{\337\037\203h\202^\377\200M\340?_\236\r4\0375\020\326\370v=\367M\371\376\212R\370>?\327\346\252D\231|\257\\>I.\377\274k\367\2018\237b\007\350\207\357\316\020\370\024\307\375Ji\246\177\027\271\334\367;\250\366\374\214$\230\212\037\327\355\037\247k\264\321\366d\036!H\177X\327\355z\275\224lG\327\207\362\365\263u\007u\353z{>\236\307\254\365S\374\275=\200\371\327\250\376O\201t\372\353\223\313\345\363\177\017\027\347\016\217\217\226b\367:\020\340>\216[\354#\353\377\243\036\377\314\273\231\363\363y\365\234\021+\372\352\246s\017\022\204\3538\251T""\356\343\326\343\344\224`\362t\246\250\2251\246\023\224'\005\326z\024\243D\350\312D\371\233\301\351`=,7uyC\331_\344\217\345\303\361(4\2208XY\004E9'>\337\355\356\221\nS\331:<\267\307\007\3533\037I\277\245&\257\205\373\247\263\3673M#i_%\226\243\025\237\216\374\020\257\223\365\274\377\275@\376*>\275U\264\177r\347\340Ca\334\360\351&L\204\230\330G\324\177.\326\231\001\275S\261\364\032\255\001\315C\345L \374\023\032\2424\277\010\353j\214\361\326\350\374\324p\206\262~F\303p\377Go\2160Z\3425\265\275\364?3\257\320\331\010-\243j\010\327\016B\361\2367h\032\354\333\006\267\037`\373Q\004A\326\276\262\004#WS\352\020&\322\307\307^\250\240\316\354\351\260\0372\314\226\203;\211\016\234\360\350ee\333\350\032!\237\225\275\225\320P\0370g\347\244\332\373y9\3311\377=nb\370O\351\262\261\276\020\321\274\310\351\027\371\227\017\245hd\376~3\324\267[\345\374|\333F\324\374\035<~H\357\310\376M\344\273\262z\1776\374~\343\360?\227+\356\270\037\317\374\277\023\361\342\032\276#'c\370\345\351\267\261\371s\353\203\236?\202\216\307\003\313\254\240\357\n\332J\023\203\303F\211\304\256\246\022\2245\313\216e:\237\023\205G\343\212\216UgZs\003\302WP\326\277\306\370\234,b\014\217Wyw\301\206E\311\203\025F+\n\250p\315T\335\312\014B\252\301,+\266\301\004\3478{x\230*\240\305Y\024\371\267\303=\325b\321\206\271\244\224\244**\026+\350\251\305\262MS1\017\006k9w*\320\344K\304R\376\226I\222\355\362\361\222\254\233YH\2342\202)aG\355\334\025\232\300V\013\314\315(\222p\207\305\331\025\030\210O\213\261C\334\342\351\225[\313\324\301(\272\037\025u\207\242\025\271\t\342\321\217'\303r\260cO\n\231\311\322w\243Q:W%=\242\356\024\305\335(\262\237\t\361s\211P\345]\342\314=E\270\214\030\211\301X\034z\250\271\0212Z\224N/.W\234\264\316d\272|4\344{\310\336oN\252S\234\216\231\254\342TY?n\214J\303\274D]\277\367\342\251i\333Fj\024\217\024\353\005\315)\036\356\340\233\331M\214\021\252\207)a\357\374\267\005\351\225D\230 F\023\346\365h\244*\010\010\300\377~\312\3120\350\207\255\n?\306\256uS8\300\210M:\341\352V+0!$\317\346\255\257V\357\215""\031\227&\323\273\326/\n/\365\353\026\261y\302-Lg\026b0\344\342G$\210\250r)\\\342+\374\212c\te\347+0\2236Ji\222\007\250l\n\252\036iM\305\003\334\315w\243\211\2416;\032g\\p\311\310\352o\227u\2605\235U$\345.\336\346\215\265\232fL\336\311\267\036\0162\233\342\262\234f\265mu\021P\364\235v:\032\2626\\\244\346\023\254\251%\016\017B5\002\326js7-!\020<\245\204\331\2102L\324\341N1n\367\225\230\254DOw+.\2472\342Z\251\334\347C\2310\363m0\360\360\331\253\023\310Fm\307\273\266y\232\251\300\3557/xN\351\211{\306?Z\256\361F\265\214\342\034\274:\336\240Q7\365DE%\304\305\346\324\304\347\211\202]g\022d\245U&R\205\336qSj.CK\232\342\315k\223[\310\3574fkU\311Y\241\313\322\242j`S\005IdL\275F.'\030\251\202&\254\243\024\234y\312\327\324\311\3274r\235a\327;\023Xp\247U\235\032\247\026\\]rCW\255F\232\3564b\242i\345\325e\354\326+\031,x\270'9\271\267/\027%\325\\,\273\335\301e\324Zu\202\337\0250\"\341\377\263R\371\3117\207\214TQS\024\357)\361Y1\027E\247\024\017w\030%\333\320X\302)\\>e\312\306\\\302\021\002\2121q\212\300\225\273\341/\331\271\306.\010\214\223/2\256\262o$4\312i\316\231y\221\223\227(\260us7\317K\273\350\267?\302DS\032\247\247\316\257\004\2278\241\022\177\203\0238\244\332\210\303FQWZ\260\342\305f;\t\374\2317\233V\347\\\311\262\357\257\322\3215\317\205\323\366{g\316\341\342\307|\353G\021\205\355\214M\307O\257\373s\372\334:\340\262\022I\334\314@$<8\261\375\310\341\010\327\334\273\211M\315\377\341\301p\362;\027\376$g\232l\177$Ee,\330\277Q\376\303G\177\3265\304\317\355\274(?uf\034\263\2169o\320\272\306\276v\211P\203MX\327\365\034\272\3066\2611\233\0255\312\0352\217vs\227\3739r?\257S\262w\252\\\234Wo\261\246\317\0306mT\255;\313\250\375\275\3403\230\270\274e|\252\013U\2070\271\232\270\237\347\320\362\252\236\321\264\215\351\031E\345>0\356\355h\025\273R\313\260\353\027\025f\035\342n\017\210\207\374\247\225\032\3264\345J\323\301\205\201:\211\221\324\335\3476\262\207\306^`\301\224\346m\341m\350\263\010zD\013\031\270\371\323\341M\276\241K\341\337dU\007\350\263\177\2665\217a\267\332\315&}b\337""\005\327?\231:Y'Fp\256j^9O\273\212\233)\326\320\371\230\250'\023p\345S\001\204\003\343TvUi\320[\273\304\021\233|$\245e\005.\021\272p\225\254\177\027\335\226\341\006\360\223\266S/\025\032AI\215E\314\266\320Z\032&\236\006W\375\204\370\325Z\252C\216\260f?r}\337\013\335\037\252\253\205\305~\3368S\303\221I\362\263\377\370\273\222)\302\204\203\347\244\256h";
    PyObject *data = __Pyx_DecompressString(cstring, 42005, 2);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (47946 bytes) */
const char* const cstring = "x\332\354}k{\332\326\226\360\367\374\nM\316\344\001\\P\220\270\030\234\272\347q\256\365\323\304Ik\237\323\231:.\026 l5 q$a\207t:\277\375]\227}\225\004\306I\372\236\271\271\215\r\322\276\357\265\327^\367\365\240]o7\333\215\272\273\367\327F\275\376\327\203\367\365\363vk\350\270\337\264.\276i\352\217\357\033\215\275\177m\374\332\362<?\366\374\316#\257\357z\335\331\336\261\327\307\257\275G\336>~\177\344z\203\231\337\3528\213\344&\374\326\237vZ>}\354L\037\265\272\231\003\277\332\370\273\367\253?\362\352\235f\267Q\367\232-\277\321\037y\217Z}x\223\rF\235_;\017\216\016\034\347\201\003?G\316\263U\266<\t\243\253\353q\222^'\311\324I\306\277\205\223\334I\303e\032fa\234gN\020;\341?V\321M\220FA\234;\223d>\207\022Q\022;\311\214Z\231F\331oI\004\257\256\2234\031\007\363y\346\344\327A\356,\323\204\332\312\023g\002\3358\261\321O\346>\240\272\307q\226C\253Q\220\207N\2209o\\,92K\326\033TP\214\367y\224F\223\353y\230?O\026A\024W\rW\227qd!\036g\340\\\257\227a:N\346\321\304Y\004q4K\346\323\246\223\257\227\321\004F\275v&\320@\230\206S\007\006\0378K\232\323\3555\264E\325#l{\236@Q\250\3741Z\254\026\320\260\023\3058\200\350&\312\327N\032L\243U\346\302\254\240^4\237;\327\301M\350D\3230\230S\0137a\232G\2230s\242\031\254P\250\306\200M\307\t,\355<\311\302\351\246\225\231\312i\215\2464-\2610\267\3270d\347\r\017\357\215l1O\350e2\316q\001*\326d\343\\yr\321\2470\343Y\227\347\307\343{\0133H\235d\211\220\2209\023\200\222q\210[~\003\363\235\212=\317\023l\210\346:I\026\313U\036`\351&,N\316k\212o\246\341,X\315s\347&\230\257`m\262\353\3446vpR\334\317w\337}\007\263;TS\253\327\026\355v\007\240\273\325m\324\032\272Hy}p\271\303\217\243p\231E\363$>\364\332n{o\2575h\"\300.\347\301$\\\300\032@\313\347\360\242\351\310_\027MZ\2334\211\246\243 \037%it\025\305\207g\351*l\252\245\031\031\2532\342U\241\022<\234n\333\231Eq\004\373&7\034\032f0PO\2368\375\266\023N\257\360\223\357;3\030M\306\363\375\367dE\253\031\3143X\3034\244\375/\357\337,M\026\360|\026\315Cg\036ey\024_\301\360\3624\372H\255\\\205q\230\006y\222f\316,Ii""\235\257\322d\265l\302\206:\247q\260|\027\006\265\314y\370\310y%K>\304\222\320D\323\271\211\002\275\366\317a\205\n\247\256\256Z\037a\377\207\265<\314r\027\036f\265\206\363\027g\232L\360\301\201\363\315\351\017\307\357\004\264\244<b\032\"\314\365@w\360\252\270\271\335Z\303\235\255\342i\200\373\023\314G4\360\372KX\220P\357\267l\010\367\317y\345\276\355x\365ZPk4\345\347\261\361y\002\303\272\200\201\235$yx\340d\311\"\304\223\313'P\2642Ib:)\3658\014\322\006l\027\202@\024\"\366\003`\276^!J\203\023\206\363\022\330\355-a\036\377'\334U\250\215\033\013\300\273\000D\342\304\253\3058\304\225\207\031\007y\016\307a\274v\226\200?\361 ?\364\334\266\363\242\345\265\037Bg0 \032\307\022\366\037\316\017l@\350<|\361\260\001-\246)4\017H\t\316wL\330\0017.\270\n\337\004\371\265\253w\247\26030\337\221\261\367\207j\206M\252\342\272\256S\374\331\002\324P\337X\366A\031\254\375\022X\373\n\254=\013\254\317$\004:\341\234\016\236\006L,\325Z\0060\223\370*\223;\243\001\236O35\"\260\314Ut\003k\002ky\233\244\323\014\027\006k\360I\205\301\030\363\207u\317\302\034\017\007\325\277\274\214\342\311|5\rG\\\363\320\301S{y)P\232\270c^j\330{E#\266n\027\3611\0207 \317@\327\340\323G\325\340e \317\032t\004\267\347\325jN\365`\023^\331k\021\244\210\010\263I\032\215\021'3\356\265\246g\314*h\216\233\260\223M\201\373\361m\204\000\230\205\334'\000\3524D\330\232\362\214\240\273\237\251)\354EM\206\301\362\335:\277\206\211d9\257~\235\341\035\361u<\001\324\023\323x\371.Yr\377t[\301l\247\316\303o\0366\235`\002\260:E\364\0038_\264F\347!\246\233\241Q}\235\235U\234\360\206\234\320\031_f\366\222q3oB\350`\n\350CB/\2345\003\340\353\r\247\325\372N\034@\\\014\375\312\252\221\206sY\336)\324\220\257Ty\253uG\224G\224\273\241}\253\355b\371R\353\2130\215\2460\317z\334\320\245q\343\365F\321\332\"\262\022E\035\\a$\250\376\022\253f\340\202\273\212r\200l\331\316\346fT\321b;\377\033\301\177\371\005\340_\373\246\366Y\340\017\327+`\242\312\023pyY8\003\271\271n\306\245yF\270\313x\0077\247\347\367\014\202\250\262}z\253n|}\214`I\351\343O\002<""\365\213`\034<}zt\364\364h<VM\003\305\034\326+\333\207\353\277p\373c\235o'\363 \313\234\032\001\303\332-\002X\355\273\007\002\364\276O\0008\223\305\232\241\203\026\240\004\215H;:\301\024\211L\330\265\325$_\001\245H\227\003,\267 \204\010\014\256Ecz\313\031h\201\322M\234\267@@z\200pp\277\003\336\340 \035Gy\n\2674r\002\327@\211\307pjg\271\004\362M\315Ac\247\257\353~\363Y\303U\027\235*K\240\010t\366\"\212\031\336\260\245\354:X\206\352\242\313C\350\364:\234\246A\023H\023'\240F\312\013\221e\311\004\241\207HkM\350#\270 \tX8a\014\2611\314\344:\250Z\305\203MP\371f;T\026\330\214\203\215$\272\r\213D\342m\204G*\361\025!\363\325NPh-\261\004\301cF6\\\322*\001\304?_=\204EL>'D\306%`B\356\001_\000&\200d\210f\003\233\366q\005\367d6\tP\221\n\214E \216\343(\001?\r\3145hgE\370Zt\367\311\337\336\274\370\351\370\231\347S\301s\374\345\273\275\266\371\203WD\273\360\254M\027\207\357z\276\327\361\333\235n\247\327\033\366\273\\r\277\275\357\265\373\373\003\317\033\364{\335\375\013\325r\261\021\277\252e\257\252\221\241C\3257\265\\*?\250\034\t\001\003\320\324\245\211\024\177\332\027\346j\334=\307\201X\215\212%*vwal\310\351k\377\031\354H\360t\373\236\224\332p\276q\272\205G{\307\345\201\266J+\326\333;\0263\333\241\360\020\332,w\335*-\240l\223\347\204\314\373\034X\351y\030_\345\3270\273\361\326\311Ac}\317\337\357\301\357a\273\327\306q\370\256\337\331owz\373\275\241?\330\357z{\307\002\345\307I\334\n?\002\336F^\2340\2433\r\362\200N\262s\013\310+[\206\223h\026\241\\\204k<\312\020\t\251\307\210U\003q\201\003\017\000\237\307k8\214Y\370\217U\030O\302\302\r-\317\250qE#\206\016\000\207N\221\324\210\200\030\201iqs\242\307q8\007\324J\007\320\035\001\3518]M\302\321\310\251\317\001\251;\003\277q4\231\204\313<\030\003\032&r\n\207\316g\372\274\006\354 \020\t5\340M\360\024C\021\374\006s6\036\\\270\212\212;\232\302m\344\324\227I\226Ec@\336\323P\220=a\303\224]\251{\257\351\300\357X\020v\252\225\003\302\022\007\227\326\215p\311\367^\240\336Jd-\231\037\023\221\027)\013\342\311\255R'\204\321\021Q\215\364\300Fj`\365Bi""\367&\231\257\026\360\270\nj\372\252,\0346\1778\030t|O/\t\360\323\317\303\353\030%\035s\234\351$\tg\263h\022\021\335\270X\001Y=F\372/\207\245J3,\215{\240\337`5\\f\027_\241\264\202\312\344\341\307\\|\213\235p\261\314\3276\245E\220'\327^@\336\323 \2237\003r\256\307\271\270\252\036\237\nP\343\347R\250\247(WA\002S\033(n\005@{\026\306\031\n\322\024\325\275c\333\037\200\252e\261\202\332\360\357\0238:\255\263k8A\300,_\337\006\310\240\023`mi_\t\036+:\342Z\347O\307\027i\020M\317\017.\376Z\177\177\216\202\352\246\363\036\005\325\027\215\177}\212o\016\350\367\271\327\364\233-\2242_\320w\261\360$\370\014rg\036\006\360\315G\210\005J+\323\220\376\224\351m\270\322\002\240\262\342\017N8\215\220\270\276\215\342ir[% \315\340\265\270\037\351\372\317dMFN$\313\203\025_'\253\024@ M\t\237\204p\220\024\357XM\252tG\036!3n\237\333-\300\002Q\234\324\231\335\216\213\217\014P\377\3665|?p<\032\322\023\247\353LR8\311\337\225\017NA\332ug\357\311*\257\032\300\211\030\200I\356\274x\375\372\370\335\351\361\251*x\226\006\223p\034L>8\365\005\300\nP'(\336tP\342\355\000@\344\r\315K\003S\245>\377\035\245\261/\3224I\017\234\223\304\244?i\321\001\022o\315u}\232&\267\031P4$\250Z,\223\024J>q\316>4\235g\353\267\3130~\365\032q\363r\275\204\023\014\233\271DE\001b\270E\004;\004\230\366)P:\363\260~:\372\335kz\1774\235\363\240\335t\236z\027\r~\361\036\336\274\377\275\376~\372M\243I\277\337\377\321|\212h\036@6!\334\236\242\216\"%I\036\202C\316\2708s\237\0255\034\356M\024\336\n\344\355\017\206\215g\005\021\232\033~\304\341\003.\233\213R\375~\277\\\212\257\302\021^C\200\364\026\243i4\201\243)\232\355TTP\260\314ez\355\212\256\205\020l\244\304\222\242l\277\273\271,s\311\242\340\260S.\230\341Y\0243\351V\274\267\301M4\344C\217E\352\323\235\000\211\032\000\240\245#T\006\205\371\032\377f#8\331\243e2_\313Qt\375vE\345\253`9\022\2674\027\353\354\367\253\212)\026`\024\305#)\323\223M{\373\373[\353\250\r\030V\024\323\202\0171\200\216WQJIYD\241v\325(\345\270F\245\256\275\236_Q\036n\310h\t\024?\324\000\334t\243v\026\010\242\30638""\211Pa\362\032Px\035x$\322\255\301\241fU\323K8AA\\\313\t\256\221\246\260\266\213\270H}\343\020\2462oK\200\177\252|\025\346,\373\021b\250\010\205\340,\340\306\373\200\025O\272!\250D\372(\026k#\305E\244\003\312\272]\276\273~\300\233\350\361\243\314\370\346\346W\237\024>xv\r\203d\331\214\r_\330P\254xm\344\246\355\367BW'\225C\223\000\210%T\3179\223\020\020\3264\304eH\262\210\305H\247\241A\365,\327\007\310O\035\\\252:\243b\343\337fp\027/\327\256D\300\356\306\242\337]\352a$j\371\000\370W8\224m\203\332v\327\000\272\337/\020Ro\\\224Gj!\200q\235t\n\005\271\333OE\342jK\013]=\030\326}<_\2058\037\200\311\230\260f\210\010\276\tT/!e&;C\326o\220\276\003\271}\232\363|\255\345\247\t^F\345}\273{\277\014\350H\001\020\327x]\022\020\031_\021\212\304w\324\303\001pa\323\217\262\0265\024\343\325U\270\365\211\320:\375\265\363\214\200\370\304\244\255\237\223<h\222\273\371\307\234_\277\255~\227,\026+\034\266\276\357\337\341h\234\0311\006\306\300\341\310\021\215\213\367\364^\n\324M\022cc{@jh\255\270\223E88y\254\304\211\217\264\2646PG\255\006\354\006\202\224\327\312>@\0139\tG\217c\324\026\345\321\004\026\227w\007V\033\010}\324<A\213\306\001A\345\355r\031\006)\355\252\224;\000\274&\3230\213&\231K\342(x\272\232\223`L\014e\022\350\261\000\215<M\001[\300@\201\314\270\003|\275^\001|E\203\310\014\340<\004v\253W\026\332J\372\003[\336>p\304\326\341:\266h2\351\215\0326.,\337\272(s\350\003\216\037z=b-\007^\257\333i\017\200\267m>0\030~o\347\366<`\234\273\373\303A\007\271\360\266\333\357\371\035\277\323\353\026\332\363\357\321\236\337o\017\332\335\266\017\355y\356p\037>\367K\343\353\334\243\275\336`\340\367\207\235\016\265\327\337\357t\367\275\376~\241\275\356=\332\353\017\366\275\341~\267\007\355\231\353w\241\267\377E0\271\026\025\001\0130\000\n\n\025e\250\263D\332^Hi\025p\030\037\302uf\003PF\224`\235!\340\274}\341b\221zC\303\307yM\022lB\272\200\014\362\214\340\321x\000\\A\370\021?,\202\217\243,\274\242s\217\337Q\253\232\257k\306\270\177&$\3040\355\020\341\034\257\005vB\036\210AQ\340\364\300\211\201\026""\224gQ5A3\002\\\343,P\037\213td\341X0\367K]\350\251\3310_g\264LD(j\266N\314\257\272h\335k:~\303\240\243\327\322\036\242\311\030X\022\004,\315\235\301Bdr\022z?\373O\250\260jE\350I't\t\223\204\204\305%k\251\003b\263\r\300;Az\265\302\305|`h\203\325\002\027p\201u\302\315r\207~\343\377\307\341\2760\320\360\n\010i\272\210\346H&\221\211\0041[4A\342\367u\231\t*\247gk!]BQAz\003$e\323\t#\222\302\346$\332f\025\224\344\371\225\220\236U\3240\334I\204\254\244!q@\333\0144\3271:bk\215\022\321\003E\200\216\302\326\323\020[\246\nc\203A\366\270\200%\323Z\305\320gr\205\027\376\324yu\364\216\304Jz\005\244aH\347\271\263\214H\346\242\025\025l\205\205F\005\037\220\267r\234\2671\037\n\001\005\032\320\311\340\207\205V\211\263\304\303\202L4\251\371\327\244\033\271\006f\034.\241+j\335\260\357J\014\315c\362\301A\253\221\320\275\332~{h\235\200,\360\214\316\321&\223/U\212X\266:\r\226N\020\324\202c3Y\345\311lv\330v}\324x\032,\360\263\177\177\373\356\305\311\253\327z\261\260\016\375\262L\335\350\230?+Z\246=?;x~\206b\017g\317\020|\274\257\277o\240\360\243\376\327\003g\257\351\354\341\033\030\003\311C\376\332\370W\250\001\377w\233\375\246\177\201\265\337\237_@\365\363\240\365\351\250\365\313\3057h\367\347B\205\213o\240\360\371\373\213\213\277B\215\203G\331\363G\323\nc5\370\024\262AX\3701\017cR2X\274\377sD<\031!7\322')\260!R\202\317\023\333\007-\200\345\3013b\274\311l4\007\033Nb\001\363<7\005`\010LD\350\262\317\244\004k,T\023\032#\320I\274\315\010mB\361,\024\206-)\352M\363\210\321\225@\\l\350\242\261\025,;\035\\\356U\264\240\020\370V\240\272\351\264\333\355J\331$c\347v\323\232\331a\347K\260\264\374Z\274#\001\202X\315\006hb\006$5\261R)\237=\251Q\n\244v\032x\305\225\201\251\241rS\321\332\310\323c\2510#\205=l\231\244$y\341\026aHd\034\202I\254\027\220\254\367\236\010+M\300\242\371|\335D9x\220EJ\3158\213R\224\313%\213d\236\\\311\013Q\023\201\310\020 ;F\243\243\255\326\227%bF\024\027\205S\333\014A\350\312\3136\010\306\216\241`R\000\215\270\2162q\023\213\025\"\352\035\305\t\tP\372\267\301:c\372\027\356\344""\265q\235ehl$\204\202\263yp%\350\021-(\201^\320\224\007\013\304\006\301lP\334\222\365\345Q\264\222Y\213\327\307lBR9M\002B\000\334\302>1\200\222i'\334_(\262\263-\217\364\234f\260\227\260\211\226\274\322\020\002\240\212\303X\245\026@\364\207P(\207\221b\202\241JJ\305X\361\254)\327\034\316\0270\347S\203\372\253\252\2476$3\372\252:E\275\221o\234!\305o\"^FJ\257^\243\333\260v\307-\217Z-\337\355\016\333~\267\333\337'\312r\270?\354v\367\333\373\346\345-x\202dL\3074\013\363QI:\202\035\362t\200\306+l\265ah\371\245\203m\337c\260f\305\363s\300\007h(\n\363m:\336\305\305Ei8\325\323\202v\376\364e6\312Y\246\244\013\204\260\337\220z\261@\n\001\223\026[Z\335H\224\"d\001l^0\213>\226\314\20722\031\320\324\244Q[m\337H\365Sc\330e\221\0220\313km\004\\\254\243{\250Yg\344x&t;\210\220\224\224\013O\353\202OO\222\031\230R\364{\007\344#Q\302\006\372~\263\327\2508\004\033\340S\312\327\3125\214\357\272q\017~\231S1\304c\nK\007\006\323/\360M\026\254\r\344\r8\351\340\301\216\003\004\222\033:\365\341J\203?\0354\177\005\210m\230\265\277G\242\227\312 \346\303^\210\027\222\310\375\026\370\252\034q\2510\256D\212\025GJ\333h4\303\315\313\352UW\300\206\331\242\026\356:\224;\212\263\233\204\305\331A\223#%a8w\316\321\235\301\3439\265\033p\376\340I\207'\331B-T\343\302\331\365$\352\226w\333@Rq\351\242/X\364\2047\3464\272\2112\224\377J\316@Y\247\006J\t\355n+\217\032\3608\274\002N\341F+2\335\007/H+iib_\374c%\244\276x\002\202\233 \"\325&\356Q\rn\365\032\235\260\032\332\r\327\310\226;#\246QK\257^\220f\243\322\274V\360\365\250\364 \223\362l\025\261F\033\305\303\235)P6\021Y\020\032\373z$X\307\3146\313\005\322m\221L\221\337\"<\223L\3039R\201\2504\237\032\340\273\307\257\016k\037\346a\024\327\000J\352\301<w\201\243\007bf\002\363\2535\214\006\000`\276\377\376\327\0166\276\312L\340\332#6`\225\037\222\2352\264\222\206\350\020#\214\002\201\323\213\022\246\250\220RCCc\263jv\r\263\3720\202\307p\225\003#1\204\372t\334P\313!\204\325\320<\021\332\233\332\200\367\310\206H/\000nD\372\207\000\221\000\204\023bN\\F\341\017\243l\320""\336\211\231\362\034\315F\221\010\315Vc\002\025(~\330\2016\265\205j\036-X\204!\212LCeJ\275\251\311\227\324=o\241\330q\245\237\266\353H\276JZ\200\303i\235\000* \221.\366\022\334$\321T\332S\263\203\010[\205\317q\303#\266(U\034\304\204\025\t\344\031\202\3331-\222\206\010:9b\357\200p\007\315\215\372\201F\261I5\305\251\034\266\353\234&\316-S\244\316\337\216G\370\027\325\233\252\335\020.\2305\232\322%3B`3!\336\306\201\234\000\016-\360\023\317\253\334\0176\370\332\250:\206\222\020\357\202\253\0262\220y\213`\331\205\20756\302\2552C\273\253\r\t\377\324LS\236\022\343T|n\3034\270\326m\004<J\032,d\373\342\370\020Q\365\305c.\265^\034\375=\3723\260\0263\301\000\252'\341\n\030\203\270\365Kp\025\241\371\034\371\273\340I@r\235!\016-\005\326\3103\301A\233h\006nE\022\016>\351t\377\300\265\267\"\2463\311&h\"b\210\307\233\310\275\252\252\227\350p\021\336\262'\310\273UJz\215\232\357;\337^\347\3712;x\3748H?F7n\222^=\016\306\331c\337o\017\334v\177\330\037~w9\322\270\367-\212\357\002\262\024\312\212:<b\304\275\242\240\261\202\\y\330\035y\017+h\0245\341\021\335\257\365\206E,z\216\323v\340w\3133o\307s\307\247\347\276\262\214S\304%\025\366K\345\333\306\363\007\206\336-\200\rG\017\020\300\371\007x\307\314\243I\204\236+\304\216\010\246M\253 \304\246Y\373\344\0266;\223\"\017\347\340\320y\351>q^\322\2074\014_\t_ \262\327B]\242\224\377-\000\357\303\261'm&b\240\355E\3620\317\\]d\"\325:\310\243-\204\233Z\301\216S\217\361%\362\177\201\264\033Rz}\341\221eY\237i\033\"x\256\032\030\345\311\010\213\031\3660;\211\313l\333\021\352\276X\302\035\3410\270\365\372\033W\365dJ3\270`\224\215\244\026x\002\305\352o\032\206\311\310*,\237C{\332\266\366\357\317\237;\034\311)1\214\306\224\254\002\3630\256c!\375TX#~\356\352\331\215\211\026\016\r\372p\3032\221\r\342\231\255\364FE\235\364o@\302\260\240po\226\344\025xfV1I\177X\264'\\\257\362r\273X\364C\230\302u\351\214W\321|\232\355f\320\3072\255\302\n\274\344%6{\036\te\214\325sa\355_\226T\320Mx6\302\2073\270\334\245@M\243\343\336\240\351\3547LZ@\373\201F\231 \363\214\231""\3252-d\241\303&DJ\201\275b3*\220\345!a{Zd\300\3653\305h\000\355\240\364 \206\007\0166uX\233\007kt\210\255a\327\270G^KM\010=D\222y4e\361\030\220<\320E`\250\205q\317\013\315\220U\014\312\203\240\305\246p)A+o\331LD4<\0270h)\240Xc\362E\316\022\241\336\215\327D\3520\301\307\273\262~\214\326t\354[K\302\250y\030\334\230ja\224\257\001)FN\256\377?\240\241\270\204_\010\035\3756A\207\335\206\234{\275\361\244\242E\347[\307\353U\237\314\r\263\376a\020{\304G~\245I\233\033~\327\374\235\357\034\337\036\354\203\242\314F\271\215\010\272\006o,\002\031\tJB\030\250\371\035C\205\227~\310\344\315wK\212$4\274\232 &\226\223\232\004\025\306*\000ku\330\030\236\2049\340\t\000XJ\317\205\370\255\261y\251\315\235\272k\031\276=,\256\303\006t\212<\2626\353\260\267\262iXG\204\216\337\"\3740!\205\232v\336\027\016\374\272\215\302\324\377\255\014 \037=\277S\330\311\177\207R\377\346\032z\314\021\365S\230h\375\337\360r\325]!\274\377{\361\221\001\356\304\2726\035[\256I\335\251o8\226\377dI\004\376\262K\2714\010\026!6\316k\250'\254i\312\2556YO\200\"\253=p\266\375\274$\327\357\357\223\005|\220>{@r)s\264Ycs}\340\321\220\3766\213\277n\220\037\014n\213s\376\021\375\013\234\003\347#\342\244\327\027O\034$\347e\321'\233\333\225\365\271\375\372\213y\016\244E}V\277j4\032\320\034\251A\264\307P]x@\317\032\215\213\215\215Z=\027\274\215\036\031\276\360\331\203G\206\366\373UtSe\312\306\326\003\350\013x7\216%+\343\007e\311\024\326&Nj\005\334\0233Sh\017Q,\253\276\225J\332\360`\r9\333\352m&\331\177e+\235\314WB\350a\335\251W\363\025Y\212I\331\223\213\276X|\336\204RE\370\316\0233\025\207\246m\210\0366\234b\022\237\030W\252\313\327>\032\204 b;0%\206(\303\202-V\343/\r\037\217=\253\334(r\005\317\305\330u\341\261\202W`l\013#\347\311\225h\031?\211v\251\023\263\024pj\2534\230Dav`\350\216\310\006p\271L\223\217\321\202\324\357\252TQ\241\346\210u\247x\013I:\005dTO9RI\223g\027-\2324\002|\200\177\243\205A\017\035\317l3\r\n\276\202\230\017\r^\362\032qOa.9_9\2621\340\201\246\271y\261t\317\235\010\206\206\367\215LI\210\272\320Fu\242\215""\202b\352\330P\271\001\224~\304kn\036]\305(\3673G!P\230\352\222B\000\250VV\031\263Y\300PI\371#\357*\261\216x\321\t%#{]\242\027\244eb\020#r\232\313H\"|\010\347\341}M\325\336\270\032\370G\274;u\\\315C\226\230\336e\302\322v\373}\277\323\033\014\007d#\326\353\373\376\376\260\347\355\035c\324\220\373\277\272\270sl\206Y\277-\0319\377\275\246\001\257v\340\324= \336\350\037j\243P>N\322\340\003ti\363\272\355\336p\270?\244\336\367\333\235Ao\177\337\307\201\361\244\0176\017\360\017\303\266lc\207\336\177\353\016\365\036<x\2250\\2sK\242\007\342i\331\014\024\t-\200J\262\361A]\206\324\205\331V>\017H8\361\255\306\301\266\217;\323q\244\342\227Q/\004\332\200sT0\3127\325\306w\005\2718\270\303\342\270\350\272\365\234\315#\212\022\316\252\310\030\215*[\276\347\266\353A\301\351\273\344\177r^;\002\006\310u]C5\371\223t\326 $T\214\351\204\276W\034.(\234\332Z\302\2521j.\354{\270\024\rK-q\361I5\213jQ\254$a3Ga\263\"\312;]/P6b\272\242\003\021\n\033~\203f\031\260z\210\303Y\257\221KK\032m\tAV]\210\232c\264\017&\377A!|\224\324*\251\373\330\332\303\352\3120\r\261\374\331qL\365\3746iH!f\001\375\235Z\333\236\r\373\355Z\003\005\203\324\262\345n\255j\270<\213\221\230\305\210\005\024\313\002\177_\377\345q\267\351<\357T\020\031\307e/-\031\352I8d\261\305\313m\322\032\247\021\\\t\344\300\2066u\2269\023l\310\001\\\247\327\007\227\247\277v.\325-\242\rG\344\275%J\325\227\315\1774.\331#]\213!\371\335\362\361?.\3458\224\032GH^\224\006\033:7\004\263h\376w\033e\241\346#./\351>\273\274t\357y\264\336 \225\017\323\035\361t\315U\004\324\334kl\277\260\372;\267F\303+\332\366\037\241ENv\313:\242\313K\216lCV-\321U\002\373\017\264\310x\225\023\022#j\201\312j1\267\2343\321Ul\0229\221\206\212\300\270\205)\251\200\310a 3\304\271\006\256B\343T|D\366\301\"\200\221\341\020P@\226\233\240I\302\254\360\230\307\223\307\007H\235\234(\027\332J\3233w\333i\270\351t\366\207w\037\007\321\317\206s\360\313c4\346V\277\013\303N\311Jz\301\026A\024\242E8\003\257\201\237'\024$l/\r#7x\365\000\311\036aK\300\026\224\210\232\303\353\230D\016u\200""\232N\243\3515\354\316\242\202\002\201\261\223\241/\254v\306\320F{\246S\206ZU\273B\321\275\003C\366T\204\343!\203\353\200\\\220\017p\301\327\"L\212\216{\300\321\026\n\362PaAU\222\\\024\342K!\246\230lr$\202\373X\352\365Hu\310\206\274\246\tt\365T\334\r\266\326h\301\010\347\0040\371B\303;\205\002\t'\0372-j\315\243\271\220\304\220|\321t\023\372\024\246\t\231.\026d7|\325c\225d\031\374c\025\222Uq\n\007\020\035\272\342\334\030\021\234\317(\3276;\2507%32\222\273\013\315\212\342F\272BSl\360t\343$\231\327\364\025R\027fl4\002\245\302\206\362\r\236\017Jt\004\243A\343\242\201\272\266\3328\374\030 :o:\213\256\347\327\262\255\036>\362\316\022\366,\250_\233\033[\262\032\207lE\272\031\316(\324\032\032Sz\276\220U\331#*\253\304pX\017\r\326\351\024\303\273\031\376m0\2227\264\366\210\370\360|\010\213\211\212s\204\361\330L52\354\302\014v\222\344\257\210\330L\027\254\306\203\222\366\001\361u\002(`\t-/2\326\251\230\276Xf\3713\2262n\364?+ \247\263\315>^\236\377\300\202\037T\213WM\337\230z\224g\333\316Gibg\245\211\235\031\023\033<\260q\371\361\0025h\330\025\372\304\"\377\232\"\326CY<Ev\020\326\"\250\013%\320\026V\370B\224\037\3440\032\270\247\370\364\217Q\277\266\\\252X\014\307\200\037\"f\005\211\346\372\020\256)\310\225tc\200;\016j\355\355a\317\206\373\273\021\332Ej\031P3]t\261H\225\\C()\251\017\364lV\255HkZ\340H\037T\010\231\340\004:\023\300\260\016\024a\177\352\202\255\375\"\204co\327\014\366\200\227\251\177j7\340b\031\323g\357q\335k\301\003|2\241'\360\272\3455\036s\241)W\360\3403\306\363;t|g\0319\321\003K\332\202\010\003).)\267aiq=\003~\273\001U\332\\\210\357(Y\306 \245\3034l*\265\211\026\376 mG~\013d\313\225\344y\262\260B)~\264\315\303\020\356\020[\031T7,\334\201\021\311\214M\372\234v\323\014K\306\017U+h\303]\254\340UT\200\207\326\212\343\216\207d\005U\216\264\024H\"1\212e`[Q\nW\315$\333\340\002\206M\335X\324\251\267\321\204\216l\033E\233\006a[Y\001m\356\\\007\235W\205vk4\001`|\214/G\024\243\0010\336\304\336L\035\243\004\243\231\254t\213:\216\tIY\334\315\"$yDh\013\204\314\003\007LV[""\006\321\255;.\037\013%\007[\301\215\220\231\207\3012Lt\352\354\277\037\340\2064\203Q\214\246\262\343\021<\031\217h\217\232cz6i\230\307\203c\271\241M\020\222\216\3312\021v\000\264p\002\000\255^>\265\177\r\332\260\234N\013>6~\035\267\235O\336\257\201\307\017<x\340q\274\313CgR\354g\202.$\210*Z\336\216\3721\004\204\022}\316\262\321\221:\036\006Z&\363\n\262\274\020\277\375\213\007\246)\005>\365\345\357\366\305\203\202Y\006\377\337\0328N\377\342\256N\215\r5\372\257\237\003\313\321\362\310J\031\225{\360\201L'\205\3152<\206\247-\375\030K\367\3611l\223\327\245\307\027\306Q\232\206d\263!L\341R$\312\334c-\351e\362&\222\250\037^\335\004\250\351Tb\n'\313\203|\225\311\347\246\235\005\311\034\325\213h\362\001\256\016\313\222\200Q\277\010U\242\"\225\320\3118\232\223\306\224X\221\017\322e\006\215\376\356\021&\005E5\t\t#\200-\270\272v\274\276\362%3c\250T\017\000n\321\2573\206;\206\360\003Zo\021\312\025a\206\310\347^\270>\213\313E\270\002\333qgD\260\231\327^'\036v:\",8B3\374\362\032\257\037M\037\271>\374\353L\0379$\353z\247\254\024\325\356\277q\227y\002\034\375Z\306}\250\237\300=;f\223\031\322\202Qd\231C2\257k*-\265\020\320\000_3\217\200\032\016\362p\304\"d\321\232\021^\326\220\014I\\\363\216\0139\242K\344@t\204\310(6\315%O\363\340\006V\313y\025\300\352\315\020\214\320N\371\371z\216X\371\354z\225f9^\200\354V\216\267\310\017\256\363\013\300\031\260\031\007\006By\210\244\3513\2418\370;\005,\"\361\314\353z\334|\326h\375T\014\3536s:-I\207f\017M\233h\264\014+\031\206y\360\343\372\003\177\320\270s\350o\200\n\272\216`\306\000\024pA\244;\214\375\025\253i\264\2110\002\347\273W;\215\335\331a\360~{\337\355\357{^\301hC\356\216 \352\330<\220\245\375\213\340j\021 \216\315\202\253P\210P\3477\354D\2242#\240\232\222\312'3\220\270 \017\311<\213Dw\372>\315Lg4\305.\231.\355R\345\020\254r\214\301,x9\362U\\-IH(\305\201\272k\353\260\022\243\014\210i\214\216[@\360\210U\021\240\353\256b\035\366\212\026\211H[\343.y\301l\023\207[j{\036\233\017\212H\221\255B\210\300\203\255\014\016\3246\031\234\267\"\246;\320""\371\366\031\221\321<v\354eI,H\361d\373\325'\233\002\231\331{/|f\363\333d\3038\210\346\272M\314\366\034A\337\034\224\231\214\245>\026\276\205\017\240I\241~-o\225\332\242\242\327\371\034\007\275tSQ}\244\252\326\313\301!\r\267b\2063\273/6\023eh\256+#%\021E}\335\330\320\263\200/\243\343\020\365\006!\256%\265U\373\314\201\340/r\0211\307\202G\354sF\202\365\266\r\344\204\003\224\223\250\000\347\217\032\277\350*&\003\022t3tf\001\334i\251[\036z\300>r2\356\204\300\252\034\006\256\340X>\271\341\241\342\210U\250A.9R\222\230zc\253e2\267\261\261\310\371\371y\253\353\372\303n\273\267\357u\274A\337\357\0140\010{\237\265F~\257\013\250m\330\331\357\266\007\335b\330\207V\333\035v\375\375\366~\247\357\357\357\367\207\035\217*u{\303\375\216\327\355\364{\275\016<,T\332\261\316\305\205Q\353\374\274\003\265\274\336\320\357\016\332\203>Fg\200!\366\250f\307\363\373\003\370\177\277\347\301\237R\344\007\267\337\355u\207=\350\321\367{\003O\327\353\017\332\303a\247\355\267\333\303N\267W\254\327\362\335\375\2017\350t\206\236\337\031\366\333\003\212\030\331\035\366\007\235\375A\2573h\367\006\375b\324\212\335\252\240O\234\026\311\240\027y\001\004X{\317\276/\031\207\025\203m\253\000\014w6\307\030\3721\200\3732\277\246P\003\2336\3713\267\37036\370\3765>ok?oc\357\277\255;n\252-\031$i\267\020\017\002\321rE\262\317\273\356I\335\304\341\341\241\363Vr\247\332\231\010\036\3532\345\253\250\325j\311@\206x\007<\017If\214W\213\347\356#]S\367\032\256\201\277b\341\034#\024w\\\225Xj\3127\242\003\233Ps\3626,\365k\332+\237\222\273\344d\225g\007\233\357\312\n\256\271tK\226\315c\214\346\\\226\276\006\031z:D\271\220\25279\216C\230W\364lXL\220\n\206<\311\014\324\254\350r\\C\224\024\207\001\2718\241\332\206\014\344\2017\346\200\030\332\322\324\342\276\263\202A\235}\025p`T\341J\250\234\225\244\345\212\271~\242m\272VQ\036\3067L\206\216;\260E\321\024\005\032d\364,Wl\222P\004\327\000\245\202\037a\205\221\265\370\004\377\314\200\205H\213(Fc*mtI\020=\025\021\002\245\277\005\032\244a\023\300\351\256QV\300\037-\331\321F\226e""\207\265Su-;\252\252\271\260\205/\232\005\263\031\215'\\\237\224\263-J\327\323\202l\356\005y\331]\023\237H\362\022e\250\232\025\\-l\372\257)Sa\240\212\301\200\025\362\233G\250\232\004+\362\313\307\213\036\255uV\261T\254P\016\022\245\336C\303\206p\014l\t{s\272\366\221\026\204/\223\200\335\221g\037\350M.-\332hB\204Z\263II\244&*\310H\3517\352\324W\206&\346:\234/\353\252>F\346a*\034\321\025\032\247\241\245#4\322(\3346\272\307{\320\305\017ad\346\360\337\241\233\2331\201\265\014\230DiR\352\304\n\261\304\244\241hd\274\004-\374\264i`\347\336\205\313\rm\361\233:\346\236Z\223Q\033\030\207Q\373WTX\312/{\360\301k\303\007~F\037\177E\311\217Q\272ugi\371\036\355:\033\244a@\200\243\223\236\243?\341|\035'\013\234\315O\"X\205\254\320T\3158d\237\373S \320\377\313(\234O\253VQ\243\036!l\224\313\272\353\342\021j\375G,\243L\250uT\r[\341O\331\367\035{\257C\245\206\246z\214\325>y\373\323\233\243\327\307\277\274\030\375\374\375\361\331\213\323wG\317^\330\252\000\275\202\350 j\255\241\265%bA\355\312UU[Nq\177*\253\242\231\255\356\305<S\"\250Q N7\271\370\032\2145\254\367\002\2654\317-e\036.\035:\315tvb\034\013\221U\230\367\310\223\021\365XPg\361\ngn\006x+\257?L\331j`\312\247\344a\003\367\007-\326)\241Da\365K\366E?}K\023\366\005t\341'O\300\231|\346)\330\363\333\342\223\247\340\221>Q\r\217\026\365;4d\3260\214 \\\227pJ`\212\346\334\203\246\363\360*\ro\200\240}\330\320\326\306o\326|\372\240\005\232\312\267?9\377Q\241%\222\003\246-\366\254\023\346\253\215\367\324\306\353\247b\324V\223\326\265\205\010\370xFF\007\034\202Y\362m\230\350a.\324\234\026B~F\221\242*\230\304FY|B.\267B\254\023k\223S\024\nCe\203\370\230J\217o$\017'\332\2668\373\227\177\371\027\033\226\362t]>\200[X\327\206U8\374\210\376\224\345\006\376\"\341\234t&Mr&2d>\272\275M]#\335h\254\021\232\000\030\214xp\205\216\310y9p\034\316(\232Q#\345AMW\213\305Z\261\271\330\344H44\222\r\325\033\225[9e\323\303\035w\364u\022L9\026\221\222q\205R\030\305)\330\260\276\362\226U\251,T\326\t\214\033\006\367T\021\221b]\021?UR\367BJ\367\006[|\2118\205C?;|\350G""\014\027#\300##\270\345G\243l\336i\352ed_;*Y\201\03467\321p\356\304\t\337>}}t\362\303\353\343\223\027\337\031\353y\366\323\361\321\311\253\277\275>:;~{r\370\364\305\253\343\223SX8Y\340QE\n\025\342\301F\336\203\312\303\366.H\205\223\032\341S\023\354\325$\017*\2052Uk\260m\306v#\237\001H\317\022t\375\007:\217\304v\222VUh\002\020\275\tc\014!\026P\275\213&\037\214P$\312Y@\252V\2571\262\3354\232\315B\313\231 \223\236\327\257\202y\022Y\266\215\277\255\256\220\006nT\210\002qb\233\302\340\252\236y\376@\335\231\302\302\200\375\304\031\3530\203G\036\301\2009\3756 \321:\321\206\262\215j\272P3\2371\205\2773\356I\322\3118D\220\003\303\253$\031\260\361\t-\250\026P7\312\033O]\236\327\344X\014\027\2357\311\264\336\362\036\373{\310\230t\036\003\205\365\221H\204\016<\370\306\3516\312Re\031c\226\331\244\233\214\310 \363\211A%\341\025\336-\016G\027\255\272\313\273\325\304\256g\337\342\263\025\\\007\367\251n\251\206\214\304\202\326\336\253\221\271\212u\204\013\027_a\177\306CCI\017-\367;[\333R\344\236\331\226~h\264\005\203\3377\"\275\250P\321\206\255\016\032>e#\340\333L\323+\021y\274;lTU)\3329\311p\346m\243\264\366=V\341\351;\305\327V\004u\277\277o\274/8t\253x\344=_\027\032S\230~\031||\320o\024\"a\177\222\357\274\256\371\016`;\036\301j\322\201\026iO<\343}\262\\\253p\351\003\3639\022\371\"\242\274\2710\364B6\325\367\314*2\030\226\034\207\347\027\337\232\301\032e\257\276\261\216\312|\262\374D6\352\367\214\321\027-\341Utxc\0058\030\241\\\321v\317x\263*\306t\367\272mc\333\252\\Ge\234\374\266\2613\245\344X\262P\307\230\232e\017,\273\353w\r((\244%\320\273\251W_Y\304\263\252]\\\374\350V/\262\336\250\306*C'm\177\253Vx`l7\226,\371\267\350\267\0025\216(\345\217\250\337\356\033kHl\202:2\375A\341\r\3124F\331*e3KY\314\357\032\305\330\360\027\317Ee\262\003\243\305\3228%\300\357\033\205\030\363\2137\373fu\221\255\2432)\216l\311\230\232\035\005\212\234O\334\023\262\177\314\311\372\323\007\202\303\353=8\to\013\246\212\230\305#\272\221bK\362R\371\227\007\033\363t\300\013\003S\221\252R\222}'\226g-\322\275'""\024\337\275d\246\201\217qv\"\r\255\326\014=\343\244\207\224\352n\036\215\211\323D\007vv9N\331\036\372\335\213w\255\356\240+\\\226\331b$[\215\245\034\007\3563\214]\220\243\351\002fOr%\351\033\207\254\307E3X\263\002\231+eBVT\243(C\201\004\"\000\207\232\360\320 \307M\341\236\346\236(\241d\002$nD\242\236\251\014\265\nw\377\344\332(b\314<\223\321\203H\035\027,Ba!\2779\315\350\3331\000u\230\207\206\365\210|$\277\330\242,\332\362\333\024# \361\t\326\332\336e\010\003\030\213\364*\"=\216\310Hs\225\006\313k\262\341\244\300\001\010\3772\360\222\210\306j\210\371\320|X\006\254T\036\033\304tc\335@z\261D\20692Eh\022>7\331\201A\3354K\361\303\232\025)\336\233\206!\\\206Q\2520\214oS\031\3707\255L\025M\016\370\312v\360\371\344\276\221\204\337\210\253\r\223\256V\205\002\266\347\244v\3756I?\260t\223\225\253\302Z\235S\246'he!\275[Q\222\256\366\204\215\2408\236\214\373\200}\304\320k\311\314~\343\326\377\372\356[e\304\363\035\006\022\276\370\246\201\017\003i/\224\304\337\235\007\361\005=\244\010\347\262\324\277V\326=\177\377\353\005\275\220N\233\372\315\350b\3276*Jnn\367_5\375\017\340\005\004\262\303\201'\200\365\231\\\243\000\030-\3703)\014\200\033,L\347\034c\334r\320/\370o\221\026\233\254\264\331\232\327\3518\255\357\034_4F8EF\327\266\217\231\226\247\033\026\357kg\014\240\276Z\216\026(\204\\\316wp\306\346\374U\234\272\252\203\377\303\247\213\022@\251\030\033\206\320\341\335\234F%}9\204$\215\\\300\013\257D\014\373\032\362V*\304}\315\375\361\300y`\245\2624\230\027\230?\013\302\326%G\010\214\340nEn\240\223+OLa\306@\005f\321\025*\242>\274\206\2377?~\230Lf\321\325\325\365o\321o\277\315\343`\034\337\306\313,\212j%\213t{\235\270\235\246p\324\030\361\230FrL\207\025\004\374\231\235Lh\304-\324\205\026#\234\212:\030F\207_m\016#qf\007f\206\357[\002\206\240\311bq$\243\352aW\032\326\357\330\215G14-c\367\237\214\334\310\261\264\273_\363\255L\031\004$\246\245\2747\304%\272\242b&\202\335\3500X\225a\312\n\246qF\006?+?\351e9\321\263AR\252\224\314\226JJ\207\037\312\223+\026\t\210; \333\224\356\026\2433""\317\254x5\250\037\"D\016\024\330\025F\3363\234\272I\2320\016\371\252\326\356\341\206\030@Z\372\342\23051i'\206\376@'\351\276\276x\333s\316\332yg7\344\2365\363\317V\346\240\345<\264\301\370\350\351\323\243\261\335n9\345\223i\034L)4\233@\270@\275\243\247\230N\363\242P\235\323\210\216\003(q\247k\272\221\334\225R&\364\206\203\366~\337\3670\327g\337m\303\247\375\375A\207t\372\275B~Oa\216\354\016\372\375\266\337\353\212\372:\377hK\347$\245\324#\373\300j\365\332\003\3172\0060\214\301H\016T\2629\317X\2017\263\343\312#\250\343\271\267\"?H\t\301\310\204:\343\275\014\274;Z\004\353Q0\233\241\003kE\022\366\226\263\200s\217\330{\304\327\307(\231\231\345\n\270\276\014&\"\242\201\371\247\261\003\2544'\333\241\345\331\370h\362\324|\3604\230\034\225}!\325YWv\377\322\210@\306\3155\\|\204\275\257\3558y\207{p\357N\177H\354\000\2456\247\256\356\252\252\310\371@CR\033/r\314\365\353\341\207\366\0033\006a\313\273\220\226\357&\350\241q\374\205*\241S\034\334\221\002\241\274R*\265\231i\224^\360\374\245\020\323\252\252\312\222\3440\332\265s)p\030TA\216\027b\225\350\340::E\215\310D\003\237\362dIA\366E\310\353\232 L\320wo]\343\226\014Oq\312ybyN\177\024O\237\010i<\266\253\006\226I\351\255\026S\352pD,\317\247\314*\230~\221\202\305\213\301\000CD\276\344\253(\273\246\024\014\371-\340e\215\211\243t2\027\262\314E\204N\276\341T\247Jq1\372\037\305%k\212\240lk\264bD\207\237\232\351\306]}\353\000%7\217>\361\036\300\000e\016\354\273\3609\371\311\354\026\273\200\342\355\342Y\217b\262]\277\201\025\223\021y\253\345\214\260\274\010\334\317\253\3638V\204\026\024uL#\325\212&1\303\221\014p\031;\317K\t\035\353\215\ra\277\254@+\264lH;\302j\231\221U\310DHBm!+\223\221\351 \013\361\nF{\351<D\212]$\271A\013\217DF:\035\243\300\216\306\334\024\020\326T\240b\330OY\3032\340\030\303r\024GG\301\202\324\221\332\203c\262g\\\364\3301F\202\0249K\3143\241\034Si\274:\250L\373.\020\351\324\201v\007\312o7 \261\013\235_\271\326\030PR~\305\233\266\001$\014\254\005\275v.\276\2549\261\307\002<\215\2661\302\211\371\377\305\026\234\207""\361\247\224XOzP\331H\014\243\253+2Lg\014\tS \376B6\341\345\344o\221\351\371\371R$[\266\243\264\263eQ\306\354\261\355\321\315Pff\246\3032o\024\201\tL\350D\273\244L()%\251\312\211\340\324\3222m[&\245f\031\363\347:IS\234\210\324\256%\265\310\035\241P0\230;\342\024r\201\251\314\031\263C\250K+C\214\276\370\312K\307K\326&\214\352;\007\333\223\330\370\376\276\036Z\275\327\354\227}\315*\307v\336\006\316U\227\244\206D\264Bj\352\016\330Y|=\330\251\334\204J0:\270\333\341\356\277\330N\025\206\367O\331.\225kr-\322u\330\261v\231\260\246l\310aV\340\261\026c47\0042a\242\343\rm\010\211\360?+\024\257Z<\24153\002\325\t\337\331\234\230\023\nV qS^i\004\200r\236m\313\264?\352n[%\036@}K8\347/\233\"\245tHn?\204i\321\277\020\001B\355z!s\252!\230\223A\362K9\325\331\323\352\371\0317D\362`$\310Y*\217n\374z\215\224\367\247v\342o\322E\210\3467\354\256O)\373b\241\233Pn\222\206\306\035)L\035\310\035\315\2341V\235\274\001\014\204\2051\242(\007\236)\030\370^\304a\301\242?_\303\364\257\321\"\000;\333\212\177_\367\202rt\306\347g\344\226mq\355\375\2463@gY\364\240m7\235n\343bC\245`\276\274\016\n\231\212j\341x<\231L\203p\\\273\263\026\254\333<Zf\033[p\321>\254\275\251\235\252\272\365\252\321\013o_\371\277\231\303\262\n\302D\200\234\350\223\225\362\327\346;\267\261\235\"\271\302naxD/U\021x\266\016\022\263\333\213<\031\177\302\340\270u{P\333\207\223\320\251 \017\350\325X\212\341\312!\306\276xh\232u\356\026\307\254\2060\222C\270\317\004D|P#\323yT\010\254 \203\322\231\2345\353[\215Z\256\341L6V\221w\234m\002:\355Ba\330\253\230r!9\200\242\304\303d[\036\246\301-ZS-\036\032\254\005\2371#\261\262\316\325c\nI\243X\351\351\330\016=\374\210\335g\352\006\331\2726\226\254U\005\356Kbr\367>\023)\377H\266B\t]\026+\214\017B\031g\223x\0221_\205V\376v\210s2S\2225oq5\223q\006\003\tEH\t\366\031\304<\025\026\356/\207u\200\221\226\026\337]\256?\322DY\356\2645\362N\355\207\375RP\333\035\205\256\256^0`\331Grm\320\350twS\353\363\332\363\247\223\243g\343\243\247\223\340\331\330\374\014\037\002\3720\255\031\266\262\033\213\233\337""\350\203\250\254?=\235\230\317k\027[\017\014\334\275$\374.\311\343\013P\302ie\215\374\022[\226z8\352\372\273.\265\363\227w\346\0211\216\216>v__\006\036\214Q\n\376\364hl\313\301\277\3370J\241\010\372\313\337\342\rG\333ne'\311ks\332\014\267\217\363\005l\266\371}\372bl}=\002\000\260\036\214\203\027\206\033#+\207)\357#b\214\227zV\034%R\346\000\335\204\237L\307y\330\327yr+|c\201\254\231\242\260rAyHPt\203\206\207ex1\203\322[\346\326\033\0261\023\006\332Z\317R\240\203\314\223hR:\265\000\005\231\343\232M\337|\177Gi\3705\301_\230\361\240\026\326.v=\364FKO\217\360\254\215\237\211?x8\251q\370J\237\307\245Ve;\243\rc#\230\2446\216\350\327S\322\273\210G\370\247\330 r\215\225m\371\025\005\267\367\336+,\337\306\246{[1\n\352\227\225\245\355\226X];\306\035\247\230\343\006U\211e\266\367\257S\217\225\302\207\337s<\225A37\3066\333N\231pX\355{\023z\031e\014\276\213\320\243\306\353U\341\333\252\207\242\302\362\226)\037\247^Hxl\253\362\033%z\252LVl\317\201\334.\347@\336\365\"\256\202\337\000\317g>B\205J\201\2118?W\361\204(\212\020\207\025R\361\205(\264\220\372\342_l\277'\363\004U\004\032\266X\250Ga\031\257\242\233\2733\325\327\264\331\032[Y\304Il>\212r\2163I\034$\007\315bI\017\2552\3060[/w\311\216RelT%Y\332\014\254\322\336\036\335f\302\026\326\003<\315\031\243\025\330\262+(\352\254\222\202\216\034\355\252d\246U\241[h\035\273\333\371\005\014~~\027\204\243\275pLf\021\260\\#d\315\353\215\335\244\r\312\327u\3078\311Zth\307K\336\026'\371+\2047\206\t\332\021\216\353[\322\226\234\032\014Q\327\371\350<\357\3544}\262\201/\204\254\305\235%\243\207\031f\325v\277\234\351\204\211`?\245\267;o\222\022\233\\\2637\252\2512L\321\355\232#\213\210Q|\235\021\007\013\264M\274\016\243\024\203w\334\177\314\033\343\000\177\245\341qc\245\240\312\2377\264iDW\327\374\353\214M\266\3669\313f\030\341uZfd\356\215\251o\336T\246\276\251\014mm&\260\331m\3352#\0225E\"\005b\365\204c\305I_\205\246\216=-\262\005\256Q\363\257\311\345#(\360\023\240o\340\222_\240fZD\265\016\242\214\343JRzxC\205!%\271\")\032:\001ff\230^\035\236W""\206\036\245P\330p\365\324%W\016uR\2725\026\013\341\010\313\031\333\214\034K\302\200\333m\334\323.\311\226}\227\351\263\037\266dfW\033ae\356;\331\202\326\312y\376~\330\030F\374\347PG\036\276\n\321\010\\\332-j\343\nmu\",\010d\224\247\362\312l\025\271\366~\365q\346\350\252yV\022\326nY/\270\215\207\265jC\225\212\205Q\311\343\215qWe6`C\226\376\005\016\347X\330;;\"x|\"R\332\226\214\\\2126.\030\312QZ\262\230\301\036\333\325\246/\205L\227\2062\223b4cxh\345\222\246\026\233\t\030\031\265\023\031z\035\253\326\n\315aP\022p\313\316r\2228\221\334\250\251\342r\355M\320\215!\316\366\354\020\256Z\212'\323\036E\013\n[0\2632\307\263\034_\305`E\376\222\r\356\347k4\022\214-\251\025\263\241*\224\264\325\216\212\001\313\362\2718\027\2668F\202\276b\360W\267\030\373\376L\005\264\337\022\371>7\013I\214\263\010\326F\236\031r\305\270g\374{\031\030\303\016\276r\377\370\367U\010\223\\\013\221~\215*\270?\272\315\205\245p\035\375G\310\347\334P/\n\223\327\002\276/\033\372>D4\365\260h\030\013\255o1\236\265\261>\3270\002\327{~\323\353\024r\216\342mx\266\213\346\366\364\216\276m\323\231\237I9\224\262\335yB\273\001\247B\233\024hS\202\246\272\032\2101(\307i)\230]W`\260S\362\360\251t\357\251\027\361\364}\026\260\004\005\024\225\245\002\002\024<i\006\241\034\206\235\310\360\255\234\271\026\342vQ\367u\227w\3436\312\331\320\243\365\203\356\275\332\272c\r\002\313C\3041\3622h\214%\010\034ecf\241\235\255&\221\325\346D^Y\225\277\221`{\336\257\260L\330\340kV\324\375j\354\206\035c\036J\375\253p\203\353c\345\234S\272\267\246c\376\271p\212\025\n\003Nf#\274a\n\274\2741\370\212\205WVE*\206\000\263R\363\265\216\275\250|\200t\300L\341\013\224\206WA:%\2734g\231\314\327\"\207*\261}\354\245g\004y\302D\245@ne\205\\\331\350\232\2231\324\213\373\216\003\263\213q\261&\031\250\3321;\336=\330\252\234\357|\216\211\330\021\031\010\032.\365\333\311\260\243M\010\252byE\"s\316c~\006\310D\307me\323U\231\236\215\014\026tDz\355\315\205\226\036J\261PH\321G\004\353\030\231\317 ]\267\320\030\220\021!\206\203=i>3\025l\266\264\330v\003@""\217\261 \266\303\357`\274.\363\224\211\307\350{\305\346\246\244\362$\262\302\246*\334\202\013\226\210\335\312b'\014\350\2379\345h\332\210\317\345\240\213\321L\315\024YV``%\256\377*\241u\277(\260\256\216\253{WT]\327\016\253\313\364\205\\\301\003\\\254\203\313\342\372\\\312`\271\tE\204\025\316\240v\362F^^\271\332\343\365\301\347Ih\213]\217\226W\300\235\272\005\240\374\374\230\347\236\021\363\334+\274k\033\357|j\323\312w1\016\321\2670\263r\020\344:80q3R\313[\200hk\251$\324\222\207*\200\363\235+UE5mZ)M\256n<\370uC\361\264m!\267/\345\366\305\254\\N3\234\020-P\204imy1\016\235\363\332\247\021\312\227Gm\324\227|ZZ_\254o\374\3313\213yV1\257V\331\027\341\016\354\210\022 \210\326\304gj@\322\377\362\235b:\350\301E!\"5\007(\201Fm\374cF\032T\251\030\344.\341\231\326\250\025\337 3\362\300\010\373\342Pz1;\313\301\357\237F\277\343\304\232\355?\376\370\325w\366\234O5\365\000\277\211/\036~\371\375S\255\246\276c\351C\213\2139\005Jt\036\244\322\276>\016?\362\024\014\203\276\362\210Y>N\370\332JZ!\3610\265\202\214\036\25507e9Y\251\224\256f\\O\251\226T\222\224\265\221d\002\023g\\^~\002\346\004\356\357$\027#3\302\242\024\363\261}\272t\314\005\007\202\005\263\rP#Kh\245P[\325\252]\232\351\364*rmp\013V\023\372V\263\233\252\025\206\300\3517\020TpN)Q\211p?b\203\243\217\3603Zs\253\261\2210\253r\256\200z\010\024\231\357 zs5&\335N\370\321!'\326<\274J\rJ\235s\325^^b/\320G=\230\337\006kd\370\020.\340\001\356\351\345%\222\221\376\345eCi\266D\213\227\227k+#\035s\276\225\333\304\"I\031\214G\021l\313`i\330h/\270,Ri\2248\226\322\2175\211\3403]\\6\247(a*\341%e$v:.\312\217X\253m\014\312\214\370#\007G\274\265\312o\017\314\013\323\230\002-O9\207\260\234\2249\024\221]\312v\036\241\215\254\240T\024I\"qY\361\262\224\371\264\200\326,\337\213\325x\234\242\3415\325\301\341\210\025\207NM\037*`\177L\274f\350\241\213XL}\367\252\260\232\365\300\263\242\005\3351>_\217@\314\334\030\304\327\304\345\017\014\001-\002~\250\374\323J\364hq\351\321\235Y\304\"5\005=\227\227\326\312^^\036\230Y\036\252Z>\200:\360\374\362\322(""\207\222\220*,\207e\341\235\021\263\004\252\031\370|\217\361CU\027\370\302\350\003\313RF\265\252\262\370\242P\226\374\250H;\\Q^\2764\007\263\307r\256\252\342\233G_Y\205#\\\tP\243\006\344\227\302\0307\327VpH\325\3257\243~\005\203c{\207\374/f\"\237\022\023\271M\024P\346$\237n\0232\335\203\313\224\216\342\205\004\273\227\222\307\264,\324\202\215[!1\252!R3<\307\327K\031\035\222Lcq\277`Q\013w\2362\351\016\000\234P\030J\036{\253\005;l*\237=\207}\366P~\314\312{\035\323\027\335P8\366\255\n\212\020\225\323\317R\206f\322\324\3347;\370N\233\371\\\007\245\363\213\302\302&P\342\366\000\2378\275.gB\177\342\370>\303\254\335\234\213\021Q\330\350\021c\344gNg\332\322A]\360\245{g8\023a]\246]\346%e\210\375\265\204\003\242\272\025\213q[\314|\231\210\242Y\257\260C\326\351b\302\373\272i\233\326\250\360\0025p\376\001\372\007\034\\Ves\276,\305\315\243\234\323\273\346\253\376\362\324\324\224\016XX\235\230\331h8FfN\276g9\205\005Q\036\273\202tyb\321\253\322\276yr\235D2\373g\006{\034\023\325x[\2427J\363C(\n?\216\302e\026\001\316=\364\332n{o\2575h\026\343\212N\243\014n\373\t\347[>\304<\365mL;\317\277.J\305\361\224\246I4\035\005\2710^\023\016\007\333|hm\311\341g\303\276\345\247Q\313\310\360\203\320\271\246U-o\245\302\"\275\250>\242\346\002\034\302\364{8s\240\322Zm\327/\317\277\352\347\236\356\303\332\004\271\333-\257\204WZ\211\376P\255D\277\200\005\266 \355\242ui5\326.x\\k\335\235\351h 1$\005\357\270+h\207\215r\313\301;v\013\332\241\331\207M\301;\356\026;\375\267\213\340Q\021\020c\226\254\322\377\016\3610t9\324\033\\\003\341Enk\350i\030\002+#\226\355\277G\330\014\363\024\311;\277*<\016\237\\\016R\251\335^Q\247\25619\252\341#\n#gf,,\305\304a\231\255e\372m\270\\\330\215+c\n3\304\\\323\221\231J\204\223\277L\233X\270f\357p\204)]\273\256\260'0G_9\262@e*\271\274|wy\t\210\001j\321/b\323//\001\t\324\337Q\350&\374D\t \353\323F\303`\003\330\002\347\362r\312\312w\276\005\257( \214LVz\023\246\367\215\343s\322&4@u\353\347\350\036\017\270\035\335\327\204\231)|dS\324.:\345_\330\225\203qV?i\213x\215\365\306\3437""\352#@z\257\341|\213\227\244\374\361\n\224\265\351NdD>|\023`\320\004\222\247\2301\002\315\244\3358_ \226\r\306\366\235.J\330\374\005\343\312\313\313&\322X\214\006&\"\340\331\032\2557\244\361Ff\220\343\227\227\274\3540\331)F\343\201\305\207\375}\2336)T\"%\206Q\201\311^\035\275C\243X\n\315\255<\317Ji\214+\300\305\021)\264eb\037[\350\211\t,\016\2527\315\242I13\310D\310\340\253Z\270\367\256j\t%r\2160\277`\251\246U\325\001^\036W\301\262^y\2014J\305\321O\345\225\373:\271\245L\247\247\242\341\354\345\222v\253\336k\234\017/\312\223\360\214I|\337\250\234\344!\2242^\330<\333[\264\t\276N\026*\2716\205\t\263\016\353\306\t\316h\304\257~\\%9\032\345euN\373\267\337\300\364\t\345\241\370\306Pg\025C\365+\017IE\334\251\241Qw\240\016\2175'\270\212\340\020\334\302\377\230\373x\036 \211!\360,\320w\210\177\025\373/l\364\204\223Z%\244t\314\221\273?P\205\252-<\351|\316\024\274~\325$8\342?1\275\2607\024?G\006\375'\227;\204>!\324\310\224P\243z\364\256l\241\336p\307\310\000\211\013\270n\316\240\343\227j\242\023\375\271\303\336x\024MF\317\335=b\343\325c\025\220\023\236a-\230.0\305\037\021\352L_^j\277h\3467Mt<\323\231\304\024\233N\022G\250\257>K\026)\275)+\215l\354\307\246\000\334\245\004\334z\217\3169\246\377\315H|\271{c\025P\241\367\275\370\263\2711`\255\274\356\260\353\365\333\375R\027\3274X\312X\025\352\243\206\356\322\036c(\204\0338qM4\361\273k\274']\003\224\257\033\316\326\237;\033\363\t\271t\235]~67\266\315\260\330$\244,r}gjJ\247d]\223E\322\377jj\352.B\212\t(\343\266\2777!u7O\365E\324\024PR\032\231i\177\tt\312\307\177\305\262\324\t\005s\2577\316kH\020\031Z\214Z\004\\$%2\255m\257\207\331]\315z4\251\355Ux\261\214J=\003\373iB\356\177.\rW\221\2351\023\256\341\200\010D4\024S\347-,L\354\000\375\227\3566\304P\262\r7D7\030\221:SDM9\332\234\264@\266\304\342;\031\214o1\r\257,Q\035\245\036 \377\334ov.\232\350\272\326\362.\340\003\241\360&\300?|\273\330l`\256'U\260\2747\315\310\3574\025\207\0072\350\241\031\014\221\276\342\337\216i\360\261)\024\342\377\031\214\337\307`|+$/\327EQ\331=\265\007'\002""\253.M\304xGW\367\365\234-\373!\356\332+F\234C\001T\212\221t\222L\307\261\024\031\365\346\030\367B\251\010HVY\214\352h\007\364V&&\234b\307H:@\374\013\206\207\214\354(T\332\315\223\232W>\230\242sw\267\240[%\27342H\220\023\020D\237I\360[\304\316\357^\373\200\2566\372\335;\300\233\256\177\340t\376\330\266v\022\273Y\303\311\nBP\234\365|^\244.L\222H\255.\237C\276\241\004\251#\305\177\302b\315 (j\363\344vD\261\332k\034QP\230\363\211&)\272(\245\344\n\003.0YO\314 z\\\316\225\021\007R8\030\030\214)C{\243\032\n!\257\000Y\347\327\013\304\005s\206\006J\266\254/\206\225H\266\240U@\247\334\237\256l\354\335\317G?\235\034\237\274:\220\001X\004\325\202\221\247\220\td-\354\"\272\272\206#\033|\300df0\276u\223\177\233~\013kB\024\016\272|\355D\346\024U\263b\201\024\251\223\325\273\215*\275\322\211A\320\210dI\350PFU\014a\357/\217;\024y\210r/\377\322\204O=I\364\030R\337\343\234]\307\262\234\363\300\316\223\344\203\363\033\346\367@S^\332\031\271#\017\356\032m\223\037\222\035\304a\215+\027\346x\216\376M\346\004J30\256\226:.\322\177B;\377\331\026\266\343\366\234L\3515E\321\002\356}\"\230`\030\375mH\036a\212a4\274\266y\3542y\234\006]\005\227\004\245\006 3\230g\237\205\361\220)V\213\3243\204\000\336pK\271\246\350\363P\r\312\256i\n\372\220\nC\314(\362A\300=\246)3\214c\2064\231\3642\021&_,*j\032rP\241\354Nfpas\\\037\206\212&iA\231\276+:\270\033\211\214YI \361\301\241S\273\n\2265+\257\343\0333\007 f8\024C4\317\355\224\363\374JF\377:\014n\340XE3\031\377\325\030\207\\\036b\363k\356.\370\260$`\177\357\374\037V\374\247bE\333\227\345\377\020\342\377\000\204\2705\014\347\377\341\302\377*\270PG\275\256\323\266\333\201\262\311\220\267\220\325iK\300y\"\251]tE7\214H\370\025,\243\347\266M\217saH\0218\377Xa\202N\301/\025\030\351\327V\276u\340^\372\017\033\305\250\324\365\266\273\337k:\226Q\315a\331Q\372\365f\352\032'\255\342\331\337\371\243\302\322\223\215\030\207\270\307N5(2\003\355\366\006\335~\273\323\037\364\332\336\376p\010'\323\361\335\356\260\327\331ow{\275^\277\335\335\337;\226\341\353E\325o\004\354""\224\332\332\367\207\373\203ag\277\323\356y\003\314g\341t\334\266\337\357\017\007\376\300\367\006\236\327\337\324\326\323\211a\355:\301\234\267\214\307\230[\306)\027\327\034#\301\213\305\330\232\274\2430\303\301>tY\230a\177\270w\274\013\030J\266\267\245\231l\262\211$,Hv\326\205\260\331\312\310\242\200fv\210\033t\227mD\300\361\265\202\361\270\206~\212\230\310D\004\362\n\314\\'[f\203K\373\266\343\275\021\221\363\005&\301\t)\353\266\202\017\017\034\217\202\245\343V\224\232u\272\237e\004(c\371\223a\347\226\000\377\324 j\010\013\203\252\303\254\014\323\213CY\265\314\333?\367v\367><\331-V\210\271\302*\225\252\360\250\240\347K\225\371\334\010\251aXs\352\267W2\253<I|\310\346\t\360\225\016\257L\352H\347Y\003\256\315\000\363\313\031\364\223LO+\343\022[\302u9,\2765T\320K\347\341\331\355\303\202\210\374\341\355C6*E\324!E\025\206\215\"\316\213\252\245:M\023K3\000z\312\0211\245P\002[+\200\316\367\026\350L_\377\030L&\223\361o\037\2568\206\305\367\311rf\0075vK\247\354\373;\217\025\314<k\322\032g\244vR\013'3\353\342\337l\004\263\032Q\241\212\352\372\020\236\005M\347l\014\377\202\261\355;\300\355\027\004%\333#m\236\005\277b\372 hj\357\014\376\017(;q\375l,\376\006\370\241\345t\033\rxg\270xQA\243\332\206J\027\005_~\276\2579e\240Mt\004\331\007e\336*\"9\210\230\213\211\351\331B\300\270\223\335B\233\267\357\025\\\323\341\007\272\375\213)\335M-\350vc4Y\362x\267\275\303(k8\316\302-\253Z1\236\034\323\341\252\267p\033\366p\001a-\307\260\210\360\275\013\337\371\223\217o:\372\363\036\2570~\327uZNoO\274\307\215\031\363\266\332e\251\030m\026v\326\024\257\371Y\213@\252%\2733\006\322\221\003\321\303\320\203\200m\336\243\357\364\034\333\362\211*z\203\204\022\235w@#\357\024nq~\022\2215\014\030vH\261\370S ,\351^Fa\305&\035\003\356\206\335\311l#{ \000\266\232\311\013}\010_0\024\031\202\360Xh\340&i\377\003\024\357V-\305\370\233o^\277\376\351\237g\307\210\326\210\343\243\247\305\300\233\301\262\034\201\276\366\014H\202\227\200\372^\003\332\257K\034\010\\\037\033\350\277lB\207\316\370\211\363\32298t^\002""\303\312\2260\017\203\207M\347\341\370a\343\t*\207\341\215\353=q\306\374\311\177\242\2026;/\037\237\007{\374\337\370\327\226\267\027\340\2571\374\307\037\340\327\305\023'\214\247\315\363\213F\2550^\"\275+FL#\370\026\326\341?\356h\372\273\332\266\375\246\313\242\340\373\240\022\322\027b0\226u\n\022\377\260\310\002I*\270\270^\255\340\264\307\271HV\313\001\267\3032\017\250\t3\331\n1\217\324\310W!\313\344(\353F\020\t&\3066\025ly*\010\323\034\203\361\341Xt\325\261]\367k-fy\035>g5K[\242\027SzG\342\233\037\346!\234\334q\222\347s\221\201\244i\251\232\364`d.f>\376\300\221\001\363\213\201\367\326\3337\207\303\272\335\2759\252#{w\244\001\361\306\322\344\037\302Y?\200\021\324\027 \252\310\334m\r\225\267+Vr;aB\2641w$yQ\227<X\2255\224e_n\304\234\253\253\210-\350\005\242\014\317?G\206\377\246\322\330\200\005M\017\266\316\321H\001g\346\374\300\307R?\n\213'\"B\021\344Y\3216\321\010\362ot\241\354\230\n\246\315\201[(\037\214_\216\037\243r\332\327\215$\245\317H/\351\034\000\204\247\253\214\325\224\004\341V\310\233I\022\316f\321\204\254\216\234\372\233\246\363\272\001\203\250{\350\336\341\273\205H1\023\026\230U\365F\257\221g\220Z\373-q\234\204$p\342\242\226\3204\264;\257\211a!\037\307\262+\374\240\033\265\222\337\031T\335\277\013\362\r%f\345M\220y{\205\256\032\003\332\307\223\322\332\033\3632F\364\214\365\300\346*6IW\316\020h\320\242_g\275\213\r\372\237\331`G6x\261q\226\326\302\032Sfo\035\323\300\376\342\237u\030\212\031\254\376\211\347@3\277\034\273\220\254_T\362\314\352\3112\264\334\242M\314\203\255\007\251x\316\334\354:X\206w\311u<\257\335\355\366\332HV\267\335a\267\277\277\337\036\016\014I\0167\265H\246\253\371*\333\332V\013\032\363\275^o\260\357S\022\326v\327ow=\277\330\330n\007W$\366\305\014~\372\333z\004\374\354\n\030\226\365\266\263-\306\212\037i\005\324\007\253v\025\006 \t\272\250$M\332x\021\025\205\200{\021\271\306\205VW7\340cy\3237\254\030\027j<\224\226\010\000\203[Tb\000!\035!\347T\270\336f!\020!\206Eb\220\241m\213\335\245S\317B8$S\276mC\224\360\241]\r\243\373\306\343z\345c#""_\"\032^1\032\343\340\006\350\001\304\230\310\341\260\006Y\216A.\221\260\3104$\032\327\253\334\233-\350\017(\266ss\027/\266\003b\035\240\2477\034\014:\355\301\220\241g8\000r\262\013\320\203\216r\203\341\300\357\366;\035z\325\035v\273\000\264\235\275\343\2029\277LL\312j\016#\361\244\"\275h\351qW\344\0233&\250\036-\213\354\001-\205\037a\t\315DQ\022\204t\376';\361B\030\3242g\017&\031\301A\016\245\tR\224\252\212n\371\302Q\241L\277\306\255sG\022fu\025)\3038\003\243\301`y\2056\242\205\377-W\225\rV8\022Z\030\345j\013\\>\251C\n\261v\252\0058\376\320\214\216k\031\206\353\301IT%[\026\276\302\300\334\002\316@\267:D\367\375v\345\376z\276\325\3729b\342\375~\277\335\205S\323\036\016\367\377J\307\306o\373\360u\340\r\375A\257\367Wk/%\372\276\273\322\305\026\232v\363\375\345\304atu=N\322\353$\231\226\234\262\265\233\276L\316\213\202T(4\r\362\300l\311\322\333\003\216K\306\201\341|\017\250\027\270\200\005\271\203\033A\000:\255l\031L\266\253\242\263rj\202g'\372z5G_/\026\333\352\303a\336\264\035\277\273\337\033\366:%\265\3473\324\006\363d\262z\333m{\246\256s\177P\352Ox\343\377\305y\273\014a\331\227\021\305\\P\361\017dS\325>\371\033w/\013\3473\226SV\033\323S\222\274+\035\017ek:T\235:(A5\324}\263\006\235\321\332\343\341\207\275\337%\214\351u\220!\222\256\237\301\315\316\373Q\3339~'\216\363\331u\230\306\255\323\010S\333\300\330\205\303J)~g=F\000\3078\200h\326o@\336MD0\031Q\3220\021\323\311w\336/\243_\375\313FS'.\374\020'\267\361}\203>\000\024\342\360F\031\r\357.@\303s\334\353 \351\325)F\353#\221\027\033C\212\020\373w\335oZX\235\025r\254L\243\253H$\245\024U\020x\324\3157\335\303\225\020Wb\321n\"\323\375\360!3\247g\274)kv\325K\200\257\372\240\351\014\233N\257\017\377\366qQ^'\267t\267\177\017\247\025I\251I\224\231^\310\266S\333S\225e\252Y\221\270\221\226\307\314\374\300\224\237\210\273X3\302:*3\034X!T\t<\251h\r^q\270\017$\343\321$A\221\nfzt6\321Q\r\032\031&\321\271\000\343\353:o\302u\010Xh6k}\237L\257\262$n\211H}\245\200[\244\242`\337/y^7\303x\260)n<\323\203$p\322\031\340\204G\031B4\313_$-""\265\212\231\212,5\203a\264\002\212!\216VU\021\035 \203\\\222\261\2052\341\023@F\022@\3464\267Z\332W\204\234\377\334cR\210q\241\003\331\022\233\350|I7\200\316\367\367;\200\305\367\365d(\334\017\007\373&9>\206\376'J\307p\277\370;\236R\312#\300a\3037l^\224a\212j!\270\004\006\202\361\213\341\355,\242\317\360FM(\303q\342\230\023\220\361h\026\3014t\267#\311\207u\214\337\214\312\324i\303\364\234p\262\350*\016\020+?l\n\227\013t+\311\001\271l\210\341Zi\\n\323R\3251\300\213\316B2\246\267\325\020\252\234aH\226n\2456y7\031\217\307\321u>z\032<{Z+\304y\225\251w\231\272#\325\036f\202'{0@$\224\302\225\304\024r\326\223\273\306\376\267\362\330\013Ch\224g{\350\374m\243\027.BA\345\242\223n\031Y\010\0326\213\242\351\200\2324\226p\235\021\312\370\365H\327\376\226,\254\326\256\362\252)\227\371\316\360\2619\246\350'!\007\335\271M0{\345\r*\261Qh\223&\224g{\274\346x\260\034?G\301\314%e\27240\325\336\336\337b\365\266zn{{\366\002\254\356\252\300\212v\305\334\024\257r\315or\222\020\204d;Z=\333<m\364\022*\022\374\033\301\324\272\305\357\000T5\247b\034\027\202\334\351\353\037\307\223\311d\032\246I\315\262Z\304\354\302\021\256\372t5\261\203\n_>]\2459L\246\346y\316\267\3251}\201\301s\373\355A\373\273\313\221K\233J\321\320?\261\231\205\221\"U\007>&\257\013\370\034b\336\315\353\3654\025\231\033\371\350\030\344\320%\352\354\202\353 n\302U<\237\206\343\224,7\340\337\317a\370!sjCm\372G\243\313`x\323$\242\301\241\233k{\330~|\332n\373\275Vo\337\033\264\206\303V\333kw\372\255.\016\366\236\360`:\313\261\372&\327\034\377\345O!\336\272z\024)}o1\231\347\002\205s\275\032\273Q\362\030:6.\353K\2334\356\270\350(~\234%\247\321\225\025\373\322\2441\204\035\256\302\200u\300\314:QM\203\204CW\320o8u\2357f\0326&dB\014\272\032\345\332\235\233\304\031\312E\016\025G\327f\373Y\261\003K&\245,\203\347\341\307h\222\250`^\230\266}\201\366\211\251h\373\237\r\356\345\0269\021T82\346Z\377S\017\032QR\206\345\245\014\013F\233e\016\003\226\205\323u\360fspl;\024\272\266\307\336\004\007\230\177\370\326\250o\n\230t\374)\250C\206\276""\350\243Yj\221\t\272k\314h\265\355\222\372s6\263\351\224\027\346\237\275\315\367\035\023 \251\253\232yM=\277\003\307\324\305)o\230\327\225\014w\213A\014D}\266A\253l\202hc\262j\025\022\020\021\340X\243\001\035\301\312\224\263\300-\034\030\331[n\203\265S\317\331#\322\270\374H\365i{.\262-\331x\275\315!\266\212Jk\030@\364\027\2709P\010\217\307\302\220\220gj\010\315B\22413\200<\305\363\024i\214\314\244\277\256-\226z\306$Y\266ZRNk\344\241P&h\237B\222\322P.L\034\212\210\321\347Z\003}\247\327\217MA\235z\360!\330\340\366\331\024d\000\252v\363d\271\376\363\306M#Q\003\266\372(\336\036\002\212p\333\312\310\004c\003\024gX\030\321\323\365f4F\025F\326\375!\006E\267\216\350\317n\217Y\276\315\335K=\202\275\017(\314m\311p`\2347\306\306]\023\312-\216-\020n\024lCi\007v\\\235rw&\025(Y\357\"_\242\307PXC\345l|\033\312P\345X\276\256\327\241QZ\010G\034\006\273%\"\326%\347l\216\222\302Zb\262\234 \253B\3554<\224\317\025&1\253\334\000\014\225\207\356\313$\002\200Q\224\306\206y\336\355\226\352dOf\304\252\346\304>F\214\332\320\026\302\007\224\203\252\265L\243EaeE\014\277\214n\265<\224a\355Q\242\021^\0077\021\314\036\005-|\217\221e\354\3371\311#t\331q;\367\200^\261r\033\340\267\264\341;\201\212\020>\002\310\254E\214_\223p,\002\316&0\201\263\243D\206\345^\354u\004T\262\214&\037L\244\317\004\233\201\337\311\260<X\240\177\225\2202\326\027\315y\343\222 [>i-\232-xf\234\230\347\244b\326\276\3232-K\220\2062\301A(-\2235\225+3\211'\253t\202[\014\300\256\010eA\032\303\345\361X'p\314\036s\225\307\343y2~\274 \007\232\307\3135,d\374X\335\311\342\222v\227k\242\346\215k\366\005\373\205\230\227\350\353\020.\257\214C\252OE\356H4`\316\344d\207\277\372\243\337;\335?x\005./_\017\003\337\303`\025\032\340X\346V\344\204u\366\2474\2649\300\022C\274\261\350w\227f\302\306\005z\305Y\227\267\nl\341d\301\232%h\327l\325\200\3045\206\036\253P\256\226\303\027\227\205\013\024\230\212\207\351D\213e\222\346J2V(Y\020\265\303ju\320\014l\343\224\352E\251\204\035\275\202\226\367\216\372\026\203f\261g\260\355(Ma\327\263\\\2476\330@""\333\314\002\0002\262l\323l;\023IDp\350\323\307qC(bm\243\274Xov\220\016%\257_\337|\372\361\365\353\037\177\004\222\364:\232E\327\361|\361a1\217\343\345\315\352f|\223\254\256\256\306WWI2\032\007O\203\361x\374t\374\254V\350\347\2072)\375Y\3156J\343/\006\364\370\301,rN\341;\332\"|\207\031\305\355\234\343w\360_\273\206w!\377\032\317\013\271\036\013ZP\024\366\360\321\343(\327\322\255C\010[(`\350\316\213\277\205\021\333}\321\212\033p\362\247\366\245\255D\222[dN\232*\262\262\014(K\353\242\2314\270\325\200B\204\373\365\263\227\245\271\013\337\202s\370\364\372\335\355'\232Cxu\375[\024}\230/\342E\034\257`\0167\301Mrs3\203\237\317\\\257\235\007q\357\205<\232gISs\r\217)7`LK).*\362U\2414\274\310fPd~\261\272\3058v[\026\325\242\265K~\014\367:\243;\256\340W\353\021\315d\265\304\017[\225\312\234H\360]D\211\222|\213C'\211\0342\212*\007\376\206r*XR=\235+\001]MY\372\237O\256\357\277\242\006\327\365E\013\013h\017\321\337}\227\367+u\377t<~6\246\356+\317\370Z\305\240!\313m\306\201<\010\276\314\005\007\\\340e\032_\276\234JpQf\317\276l\271\237N\306_a\271\377\364\341\225\310@\326\303\340M\244\"\202[y\355T\300N\261I\261A\004\032\241\035\220\271\232\231\236~\177\016M\230\001\261Bj\3224D\273\326\314\3460*\341\303\310M\333m:\275\206\231f\263\234h\023\312\264\240\214g\323\\\014\257\341?V\021\205\034\3127\254U]&nB\240\226\244\346\356@k\2242c\326o\006\226\273*(\\yG\311*f\357\013\300M\232\003\367\032;\036\207\377\211\0237r$)\203T`\267Wq\313>\006R x\235\206aK$^\275a{\220E\273\275_\307\304\264\025\020d\261\020W\257_\277\371q2\016\303Y8[\375\266Z\004\313\270\3567[VF[\225\3236\231\257T\242%\233b'U\266\312\326\353pRa\214\322\246\356>cZ\247\237#9 \321\255\226\261?\330I^$\234\224\355e\313\226Q\254\034\216)\025\236\266\005\010\326\214\240f\304\240\347\254\247\222{P^K\301E\035~\336\261,\321p\177>p6\357{^\032\22536\267\276\n\202Z>\346D.\002\220\004:n\243\261\r\236T\022\3338\274\n\n\220d\000\232\001T\357\020\235\246\"\226\240!\010\25587\246]\234\344_M\220\342\330\314$\317'\311\275\004\230\257\275\377_\202\235""\356\267/\313\337\202\177\254\226\267\200_\276l[\356u\314\367\366\336j\3603\305HZ\030\264Q{w\310g\236d\235p\325\317\321\n\\\004?1\224\314Z\035\023\244\312<\260R\243\343\232\342\017\312.\206ASs\244=&\301\222u>\006\004\024$\275Z\236\210\272\340\246\251\004\316\255\304\273\202r\251\004\006L\177\271$\216>\2117uD2\366\222\222\207\202\032(\245$\347'$\205b\203\223\275\257K\341]\225\310\013\r\005\355\354 \177qw\320\231\272U\345\265\360H\242d\223\213A\272\255Z\233\302Mn/\274\001\363\227FsLB\321,\244\230\271\031\346{k\2414\222\0164\373\221\332+\247HP\003*\014\212P\352\373\326\350\031\236\225jK\357Q\246\312\264\004\301\030\320\001%\301\321\202\265\203\007\305\2505B9\265I\254FQ\236\311t\244Bu\327,\265\246,e0\310\3576=GV\\\360\355\325-b\330-N\257\na\225g\372\234\271WC\023S9)\267T\221\322\356\245\341<\274\tX\235\276\t\3426\017\014g\274\313\210\356R\313}\336h,\35354\341\013o\215t\2447J\215\342\227\253\034\317\266j!\213\030&7\362\240\003\016\203\331\225Z4Lk\000S\241ZG\014 \333\272|\326\331\333e)\255\263*6\370k.o%\000o\3051\233\346W\205]\3569CK\331W\251\337+\265W\320\367\205\233\316\330W;\005\306p?sv\205k'.k\353PWjXy\231\027o\361\316\"\275R\251\366i(\0035g\202\310b\255K\345u[i\370\252\255\336\037\316\202\017\341C\201*\265\201\266N/\251\213\233Wd!\375\332n1\361\311\370\270`\343\374\222\203t\220\231\365h[\272\316\227.\214\202\320gVo4\035\370\216\t=F8|\371T+U\332M\247\340\205}Z\036\322\370C\020\\a2\2614\\\300b\216xN#9\247\252\024t\247\205A\234\3361\010\277\261}\037\222\261\270w\221\234\342\374\316\200\370\302\251e\366\252I\264\323\327\365\223\3463t\017\023\237\036\377\376\r\006R\377\243`\215\314\241\307BD`'\354j\211\212[\303t\331\nIEWt`5q\203\034 \006{4\2629\360\2615l2\277\377\325Gw5\000\275x\2121\256\337<q~y,s|\263}\266HM'\235g\250;2\356\305\004\334eSjy\312\001\016n\320v\247\264<V\306\364T\307)\357\216<R\274\243 \255bM\267\371P?\204\272\017\253\034\372\227y\002\243_\217\214\366d\016\356z9\"\344D?\362m5\023\232\021\340\362\240\233\004\037\363\254z\343\243\2147]\320b\026\201\373\216""\007\243\"x\301\\\247a6I\2431\253\271\237S\0040j\316s\367\315\370l\247yp\223&\231\363*H\223\325,\230GST\343?_\317\201z?\273^\301.\241\272\361\331u\n{\203fC?\270\322)D#\300\207d\260/|Q\377N\336H8\025\000\302\030\200\260\365S\001\370\340U\247%\0278{\250O\304&\303]\317\365\007\376\240\261iw\315U\251\\\r3\245\002\247c\202Q\245\345Q!\230\020\323$\224\004\030\211\222$\024\002\204[x\027\330\016`\033Zk\342v\026\300ji\201\215\030\033\347\006o:%(\202\307\223s\317\314\260\3656-p\036\344\365\334\232\254\362\235:\332\320\211)K-\330\254\224\200\220\231ET\373S\200\377,4\360\310Nc\350l\233\250\366\002\010&\3418\230|p\352\213$Ca\362\204R\220\"g\214\261p\032\007f\362P-\311\203C\222b\263\302\211D\000\301[\335\337\263\273\346\320\304,\213\262\342+e\t>-\266a\2055\340\354\351\316\273W\214r[U\250\366\304\371\0167y\305IH\014#sM}\225\026\373\340\301\026\244c\264P\211\200:\215/\335\r\013G)g\2552HH\203\242\300F\323\362z\200\225\001\244\217\370\210\341v\373\264\356\306\245\0233\213\332\206-\256g\243\366\010\343\210zM'\033y\360\261\305\037}\375\261\243\013\264\351)\3765\312c\t\243\016\376U\365ZT\312VB\020\313\020\304\231\326H\312\025 \207\032\2612\233\316\025\257\222\306\350\004\235\354\267\350\311%$\373\220I\350\264\351\226\320\022\242\266S\037\207\223\000a\213\347r\350\264<\333\372\235[j\027[\362\266\265\344QK\337x\026\326\305Z\235R-\n/P\325\240\307\252l\225\016^\363\332\327\230\031\302^&\232\263\222\004\360\220)\361\tf\306 \307\033\n-Z\347=8\024{\340>\370\232\024\324\326C\214\206q\006\271TE&\351U\277\223\\\322\244\317v\202\351\244\341<v\352\370\367\327=\021\371S~\223Z\332U\214\216\251\264\271'\266\267\310f*\213I,\303\303\\\t\377\004q\265\0311\331]\030\230\310\021\307\270r\321y\260+\\.U\305N\232+\371\333-\215p\364\016\304#*\300\265\351\020\257\356iX\221%\334eFh\263\215;k\312\247\t\322\312\367\377\226\366%\241\275\001\353'S\224\002\231\304\202I\225o\250\204w\321\235\204\3545\245\035\253X\"\266\343V\312\320I\370E\304\355]\367Lw+\245\333\261g\321E\024z\033\362\r\314a\3327\315\202\356c\264G\275""\272\306\032hh\264\375\230t\221\353\201?\216\304`29RE\353F\000j:4]\302`-\375-Eq\320\234\270o\312\314\204\007L\230R\2578e\223\341&\256\374#m\2523\262\270\336\nB\037\363 \225.\002\340\3471hzV\242i\213w\236\031\253\227*\271|\t\311\307\312m\352s\316\004g#*\217\0163Gl;\014\222^\226|h$&T\r\315\004\356\004\023\271\312\313\355WB\003\237\213C\247\363\247\302r\347>\\[q\033D\242\3664\372D\276\201\233\027\035\326\246\263\205\375 \362 g\363\344\361zW\006b#%\3276)9\231\035\352\263\307\376\356\216\301\337\037wV\266\366\225\327\240D\315\312\273\270$W\210\023\322cV\313\026(M\006\\_\032}l\240h+(\324-\274D\375\334\247L\217(\222\272\330\225\244T\264\022\223I\022uud\2468\021\246\300\214\246\315s@\020\360T\251d\225\346\327L\272\361k\364\320\377\024\246\t\226\010)\263\t)\357K\271b\240\242Q\315\024AW\022aK\362\330\345\234\014\024\2402\224\026\244\021\215\3507WnL|\203\333a\020\005\221\230\276h\202@-[/\010\\C\014x\025L\235\224s\264$\305\004y\226\204\204l-3\026\201\324E\013\353\363\350\302I\034\365\355\267\213\006'\334\003\254OK\250\365\325\t1\334\272 !\255\3301\032*\3108O\253\202\221\312\342\225\221HO]\021\374j=\222\353\203L\273\201\226\274\355\313\214\312\344BhWGj\232%uw5_\231\376\026@'H\201\005\245\006'\221.&\265\\\320U\005\215]\003\2555\r\255\240\362\262Mc\223\\Gf\321A\227w)V\017\343\325B\250\231)%`.V\215\302\037\222\247\214\000\340(+\010\037\321)\230\356\314$\313\"\326\310bXq\"#\215\363\326r\332\007\316\345%\342\033\314\004\264X\242\327\375\245\371\336\303\367w\353\324//\035t\216\333S\206(#9\311=\323 \341\024(\022\262\001\222T3'\326\203\325Ya`j\303\225A\031@\270\346h|\034\315\216\206\027rH\200\224\014\023\245\252Q\275\303\370G\343\371\272H\315\007\225\003\242C\216\266\354f\230nJ\270;\221q\340\204/\252e\335\231Y\023\351X\023\201=\317\355\221cD>\\\251qHr\233pZ\336\005\254ty\3310'rd\227\240\261\250\340\201\302\377\345=\376\031\217\177\377\351\017\030\306\373\337\021m\276\377\343\322\032\\\327\032\234\t\274\306\020\255m\205\325\220\361\316\310\271kN\234@\242\372\204n\200Ly\037\305\263|]\354""\255\207\275\255bt\363\270\212\211\r\322g\016\226\337\006\307>\203\253.2\303k\321,S\2316\252\234aq\223\005\311N\366#\233\303\277\240=\233\263s_;\233\020m\353\260\365Y=V\356jm;~\274Q\222\351m\030\262\"\312\027#M\215,\237H\267@U\027\321\333Jz\266\301* %\241\207\330\264\263\241\310@\233\253\205\034\013\217L\251x\215c\273\214\302Ih\251U\254 \232d\025\241/\266B\370\256\273\262\221uK`\265[h7\337m\373\030\272\322\367\276&T~q\354\256\315\311M\357\025\273\213# \030\341(\"M!\362\3724\355x\005N\212\207\230%J\036\207\270\005\232%\246\315\3368\230\302\336@\303\205\030ab+v\217\016\346\001.\354wd\\0\025\016\254\271[x\260c\235\330\343\r =#.#\263\222\226\022[\237\244`\233\037\237\n\324\243\256q\366\265\245 P\324~\221\316R\244\256\331\004\232\270\3008t\007\215\rQ(\345\232\311\241\037\026\002J\036z\3556Em/\301\266\337\265\332\323\000\356\017\274a\247\275\357\367\340\264\370\335v\317k\017\377Z\205e\350\302\334\350\277|f\247\351E\266c\265\220>\312\232\214\312m3\264\373\206\315\233d\345\340r\305\003\276=\314\004\301\3248\253CK\337\224Z\252D\nC3\360\227fr\361\346\266&m\277\"S\r\231~\311\341tN\034\212\021ch\241\303\002]\371\017\037\031I7\036:l\321UX\025\3033\324\025gL8\210\236\330V\t\342\2744\305sW\005G\036A\273#\234\025\207R\330\366\032*'qx\277|\200;%\257b#: `y\352b\002\300\225O\317B\374\002\304\370Kxc\327\301\301\226\212\324\247!\006\202\252\262N\230\271D\330\024sa\271\031lI}\346\306\320\226\375\352EE\226,\225\306\to\360\360PT{\342\350\264D\235v\321\374\243\351\370\205\270\030O\234^\233SN?q\3746\213\366\255\256\223\314]\305\350\324R90Z.\364\035\327\2135]-\320Be\236\004\323\2544\tzZ\247\"\365\347\215\257?\332;@\n\036\227q\206:\010\266Q\017\235\002q\025\025--\243\371ni\227\313\367:mqm\026]\2650\262k\216\326\2635\221\226\273\2207\320Tm\222\247O\2106\376\233F$m?\261\375)\rP\325\227\311\241DnG\245\2666\355?0\207\010\331\332\222\237\023\0052[e\313\252\200\212o\270\232\010\003N\001*E\035\226w\020\217\241Kk\302D\007T\266\003)\373\315Nc+\202-/\326_6\244X\244\272\336\346\312\324We\013\025P\021""\006)\240]\226y\302\\\343p\202\304\264\210\246\311\241\025\320\277I\346\331CJSR\337\316\213\325\334@x*\325\025ZnL\230C\317\320\236\016+\246(QA'-\254\207\221/\004\353C\374\010\263\351\206\253\177\312r\0323e\013\025\307X\214i\270\244\000\367,\303\341\200t\300\341\\\311d1\366\335\216\204 \331\343\026\247B4\301X\014\000\337\212\362\361\272\220\375@\324`\302\000i\023\2146\203\304\205\020\"e\264\202\024\2024\2119aL\236\250~\214\014\250\310\343\001E?\315\204\303-\037FM\244R\377\354\342\254\231\r\346\022+b\232g\300@\027H\227d\211\262\016\312\r\214\000\253\214{Jc\341D\256T\227\315N\037Rk\017]\323OI\000\203b\033n\341\\\245\341,\211\346%\373%\033\026\237\237\035\000\312\232=}v\364\342\345\363\252d\265\236K\335!\262\032\311\261\231y\n\014\321\367K:\266\031\254\304|\2168\363\003\212^\344\322U\321,\2765\224\037\274N\334\355\rJ\354\254_9\002\035\261\374\2556\315\207y\267\220R\025\341\205B\004y\350\303\360\367?\rY.\303\246\301\306\343\\\231\210V\007W\267,\250\205\004\226\003dj\340SiaU\344ni\215\203\372\324\246\316\315(\003\330\247\322<\322\314q\260vP\240\340\272n\263\256\014\006QX\325\260$\013/#\221\034\324\361+]\314\n\210\177\360kw\344U\370\224\031\356\223\210\210,\253CQ\306\370N\255\260\253\034\375\302*\364\2514\262\334\314M\265\335\265\023\235\356\232\226Y\302\216\035c\305\312\216\371\376\300C@\213\267\265{\347\034\345\014\230K\032\332sZ\335\206sq\367@:\354,\010\245\253G\362\263\010z\314\010\217T\232:l2=\247\004\3002=\324\203\212(#\273Dz=\261\244%\255N\263kJKD\031\343;\331\321R1#\030N\022r\310[\301T\007d<_\035\364\334\255\272\222\376\247\035\034\215\220\376\357\314\3747;3\033\345W\177\366qQ\216\360\305\364'@\210\006\3315\003\266JY+\337\3158\321\221\021\243\030\t\032\323\244_\252\204D\262\335rE\225\306]\007\305\262\210\360\212*\244\025\243*a\234\2552-\017\224E?\000_\037\316e\215[;tz\2012\373\234:\333:R7\275I\037\351\\\203\242\211b\013Y\276\206\313_\010\354d\320O)\375\"\375\317\r\364A\024\002\331j\245\343(G\226X\313\275\036\223\263\310\rF\234\247p\363!\022\305\262\027\202E&=\205G""\021\312\034\201\214\245\214\034\320\035\307W \222\343\021G\204\347\300-\356\251)\354\007\260>\200\367\206\033\3666\2420P\264,:\273\010\221h\201l\347A\231\010\260D&ZT\323CwS\322n\226$7\2059\277\341\321\310<\201\266\2471\242\322\010\276\312\312\330-s\333\307\312\216\203\342\257\376|\r\364\3405\002\3364Y\3416\010%\263\240Q\267\262Z?x\335\330\357\267;\303Z\331)\343M%ix\336\266\323\336\234\032V\322w\222\212\005\213\002\226\260\253\236\352\247\215'\342\241&@\325\010\335@\243\333\246\243\037\217\351\311EE\313\230q~7\261z\307\355\367;\203\276\337\031T5\343]T\345\262tS\221r\326$\2271\265\350x\\\225\352\217\003\347pp\000\003\376\000\254\330\204p\032~\334\272S\257\275v\354y^\255\230z\375c\335y\247g\211'\360\035\342C\271\244m\300\302\333\347\336s;\235Nw0\354\355\333\207\007\367\275~:\372\335k\266\377h:\347c\270\214\216\332\027\360)h7\237z\027\rU\350=\224z\377{\375\375\364\233F\223~\277\377\243y\232\003\242\225\254\025\247\001\237F9&\001?\r\347\310K\235%\311<k}gs\014dI\220\010\014J\265t\314+\367t\265\\\222\212\334\310\030\221\032\271\315\251\000\361\303\034)\2024!L\315\240\022\244\306\031\322\320\214#\232\324\214\302|\242EA \214F*\331\333U\260\244$o\230|WT'qg\030\324N\305\335A\331B\335\200S\207\216\330\361c\311\226\016s\324K\017\272\215\312\242\302\002S\224\362;\375B1\264\273\207##^\367J\257)\003,\311\002\263\325\230-;DYoP(\313\016\377#a\306Q1F\257?,T\211\262\221\030\247(\262\357W\224X\240\355\035&\034\303T\334\334\322p\277\\n\032\021S\257\312\264{Ue\3141\312\222\245iCI\214\32172'\334i\227\013E1\311\017\001\023\215\210M\026K\323.\217.\221\346,\242\310\2608\270\222a\210,\271_\034\034\271\016\213\267}\277q\246\305\031\234[\n\341&\345H\311\363hJ\2262o\020\262\370\372b\252G*\262\335{\347\3418\333\312&\310<\276\204\262X\373G1TU\330T\256\257\364\002,q\246\250\377\202z\232\252(\245\"v\364\010\363\034KO\336\315\325q^\262\211B)\355\333\316\001\030\347\245\022B=1!\203\006lil\312l1\001\3162L\257\003J.\310\332]4\355\004\002\204\356{\202\222\277b\213/1%\263j\254\272\327\357E.\253\277G\341-""\354#[e\311\031\260\244[\224|c(\310\360\245V\03351\373\014\251;\rE\024 \377\232X|\266\355\340F\222\3646\214_\023m\303}!\3313\016\201DI\303\345<\230\260\005\354\367gX\004\243%\242\2573\260x\3570O\020\2665\343\214!\024\2178\231\254\026\252?\274\002\212\325t\217\316\300\024\264)\332\350\221\236+\221=T\003\363\317c\271$\276{Q\nD#m\031\301\251N\020\242s%[\371Y\200\252L\243\217\025m\310~\230\242H0yi\230.\360xE\266\262]\210\021e\224H\032\317Y1\306D0G\332|m*\371*\313\241)\323z\313\253\362\033y\270t\315`\001k\230\253\264rL^G\3620\304\031\320\206h\377\3004\355\324y\333\361\360*;}\355?\343\325@:\036\333\031\247A4\345\204\342\221\302\034\364F\260\027\204\335*\367\216#\004\211>ai\362d\211\211d\330f\n\335\206\304:\225R\346m< \306T\204\241\351\265\324\243\260\031\240\334\237\000\211sU\003p\372\rQ\202,\352\245)l\310B^Qi*9B\354\030\306^\257\260_hp\346\322\035j\033\345R\211&i\235\322\360\037+ \217Bu\246ad)Fc\252?\2326\250\202@\377H\245c\n\266\014\363\320\320\306S\002\301\200\037F\343\010h\24252\022Q\374\200\252!L\024T7\202\277A\335\0325\215WZ\201\031\225\303\320\270\275\252\220]BQB\274\010j\356\031\222b\014k\266V\367L\034I\025P\006\030\274+\0053\001\342\326\205\264>`\026\371\314\310\371\267\021N\nt[5x*\304CZ\3273\315X\311\303T\303\2675<\026\265y\260FQ\224\365e\004\324\330h\021\244\037\340\371\231\3456\257\242jk\271W\370q\022\206\323\242\177\275\0069#\332\001-]\275^\365\364\221\312_\005\334o\270\324(\304\\'\351Gm\236\325\254\202O\245\347j\200t\010\353\217\262\206\336\265\360#\264\344\332\305P\017\312\234\002\027.\366\243\n\262\226f\207\202P\206l\0179\026\230\3409\361\240\216\303u\"\204\037\300\021\257`\r\252\026N7\244\356\024\244*7M\304\206^<\006\304\374\003\006\224\304UU9\005\2171\246}\"\023q\314h\036K\n\225iGi\246\274\255\005\256\260\245\304R\\x\301\234\n\331\307v\023\274\023zV\326q4\314\226:\213\356\231r\260\240\271\372m\317\304\3358a\224\330\362\023}d\2319\321\247\004\r\340W\313\263\204`-\210\231\360\343\340\222Z\206\367E\364\337#\373R\263\276\270\317\317F\024XC\320\345^{\320\260""\013\214Fp&W\223p4\222|\317\240T\0045\326\243\361:W\304\366~\337\253,#\342\216I\006\252WYH\344#\022\344\366pXYHS:#6$\034\361\371\346\356\207\245\356\013\301\257E\301\341\2604\004;\264\204(\327m\367\213\345\322\220N\241Ul\330\361\313\305\252\302\\H\006\307\353\026\313\347\211\275\220~\247\242\204\275B\373\373\305\"\253\230m\217\361\374\216\252\302|\310\355\356\364\n\315\263;\2134\027\312\316\212\307\204O\302\357\177\310\330%\034\350\214\220ff\037*!\327\363\250\244=\276I\262\\\313\205\355\027\027\226CAJ\346\271\264?\"\354\273x\337\035\026\347\256r!\313)\372\300E\332E\2240[\001}\277X\004\321\361H\270\372\311\316\274n\2478\326\255K\333.\356\\I\320\244f\331-6,@Z\331\306*\t@\351x\026K\216\226Wj^\335^qu\0001o\000E\177\350\025\317\214\242\351\3450K%\200\0377\342\273\211\035\355\025K!5\244$\004\203\322[\245q\022gb\260_Q\302`l\344\246u\013K\2014\204\344\337\354\006\014\226md\202W\327/\036\327%Q8b \335\342\006\356\350\363&G8\350\r64\260\245\322\376\260\277\241\222t,\223\362\230\022f\300\374x\311\002\223\242\212\351\rJ%\312v\212\352\230\014\212\375\242\365\221D1E4\341fa>\262\366uX*\301\030H\035\364\322I\205{z\211\362\302h2\"\342].\273_Z\266\252\250\204\nl;\305\322\210v*\223=\313\311x]3,\006I&\325`\313\246c\230\232\211\374\224\336\005\223k\330w\007\361\371\016\261\227<?\006\334S\266\031\023=\231\031.\216s\246\017\310\003\354C\024sns\352\207\355e\370\006\266\211\\m\001\244\216\206\241{\334s:\230\307\301'|\356sj\007\234\200\034\2774\356\006\262\t\331\272<dc\232\024\305\373\206&\3178v\350\003\303\226M\363\265\231o\305y\213\352\245\210Q\200@\231-\217\r\373\232<\257\200G\320\221\276\222\261\034\021\016\305\014\025\310c\342+\223\355V5\351i[\264\241\362\320\356\314\032\023\351D\241\333\026-7\320\3122N\021\r\013WWV\356\"\003\211\333\233F\354\235bG\016\313\320r.\316TB\274%\236\233+47\026\242\034a}\3247\227\212\225A\226'P|\205\2126$\362u\337N\317\265`\200\324\010\264`|\222\235.\256RW\000\002\246\243O\226<\370L\344O\207+$x`\271\033\001Y\310\247\200\315\266\202\364\212\304G\316\222\220\314(""\310G\010dY)\021\267\206&J\316\034\001_\235\020\364\245\344-.\274\"\305\212\361\"J\241!P\347Wh-\246\325i\341\014\255\365\305\272\002oYa\221\367\267\214\205`ln\352\222\021i\225\r\262m\216J\026\247M\266J\255\260WF\226\016\263P.dy^\307\021\"\365\373\231\027\277\301$\272\246}\353\233F\3036\361\337n\331\320.\033\204\251v\234o\331@\314\240\344\352\333Z?q6\017\305\326\274\343D\0143\211b\366\227\221\022\243a\366\227\223m\023*\330\004\370e\333W\353\3527\324dd!}\277\361\343Z\277\3312\177\255\002;4\\8\266\014\037\320\010J\036(~l!*1\316\314\200\212z\257\335n\270\241\020\246\032m\212\342\321\014:\264\351\017\030\306w\250\266)5\215\220\017\370\351Ce\034\245\373\001U\351\230\260\252\231\216\302\002xa\026\232\212\007\300'\037\t~\231\265\025\237}\212\216`qDS\324R\375\374<\336\333\363\235o\000u\243X/\326\262\263\370\233N3\376\306k7.\212o\366\033\027\366\376\036\251o\277<\036@[\277\230\377\212\375\333\013t\264i\201\376.\335h(Nz\331,\241\350^\243\271\002bX\")\301\022\311\363HH#\214P\341\232\3142\247F\337j\024b\211\014|\024&\315\023\335Z\275\241\027\373\347\243\237N\216O^\035\340\236\001\202\025\256\232\310\362s\340\014\300\270\312\220\205\345\032p\217\242A\2706-\026\371\301\235\215d\255\371\371\373w\274\267\201\310\261\253\233a.Mjh\361\253\264'\253\262}o\362\305\201T\316\266@\020\265\375Q\021\td!\205\366\264\021\331\203\215\266EX\374\356\223o\030\305\242\010$\026b\326\263\262\205\274\234\270\224\216r\\\003Y]\217\251\302\370\356\237\266W2\274h\323\276\265\357\\|Z\204\022\0166e*\365\332o\257\217n_\277\371q<\031O\257\256\257\242(\372\3701\376x}\375\361\303\355Mm\313\266\324\222\341\010\330\262a\267\352\n<\371\354\315\2213\255\336\235*\212\376k\356\223\332\037\035\000}\207#\264\351\350\230\301\224\376\253\035\241\035\255`z\256\327\331\037v=_\273\223\375\034\244\224\034\300\371I\271\\\222\200R\261e?\223\026X\313\027\205j\017\261n\346\274\243|\214b\3412\367\34741|y\311>\003\255c\330\331\\\211\222\203\377W\334\233\3745\221}\375\343\215\242\242\202\022\010\210\240B\030\004\024\2200\t\332\332O""\000\247n'\020\347\266\363\013! \212@\006@\354\376t\273d\231e\226Yf\231e\226Y\262\254e\226\371\023\374\023\276\347}\316\2755%\001\372y\236\357\367\347K*U\367V\335\272\303\271g>\247:\036n\304\023\221AhF\023k\221\304\307\235\220\351\357\256<\250:\316\254\302\017#\266\261I\323\234\320\252n\220\030KI\035C\340#\336\212Wp\377B\354?\322\253\r\004\275l\r#\020u\370\320\272\357f\217H\232\257\312w\233\326&\255ye\035#\177nu\003_j\\\337\265\271\347:\224\301=\256\0068~\325mvP\361\254\372A\353\275\360[\020\377F\005\306\353\035\327x\253]\353p:&\274\273\321\263t\253\203\010i\307`\307{ \025\022\030::\372\373\372\007\372\336w\3741x\375\357\237\357\302\331t`\240c\350\032\026\376\257\316\333\035\375\267;\006\300\233\014t\374\336\377\313\007|\352\201\376\367w\014\205\372\336\207\006\277\005\006\337\r\017N\375~\375\367\301\017\327\373\273\177\177\177\215J\027\303\201\351\231\340\357K\276k\037\256\375e\273\034\370p\255\377\367\017\327\272\251d)\262\274\362q\365\023\276\030\267\261\031%\202\271\265\275\363u\367\333\273\267o^\277z\271\360b~\356\371\263\247O\036\377\366\353\243\207\017\356\337\233\235\231\016\204\226\226\202\370\256\322\3411\314\2415\342\316\360\rYB\345+\337H\032\206\231<\3211\264\270x\375\372\374\343\305\353\203t\030\274>\217\343 \216}\357\257\017\256o|\350\307/\216k\217c\363\030\013>OM<\202\3721]WD\023\367\363\310\300\310@\317\322\335\241\305\330\306\016!\233\241\360\320P\030\362\362-e\357JD\314\223_\314\022\342\343W\022\037\017\016\237\257\224\317\341\210a\376\372\003\273\313\352e\035\014&\254\346\214\207\345\233\250\370l\314\r\355\247$\326\274\315\335\257\366J\316B\342.d.\306n\036\216\273\3570\303+\335\025%\232L\367\r\246o\254\253\334\231\252\305]\213\257\313\226\2249ua\273_{\226z\226\246\377\356Y\032\354Yr`B\336Qw:\336\367\275\367\017 \005\345\010\375\207K\333\373a\276\034U\227#|J\005\354\357\346\254\033\225\204A\270\372\320?p\246\334\007M\372\360\310\010\377\037.\323\272\237[\300;J\3375*O!#Q\345\326\245\357\303\272ug{\266\026\344]\362\002\367H>\270<&\313(\247\016\342'""\312[V\372p(%M\245\321\0267\377\r\0371\3631\022\376,:.\346\301\265\321\222\363\032\222<\021\377\262\232HH\332\232U\366\270^^\005\rW\332\034\213\033\223\340\006h\227T\242)\227\021\020U;b\022\213Y\337b*m\343@7Mb\224\306\306\374\243n\235^\002\341\307\002|4\205+tUa\006]q\345\330~\316\347\224\\\301S\300Vp\213`\250O\035H;n?]{S\0043D\013\302\"\326pX\210j8.\222\232y\211:\363\301\017\007\360\207\345`\345\351\301\260\242\247d\000T;\270\021\2237\336!p\265\017\361\216\371\372Cu\025\003\222\246\001^\277\322\002\334\031\034\336\271\274\313\354\221}\353\033\3536\333\204\362\252v\255\357\333R\010\336\235\234t+\203\336\262\266\333\275\026\361>A5\346\356\373\000J\373~\320V4\250\312\250\350\246\332\261\223\037\334\3421\315\025\\\355\336\376K\320\211\017t\230\037\221x\373\357\300\247\304\3138\276\365\245O\032\243N~\260\311\334S\216[\337\034\r\217\2749\0246\342\032A;\006R\322\312\277\031\023\220L_\205\346\034\232\003|A`)\262\254\277T\276\264\032\027\370\2208\364\310:\256>\340di\200\246b\010\376%\233\222\313\213\232P\0379\017\206\301s\363\207~\354\245\340\034\250\210\236\201\232\205\330\3715\tj\207\2310\262DXicE\271a(R^\022\"\337\327\2632\320\263\322\277\"\201\355\230\006\206\t\207\260\004\2165\022;\210\337\177\354\037]\237\032\035\265\2070\341\320\341\237\030\232\030\033\235\230\032\237\034w)`\010m\217\312=V\216\216\216w7\306\3557\214\225\336\300U\333$S\210\326\261cl\350\346\360\315\261\261\321\261ad\374\024I\343\353\260\177\304\326\207\321\241\361\261\251\233#S7'9i\262n\177\327?\242:0N\355\337\034\037\037\233\034VU\346h\020O$\332M|\244\255\303?641<\342\037\037\035\235BWG\371\346\337n\252\310-\274\350\346\350\344\344\310\370\230jg\302\252\361O\214NM\214\216\214\252\232\361?F\202\252y\377\300\340\010\306xstt\230H\3318\322\377\235\221P\254\321\340\250{B'\207\246&n\216N\014\227\314\247\216\037+\235-\261\n\251\365\230\034\362\217\017\217RO&u\355\004j\307\325\263\376!X\267F\207\247tG\231\341\255\320\260\260\300\272rlxbjxj|\212\323\027^7\037\037,\367\270m\231\205\203>\260\221i\370-\336R\314""\007\220\335\340\310\007\333\224\214\r\r\217O\335\234 8\263M\307\354\302\255\367}\223\264\351\031'\216\001'\322\303\023\324\004\207\302\r\216\321\031x*\372\365\343\227j\374\270}\242\377\303\321axv\341\375\330\300\304\200\352\r\022\247X\025_\302\341\360\312R\344A(\374i\372\363\332\362\227\325\217\377\252\341[\245\317\037\375\361\320\360\265\351J\320\260\350\277\026\030Vw\370\315^\253\234\345K\217\347\026\351\275K_w\026\365\343\343\023\223S7\207'\206\035+Ri\273W\332\342\345\367u\311f\256\264\203\313o\333\203\367j\231\375\351\332\224\025v\342\201\333\257\302\236+\335he6W\311\206*\335E\025\266N\245\375\362/6\311\377\225\235q\340n\3707;\341\277\001\375\025!\276\002\230W\004q\373$V\"}\246\003\310\315\376\241\225\255\325\217\033k\304\351}\261)\377\207\340\307\272\315n\35567\000\360\t\301\236xhh\345[i\351:\225\256\2067\342\033\016\245\200;_\215\203AQ\306\024\"\340\261\004\002\236\016\214\357\032[\237\030\031\233tk\377\336\367\366\014\215/\367v\364t|\033\212\321\253T\220\3277\t\362\262\254\014\312\030a\023\353\336\367\016\017\371\207G\251\305\201\216^\377\220\377\346\324\3708N\007\375C\223D\223\270xxh\222H\313X\257+|.\022\373\002.\305\354\367\220\315\3075\336'6\2341\227\211\016\275\302m\350\0307Pj\374R\211\036\357\224\355x\311\335O\\\376s}h\265\364\266\365\310N\360\3375\214\236\256Z\306\250\261\376[e\005\355\020\177\326\304\326\376{t\340\375\352\207\017`$U\321\2525s\375\375e\034\204W\343\302..\275_{\374\241\357\227\347?[1\236w\337\017\017N}\370\323\377\237~.\327\nKU<\"\305<~)\272\336\337\255\230\302^\270\031\277w}'\374C\257\243\330\301\204\177\350\0352\203%\206$\340\342\313*>\326\302\356\276\341/\034\0322yC\375\016%V\276!\0007\262\034\202\316\327\346\334\271\264\305FE{\266\346`0\014\0165\030,\311\255i\363\321\225\255\262\261\334!AR=\\\347P\3319\022\311\016\210\2678\363\301*\265\030q\261!\307\276\243\306\330\313\201\223\224\322\204J\274\251\315iipS>\232K\355\333K\305\275\t/\335\014\305V\207\340\362+h@\373P\305n]\323\271p;\356\337x\217\240\3428\035z\342\035_\241\261E\302\273""\340\307\310\032\301\202\274\333D)\275\256\005\351\355-\267\024\275f\250\366\000\347\203E\262\246P\374\26322\352\260P\245\310\266\251\370\024\210\357p\010\377: 3\262dU\253Y\201\276\242s%\264\331\251\335\351%\227\021{C\"\306a\025\031\210\220h\220o\344\300\306\303o\335\210m\305Y\n\353K\340\243\001\3131z\214\246\263\037.W\327p\350\240\343\327\204\031\363\213/\324\321\364>c\221(\264\366>\236\210}\330Z\207#\330\022\007\007T\316\330\272\225X\036\234\264\330\213!\225\250\320\031>p\306\226X\252\254\2633>Q\360\030\037%p\006\037\367\275\377\372\346C?\007\250~\355Y\372c\320\037\260\233\261\355\3476wfG\361\"<j\202\2624\216\n+8$\250\203C\034\365\014\365\216\022\302<\237\003k\233\037i\203$\002\326F\370\215\206iFm\331\312\325K\035E\033\313\313q\022\223\355E\214r\246\247E;=33Ck\366\324\246\273-)\030B`\234J\213WZi\316\202\250Z\203\301r\267\240\013\264\263\016\274I:_\246&\014\315\236\304\333\226V\202\264\223\344\315\016T\230\335\362w$V#\245\025:F%^Z\245\321`\271\232\2574\340P\370ci\225\351~ZZ\245\277\317Ti\024\025Z\214\037:\270x\245\301\305\023\033\233\233X\336\262\025\254B9\260a\272\213=v\313\324@\231\252\034\263\313\325\332\260Xi5\220h\231R6<\316\270R\031\272\257-P#Z\037,\255eO\353\304\206\3141\r/\234(\275G\003YI\205i4-\255\002\327\206\006\301\337\201vV\274\343\300\312\203;\306}/\373\274\245\002*\251\002\r(\377\020TH\241\245\325\255xI\215\260\006Av\300\214\021\300\2427\245w\231\360\357\256\000\214\263\202\253l\r\023\254\3625NO\361\262\3670\217|\360-\025+7\266\022\225F\274\031Z\305\272\006u\314d\305\0338T\271\244\026\276\313\245\205\264\203\"\225^\350\334\002\356\332\203`\205wGI\241l\216\373\226\241\214\211CIA\031L\\\346\226RL\\z\023\261\006A\346\326\312\32417P\261\026S\030d'\323\322J3o\212v?\307\257\322\304\022{U\346\t\364Cm\312\322:3B\361\240:\352hP\343\33627\"\313\313jbk\251tv\207d\234\225\336\376\205h\357\022\255ri\r\240\364\240\276\211\025CQ\203\303n\324\271CJk\217\324D\211\235\241\364\226\312o\000\007;\363PI\304\002q\216\253\241g\243~W\tB\223]E\2450\351\256/\005H\327\035\"""\210\270J\305nN\333\210\321\331\014G\306\3111\010\356H\237K4\373\244\\\321\313\264\245\234\336\242\213\210= \314\364\305V\"\202\212u\t\220\265.\351\215\346\325z\344kb\006(\t.)/\230\365\276G\020\265\036\221\317\261\356r\340\276:g'\321\370\014\347\t\225\307g\211\240\314\320e\" _\233!\252\370\210$R\375\313s\267\211W\273\0314DAi\362\314\351X\325\370m\347\216\2019\313\325\360\354\205\02288;\273\240B\370\324O|v\001?a\027F\232\335\n\255\315\000\236\320K\307\205\331\345\373\367i\247o\304l\243\263\361\220\3679M\364\303\215/t\242\202\371\357\223\310\300\013K`\030\026'\"7@>\240\177\241\315{\302C[\361\311\317\226\2456\266y\3779\035\236\223\354\375\320\225\327\340\341\302k\206\t\007\004\271\200L\361\005\324)j\304\231\344\341\321#X\010\037\201vc\214j\2342\213r\261\312iV\210\251\346\313\317\221\335\370#\t\230|\024\237\261\222\377?\t1\3375\037\331|\024\177\241\322\261\334\337\344\367?\212/l\240\347\252gV\260\365\364.\277<\376HL\230\273\372\327\352\200U 3o\026\330\214\233\316\262/\241M\253\004\376\312\353K\010cd\3704\313M^\3667\350Y\177{\374\374\271\312F\273\261\316\021\371\016\021\304qa\207<w\205\364\371\361c\377\360\330\360\260_\253x\037\337{\314\273\370\205\342I\234W\002-/\030\021W\256\231\016\305#\225k_\223\204\007\0274\347\035X\255\322\022s&\235UV1M\023\203\027g*r\000\032.H\254\247)\247\362x\342\331z\3449\316\326#\316+\253\251\215\035\006+\r\r\361\222\002\005\037O\236\014?\361?a\250\216s6\030\265\r\264\016\301\314}\0274s\320\005\303\021\222l\202\241X\304f=-w\037\347\220\266\370\025\333-\204k\342\021\033\2019\240\212Ui\266z\205\235\205u\261\225\003\376X\205Eh_b\326\234\017Z\321\277\2562\361\353t\025\nu\266\n]Vo\321\205X\325\352;\247\273\266\022\247s\200U\241\320\201U@\330v5^>\026\314\366\006S\311c\026\211\017\230y)\323\376\315V`\313\340o\025nl\356\332.\210ct^\331\356\324jLg\211\335\025\313\2541\003K\254\022W\316{\253\"\346\270m\313d \314\262r\341\252\272R\026g\241,T\225\270{\2315\214\033\312\315\257uG\205\325\242\362\304\316Fp\221X\262\025\353n\227\240c\226\227u\300p\324&B1@""\222\266\0068\353*\202\227\343\323*V)\322\2379\257\034\231\362\254*\365\315\264p\3719u}\231\314,\256\334\237\2558B\305#\264\034\374\325\266\230\003,]\033S\305_U\230~\260_\317\221\223qW\316\201M\357\301Qa]\224\000\345KMt_\261Z\220\340\320\317k\033\204\207\342w\207\344\363\021A\355\003\001\t\351\220gm\351\221l\247\326\233\343+\217\236\361\301,z\3724\262E\302\355\372\273\320\312j$\266@\343\275\247\303\235+\327XO\037t\213t\351\251Ce\355 \200\007TYop\334\243\025z\256R\245\323s\2252\007\202\317_<\265\273+)\016\231nF\002\320\027\002v\240s%\005\266!$\036YQ-O\211\023\260i\017q\351|\261|[\341\031\211\003\364\337F\023\236-*.\234\231/\347\225\235I(\251\221\231()\226\316Q\261\203\346\272\257]-\273\353\314\266\335\025f\3536@r^\271Z.\007pT\354\230|;\267\177P\235\253\351\203\356\253\360\"\0337\177P\335\221\032P\342\000\335\362\254\322H\236\035e\030\317\016\035\303\263\362\003P\251\331\374\272\232\323%Y\367>+\001\356\347\263,\257<\267\314\217\3146\271\257\025\327\344NX\366<\026a.\373\271-\337\230\302z%%\245\002m\331{J\204\3322w\301m\035\334A\231*\240@\214\247\264fE\271C\226\251\242\266\202\033\233e*l\t<\276T\032\226\216%\247\236\356~\245\277\331\325p\202\320\335\327\304|dyn~>\264#\273\374\305\370\213\031H\371/\236\006\236?\277\027\010>\t<}t\377\331\343\331\340\354\243\371{3\013\317\346\337\302\026D\010$\240\263\375\342\372\331\"D\007\226\217\201h\314\023s\333\275@\370\204\235\320h\261\220F\272v\017\026HU\020tH\"\272\220}qc[\233\t\311\017*\307\031\270\334\353\344\277\300\325/\004\222\276\021_GR\301c|\2651\236 &\337ye\221#`\262\257\2331\205!\035\301\022\316\310\211\022\220pW\227@\303\241yA\017\312\006Z.\005\350\241y?\217\232\354\263$I&\255x\205\244\237\007\246\372\254\230\337\363\220\244\236\007d\362<,\177gI\275\225\247\251R>\317C\222x\226\311\334\351,\262\336`\237\303\205\205{o\026\016\317\223T)7\222\253\\8~\350d\313W\230\271h\313W\263\036\263|\225\312R\353\252d?\334 \264\336\02533UN\307T\256F\"\206+gg:zJ&\327\235Gw\352-\363 \277\006*\217J7\034\251\013\004eV\220\333\301i\242\\\265""\222\225\316\366\226\003sG\271*\017\222F\335\267\332p\275B\377\356;TR\030+\357\217\022\2249\343\023LL*\257\314\277y.\274A\333\205\263\201\034\376XH4\001\213\273A|,3\246\222\353ph\305\241\317\352\244\350\320j\005G\377\335\355#\377\356v\377AY\273\216\224\252\313u\023\344I\321\260\226\251x>[\256\302\312s\003a\311\235\315\353c,\302\006P\222\206+\244\002\253\224\377\313]N\3424\332A\203%\371\300\324\"\271\245\377\362\030\340\320\364a\245\351\274\312$\351*S\304Z\217r\371\274*\344\360\252\220\267\353\200\\]\207\347\347r\334!\030\245|\326\250\022\255\307\301\211\267\016O\313uh*\256\362\351\267\016H\271\345\256:\000w\001k\226\246\345\252\220\212\353\240\374[\207\244\326r\345\256*CF6K\273r\304\304ZGN\246u`\002\255\nI\263\016\315\224U\232\035\253|J\254\322\322\022\315U\371LY\007\247\307:<%\326\021\323`\201\255~\371(\210/\210/\206\302\237E\234zMhqc\347\315\033\224\354\204bK\2466\322*\211\303\207d\351\215\351\344\370\206\260\231\363V] w\276}[\322\330[Wco\315\306\336\272\033{\353l\354]0D\"\303Z\031\256\333\311g\207\026\343\020\013\351g3\224\370\030\n\207\211\325Z\201EE\235\301g'L\307\260*\303\031\227\341\233'\304\\\352\257\237\220\234\247E\275\320\032\234\014\023\037\277\320\204\005\2038\360\336\213\343|\363c\310T\252@F\010\255\023O\013\241\201\316\342`\324@\211\"\226\0064\024[\211\207\342\3424\201\337\365\004k\314\350TPz(\036^]\345\003X\304H,\034\212GB\361\317\000\266P\034aD\004\336\253+\353\314\350\206\342\273\353\341\325\r\302\240\204\234\022\253\353\021|@\356\353jbq\221?\"\312\260\270\030\204\213\253\234\311\033\026y\331\t\262\001U\030\004\003\227\335\375m\221\232\320\337\366]\244^lm\006\025\223\035Y\334\330X\023\345\270\n\223^$\034I\305|\264\263\207\240[\370\013\305b\241]\223\220\361!\022\345\037\276-<\034\366\207G\302\243\264\020\316e\014\007\265\322\335\205\275\251\202e\2470\314\025_LI\t\2271\255Y\010\007\255\217D\204\t\005\257\307\303`\211 Y\r\233g\376\260\215\262\0016\224SAX\361[\364\253\334\005\302\342\033\0216\247R\316\370\261\022\334CE\233\004H\211U<`\246LP]\267[mJ""\007\246\246$XA\251\034V*n\372\005f*\251\205_F\230}98n]oo\273q\351@3Se\353\222^\212\360\"\315\311\372\226d\264\025\361E\235C\222\013\342\003\221\253\333\021{\221\322\204\252%\243clcu\tI\310\304\023\"\254\255\360J\r^\342lR\352}\302;\3470\247\024\361=\324\212\206/\304\326\305vm\376\210v\363M\031\253Xy;Yx5\026&\030\227U\016\006\365\211\251:\243\312P\214\017,%\304\303\010R\200'\013\315o8\202\225\340\257\215\312'G\203j\222D\214F\357\244\330\021\263\252\312\\\005\361Dx-\036&\270c#?\376l\016\262\214L\370\232\252\327\202*\3270\235\306U\304\"m\032\344?\300\267Gi\032\035;\250T\375\000\344L\210Dg;\320\277z\227\351K^\273 \357tgY\\Y\024\235n\037N3\243\313\352hy\320\253\217\013`_\257\003\204\364%XC\253u\024\251\206ln\"*o\013\370R\374\005\335{\305\206*t\353 \323\"\3220\356\020\004R\362\034\027\"\377\277\305\315\362Y\211\376\311\206\200\254\357\325(\t\336\322\r\224h\003J\n\254\206\035\365\342\347\344\324\010\230A\006\3418\2210\202,\365\031\221 '\014\333\212\353K\236<\307\205\371\201e\221\275\001C\225\214\2766\377\204\240\355\\\013\364\264\3266\321\336d\343M\017\206\240yVb\361\344\002\2360\316l\201C\260\334\242s\005\021\024 \357\360VbcyY\216zA\345B\234\374p\261\225\010\223pH\342\201|\035\310\026q\264\004\325\000\373\207\256~\372\314\2770;\342\004\224\021\277\034\267K\230\026\224P6\233)FY\362\224\360^6!X\305VXveU\300^\033r\275B\"\232)\315\004\351\t\002\260D\014X\205N\005\237\200\303Y\212$\350\177h\225p5\273|\006\345G\376*)\003\335\366ax\014\333\275\206\227\300o\254Cg\265\264\021\016\352\233`;\266\231\214\371\224I<\244+\226\260\204\265\306\031\257\271^d)\301\322\3533\263\024\200\304'6&:\356\364\367-\365\376uHs\354\264\312_|V\313[\306\033\337\314`J\223I}\320\n\001*O\210V\314\322\215Q\233\264\206\304\223\321\377\315\rb\276\2106\303\361+\030d\002\305?\3200\022\221\373\302\177X\341\310\372\366j\214pR\024\377\343\216\014G\246t\307q\010\0002+\\\034\234\0305\250\216\233\240M\2047VA{\025\321\263\005\223\307]\201\345\366\210reV\260<\212]\336?A\3275]\2028\006\037.0\rV\227\000\345e\350\205\3607""\014\342\206\023\277>\031\321'\243\372D\226\304tV6OJP\035j\330\037\231M\343\232\317\322\\\026\277Ws\243\274\237\364\276\322\361\360\021]\303\374-#J\354\n\336\031!\365\273\210o\277\257-\361\271 \003pv\302\277\331\217\nJ\324\205\2150\331K\342\026\337WN?\240\342N\324OP\377\252~sz)\375K\230l7\030Z^\306N\264\330\005|Z\022\177\334\371\030\341\322\365\335\305E\314\302v\304\354\3376s^Nzo\226\332\213\000\321$\020\013\313\277\274\266\272\031_&\\\376\221gc\203X*\0100\202%\241[\022c|\031\223\274*\"\026S\235\261\357\305.\377X*b\273R\330\256\006\266s\366\007\251zY\355\317\257\303\t\261x\004\001A$h\223#\237=\373\215\177\026C\2049\327\251\337|\025\006B\342e\304\225|\200\241D\375\262\262\302\274<\321Mvuf$D\263\036\267<\237-\327c*\247\377\014tqsed\220\326%\340\315\272\202\274h-b\005od\005\363x\255\376\324\016\235$\240zV\373-8\273`\277\2429\026\334vt\275\267\266\026\272\203d\312h\300Qb\327\231\034\240\022\301\255G\254\326Lue\205zy\247-\025\263S)n\327fg\346S\261\256\251f\335\372\262r\3723)\213\0130\340@\344\201\035\356V\266VW\276\321D\206 \206\306\313(\326\360\005\315H\354#\021\022\213*+O!B\367\332g\310\344\203\264\346M\307\0321L\233\201G\266\350\342\255\310*\013$\332I\315\364V\243\r\013&S\026\325N\376\354\025\326\005\201\005\033\252hx\252L\243\2352\317\332\212T\211\303\213\t\033Cqh\246\213\253\031Y\342\370\300\033\003\246@'\224E ?\232\207T@J\314\033O$\2308\355\001P\321\345\013\025\204\3245\277\251/\0316\034\027\346<\253R\002]{+\204\024d 4\223J\244a[1\355?\323fL\344C}w6\316\006\305\270b[1\256Ubm\001z\261\325x\320r>\246\013\265'\351\314\356\216\311\346R\313@\2123\250uh\037\007u^`\227\231\224.%\211\234\340%\\\"\336?h}\030i5\0364E!>W\032\032XN]\214\243\315\312ZbWuXRW!l*5\322\252\250\216\234]tYV\335~\222e/\245\003\214O\254\336\373\313\024\001=\226\026\217\224)*\177\347h\231\"u\247E\356\034\346_\247\231\016\356\202\010V\r\212\256\211\275\007W\031\253\224\024\230\376z\016\027\303Uf/V\343\254V\263\214\311n\203_\351%O\021S\304M\0041\307\260\037\276\340/\256\243\014\240,\023\245\321\247O\304U~""\376\034\331\205;\371\347\265\317\330y\237\3276\241\362\\\211\257\255\r\257\371\327F\324W\256J?v\265\026\372\266K$?\201?z\327\222\"e\3042\320\377\027\020\0178\212AX\010\227\243d\331\0001\002?\364O\375\304#\233B\321\240\230\300\3370\016~\034Fp\030\305\362\360\022)E\216P\031\255\241\340\355E\230\025;\314~^\302\017\256}\332\"&ucE\364\256\242s\305\221\267>\324lf\200\214\251s3O,5\234\211#\304\255\311\024\210y\371\276 \231\tR\227\210\034l\213n\262\007\000\005\203\220lp\374\004\236GL<\372\367\211|\0316\250\257\205\016V\270\002\033a^\200Op\\\230\367\321\311&d[,'p2\241\004(Z\224\321\270\304v\374%\024\377L`C\377\303\324 \032\225P7\001%\005Qt\214\257/\177\t}E\010\253\211\236\315xV\234\304#\034\263\215\302U\0302h&\330\325f{\225h\270\240}\255\312\324\277\246n\323\234f\342\2238\372\235j\022!\245\343\222\340q\022\256\244Y\345^\275\261l\343u\t\327G\360GB\254\344%\017j\364\377\205H\352\0221+\273\222x \350\204&\326\250\322\275\261\r-s\321E|\005+\027\t}\201\272Y\251\234WE\227j\273\332-\361\370 a\217j\"\034\206\036\014\252#\244*\255_\320\277\303D\237\277\352\013\277\375b\304~1j\277\240\376-\351s\352$4\2778\340\327\316\234i\3350k\206W#JA\214P#\334\316\307\rl\2548\261\3746\266\317!\000\320\305\267\010-\361:\304>\232m6\307a\030\374\253\025c|\245\001A,v\340%L\333\235\031\354i\306v\272\334\022\312Dv\252\3707g\030\234\272\212\227Fy\242D9\361\361)\334)q\302\243\261^\342<'\004\252[+\023\007g\006\316\201\321\261G\321\361\271\314\007\024\223\362-Fu\217\366\307V\006J\247\235\222\257>\342\303\240q{\020\252\202b\347\017\211\316\353\234\203\325\004\362E\332\277D\275K8e\202~\014W\234yi\317\023\035Y\t\005ieLL\202sHqj\202\364%\211\376\t\276\320\241\244\252Z[\013\360\005\373\r\205\241\231\027\024\270\330\260{SZ\240Rbv5\347\267\314\334:\343\3307\342\033H9l\305\336\322\331&+\312\300x\201Hn\354@/\036t:\257o\022EB\314\255;0\327\021\207\213\264\033\233\354\013H\307\004\376\342\256\017\217\000a\006\203\352hn\203\022\003\251\255\000\362\006\222\263\340o\030\007?\016#8\214r.\032[\376\032\333)\214/\256\313\270H""\263\362\345w\266Bo\nK\242M%\356\313\003\034v\244\316\201\317\225\024T\336\275\314\312E\262\271\261I\377\301@\350\0303K&\261\237\220\354\037D\315&\3144N\217\2402\356A\233\264\010\tb\033\023\033\2041\224 \247~\236\270H\336\277\362\3459\324{\347P\177\235C=t\216\354\223tt\247\247#\372\023\034 \017\273d\341M\361\001eV\"\250\3422hQv\211&\303\256\024'\004\303W1\216\202\224s%\337\342\024\342\214\234m\255+\225J\251;\257\334\260->\322\301(\375\337\"\002\301\324,&;\325\364U@\212\221Xh\207\375\211b\213\261\010\363\002@u\370\0033\247\177\343H+\025\344Cx\003&\270%6\306j\363\256\251<\302Il\t\304\231\345\217\325/\374\203\206\303\332H`\272:\226x\316:2<\250SS\032S\262\230\323\361\212\220\273F\366\372\227\237\320H\237~\343\342\215U\336'\253\202\253V,\002,\312VW&\314\342\247l\036\343\262:j\215\004\321\230\027\226fF\362\003\3111hI\n\252@\343=u\211\225\245\323m|\202z[\324\222\340\275\313\270\217\360\207\224c`\216c\033kD=\024KD\363\023\371\032\217aG\020\231\203;\270b\210\3043\034\244\21793\374\r\211\272ch\031.crn+\005\266\013\256\250\223#\324\232\374\223-\353\021\036`\311Z\022\227\206\026\303\356\242\225\320\246\273\210\231nnEp\021\327\313\351\220\371e\325\ri\\\276\026\240?M\212\022\023\247J\372\245\rv;\207\266\036\177\254\027&\330$!\tF_u*\nU\330&\350\357\263\346\177\345\207\341(\036\341\031\246\352M\233\303\236\315E\317\235\243\205\335\275\025\353\250\317\312z\356\270\nY\035g!M\324b\223\006\245o%Qi\022\214F;cy-\264R62M\245\206\341^\210M(\016#\220X\224p\256\025h\246{z\260\214\253z\234\300o]\263\030\334\256C\357\242^\005\377}\223\317\322\037C\320\277\226(fV\231R\003Jv\202[\2010\276P\275\306\314\346\307\030\200Y\264\376\310\024\205?\335\001\316\034\005\355\025\377\341\300Z~w\200\203v\2032\243\032\354d\016\334.\353t\022J\241\032_5y(B\210\310\023\376\221\321!\254\241q\261\374+\303hP,\244\273\364\273A=$~hm\335\2411\213\363\247\356\261w\371O\013\321\326\347\304\2208$\310\263`O!\302z\006>\230\332:\350\311L\365\203\0257hS\237\227\006\023\3627\274\345\000-\034/$\016\253a\221\277\342\264\374\261""\030\035\211C\213'\010\213%\326\220\rH\245\n*\233\030\210^%^S<\272\004\324M+\273\352\375t\244gY\t ;O[\373\343[a\364\206HY|\013\r\253\356\351^\226wJ\321\305\204\222\025g\354,1Ec\007/\351vms\273\310\306\251\263L\006\205\026\232R#L\241\370\323<4\003\002\315\034\033\216x\247\321\021\274\245\344\232\373\262\311\226'\331q\330jlr\331\372b\333t`.K\366\240\303'\027_\300\333a\346\035_\306K\200\233\333t\276\177\025_2\021\017',\262\351\355D\277K\033\342\254k\371\354\332>K\344V\234\320J\022Do\223,\315\323\247s9%6\022\2415{\372&\227n\335q\305\334\213\263\010\230\275\234\267 V\343#\034\354\320#\336\341\353&2P\2524\255Q\003\035\207&\2157\262\303\317\230\031\033>\320[\005\3328C\334\326\241.\307[D\271\267\326\371\023\367*\201\034\261F\340\272M\016\311m\310>\334-\271dJ\017\177dk\223@ \262\205\255T.\366\026e\032\273\322yLm\375m\376\340\272\254?\235nE\370\020\337\206\234\200V\010\206\267\325\027\312$\317\235\034]\316.\232\217\004\326\020\210Rp%\372\027w\006+uM\030`u\215;\310 h\267\305[`\311L\222-iQ\351\251it/\227\351J3T\220X\250\257\322\335\235\235\341\035\377\316\342\016\276W\203\333\301:Q)\324\342B\034\365i|S\3164\222UW\202I*\272\245j\033\004\270\200\203B\233\001\214\234\261(\024\347\361\360\271\311n\212\257\036\013\243;D,\"_\221\275x\027y\212\277\261n\345LO\207\225\206\304\365a\364[F\365\025\343\312\2601<\223\367\377\370\371\247\323\265{S\311\231d\264P{~/Z\250oN~JW\025\274M?N\376T\347MN\244\3323U(\\M}\313\264f\375\305\232s{K\311\301T\264Psv\317_\250\365&gS\247\323\236\364\325\314\361\214\277X\333\230\034K\356\246\253\322\236\357U\205\352\341lU\2669\033\305)\335\273\367 \351\267\235&\037\247\253\323\201\364\013z\356v6dTw\245\375?\336U\2413c\306\371\216\364\36145\336\220\274\226\n\244\346\n5\036\303\323\223\236K/e|\205\253\275\351oYO\326W\2509\277\027K6P\007=\251N\272\353\0055w/\323\224\te\242\005OS\362e\252'\025\245q\324\\N\315\245>\246C\305\232\332\275{\311\246d(\231H\335J\317\025j[R\325\251_\323\2414\017{7EclI\035\243\226\356\245\033\322\376\"]T\245.\246}\205ZO\2621y?\345\243)0\232{""\323\321Lu&P\350\273\236\031\245\027%\262\243\331P6\221\363\347\002\205zo\362A\312\317\375\250J7\246g3'2/\263\276\254\277P\337\231\366Q\2034[\343\311\343I\032T#w\331g+Q\303,\326`\376\251\237\017PX\237\254N>\303$\234\337K\320l\321\372\244\216\323\013fxTT\313\207\0234N_\312\217\267\343\206*\236\213\351T\250P\357Iz\222=\3118j\271S\307h,\252P\032\242\027\246\026\251\270+=OsP\337\224\234KFR#\251\371\324N:\204\246O\321\303]\030\r&:jT\337\316\371\177x\177:\335\234\374\235W\273J\255\177\275Q\177-C\0034\252{\214\036\272\247\320=J\203\356\356\3711\355Z\313\306\244\377\307\031.\242\361\334\245)\272G\3404\232]\315\305\3634\313M\311\005\343\342\365\314\2101\370K.Z\350\035\240I\356\275\231\2453\177\266-\367(?\207\223\326\334h.\204\371\330\302T\027\352/$\243E:\374M\200A\313KcC\227n%_\320Z\326\2367\316\267\247\342\030\263\006\347\242\274c,\033\260As\241\276\007\260\200\211\234C\361\nM\312*-\362\211\314\\\241\217:\221Y\310z\n}c\331\373\271\253\371\223\371P\321\234\362\261\324?\031\232e\000\327\222\3219\226\235\311~\245~_iO\355f\2522\027i\341'\031*\250\340\257\214?\343<\241^\267\245&h\026\007\010\206vs\004y\255\251Azi-\272\326\232\272J\000t)3\227\371\230\245\027\\L]&\030\375\013=mL\216\023\310>L?\240}\346mM\365R\003\375\031\177\341\222/\355M\277e\260\277\324A{\340\021=\032*\\\352\343\346\250\353\201#\334\334\225\276\225yM\267\333\237\222\345=\277\367-\325\230\n\240#\315F\373xv\256@\255\tL\275I/`\273\025\274\227S\357\260%\213\007\335\203\227\375\226\211\n4O\030\027\t5`\276\327\2607\200h\232\223\363\2147\232\010\370|z\253\373\006i\017\365d\267h\"/\264\245\306\323'\261\316\3305\247\200\254\352\030\002\030\346\257\362\336\367\024\032\275j\275\323\036\301^wi\334>\243\272\317\350\003\37068!\262\256P\303Kl\370g\214\231\005c\341\245\354=\354\316><u+\347\373q\345\247\323\376,\303:?w\n\350\302\304J\215\311\333\251\0200a\253\321:\231\253\312\021\000\326\032\265\035x\275\265;\3722UF\265?{\221\032\233-\217\336\2125@\242g\322\214\022n\003\006\013\265\027Smi\232\365K\230zO\261\226g\n\245\027y\277&2""\267\262/\010p\250\300\223\352\246\355\336z\225\346\255\025\363f\376\360\026\336V\310\217\327\261\201\266\367\002m\274@\372\017 .\354\371\205\324\005\352\355\025Z\230&\340\303\007i\177\3721!m\257\254\3415\272u\016\023Y\317P0\235Z\242\267\317\245\327\t\332\243\200\375w\004\264'3\353\300~\036\254l<\351\243\031'\364i\256Baz\246\340\353D_\216''SSh\317zp9\033\260\317Ls\362\035\341\266\223\324|\240P\203\225\255\246\301;W\204h\004O\361\345\324k\254wf(W%\000q,\331\225\374\300\235\003\334\230+4D`\006\304\377\024\350\266v\357\327d\230\347\353\023\355Q\017\010\331*\275\345\024\020\036-kWoz7{*\033\245im\277\212\022!I\227~:]\017\\BX\327\370\311O\330\240\303\367\243\346\247\023\247\367\316\323\263\265\351g4\223\237\362\347\366C\373\321B\365\251\357Q\243\346\"\357\027F\345\325\315Dn\242F\013!H\332{\325'\214\023X/\037\337H\323z\332Kx\235n=k\234%<b\\\271\221\211Q\373\265L/\n\265\014\333\305\032y\266F\256\252O|\177\273\027\332\2132\272\242\213`2\200\023\0025!\254#{s{\213D7\356\245\274\264\322\036\243z\204\350d\377\265\302\340P\341\332u\242\234<\317-jj[hx\004c-\027\365\177}\235\362\310\201\340\333/\0130E\267\023\372\374\203n\000\306X\3142\3505cRh\203u\247W3\321\354YBx\367\363\375\373\376\375\351\375\025\343\345+\343\325\033\343\315[\343\355\273B\347\325t$3\316`\265\220k\312E\362\376|\200\267o\033\241Q\340K\017N\177&\2308M\204\275\023X\360r\352--\301.=\323 $\224\220Wf\032\030\267-\345\007&\177K\033/\226\366(\226\005t\355\232q\tT\303{)5ktL\347}\305Z\246\310\306\245\241L\230\246\265\206\266R\352}\206\251\331\337\264+\210\343\0305Fi\343SG_\377\350\376\351\264\207\346\355qZ\2235\032: f\226\367o\261\206\310m\2629\031\343-4O/\3662^\213d\375@\224\347\366\302\364\376^\252\364\013)Y\340U\256\005\177\322(t\031\004\372\236L\030-\274\347B\362c*\222\036\021\344HsWE\035d\216\243\211\206\265M\033<\226\271`\014\007\362\236|O>\272_\265\357)\\\274\234z\tj\326\224|\235\n\030\227\007i\025hT\331\336\034\241]/\257\367\034\250~cr\204\351\237\027\200\326\223\332JO\023&\240)\271\207m_h\272 \014\201\2526\332""\301\2405\021\013\023-z/\020_4\316\254K \3752\323C\235:\216\321\025\274\202c1\360\271B\313%\343\322 \223\014n\241\213^\272lt\023\265\310\316Q+[\271\351\334b\376\224\364\270\250\347q\034\030\032\204\263\332\360b\201j\321\307\337\025\307x7\347\315\275\311\277\334\367\355\023\003\321it\322\222\334\317\207~|\253\204(\317Z\234j\"y\213\271\023&\346\230\327\032B\370F#0\372\253\354mb\024\206\010\177\027-\216\240Q\210AzL\261\217\264\337\2672\367\350\264\2336p\225\3348\227\374\014\230j\304\276\344\013/\315Ew\346\023\341\204\232\246\344{0^\0274\377XW\254\001\317\264d\264bT\315\027\222\337\250\371As\336\250\340\037\306+\315\027\214\0137\260\306|\326\307\340N\010? \014\217\277\320\244\250 \235\030\315\375\204\324|&\210\026j\352\366~\227\215\310}/\020\034\326\002\271x\223O\371\021bz.\201\0205$\207\204\350\234.\020\251\010as^\022\"pI3\214\027S\255\264{g3g\230)\005/\004\366\026\223{\205^\304\303\022\364\\\253we[v6w\232@\220 \231X;b\306\200\262\232\355C6.\000;\375\222\363\345\300\337\002\213aAj[SC<Jj\364\257\264_\010\021m\322\366T\"=E\2533\307L\027\032\253\337\373\n\200\344\235\370h\337\363\343!\250\200\321\244\270lZP7\003i2%\211\344(\241\326?\231\030\306\200?\024\020\340\345\327\323\257\030Y,f\217121y6l\335(c\020\332\017M\214\264j@Di\002\250k\376B;Q\356\242\314\237\215\263\306\3640\017?\006\"\321\235f^\350\nu\261\n\333\355\026\023\3300u\301\213\033\211\315\3642\361(\n\333n\347q\230\221\250W\024)\260G\320\334`4\360\315\264\340\306y\301\2765,\213\320v~)\2149\313\004@\356`\370\211n\374\205\201\027LY&\316x\3068\217\376\215\246\027\321\247K\314\331C\002(\324\370\322\315\351\230\321\377s.\220\233+\234n\342\215P\362,\330\205p\246\201@\261\334\263\304\216\347\231\266\200\310^#\036`-\323I\333\246\321\030\373m\177d\237\211\317]\240;\243\032\3134\232\016\031\275w\350e\212\270\236\004\020\023\301\276D\254\30581B\375ws!\307\235\257\363\367\010\273Yw\333*o\345z\363M\371\220\255R\210\334(Q\300x\262;\0312~\242aK\311\"\201X\014\2047\365\212\320\352\234QM8\t\360S\007\014\336\t\316JI]\014\344\277g/""\344\252s\204\271[\214\226>\026\350j\354\300\0056f\222\200d\026p',\213\217\311\334R\246\227\270\225\256\334\213|\025\365,\274\357\001\336*\324w\244k\010\336\033\005\264\t\272\n\036l\3577\020\r\230%\301\n\037\271\005,\370\256\321\302\210\000[\013\204[\375\207`um\"K<\360i\200S\003\021\235\356\344\262M\364\r32\217S\373sX\346\031\022\224\036\361z\326\326\355\275\005+\222:\301\222 wJ\211u\004\363?\352K6\032C\244t\231\226\204\220\226\250\tJ0\262\354Q\236\265\3770\307E[\342\027\310C\001P\010\254\307\202\341C\277\275]\351\021F\"\264\341\274=\264\002\315\331\2301\365\033\r\336\313\213\000|\341\005\346\331\226\t\343\351\230\315\236 F\264\231\260\317\203||\337\307g\000.o\013H\234u7\370\004O\366j\356X\356z~\216\2444\315\272\026=\302\213\023;A\334P\372\006\246\007=\274\235\nS)u\020\3446at\261\310\002\351\177\200\327\252I\306(o\001b\034cF\207\266\003\315\361R\266\213\356n\271\302b\"\210yS[\252\037`R\254o\022\224AR\256\247\213\270\325\256\233\331\030\261;!\272\247\303\247\324\000D\217\0273\307\210\244D\262c\331\035\"RD\205\276f\242\212\325\0008\327\320\260\214v\277h8\240{\010$\2034\226\327\231\231L\024,AC\376\346\276\357\307\271\237Nw\244\242F\007X\204n\032qMk\352\006AL7Qf@\n\321\033\320\212\352\344\257\"\237\324\031u>! u{A\360r\212\332\343\344Ot\025K\004\216\263X#\220\202\332\343L/\320\331Pf'\273\010\032\010\324IR\342e\3432\246\214$\3103B\255\010\216\250\357?\356V\320\336\034\221\006\027\376\337\322\340\323\205\263\364p\341l\013\261\361\330\344g\333R\243<]Tr\306\352\244\203Pu\246\3732>\310\221\315\350\t(nG\332\222\016\235\243\276b\002\227\210\222\035\346\354\330\245H\342-\215\372\256\364\204\020~\245R{B\344i\205\260\t\211\305\313\334\030\004=\010b\347\212J\302,\324\202\353z\225\273\231\367\345\231\2708\004[\205\312\210[\273\315\\\271\257h\027G\005\215\216\221\030Q\305=\343\3763\265\202H\314c\3613\257\356\341\002\320\3701\000\224%\223\031\265D\306\214j\222\362\241\022:S`\265\337Nj\205\361\312\371\372\037\265n\204\362s\212\025[\017\301\366\244X8\036\331{\001\025\026\tV\246\304\003>""aW6,\317\221\242\027\271\250\220\350(\270\026b\034\215N\340@\310\017\027S^f\205Y\356\247\213\324\007\001\307D\362&k\377j\254\261~e\344G\344\252\306 I\340>\277\020b\030\2722\272\367\221\245\325\013\242\324\032c\0020\246Xe\332\203\315\311\257\324\330\t\342\326[\010 zH\366%\206\2537\325B\260\326C\242\370$\301\332=\310\376R\330\000\352\205^\354p\243-\231\213\331\201\\\250\\?\224\004e\353\307\032\275\362f\332W\246\027^\302\344ohz#\264\024_\t\213\236\310\315\225y!\324W\2373\227\262s\337\025\311\256J\222\020\210\275\3325\233\017\374X>\301\302,a\321)\254m\003\t\315s\274\355\013\265\275\220w\307\263\037\362\276\037\315\020L\025\277\331\306d\260\n\212!b\034\367\252\204\241\207\372\360W\342\031.\360>{\010\356B^\370\013\355\221\266\353\231\t\242\257U\271\326\374]cn^*n\032\r\3049\261\216\020\214d\0136\320\202\342QkhKN\346\264N\223!\360\016^\201\016\016\010\376b\335\236\346[\230\247\004[\325\307\242\261\222\000\201\256\241\207\036\"ZpA\361\255\245E\320\353\236'\310:\005\275\033\315AK\257\355\242\026\363\t\311\255\346:\253\352\004\261]5\256\242\313\237\216\001\246G\366\346Y\250\233N.\002\237\331\344\222\273\200\007\350:|\375\000\023>\033\"tl\277\247\254\346G\224\035|\220v\232R+\232\335\256\273f\"\365\314-ZE^\262\240\321=#\"4\204tb\255\002\377\013\317\321\002\340\271!\022\356\226\0101\017\335\310|\323 R\3519o\352u\372iv0\027\205\344\3451\365\242\337\300\216\223\020\016\332\220\021E:\335@,\321T*\000r\331\222\374\233\020\372@v\235Zl\361\221\274\t\021\025\034@\341\3220\301\323hv)\327\223\333\312\007@\311\363Q\353\211\301\354\337\3719\367\023\376lcv&\233\310\215\347O\310\375\373UD~\233\256\020\247O\"L\301\013v\275\005\312\3720!\264\227\32401\263\200\003\010\341\315D\223\210\251,z5\202\273\016\"r\035\352\202F\321\232vA\344U<\013\321OS\230,\212,B,\022\330\264\253,\2763\217&\334\353$\0246.\216\326Y\306(\364\n\341\313\227\364\352\021VrFs\347\215\007\257\215\327o\214j\254\305-\321\224GY\034\323\374\000o\210\025b\236<n\361\002U\335F\363\020kv\005n\321\n\357\263\017t\303D\306\343\320\327K""\365\031W\265C5Zr\367\257\225\2143\304\273$\317`\333\220\010\330\345\250\241g\2135\275i\006\354\233\202m\300\037\327yE\210\3079\213\237\356\202\242}\203<\322:\366\337h\365\252I^h\334\237\336\247)\204D\313dS6\253F\017Q\310\200>p7`\372\375\311\337\214\366\033\231\277\201./\213L\335.v!Q\305\361-\364t\223\321\244doK(c)M\315f\277\321?eL\315\021B+\370\306\262O\t\202&\301\20172Ak%^a'\363\321\230x\270\177\236V\260P\307\372\250\324\3034\013\2375)\226\024\177f\303\212\267]D\320\tQL\023r!T\014\206\3422\355\230\363\340\004\301uB0\321\326\007K\001'\334L\302\270>\235\367)\264G\250\223\273]\304\031p\331\231\354\265\034\357\324\013LHk/\311B\360\030z\215^\3652'\362\005\013p8\362E'\036\323\236\372\357\243\336\313\251 \215\351u\366Qn\2168\337\313\003\266\013\032\333\016\255\315\205+\372\300\270\270!u7\323\226}\014\316\320\302\310\337\003\205\221\321\302\370\004\2167'\013?\337a\300\254\254\244o5ZG\231\033\034\033\267\376\227\327\323\177\017\374\2308\304\000i\\\023a\332\002h5OP\003Z\2029S\264\034\253'w\222\213,\316a\325\211\2774\332\301\222\375Jrm=#\030\343\n\255I\356Z>\300\006F\353<IL\275\271x\254\r\222\336\325\355\375\226\214\212\376\006\206Y\360z\265R\004\300\301\345\271\275%\243\241\223\244\035\217cS0\265/2\233\361\231\315\204\017\230o\020T\306z$\222\212\332\004\350\010\327\\i\007\363:\232\365\333\366\256\266(|\302\213i\312\010\335\210~\"\200\335pY\244=H\336\204X\332R\335\306\025\310\201\004\320\325\006\241v\320\227\323\347\367V\222\257\010\370\033\3233\351x\206\025ZU\302\2611z\214\260Z'a\2641\345d\306\3442\270_\306*\214\034|\000j\346\177\301r\302\n\004\023\340\327T\002b\177z\231\244$\320-\266\344A\203\362\216\320!s\206\363\274\351\211\030\235bVn\216\350s\261\036\030x\016\242)\253\265A\265\036@\356\363)c\031\311\354`\t\275bL\216\247\257\223tn\327Yw\246{!\265\342\366>lA\336\332\350\026\r@\244\rjz\222HK<\333\237#J\330\r\323\235~\335\233\354<\010\013\010Q\013\2113#\254-\000&\257\027\016\213dN6Zz\222\027h]=\330\023\036P3\017\204D\017!\326\202\007\024\220*\226X9\376\033\265v2\267D[\217""\357m\272\310\352\275\333D\020\266\211\223\277\002\312\210\302\246T\204\245\320\020n\373\314\\\002\354\214\236^\354\031\231R\265\242\260\337B'\376\204\004\260\327\231\000m\273\373\017\240)\350g\251\367@^\250\254\342Vv\231V\244\325\212\361\036\332j6F[\026\243ZLk\263(\305\241\253\024\r\336q\232\224\323\314\223\326c\376\356\301~sY\346\254X3\306\367H\343\223\260\314\233\0326\"\321\330n\324\373\037\317\253X\035\224<\237\342!\306\014\017+\315\214\253\023\030\277v\030P\032\037p\255\247\367<\205jng\357S\352\030\31465{5\311\223<Z\002\352\023\004S\333\351\027\"3(\234\t\020\2559\263\327K\350\337'tE\356c\366\376.\033\206\200\221\235\367XZ\275zn\375\030\233\360\027\323'Y\237\247}\002\314}\214\233\302\264\216aZ\027\274\275\276\201\332\031g\025=\346\221\255@\363\214&\373ad\035\203M~\02034\365_\204Ho\203v\214L\345.\022\005\373z\252\002\262\303\246$\264n\377\017\315\262)\344\031Wa\244'9\357\244\322\376\020\365$\316\036\023\t\304U\250\0074\325c\227\326\203\245\002\236`\235\2572\301\243Glw\267\213jF_ \357\241e\362\262\210\302V/\272\372\235\026\355\274q\216u\243\337Y\243W/\232\322Y`k\326\240\252\253B\215\002\000?&\275\nB\246\300q\275\363\231\037\255bw\233\305*ZJ\256\357\001\276\342\006\250\341nh\346y\326\006\240\032\271\016;\232\247\241\242\202\203^\315Cf\275\213s\246\210\\\250\231\252\327\2035:\206\231,V\025:h\312*\274\255\356\\\211\007\205]cp\370\353\032\222\227\211.\355\210hh\233f\326\300\022&\201i\273VL4c\314E\210\363\316\177x\242[\017\241\250#lE0\251\350\367\200\270v\260\022\351?P\221c?]5:&\214\211\007\371\250\330\261\233\306\263A\"mM\275$3\373\013M\300c\302@\264\245&\201\367Z\2303fk\0268\263z\266\320~\302R\322\342\014\014\222LR\350\355\303r\016\200\227\036\314\224G5\212\265\026\215>\357\272\013\240\026>\"m\367\005\235d\347\004\241L\245\0361\013\304P3\2369O\010\364\024+\273\301\307\266\261\034N\204\3476\314\324l\336\212\272\036\353fK\331\r\242\330\275\314\362\010\216\263\351\243j\232Y\223\346/\\h\301\377\232V\226\217\242\302\201V\247\305\362{\205u\221`\277\330\177\3058\253\206""\243\nl\346oY\2266\243\325\317\n\263\020\340\274\216-\336C\320f3\017\353`\223\264\005\356g\200\334\0101\206\263\3713\373\276B\307U\006\223\334B\236\025\357\3209\020\310\027\332;\n=\200\303N\360*}\004Zb\024\255I\3252qt\301\031x\306\363\365Jo\351\203Rf$k\327\275\020a6\352@\266\005\r\200\212\023\277\343\003\213Yw\356;\250\t\361\034\255\354\220p\201\275mj\230?I.\245z\331\007\204\372>I\324aN\214=7\231\376v\246\331?\206(-\267\004>\224\212l\374I\243\321\3108\010B5\320\026\377\252\r\316WE\334\302\330\250\334-\264\023\261\377\030\313\354%\214F\220[<@{Mf\023\226\207\355\344|2\306\262\357\014\3408\023\260^\333\222:\233\376\031\374\207\365\032)\212\312\304\214+_\225cB\0033\307\2115\330\312*\274\346I\236&\014>\312\344y6s6;\226\215\345\274\304h\252\375\320\315\372\346\272\354\353\334t.\244{\363\021\376\014\000\225\323\346O\221\177\032\231\221\261N\361\3009\343\034\353\200\005%\216a\373\262\251\203M\246L>\025\226-\002\023\375xZ\305\244\336\266\307\306\251\303\343PA7B\027`\"\243\323\262DS\251\031Z\242\036\350\342\301\302\370\241\237\367\027qp\021\n\323\207\016\212\273>\006\266~\250\254\212\345*\333\211\247\ti\333\354G\331*\332\364\300m:\312\231\021\0276s\t\304\325f.\324\356b\246\362_\231\010\230\353\026\261Y;\352\t\331\270RQ\227=\301<O\210\360\034\234\374\026\262\2559{\275\364\202\221OC\262\237\235\240^c\253\237\333[f\031W\213s\304\273\200\371\204\200 ~\205\312\001\021:\007\266\300p\267G\010\332`\247\253g\371(\305\336\231\3130\351\232\233\373\246\350\007\245U\260\r\247\204\223\273\311\252\304!\326MT\252\035d&\265F\tB\212\030\022\200\024:\210\376b\373\037\"\356\333X\032br\022\004!'\330/\241\321\030\233\315\007\362\013\306\243\367\306\373\337\213\346\234-\022\227\004\037\003\257\362\n\263\263\207\254\0176<\274\025\215\253\320\0072O\346s\230\232\206\200\364Y\237p\230\360_\2239\226\3512\006\301\362\220\210?\312\306/L\356\037\274\347\356\021\322\366A\345\366M!\007\302^\214Q\225\310\337\304B=\333c-u\200,\347,I\017/\250q\237\346/:+\020i\223;\035g\202c\230\340e\261\244-\207=\312j\332z ""\330F\006V\236\362v\243\0174\025\242\0366\360P\032\\\315\177U\342\025\216 \270\312\356\332\0004^J=\001g}A\313\257\332\271\212\370\273\364\234j\325\270\274b\254l\031[\333\3348(\316\257\331\215|e\221\030\253\357\241\n\266\000y\222^v\363\242SBH\235\242{\202\313\226\350\306\252\331S\005\342\tK\316X\320\377\341\3636)\372H\253\245=\002\241\361,V\236\357\206\377\245v\232\377\227\332\251\000J\354e%\322hu\226=\027\330_(\300\324R,\342\364\360%\347\303\332\316S\253\331c\354\307c\264a\352\261\023\300\274\325+\273\000={\016\242\276\017:J\260\256m\227\304g\357\031\313\"5\247\215\323J\351vz\357\"\2333\3761\205\032\333bt\211&\302\346W\311\304\211H\360U\021\317JT\003\260m\006\n\342\341\005k\216\270\200u\263\023\310Y\202Ha\365\246\211k\213\361VohNFl\250'\"b\245C\336-\337\031v\375*\036\334\031`\013\326\310\3560=\266{\2406\260\364\316<\220\3151\215\337\253\t\315\265#\322Y-\347t\203dvc;v\367(\257\233\271\324Z\246\213\010&\230O&\243\342\243\305\014\247_\217O\026\031\252$[\2434\036\320K_\272Vk\033\033h\026?\231\004\241\274S\nW\265\247\376d;\266\277\320\016m\004\0374\343\311\"\005\324\023\300\020\275\351\230r\216`\027\314\220\351\020\324J\\m'\261Q[\231\331l\2258.\351\006 \201^\204\252%\372]\373\001A\027\336\000\305\026cQx7D\341R\006\307\327\032\217\351\n1'K\3557.\215\203i/4\200\037\027\037\211\343\354<z\024\257\210\212\357\274\207\367\030\3152\2622\357\024F\342\006\034\327\217\374\246Z\363M\014\026\330y\316\367k=l\355\336#f\220\257\213\344\034\205\200@hq!\325\244T@\217sUf\205\260\210\334\300y1^\263\203!\374\010\341\223\r\337\256\252\242\275\304\003\177\311\000TD-\264I\336\003]\230\\\020s\340>\021\177pR\307\253\272\303\033Q\330F\000f\235'\331br\236\\\214'\316\360\"\317fj8\026d;\367\022\272\353\272\275\227\214\r\242\246\242_\270R\035\034\340\261\201(\304,\352^\241G\014q\271\343D<g \247\025k\304\3012P\264\314\311\3148\021\363=\206\275O\222\006<3Qz\307\350`2,.PM-|\020\035\373\234\336\210\r\345\336\017\271\366\222\3216\250\354b5\342\217\237`\307EZ\006b\036\007\004\264\317\357\375m\\&\311\354""\240\206\274\354.\266\224f\317\216\313\314&\336e_k0\347\335B\341\317\357m\263)BT!\334\216\321h\021_j\250\236\235\344\000j\t\366\226d\301\317\272\204\325\343\016\273\253D\013\366SZ\022\305\310\330\316\300\310iP\001\366\362\nv\360\t\264\301;\374\030\363G\242\242M\316BD\007s+\240Qb\370\307\202C\277f/\266Vv\027\312W\324\335\202/+\253\001\3550\203\3627\354\334\016\213:\".N\344\347\354\000\302\014?Bf\306\230o\3631\2301\353\314\206y\037\253\300\341\022p#\263\235}\225\033\311\315i\247\345\200\332F\254\200\242\025\204\277^=\234(\273\322\342\262\005\267\326yz\n(\243F\304\031y'\221\267\211\354\234\333\301\242\321\354\202\010\365\246\303N\005\354\031\325<\365\300O\247\033\210!3zH~\316M\344=\302\335\264\222\334\307\"\214\210\215\231\250\211\007=\340\210\275\242Z\253\301\334\212N\236[\277\226\351\313\366\002\0145\371\237d-\242\2050\024\007\204v\300\342{\331\312\253\250+\274\032\242 e+\330\021\2304(\013\205\240\202\363\206\177\365\237\304]O\300Q\213I\350\321\013i\222_\231t\347_\277[\273\211\276'\006\2649\267\235\237g\325u{\327Q\013=\255\210\210\200g\030t\345W\201x\212\216\036\001\267\372\314>\251\300!\266CT\350\030\024\254S\251\337\322lv\231s\017O\341'S;i]7\333m\"\014)\360\323\022\263H\261\274\321\303\324\367_Mo\0200\256\346\022\371\021\030\266\013\304\304\007\263\201\354\333\334R\276\023\266q\231\247I\035rgr\0235\366w\332\307V\301\306\"c{\224\236Scs\260D5\320\"\266\331\206`\337\031g\016\252l8\250\362\344O\315\203$\264]\004WTw\216\275~\241\254\\a\003\316\303\354\203\234L\256Q/\332\254\001\000\377\300\355\334X.\212M\373\310\321\006[\217\245\215Z\022?:\223\201\203-\021\005\016\261\371(&,\333\215Jr\021\006\212MT\036\211\306\ts\310\r\273\337)U)0\016\200\312\246wR\032T\361\340\262\n\341\252\302j>{\231\nW3U\233\342\246\nn\246J\373EU\263v\232-sf\277\257\212}\262\326\274\271\3504\n\210\373\305h\212\225N0\251\020\263\351W\026\224Y\310r9_\221\303\003\346\331Q\026\261<\235\354\215x<3B\234_Cv4\273\310L\276\367Br\233\375\270[`\317jj\026E\216X\220\2416\026\257Z\370\2413\253n4\262:\322\230x\274""\317\313\374\0278\177\243\232\204M\327\235\246\227\305P\3463z\243\007c\336@(\355&+Y\231<\t\2049\253\341\270\3475\006I\026\372\356n]\311)?\20350\252\211&\203z\332\237\336\333fMQ\310h\017\344=\372%N\270l\221'\020[#\362\2124\313&\005\345\216hiI\340\330\367\"\207%\351\373\351\\\003\333\373\357\245/J\360\321Uf\226\337g\216ez\261\002\272\263\367Hv\005\0037\310\332\036\326\3606(\257dx\230\036c\335\\\263X\335\020q\252\030\316.\321\202n%\247\025\2016Me\2037\3400\240\\\270I\302\277\003\277b\302I\277\334\317\1772\236\317\225\365K\004)#\272M\022>\207\340y\205\2036\203RE\357\374=\240\330M\335\365GIVm\371\010~\026\224\rq6s*\023\317v\322v\305\306d\276\363\030Q?-fa\307$\262w\362\325\204\255^\354W\231\334(\273\220*m\021!f\271\\\240\231\353\316,f\217g\307\262\361\\7B\204\340]z\"m\256\034\224\263J|\020\177rqClg\001\341\234\314\231rv=[\306\225\371\032\023\250v\364F\306\366\033\350\"\\2\377g\366t\025\201A\0232*\256\031\267sG1\230\313N\242n7!\344\210\370\263\004\273z\013\271\367@\354\367\210yr\314\350\275\233\373\230_\336\017\354\317\271\360\310\256\004\356I\230\220/oR\267\312\255\n\027\003U\\\2005\261W\2657I\337\376U\002\027\370\266XB,\260\300\034l\337\200X88?eTB\310\031\032hZ\361\346V\0160\002\261\363*\017&B\347\215\302\2038[\357\332\237;\250\345\3372\321\354I\030X\200\177\010\371\227k\231]\256\276+\335\302X\352\357\314\007\214L\354Ob\030\251\335\373\305R\236\326q\334\213\013\205:\335\010\023\251_2>\025Ai\\\201\353\331D\316Shm\343\010\001\204\310~\345\021\265JdZ-\021\337\337\331\314\323\332&\3361\275\254\313\227P\335\325\254\305\262\251\355\030\322\014+tk\254\2467\231F\220m\026yk\224\255V\364\031\0179p[\225\2617.\207\242@\n\226\010\305:\310;\336\344\007\226\247\252\314\352\021\336M~gu-\t@K9\237\353\246;\331c\254\347$\204u#\335\230~\202\350|\032\3439\241\013\211\324\035v\367^\243\347\032\021W=\317\312\036\332l\320\034W\323\355\r\264?\243\205KWX5\005\2273\331\n\030\231\020\225E%\335.s\260\036\275\3743\207\203\352`\277\177\320vn2?N\010\241\276\323\350\374/x\343\025U\334u\250p\003\361\225""\264\025\337\360\216\362\263\354-\222\nG\217\237\374\211\300\313\262A\362\315\3423\\\315Ah\312p\007\032X\013\351\274\337\345\306\324\3021qQ\226\266\224\245X\266\314\021\326i\212\230\323Q\270\241\335\316\215S\247\033\362\023\010[\261\367\002\216\272\267\322\013F\377T\256QiZ\017\354\r\344\277\255t\300\336\233s\354h\320e\005\216(q\220\320\374\277\354\345]\216\262\234\006\342\370\177\333K\355\303_\276\217\242cpr+\240<\r\314\215\0229Al\205\3672\363\335\324cDSa?\302W\250\223 j\231\245zo\223\262\033\323\270\256\023\3632\307.h\355\014\336\2654&\216',x\257\032Wa\204\230S\341\357F\347\375\374\"\300N$\370(\033~$\270\326\014\036\003j2.\023\023R\324$\366\260\001\225\301)\235lMS\344(\001\353\037d\010\304mb{\213C\230\004\204\302 r*\025\243\0352\"b\350]\216y\251\003\025\027G\242\277\270\206\346\3406\211\254R7\207)\231$r\3032l+,\315\034\027\253\246\340n\366Rn\216(F\004\2215\256) q\365:\354jG\232\202\303\227R,\243\231\352\314S\004\034\271\356\027==G\350\302\304,\346K(\355\tx\300\235N\213\217\237XTN\323\330\210\277&\3444\220S\036i\265b\264\371\312\261\266\222\260@!\006\3639V\340\372ec\\\321>\242\260\356\333=\026\341\274\256\325\002\000\261\0301\001\204s$\236\266G\372\304\372p\030\355\257s\334\340\n\t^\213l\375(O\210\3043\361v\332r%5\261\210\275\033E\004\200\224\220\033\360P\242\033\3154 \357\t\241SB\265[\304;\262B\243]P\275\362\002u=\353H\367q\217\203\227\242\274\352F\027\3368\237\335\246\245_\344\341q\002\206I\361\364\242\315\003=\3558\r\25117\233?!\341\266\360[\273 q\360j\024\304\237\020\341\022\275\023|\243\253\214\213p\363\0303n\376\312\017h\016\3162-\331A?*>`\354@o\264\361\376\025\247\227\277\240]\341p\221\316\364\265\214\322\216\231\361@w\230Y\234+\324]\220xD\002*S\237h\025)\273\203M\031\304\335\035$\301\245\215\206D\\\235Q\335\016?\337\377\344\002\005_\247\214\300tqm1ZD\260\020\027W\374\347\240f\233\005\263\234\263\353\223\214\250\016\t<\331\302\244\235]\265\202\342\017b\205fi\247z\355\032\013h\005\271\200=\337\317\246\177\301\014\322\313[\220bCt\210t:&\3764*\332\300\324 *up3b""\274\013*\254\0346\215\230x\210\034\347\004 \222l\241\225\343Y\027\322M\351\245\314 kEGi\351\217\347G\201\344\366\371\206Nb\201\320\261Y\216\203%\031\260\320\326N\320<\233\251c5\227R7\037K\371\314\374'HCQ\305\241\344\213\022\247\336\224\234A\354\013\300\251\223^\354\025\347\307je+\360\302\271\rT\240\0071\270\342\021\\\237\254\343X;\237\326\342{\260k\177gG\303OpS1Y$\331\3247\206Q`\246\261h\243\377\002\201\027\261>\312~XF\212W\344h\014.\315\215$\364\305\224P\307\332\027\243\377\266N\025\003'C\366\251\364\303\215\202i\234\236\3513\360\023P;\324+f\313nq\356\203\303-\022e<`\037\264f\333}\266\335h\313\005\004-E_\177\246\215\261\217\375\304+K\016\010\240\351g\177\006\340\025\373\311\005q\005\313]\340}+V\313\202\007\221\026\236\216\364YB\021\237\251\330\323\316\351f\332\241\262\361p&\000\"\014/3]\231yBh\215D\025\027ij\357!Z6\037-\\\356\374\277X\355\271\314\302\232/s\227U}\227}G\272\360t\231\216\025\305\032\3156\362\204^\340,L\313\231\200\231\317E\347\343h\364\"\030qno\231\026N\"\325Y$}\255\204\365K\254\005\327\006I\300\203\016\245\326\252+O\362$S\220\250\321\001w\305ZS\r\246\345}\326\257\337\026z\305i%D\321\301z[e\261\207_\257\340\004d\275\362\261K\227\234\263\034\346E\206&\261\312\365\024\272\373D\252\327\202h\255\031uY+Q\227\314\002\203\231\252\007A\017\261\003\264\344\263\320A\227\376\324C\302\330K\304C\3142X\034#\312:\237\333\316\317\301\177\314D\030\265J\002a\177n\355\274\301\302G_\177\241\177\210mrC0w\334\274K\233\240\1778{&\347\373q\037\356\274F=\013\325\320-\026\352\007K\275\272\340\231\351rVDP\002\322\242\024`@\301^U\221\257p\321!\014(\206\2006I\252Ra\257\326\3016C\234\244x\254\036\247\355\362\204\367lT\202v\034\3163\275\034\023w\\\364f6i[6p\233\330H\354>v\354\261\301\376M{\353\274\256\21073\316\302\350\377\001i,\n\027[\277\233:xD\263W\360k)\227{\207c\230\330\021\321\346\206g\347\230\317\357\375\t\306\312\324\310\024M\254\000?7\225\016A\3718\376\302\201B\336\354;Nx\345\037)\260zs\326\030\206G. \337\242\352\t\320\n\240\327S\254\026\352L?$\214;\317\014\022p\311W\232""\271c$\362\213f\270\263\373\300je\355\027\357'\355\013W\327\"\246\030\225VHt\303\326O\2245S#P\273(\271.B$\353\357\354\0136\276\005\010$c\254s\030\311/\020\251\251WZM{\306\240\2466\025\201\255\254\217\222sG\360\242JR\002\021b\236St\3313\r\265$\377\0016`\267*\240\360\301!{\316\255ob\267\231V\231\312\022\234B\245!3\306\211s\274\342\206\304\2124vE\232'\201\002\tR\230\301C\270n\203x\216\027\376;\005\347\225=\257\376\242qQi<\037\356W\025q\t\354\202(\366k\302\244\301o\263\304\031\2400u;7B\023\027\225tJ\222\274\3448\367\2771\0230\006\357\346\302y\017\253\343\020ou\375g{N%x\"\002+\\\313\006\034\316\005G\232\253\031b.\247i\3535\221\300 \031\002\302\271\203\346\312\346\342\n?\313\201tH\0268j\373\201*\024jd\0173!\260h\367\260IT65\244c\206\275|l\337\273?'!\364w\2517-\342\211\323rE\0220\321\020.^v\227x\274\311I\210\260`\025\031\2469\004_\2000\254B]K\333!z)\376\357\323J\\\345d:\377\252\240\370?[a\303\367d\037A%\3005\247\013\226l\304\336\330\310LCs\367'\270\242\242\345\375kz)\213*\214\335'\376\021\363\260]\347\250\250\r0\036\277\277\r\346\350\005\021\350M\201\000\031\261 \247 \365\334\355\\\210h\306\213\375\023\373s\373\342x\357\020\030d:\003\005\032M/{\022\257\322\350.\365rJ\256p\366J\356/N\341\024\332\217\026\325\035>\344n\021\242,\346)\020LANU&\035\322\221\302buT\3260\306$\336\344[66\300_v\224\330!N\350\306\336\3076\204\347\327\3309Q\365?C\317E\023=c\2134!}\002\224C\360\370\353\316}\332\327>\002\212\343mb\034\307\331\004\340\230D\323\327\223\215\345\232\331\322\304[13\222y\301I\222\0269\344\332\314\362\010\026\371\270\212\244Q\241x\204`\005\345\037\345\305*\343\033G-}$\212=\222}\205\250\010\333KO\260\030z\344\227\226#F\025)\217\362\026\270\227\237\373w\224'\232\253\341\355\r\325\022\270\301N\260\333o$#\0302u\221\224\341\274\301A}\024\263&\231\371\356\030\035\022/\002\357\327?\263\276\357UE\230m\020\r\023\333k\225x\2303{\003pK\244\321V\203\223\367\024\252\317\354u\032\265\234\365\345\324\367\004\374\261M\017\366\302\351\272\275\005N\267\005\241\261F\2140\236\242dLJ\275K\177%\032""\321\200\254\214*\211\022a\277\257iI\335w\213\265\3166\257\177e\203?\2737\t\324\213\240-\216(\370\252\234'\224\247\206-\277\236\371>a5\342\022\331C\260\265\250\310\\\224I\311\010g+j\204\302\206\247\264\223\231\353\343\360T\240-\033\243y\033\315/\355\367\354o\031\013/\215\227\222>\355w\343\367\240\021\374\377\364\206\222\246\247\t]\364\360b\275\240f\272\262\312}\246^\250\205\212\017\0203lIY\263Y6*\246A\253\317l\260\264\277i,\031u\264\254\334`\304\300\246\212\305\351\016{\265A\000\017\231\306\314x\252j3nGZPXQ\304/U\246\275\023\207'\262\313HV\241+\023F#;\302(\343\265y\002)U7\312\345\322\025\333-#\311Wl\206bnG\351?n\346:\331\351\266C\356\035W6\272\252\002g_\204 \033b\206\002K\344%\374\332\224]B:\031vf#\032\032Pr\317\035\27014\323\302\"\213\003X|N3\312\374j\035P\341+\266\037\300\303* \276\203\215\300WO\3301\350\234\346\253\273\211\335^\260\2066\005\365\217\276\270\223\266\006\3071\010\3519\211\226\360\"\371\205\334sKL\232;\311\217\204Y\331?\307\225\334\326\223lc\177\374\253\222\210\213\220\216)+I\n6I({\202\263\325\2025`\r\207 \367\006\tN>\344R\324E\254Hn\311{\354\001\016\335*\304\020B]\353\025\276x\220\271\231\355\303\374\213\236\020\367\336N\205l\303\024\203o\253\314\317\317\330.r\337vR\tj\236\344\371\3246^w\007M\024E\343\314n\216T\377\265J\347\265\270\007\276\203J\220@\356L\241\266\323\350|\272/AiF\365\r\343\006\261\332\260\362^R\351[k\330\267\206\323Uq\036\0063\322\272\301hP\3149{\332\226\017\265>\221y\233\r\211f\227S\264\330C\255\2211i\372\030\272]\227zE\023p\237\235#\305\016y\223C\264\257\337\"\262\300iAj\367\246\367\026\223gY\242\250&\211\027q\206\265\022\017\017\377,\266i\325s\206\3137Z1\316\316\207\235\206\027\3358K\264c\016*\224&\345\365\003\322yB4_ph\331Q)\005\267\t\261\237if\226\345\214\322\302\342d\021\2319\21563\341\020\361\375\022F\364\033\274y\2206QT\223\"\027\217\303\002/\316\245V\333/\264F\310\364j@\206\3143{\355t\332\202\220b\316P)\223\342-\357\0230\240\222/\260HwV\334TS\2373WXob\n\355\013Z\027,i\253\234\376\001\354\274\223\252\001+\306\022\225\220R""\233\304oT\263w\373\217\253b-\016\350X\216\2002\031\"\036\311\237z\300\024\220&\374lj\222N\337\210K\230\231\313\020t\361Tz\007AaEM\202\2678o\352\214\031\321s\017I\031Q\0340\252Y\310n\223\010\r\025{\212\216n3\272a\265+\263\203F\267\362,\016\261\265;\314\276\266\242\236\3261\t\334\005\235\031Wg\205;\263w=I\003C>\275ke\262\3455\272\003\035\225'\267Q}95gKHT!]\023\023\312\"\247\324\343d\202VW\345\225\315\345=6\353\231\351\233s\345n\355\221\370\205\261\275-\352\222\244\336\336\316\274\313F\265\343\337\234\2401\030\346\2210\344\3049\331\tg\222\312\251\006\276\266\220\001$\022B\214\217ES'\302Y\305\253\244-6\036\032\3254\340\037\013\225rV\0203?\254\022\335Z\t?%V\216p\217\352\300B\262\235\323\026'\262\277\344\273\363\253\373\t\343\305;\343\335\037\306\037_\214/Q#\032\303\336E&\363\373,&\021K\262\275\367Zrq\262\263\204\312\351\"\342\317\005b\350^\344\252s\277\346W\366_\032\363D\337\211\270\257\030+\353\306z\334\210o\033\333\337~\374\364\323\237U3\307\350g\346\330\257\370\371\365\3303\374<;6\217\237\371c\257\360\363\352\330\022~\226\216}\306\317\347ck\307T\376 Z\342Qf\321N\345\376\334\3575\346\346\213\316\"_\312\223\366d9!Rk\212\330-\332>\264G={\310B\221\016\261\007\025F|\245$\263;kwm\231\335\215\352\273\234\324\354\340\010Q\205\250\312\346Y\0006&\224\354\316;W\2470\276\370\324\022>1\252{\323\377dC\240\013\315\222\371\253E\002\023t\202\253Fq\215=\257\000\023\316\027\312\202`/+\234oL\376\222FJ\003\306A\005\235\251\341Q\362M*\230y\220\345\261\212\222q\"\243S\312\232\221U\214\317\211#\004\336\020\373\353\027\311F\000\013\220\354\215\242\312\004\235`\337\375\221\314+A\311p&3\267\240\267\211]\036\370\200\336\377L\3103\242]Se\332\304\235G\224!\354\361,I\004z\256JD\363%\274\310\322=\351 \233Z+X\311i/\307J\237\374\276\270wl\257\233\320\312\026\233\033\253\031\233w\261\264S\255ln\335\320\010\020q\236\315\037\027\276]\242\336_\360.~\301\322^\271\202Y\"I>\336\336\335\354\0350\315\033\032\374\241J\272y@\265Q\315\262\273\313Nc\017W\035\316\236d\315w\007\002\235;\340\242\324}\235\220\353""\267\\cn:\267BlY\267ZIf\376\001\302\033\3319\311ws\020\240\250\234l\310\014k\002\212Uf\001J\n\351R\322\321\037c%\020\n\036\240\333\030\342\3002\007~\303\355\317+\241\233rP\34006\005$\025Z\275\204l \232\305:(,'Q\264\260\354\261K^\301\333\2512/\237c\177\034owz\226\023(\017\211\005\320\307J\"\330Q0\277V\026\021\222\263\332e\206\317\346n\347?\303\353\247\232\247\347\r\323u\316F\000'\177dU0\306\177\335\037\"1D\245\230.V\237\000\311!l\013\241Q\210:\265\005\257\346\022\322\343\364\213n\026\215\177\003\330}HW\377P\227\343\342\265\244\202T\024\312\231\006R\247\006\260SOe\242?\206\312\247\235\024\177l\225\225<d\017L#|\272al\020J\375\217\361\237\277\331\346P\324\346%<U\367\377\347G 8,\337\021\217\367~\277j\277\325x\261\340r\346<\3059\227\233\225~n\224H~\017\"\205\263*0\214$N\321\321\2634(\334\240O[\363\224F\256\213\243\024\3415\021\026\267\035v\256\032\311\275\310\037\313w\345_\354\037\333\357\332_0\346^\031\257\020\243i\374\0366\3024{k\306\032\010\233\021\213\333bg\177\221\274$\254+)\252\037\355\226gTC7\346\320\373\233j-\370\347\031\355H {2\317\234\256\312s7\306~\351q1<\236\225H1\311Gx\022j0\010\030<&Af\370\262\000W\177\223\214\323\222\001CE\006\216\211\333\254G\334$\025\337\324\215\334\211\222\305+\373\206\006|\212\323\210\235\250\371\036\333k\330\343\351\272\300\023%i==\242r\340\032\275\0101\311\345\255\230\013<\\G\010p\236E\234S\034\211N\334\036\224\022\332\347\361&\007F\301\240S\315N\233\330\034S\000f\242\263\265?\2358Y\300\316\341\341#\250\\v\023x\214\032{\306x\0250Pt\245\215\027\372)\211\013\201Lly\344+\246\203gt\204\t\372\205\r\267\300\203\022G\336\305I\333\272\262\357$\323\001\333\304\244\307\022\272A\222\003\306\301\321d,\360\301\t\200\021\272iKU)\310'\340$Q\0247Q\374<N\261`\274\314i\330\3318\036P)\037\305\304\004v\370\362(Q\306yN\024\036\311\337\332\2373\323c\265\262H<\247\311\256\204Cp\016)\370(\\\200{\240=\201\277-)\360\252\364\226\350\312\000\022[ %e7\374\311\257\2309\026\312\304\210\027\235\250\0338\314\351\213\\o\331\016\301@\224\272\013\2238\231q?d\3631\376u""\337W\366!f\010O\203\361!\351\264\216 \240\275\243p\245\233\277e\320\315\270d\022Q!$\276\\\321I\036\364\t?\313J\252n\222&y}\240\310mRLDw\017\322\"U\013oL\270\034\026\005V:^\206\374Y\320s\307\271\260\034\311\3510\366z\220\211:\030\000\021`\305\271$L\317\010\366\240u^I2\261tT\\\301\340S\241:\327\220\354\201U@\226}\226v\n\"\024 \371\373\304GXb\212<\326Pz\211%x\221\255*\035\n\273H\300\234\332\227\2511\206g\363\277\222\024O\343;)2\202\032\212\022\231\314\344\320?bU\3700C\r\254\234\274e$y\317gB\no\210\272\375\221\233$zS\327\007\347\375B\035\314\323\327\261\r\220d\365\023|<P\326\244u$$\370\275$\206\240\256\201\365m\0179\261\364\004'\311v\024\321%\204\314\272sEN\016T\245\223\234\316\211,\007[\276\312\033\001\376+\244b\253`\326\0163\242!\206\332\366\344\023\361\007\221j\366\305\333\253\322\t\251G\265\363,\254\304\001\246\221:7\004\247\341\247\225\347\357\370\224\024\311\236P\032\262I\t\2275\252\221O\366\234\243L\020t\202w\313\262\370\237\254\262\227\214N=\376\2178G`\200\277\022KW\203\364\254\022\240\216\257\030%\003\332I\035:\317n\321T\333\262:as\274I\261\363\031\202\312|\305z\225\243.\355+Zq\241\307Y\232\302\347\\\356\023\311\343\317a\374w\033UH\266\003\330\267\006\215\300f\205\361\234\255U\200\233j\003W\nP\336Aza\354\346I8\362\362\026A\306\336\332\n\246\010\247\321\034\201M*\345\016\302\"\025s\240\022[\330\016E{\200\274\311\306t\021\271\372$\262R;\307Pg\225\"j\\9`\025U\314a\034v\301\3339\315*\265\253t\367J\322*\226\024X\271X\210\327c+\263|n\356\226|\312\023\037\233\346\353\377\0037:\316\235";
    PyObject *data = __Pyx_DecompressString(cstring, 47946, 1);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #else /* compression: none (155851 bytes) */
const char* const bytes = "\n0(0,0)(.*?)((?:\\([0-9 .+-]+,[0-9 .+-]+\\))*$)^-112n123%16.14f*I16n1235%17.14f%.18f2-3 move<2d3-2 move3d%-4s %-40s %-5^2_1(3,4)(1,-2)6_1%-6s %s8_3^3\nA:  \n    A CuspNeighborhood object represents an equivariant collection of\n    disjoint horoballs that project to cusp neighborhoods.\n\n    Instantiate as M.cusp_neighborhood()\n    \n    A DirichletDomain object represents a Dirichlet Domain of\n    a hyperbolic manifold, typically centered at a point which\n    is a local maximum of injectivity radius.  It will have ideal\n    vertices if the manifold is not closed.\n\n    Instantiate as M.dirichlet_domain()\n    where M is a Manifold to\n    obtain a Dirichlet Domain centered at a point which maximizes\n    injectivity radius.\n\n    Other options can be provided to customize the computation, with\n    the default values shown here\n\n    >>> M = Manifold('m003(3,-4)')\n    >>> M.dirichlet_domain(vertex_epsilon=10.0**-8, displacement = [0.0, 0.0, 0.0], centroid_at_origin=True, maximize_injectivity_radius=True)\n    40 finite vertices, 0 ideal vertices; 60 edges; 22 faces\n\n    You can also create a Dirichlet Domain from a file listing matrix\n    generators for the group, in SnapPea's \"% Generator\" format, via\n\n    >>> D = DirichletDomain(generator_file='test.gens') # doctest: +SKIP\n\n    Or from matrices:\n\n    >>> G = Manifold('m004').fundamental_group(False)\n    >>> matrices = [ G.O31('a'), G.O31('b'), G.O31('c') ] # Note: some of the matrices contain (near) 0 entries and thus this tests that Object2Real converts small numbers fromatted by pari as \"1.0 E-10\" (note the pace before \"E\") correctly when not in SageMath.\n    >>> DirichletDomain(O31_generators = matrices,\n    ...                 maximize_injectivity_radius = False)\n    8 finite vertices, 2 ideal vertices; 20 edges; 12 faces\n\n    The group elements for the face-pairings of the Dirichlet domain\n    can be given as words in the original generators by setting\n    ``include_words = T""rue``.\n\n    \n    A FundamentalGroup represents a presentation of the fundamental\n    group of a SnapPea Triangulation.  Group elements are described as\n    words in the generators a,b,..., where the inverse of a is denoted\n    A.  Words are represented by Python strings (and the concatenation\n    operator is named \"+\", according to Python conventions).\n\n    Instantiate as T.fundamental_group(), where T is a Triangulation.\n\n    Methods:\n        num_generators() --> number of generators\n        num_relators()   --> number of relators\n        generators()     --> list of generators\n        relators()       --> list of relators\n        meridian(n)      --> word representing the meridian on cusp #n\n        longitude(n)     --> word representing the longitude on cusp #n\n    \n    A FundamentalGroup represents a presentation of the fundamental\n    group of a SnapPea Triangulation.  Group elements are described as\n    words in the generators a,b,..., where the inverse of a is denoted\n    A.  Words are represented by python strings (and the concatenation\n    operator is named '+', according to Python conventions).\n\n    Instantiate via ``T.fundamental_group()``, where T is a triangulation:\n\n    >>> T = Triangulation('m125')\n    >>> T.fundamental_group()\n    Generators:\n       a,b\n    Relators:\n       aabaBBAABAbb\n    >>> type(T.fundamental_group()) #doctest: +SKIP\n    <class 'SnapPy.FundamentalGroup'>\n\n    A HolonomyGroup is a FundamentalGroup with added structure\n    consisting of a holonomy representation into O(3,1), and an\n    arbitrarily chosen lift of the holonomy representation to SL(2,C).\n    The holonomy is determined by the shapes of the tetrahedra, so a\n    HolonomyGroup is associated to a Manifold, while a Triangulation\n    only has a FundamentalGroup:\n\n    Instantiate via ``M.fundamental_group()``, where M is a Manifold:\n\n    >>> M = Manifold('m125')\n    >>> G = M.fundamental_group()\n    >>> G\n    Generators:\n    ""   a,b\n    Relators:\n       aabaBBAABAbb\n    >>> type(G) #doctest: +SKIP\n    <class 'SnapPy.HolonomyGroup'>\n\n    In the class HolonomyGroup, methods are provided to evaluate the\n    representations on a group element. Other methods are shared\n    with the FundamentalGroup class.\n\n    >>> G.O31('a') # doctest: +NUMERIC12\n    [    2.50000000000000   -0.500000000000000    -2.12132034355964   -0.707106781186547]\n    [   0.500000000000002   -0.500000000000001   -0.707106781186549    0.707106781186547]\n    [  -0.707106781186548   -0.707106781186547     1.00000000000000                    0]\n    [    2.12132034355964   -0.707106781186548    -2.00000000000000    -1.00000000000000]\n    >>> G.SL2C('aaB') # doctest: +NUMERIC12\n    [-1.00000000000000 + 4.00000000000000*I 2.12132034355964 - 0.707106781186545*I]\n    [2.12132034355964 - 0.707106781186549*I -1.00000000000000 - 1.00000000000000*I]\n    >>> G.complex_length('ab') # doctest: +NUMERIC12\n    1.06127506190504 - 2.23703575928741*I\n    A non-existent shape data type was specified.\n    A %s is specified by a string or a byte sequence, according to the\n    conventions detailed in its docstring.\n    AbelianGroup.__reduce__ (line 82)Acceptable cusp types are ['all', 'orientable', 'nonorientable'].\n        Add a (possibly degenerate) hyperbolic structure, turning the\n        :class:`Triangulation` into a :class:`Manifold`.\n\n        >>> M = Triangulation('m004')\n        >>> N = M.with_hyperbolic_structure()\n        >>> N.volume() # doctest: +NUMERIC6\n        2.02988321\n        All Dehn filling coefficients must be integersAll cusps must be fillable.All filesAll text filesAn empty triangulation was generated.\n    Base class for Iterators/Sequences for manifolds in the SnapPea\n    Cusped Census.\n    \n    Base class for Iterators/Sequences for knots from the\n    Hoste-Thistlethwaite tables.\n    \n    Base class for manifold Iterators/Sequences.\n    [Bb]raid[:]?(\\[[0-9, \\-]+\\])$Braid:Braid[1,2"",-1,-2]Braids must have at least 2 strands.\n        Brings up a link editor window if the manifold is stored\n        as a link complement in your current session.\n\n        >>> M = Manifold('4_1') # stored as a triangulation with a link\n        >>> M.link()\n        <Link: 1 comp; 4 cross>\n        >>> N = Manifold('m004') # stored as a triangulation without a link\n        >>> N.link() #doctest: +ELLIPSIS\n        Traceback (most recent call last):\n        ...\n        ValueError: No associated link known.\n\n        Browser not imported; Tk, CyOpenGL or pypng is probably missing.Bundle(S_{1,1}, [a0, B1])Bundle\\(S_\\{(\\d+),(\\d+)\\},Byte encoding requires complete cusps.CCuspNeighborhood.view (line 289)CDirichletDomain.export_stl (line 666)CDirichletDomain.length_spectrum_dicts (line 236)CDirichletDomain.manifold (line 509)CDirichletDomain.pairing_matrices (line 564)CDirichletDomain.pairing_words (line 593)CDirichletDomain.save (line 643)CDirichletDomain.triangulation (line 524)CFundamentalGroup.character_variety_vars_and_polys (line 420)CFundamentalGroup.gap_string (line 376)CFundamentalGroup.generators_in_originals (line 177)CFundamentalGroup.generators (line 239)CFundamentalGroup.longitude (line 331)CFundamentalGroup.meridian (line 306)CFundamentalGroup.original_generators (line 152)CFundamentalGroup.peripheral_curves (line 357)CallFuncList(function() local F, Can't compare triangulations of manifolds with Dehn fillings.Can't get the list of isometries for closed manifoldsCannot convert %s to a Real.CensusKnots/%sCensusKnots.tgz\n        Change the triangulation to an arbitrary retriangulation of\n        the canonical cell decomposition. See\n        :py:meth:`canonical_retriangulation <snappy.Manifold.canonical_retriangulation>`\n        to get the actual canonical cell decomposition.\n\n        >>> M = Manifold('m007')\n        >>> M.num_tetrahedra()\n        3\n        >>> M.canonize()\n        >>> M.num_tetrahedra()\n        4\n\n        Note: Due to"" rounding error, it is possible that this is actually\n        not a retriangulation of the canonical cell decomposition.\n        ChristyLinks/%sChristyLinks.tgzChristy census of %s-component link complements in S^3ClosedNonorientableDistinct.txtClosedOrientableDistinct.txtCommunication with PLink failed.\n        Constructs a *reasonable* selection of simple closed curves in\n        a manifold's dual 1-skeleton.  In particular, it returns those\n        that appear to represent geodesics. The resulting curves can\n        be drilled out.\n\n        >>> M = Manifold('m015')\n        >>> curves = M.dual_curves()\n        >>> curves # doctest: +NUMERIC6\n        [  0: orientation-preserving curve of length 0.56239915 - 2.81543089*I,\n           1: orientation-preserving curve of length 1.12479830 + 0.65232354*I,\n           2: orientation-preserving curve of length 1.26080402 + 1.97804689*I,\n           3: orientation-preserving curve of length 1.58826933 + 1.67347167*I,\n           4: orientation-preserving curve of length 1.68719745 + 2.81543089*I]\n\n        Each curve is returned as an info object with these keys\n\n        >>> sorted(curves[0].keys())\n        ['complete_length', 'filled_length', 'index', 'max_segments', 'parity']\n\n        We can drill out any of these curves to get a new manifold\n        with one more cusp.\n\n        >>> N = M.drill(curves[0])\n        >>> (M.num_cusps(), N.num_cusps())\n        (1, 2)\n\n        By default, this function only finds curves of length 6; this\n        can be changed by specifying the optional argument\n        max_segments\n\n        >>> M.dual_curves(max_segments=2) # doctest: +NUMERIC6\n        [  0: orientation-preserving curve of length 0.56239915 - 2.81543089*I]\n        Could not allocate a crossing table.Could not certify shape intervals, either there are degenerate shapes or the precision must be increased.Could not create the triangulation.Cover degree should be at least 1Cover specified by unrecogn""ized GAP type\n        Create a 3D picture of the horoball packing.  One can specify\n        which cusp to put at infinity and how large of horoballs to\n        look at, e.g.\n\n        >>> M = Manifold('m125')\n        >>> C = M.cusp_neighborhood()\n        >>> C.view(which_cusp = 1, cutoff=0.2)   #doctest: +CYOPENGL\n        Cusp Cusp Neighborhood with Cusp neighborhoodDT:DT[:]? *(\\[[0-9, \\-\\(\\)]+\\](?: *, *\\[[01, ]+\\])?)$DT[DT[4,6,2]DT[:\\[] *([a-zA-Z]+(?:\\.[01]+)?)[\\]]?$DT:%sD%dDirichlet Domain of Does not extend to link\n        Drills out the specified dual curve from among all dual curves\n        with at most max_segments, which defaults to 6. The method\n        dual_curve allows one to see the properties of curves before\n        choosing which one to drill out.\n\n        >>> M = Manifold('v3000')\n        >>> N = M.drill(0, max_segments=3)\n        >>> (M.num_cusps(), N.num_cusps())\n        (1, 2)\n        \n        Each cusp has a preferred marking. In the case of a torus\n        cusp, this is pair of essential simple curves meeting in one\n        point; equivalently, a basis of the first homology of the\n        boundary torus. These curves are called the meridian and the\n        longitude.\n\n        This method changes these markings in various ways.  In many\n        cases, if the flag return_matrices is True then it returns\n        a list of change-of-basis matrices is returned, one per\n        cusp, which will restore the original markings if passed\n        as peripheral_data.\n\n        - Make the shortest curves the meridians, and the second\n          shortest curves the longitudes.\n\n          >>> M = Manifold('5_2')\n          >>> M.cusp_info('shape') # doctest: +NUMERIC6\n          [-2.49024467 + 2.97944707*I]\n          >>> cob = M.set_peripheral_curves('shortest', return_matrices=True)\n          >>> M.cusp_info('shape') # doctest: +NUMERIC6\n          [-0.49024467 + 2.97944707*I]\n          >>> cob\n          [[[1, 0], [""-2, 1]]]\n          >>> M.set_peripheral_curves(cob)\n          >>> M.cusp_info('shape') # doctest: +NUMERIC6\n          [-2.49024467 + 2.97944707*I]\n\n          You can also make just the meridians as short as\n          possible while fixing the longitudes via the option\n          'shortest_meridians', and conversely with\n          'shortest_longitudes'.\n\n        - If cusps are Dehn filled, make those curves meridians.\n\n          >>> M = Manifold('m125(0,0)(2,5)')\n          >>> M.set_peripheral_curves('fillings')\n          >>> M\n          m125(0,0)(1,0)\n\n        - Change the basis of a particular cusp, say the first one:\n\n          >>> M.set_peripheral_curves( [ (1,2), (1,3) ] , 0)\n\n          Here (1,2) is the new meridian written in the old basis, and\n          (1,3) the new longitude.\n\n        - Change the basis of all the cusps at once\n\n          >>> new_curves = [ [(1,-1), (1,0)],  [(3,2), (-2,-1)] ]\n          >>> M.set_peripheral_curves(new_curves)\n          >>> M\n          m125(0,0)(-1,-2)\n        Elementary divisors must be given as a sequence.Elementary divisors must be non-negative integers.\nEmpty TriangulationEquations are available in 'log' and 'rect' forms only.\n        Export the Dirichlet domain as an stl file suitable for 3d printing.\n\n        Arguments can be given to modify the model produced:\n\n        * model='klein' - (alt. 'poincare') the model of HH^3 to use.\n\n        * cutout=False - remove the interior of each face\n\n        * shrink_factor=0.9 - the fraction to cut out of each face\n\n        * cuttoff_radius=0.9 - maximum rescaling for projection into Poincare model\n\n        * num_subdivision=3 - number of times to subdivide for the Poincare model\n\n        For printing domains in the Poincare model, cutoff_radius is critical for avoiding\n        infinitely thin cusps, which cannot be printed.\n\n        This can take a long time for finely subdivided domains. So we call UI_callback\n        every so o""ften if it is not None.\n\n        >>> D = Manifold('m004').dirichlet_domain()\n        >>> D.export_stl('fig-eight-klein.stl')     #doctest: +SKIP\n        >>> D.export_stl('fig-eight-poincare.stl', model='poincare')     #doctest: +SKIP\n        >>> D.export_stl('fig-eight-klein-wireframe.stl', cutout=True)     #doctest: +SKIP\n        >>> D.export_stl('fig-eight-poincare-wireframe.stl', model='poincare', cutout=True)     #doctest: +SKIP\n        \n        Extend the Neumann-Zagier matrix to one which is symplectic\n        (up to factors of 2) using oscillating curves, see\n        `Mathews and Purcell '22 <https://arxiv.org/abs/2208.06969>`_.\n        Only accepts triangulations with 1 cusp.\n\n          >>> M = Manifold(\"4_1\")\n          >>> M.symplectic_basis()\n          [-1  0 -1 -1]\n          [ 2  0 -2  0]\n          [-2 -1 -2 -1]\n          [ 0 -1 -2 -1]\n\n\n        :param verify: Explicitly test if the resulting matrix is symplectic.\n        Extends to link := F.; F := FreeGroup(Failed to allocate memory for cuspsFailed to allocate memory for tets.Failed to construct permutation representation.\n        Fill an empty manifold from a byte sequence generated by\n        _to_bytes.\n        >>> M = Manifold('m125')\n        >>> N = Manifold('empty')\n        >>> N._from_bytes(M._to_bytes())\n        >>> N.is_isometric_to(M)\n        True\n        \n        Fill an empty triangulation from a byte sequence generated by\n        _to_bytes.\n        >>> M = Manifold('m125')\n        >>> seed = M._to_bytes()\n        >>> len(seed)\n        12\n        >>> N = Manifold('empty')\n        >>> N._from_bytes(seed)\n        >>> N == M\n        True\n        \n        For a Triangulation that describes a closed manifold, returns\n        the unsimplified finite triangulation that the kernel builds.\n\n        >>> M = Triangulation('m004(1, 2)')\n        >>> F = M._unsimplified_filled_triangulation()\n        >>> F.num_tetrahedra(), F._num_fake_cusps()\n        (58, ""7)\n\n        The default is to use the kernel's original fold method as\n        the final step to close off the cusp. Specifying\n        method='layered' uses a 1-tetrahedron solid torus instead.\n        For method='layered_and_marked', the core solid tori are marked\n        internally so that any calls to simplify/randomize will leave\n        these in place.\n\n        >>> M = Triangulation('m004(1, 2)')\n        >>> F = M._unsimplified_filled_triangulation(method='layered')\n        >>> F.num_tetrahedra(), F._num_fake_cusps()\n        (60, 7)\n        >>> F.simplify(); F.num_tetrahedra() < 15\n        True\n        >>> M = Triangulation('K8n1(1,0)')\n        >>> F = M._unsimplified_filled_triangulation(method='layered_and_marked')\n        >>> F.num_tetrahedra() > 2\n        True\n\n        You can determine which tets are the cores, and remove the\n        marks to allow unrestricted simplification.\n\n        >>> any(F._marked_tetrahedra(clear_marks=True))\n        True\n        >>> F.simplify()\n        >>> F.num_tetrahedra() <= 2\n        True\n        \n        For a non-orientable Triangulation, returns the 2-fold cover which\n        is orientable.\n\n        >>> X = Triangulation('x123')\n        >>> Y = X.orientation_cover()\n        >>> (X.is_orientable(), Y.is_orientable())\n        (False, True)\n        >>> Y\n        x123~(0,0)(0,0)\n        >>> Y.cover_info()['type']\n        'cyclic'\n                             FormatHomForSnapPea := function(f)\n                         subone := function(L)   return [x - 1 : x in L]; end function;\n                         return [subone(Eltseq(f(g))) : g in Generators(Domain(f))];\n                       end function;Generators:\n   %% Generators\n%s\n\n        Give the triangulation a new name.\n\n        >>> M = Triangulation('4_1')\n        >>> M.set_name('figure-eight-comp')\n        >>> M\n        figure-eight-comp(0,0)\n        \n        Gives the shapes of the tetrahedra in the current solution to""\n        the gluing equations.  Returns a list containing one info object\n        for each tetrahedron.  The keys are:\n\n        - rect : the shape of the tetrahedron, as a point in the\n          complex plane.\n\n        - log : the log of the shape\n\n        - accuracies: a list of the approximate accuracies of the\n          shapes, in order (rect re, rect im, log re, log im)\n\n        If the optional variable 'part' is set to one of the above,\n        then the function returns only that component of the data.\n\n        If the flag 'fixed_alignment' is set to False, then the edges\n        used to report the shape parameters are chosen so as to\n        normalize the triangle.\n\n        >>> M = Manifold('m015')\n        >>> M.tetrahedra_shapes(part='rect') # doctest: +NUMERIC6\n        [0.66235898 + 0.56227951*I, 0.66235898 + 0.56227951*I, 0.66235898 + 0.56227951*I]\n        >>> M.tetrahedra_shapes() #doctest:+SKIP\n        [{'accuracies': (11, 11, 12, 11), 'log': -0.14059979 + 0.70385772*I, 'rect': 0.66235898 + 0.56227951*I},\n         {'accuracies': (11, 11, 11, 11), 'log': -0.14059979 + 0.70385772*I, 'rect': 0.66235898 + 0.56227951*I},\n         {'accuracies': (11, 11, 11, 11), 'log': -0.14059979 + 0.70385772*I, 'rect': 0.66235898 + 0.56227951*I}]\n        \nGot the empty link from PLink and so not changing the triangulation.\nGroup<\n        Group elements which pair the faces of this DirichletDomain\n        as words in the original generators:\n\n        >>> M = Manifold('m004')\n        >>> D = M.dirichlet_domain(include_words = True)\n        >>> sorted(D.pairing_words()) #doctest: +ELLIPSIS\n        ['A', ...]\n\n        Requires that DirichletDomain was computed with\n        include_words = True.\n        High precision shapes must be computed in the fixed alignment\n        If the SymmetryGroup is a nontrivial direct product with at\n        least one nonabelian factor, return a pair of SymmetryGroups\n        consisting of the (two) factors.""\n\n        >>> S = Manifold('s960').symmetry_group()\n        >>> S.direct_product_description()\n        (Z/4, D3)\n        \n        If the manifold is the complement of a two-bridge knot or link\n        in :math:`S^3`, then this method returns :math:`(p,q)` where\n        :math:`p/q` is the fraction describing the link.\n        Otherwise, returns ``False``.\n\n        >>> M = Manifold('m004')\n        >>> M.is_two_bridge()\n        (2, 5)\n        >>> M = Manifold('m016')\n        >>> M.is_two_bridge()\n        False\n\n        Note: An answer of ``True`` is rigorous, but not the answer\n        ``False``, as there could be numerical errors resulting in\n        finding an incorrect canonical triangulation.\n        \n        If the symmetry group is abelian, return it as an AbelianGroup\n\n        >>> S = Manifold('v3379').symmetry_group()\n        >>> S.abelian_description()\n        Z/2 + Z/2 + Z/2\n        If there is more than one cusp you must specify which one you\nare filling, e.g. M.dehn_fill((2,3),1)\n        If this triangulation is a subdivision of the canonical cell\n        decomposition, return the canonical retriangulation as Triangulation.\n\n        Warning: Many operations on a SnapPy Triangulation will remove the\n        finite vertices or change the triangulation so it is no longer the\n        canonical retriangulation.\n        By default, the algorithm numerically checks that the tilts are close\n        to zero to determine which faces are opaque or transparent.\n        But it can also be passed an explicit list of 4 * num_tetrahedra bool's\n        (one per face of each tet) that mark the opaque faces.\n\n        For example, m412's canonical cell decomposition consists of a single\n        cube. The canonical retriangulation thus has 12 simplices.\n\n        >>> M = Manifold(\"m412\")\n\n        Some isometries of M are not visible in this triangulation (not\n        even after calling M.canonize())\n\n        >>> len(M.isomorphism""s_to(M))\n        4\n        >>> T = M._canonical_retriangulation()\n        >>> T.num_tetrahedra()\n        12\n\n        But all isometries of M are visible in its canonical retriangulation.\n\n        >>> len(T.isomorphisms_to(T))\n        8\n\n        \n    Immutable dictionary whose data can be accessed either as\n    attributes or by mapping.\n    Initialize with keyword arguments, or **dict.\n    \n        In the default mode, this function returns a matrix with rows\n        of the form\n\n                  a b c  d e f  ...\n\n        which means\n\n            a*log(z0) + b*log(1/(1-z0)) + c*log((z0-1)/z0) + d*log(z1) +... = 2 pi i\n\n        for an edge equation, and (same) = 0 for a cusp equation.\n        Here, the cusp equations come at the bottom of the matrix, and\n        are listed in the form: meridian of cusp 0, longitude of cusp\n        0, meridian of cusp 1, longitude of cusp 1,...\n\n        In terms of the tetrahedra, a is the invariant of the edge\n        (2,3), b the invariant of the edge (0,2) and c is the\n        invariant of the edge (1,2).  See kernel_code/edge_classes.c\n        for a detailed account of the convention used.\n\n        If the optional argument form='rect' is given, then this\n        function returns a list of tuples of the form:\n\n           ( [a0, a1,..,a_n], [b_0, b_1,...,b_n], c)\n\n        where this corresponds to the equation\n\n           z0^a0 (1 - z0)^b0 z1^a1(1 - z1)^b1 ...  = c\n\n        where c = 1 or -1.\n\n        >>> M = Triangulation('m004(2,3)')\n        >>> M.gluing_equations()\n        [ 2  1  0  1  0  2]\n        [ 0  1  2  1  2  0]\n        [ 2  0  0  0 -8  6]\n        >>> M.gluing_equations(form='rect')\n        [([2, -1], [-1, 2], 1), ([-2, 1], [1, -2], 1), ([2, -6], [0, 14], 1)]\n        Index is out of range.Info objects are immutable.Invalid generator statusInvalid permutation data.Invalid pickle byte sequence\n    Iterator/Sequence for Alternating knot exteriors from the\n    Hoste-This""tlethwaite tables.   Goes through 16 crossings.\n    \n    Iterator/Sequence for nonAlternating knot exteriors from the\n    Hoste-Thistlethwaite tables.  Goes through 16 crossings.\n    Klein bottle cuspKnots in S^3 which appear in the SnapPea CensusL13n9331(3,4)(2,3)(2,1)L%d%.2d%.3d% Link Projection\n        M.ptolemy_variety(N, obstruction_class = None, simplify = True, eliminate_fixed_ptolemys = False)\n\n        Returns a Ptolemy variety as described in\n\n        * Stavros Garoufalidis, Dyland Thurston, Christian K. Zickert:\n          \"The Complex Volume of SL(n,C)-Representations of 3-Manifolds\"\n          (http://arxiv.org/abs/1111.2828)\n        * Stavros Garoufalidis, Matthias Goerner, Christian K. Zickert:\n          \"Gluing Equations for PGL(n,C)-Representations of 3-Manifolds \"\n          (http://arxiv.org/abs/1207.6711)\n\n        The variety can be exported to magma or sage and solved there. The\n        solutions can be processed to compute invariants. The method can also\n        be used to automatically look up precomputed solutions from the\n        database at http://ptolemy.unhyperbolic.org/data .\n\n        Example for m011 and PSL(2,C)-representations:\n\n        >>> M = Manifold(\"m011\")\n\n        Obtain all Ptolemy varieties for PSL(2,C)-representations:\n\n        >>> p = M.ptolemy_variety(2, obstruction_class = 'all')\n\n        There are two Ptolemy varieties for the two obstruction classes:\n\n        >>> len(p)\n        2\n\n        Retrieve the solutions from the database\n\n        >>> sols = p.retrieve_solutions() #doctest: +SKIP\n\n        Compute the solutions using magma (default in SnapPy)\n\n        >>> sols = p.compute_solutions(engine = 'magma') #doctest: +SKIP\n\n        Compute the solutions using singular (default in sage)\n\n        >>> sols = p.compute_solutions(engine = 'sage') #doctest: +SKIP\n\n        Note that magma is significantly faster.\n\n        Compute all resulting complex volumes\n\n        >>> cvols ""= sols.complex_volume_numerical() #doctest: +SKIP\n        >>> cvols  #doctest: +SKIP\n        [[[-4.29405713186238 E-16 + 0.725471193740844*I,\n           -0.942707362776931 + 0.459731436553693*I,\n           0.942707362776931 + 0.459731436553693*I]],\n         [[3.94159248086745 E-15 + 0.312682687518267*I,\n           4.64549527022581 E-15 + 0.680993020093457*I,\n           -2.78183391239608 - 0.496837853805869*I,\n           2.78183391239608 - 0.496837853805869*I]]]\n\n        Show complex volumes as a non-nested list:\n\n        >>> cvols.flatten(depth=2) #doctest: +SKIP\n        [-4.29405713186238 E-16 + 0.725471193740844*I,\n         -0.942707362776931 + 0.459731436553693*I,\n         0.942707362776931 + 0.459731436553693*I,\n         3.94159248086745 E-15 + 0.312682687518267*I,\n         4.64549527022581 E-15 + 0.680993020093457*I,\n         -2.78183391239608 - 0.496837853805869*I,\n         2.78183391239608 - 0.496837853805869*I]\n\n        For more examples, go to http://ptolemy.unhyperbolic.org/\n\n        === Optional Arguments ===\n\n        obstruction_class --- class from Definition 1.7 of (1).\n        None for trivial class or a value returned from ptolemy_obstruction_classes.\n        Short cuts: obstruction_class = 'all' returns a list of Ptolemy varieties\n        for each obstruction. For easier iteration, can set obstruction_class to\n        an integer.\n\n        simplify --- boolean to indicate whether to simplify the equations which\n        significantly reduces the number of variables.\n        Simplifying means that several identified Ptolemy coordinates x = y = z = ...\n        are eliminated instead of adding relations x - y = 0, y - z = 0, ...\n\n        eliminate_fixed_ptolemys --- boolean to indicate whether to eliminate\n        the Ptolemy coordinates that are set to 1 for fixing the decoration.\n        Even though this simplifies the resulting representation, setting it to\n        True can cause magma to run longer when finding ""a Groebner basis.\n\n        === Examples for 4_1 ===\n\n        >>> M = Manifold(\"4_1\")\n\n        Get the varieties for all obstruction classes at once (use\n        help(varieties[0]) for more information):\n\n        >>> varieties = M.ptolemy_variety(2, obstruction_class = \"all\")\n\n        Print the variety as an ideal (sage object) for the non-trivial class:\n\n        >>> varieties[1].ideal    #doctest: +SKIP\n        Ideal (-c_0011_0^2 + c_0011_0*c_0101_0 + c_0101_0^2, -c_0011_0^2 - c_0011_0*c_0101_0 + c_0101_0^2, c_0011_0 - 1) of Multivariate Polynomial Ring in c_0011_0, c_0101_0 over Rational Field\n\n        Print the equations of the variety for the non-trivial class:\n\n        >>> for eqn in varieties[1].equations:\n        ...     print(eqn)          #doctest: +NORMALIZE_WHITESPACE\n             - c_0011_0 * c_0101_0 + c_0011_0^2 + c_0101_0^2\n             c_0011_0 * c_0101_0 - c_0011_0^2 - c_0101_0^2\n             - 1 + c_0011_0\n\n        Generate a magma file to compute Primary Decomposition for N = 3:\n\n        >>> p = M.ptolemy_variety(3)\n        >>> s = p.to_magma()\n        >>> print(s.split(\"ring and ideal\")[1].strip())     #doctest: +ELLIPSIS\n        R<c_0012_0, c_0012_1, c_0102_0, c_0111_0, c_0201_0, c_1011_0, c_1011_1, c_1101_0> := PolynomialRing(RationalField(), 8, \"grevlex\");\n        MyIdeal := ideal<R |\n                  c_0012_0 * c_1101_0 + c_0102_0 * c_0111_0 - c_0102_0 * c_1011_0,\n            ...\n\n        === If you have a magma installation ===\n\n        Call p.compute_solutions() to automatically call magma on the above output\n        and produce exact solutions!!!\n\n        >>> try:\n        ...     sols = p.compute_solutions()\n        ... except:\n        ...     # magma failed, use precomputed_solutions\n        ...     sols = None\n\n        Check solutions against manifold\n        >>> if sols:\n        ...     dummy = sols.check_against_manifold()\n\n        === If you do not have a magma installation ===""\n\n        Load a precomputed example from magma which is provided with the package:\n\n        >>> from snappy.ptolemy.processMagmaFile import _magma_output_for_4_1__sl3, solutions_from_magma\n        >>> print(_magma_output_for_4_1__sl3)      #doctest: +ELLIPSIS\n        <BLANKLINE>\n        ==TRIANGULATION=BEGINS==\n        % Triangulation\n        4_1\n        ...\n\n        Parse the file and produce solutions:\n\n        >>> sols = solutions_from_magma(_magma_output_for_4_1__sl3)\n\n        >>> dummy = sols.check_against_manifold()\n\n        === Continue here whether you have or do not have magma ===\n\n        Pick the first solution of the three different solutions (up to Galois\n        conjugates):\n\n        >>> len(sols)\n        3\n        >>> solution = sols[0]\n\n        Read the exact value for c_1020_0 (help(solution) for more information\n        on how to compute cross ratios, volumes and other invariants):\n\n        >>> solution['c_1020_0']\n        Mod(-1/2*x - 3/2, x^2 + 3*x + 4)\n\n        Example of simplified vs non-simplified variety for N = 4:\n\n        >>> simplified = M.ptolemy_variety(4, obstruction_class = 1)\n        >>> full = M.ptolemy_variety(4, obstruction_class = 1, simplify = False)\n        >>> len(simplified.variables), len(full.variables)\n        (21, 63)\n        >>> len(simplified.equations), len(full.equations)\n        (24, 72)\n        Manifold._canonical_cells_are_tetrahedra (line 249)Manifold._canonical_retriangulation (line 170)Manifold._from_bytes (line 283)Manifold._from_string (line 267)Manifold._is_isometric_to (line 1552)Manifold.browse (line 386)Manifold.canonize (line 146)Manifold.chern_simons (line 821)Manifold.copy (line 308)Manifold.cover (line 549)Manifold.covers (line 618)Manifold.cusp_info (line 1128)Manifold.cusp_neighborhood (line 320)Manifold.dehn_fillManifold.dehn_fill (line 1251)Manifold.dirichlet_domain (line 336)Manifold.drill (line 1505)Manifold.dual_curves (line 1403)Manifold.filled_triangul""ation (line 402)Manifold.fundamental_group (line 430)Manifold.is_two_bridge (line 1647)Manifold.length_spectrum (line 1469)Manifold must be pickled with _to_string.Manifold.set_peripheral_curvesManifold.set_peripheral_curves (line 1289)Manifold.set_tetrahedra_shapesManifold.solution_type (line 1063)Manifold.split (line 1768)Manifold.splitting_surfaces (line 1724)Manifold.symmetric_triangulation (line 528)Manifold.tetrahedra_shapes (line 878)Manifold.volume (line 728)Manifold.without_hyperbolic_structure (line 863)Manifolds must be non-empty.N has to be 2...15\nNew triangulation received from PLink!\nNo associated link known.No tetrahedra data providedNon-orientableNoneNot a valid permutationNot within SageNote that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.Number of opacities does not match.Number of permutations is not the same as the number of generators\n    Obsolete.\n    \n    Obsolete\n    Obstruction class has wrong length\n        Opens browser window with a graphical interface, which allows to\n        explore the manifold and interact with it.\n        This includes: invariants, Dirichlet domain, cusp neighborhoods,\n        inside view, symmetry, Dehn filling, drilling, etc.\n\n        >>> M = Manifold('m125')\n        >>> M.browse()  #doctest: +CYOPENGL\n\n        This does not work when using SnapPy in a Docker container.\n        Out of memory.\nPLink was not imported.(?P<crossings>[0-9]+)(?P<alternation>[an])(?P<index>[0-9]+)$(?P<crossings>[0-9]+)[\\^](?P<components>[0-9]+)[_](?P<index>[0-9]+)$(?P<crossings>[0-9]+)[_](?P<index>[0-9]+)[\\^](?P<components>[0-9]+)$\n        Perform random Pachner moves on the underlying triangulation,\n        including some initial 3 -> 2 moves that increase the number of\n        tetrahedra by blowup_multiple.\n\n        >>> M = Triangulation('Braid:[1,2,-3,-3,1,2]')\n        >>> M.randomize()""\n        Please specify a file name.Please specify 'filled' or 'complete'.Q: \nRelators:\n   \n        Removing any finite vertices by simplification and drilling.\n\n        >>> isosig = 'kLLLLMQkccfigghjijjlnabnwnpsii'\n        >>> T = Triangulation(isosig, remove_finite_vertices=False)\n        >>> T.triangulation_isosig(decorated=False) == isosig\n        True\n        >>> T.num_cusps(),  T._num_fake_cusps()\n        (0, 1)\n        >>> T._remove_finite_vertices()\n        >>> T.num_cusps(),  T._num_fake_cusps()\n        (1, 0)\n        \n    Represents an isometry from one manifold to another.\n    Result is symplectic (up to factors of 2)\n        Return a :class:`HolonomyGroup` representing the fundamental group of\n        the manifold, together with its holonomy representation.  If\n        integer Dehn surgery parameters have been set, then the\n        corresponding peripheral elements are killed.\n\n        >>> M = Manifold('m004')\n        >>> G = M.fundamental_group()\n        >>> G\n        Generators:\n           a,b\n        Relators:\n           aaabABBAb\n        >>> G.peripheral_curves()\n        [('ab', 'aBAbABab')]\n        >>> G.SL2C('baaBA') # doctest: +NUMERIC6\n        [ 2.50000000 - 2.59807621*I -6.06217783 - 0.50000000*I]\n        [ 0.86602540 - 2.50000000*I -4.00000000 + 1.73205081*I]\n\n        There are three optional arguments all of which default to True:\n\n        - simplify_presentation\n        - fillings_may_affect_generators\n        - minimize_number_of_generators\n\n        >>> M.fundamental_group(False, False, False)\n        Generators:\n           a,b,c\n        Relators:\n           CbAcB\n           BacA\n        \n        Return a detailed list of all the isometries in the symmetry group.\n\n        >>> S = Manifold('s959').symmetry_group()\n        >>> isoms = S.isometries()\n        >>> isoms[8]\n        0 -> 1   1 -> 0\n        [-1 -1]  [ 0  1]\n        [ 1  0]  [-1 -1]\n        Does not extend to link\n        ""\n        Return a list of info objects describing the short\n        geodesics up to the specified cutoff length.  The keys are\n        'length', 'parity', 'topology', and 'multiplicity'.  The\n        length is the complex length; the parity specifies whether\n        orientation is preserved; and topology distinguishes between\n        circles and mirrored intervals.  Finally, the key 'matrix'\n        in the fundamental group realizing this element.\n\n        >>> M = Manifold('m004(1,2)')\n        >>> D = M.dirichlet_domain(maximize_injectivity_radius=False)\n        >>> lengths = D.length_spectrum_dicts()\n        >>> len(lengths)\n        2\n        >>> lengths[0].matrix in D.pairing_matrices()\n        True\n\n        If the flag 'grouped' is False, then each geodesic is returned as\n        a separate item rather than collating by (length, parity, topology).\n        If the flag 'multiplicities' is False, then the geodesics *are*\n        collated but the multiplicity of each item is set to 0.\n\n        >>> M = Manifold('m003(-3, 1)')\n        >>> D = M.dirichlet_domain()\n        >>> [g.multiplicity for g in D.length_spectrum_dicts()]\n        [3, 3]\n        >>> [g.multiplicity for g in D.length_spectrum_dicts(grouped=False)]\n        [1, 1, 1, 1, 1, 1]\n        \n        Return a new Manifold where the specified cusps have been\n        permanently filled in.\n\n        Filling all the cusps results in a Triangulation rather\n        than a Manifold, since SnapPea can't deal with hyperbolic\n        structures when there are no cusps.\n\n        Examples:\n\n        >>> M = Manifold('m125(1,2)(3,4)')\n        >>> N = M.filled_triangulation()\n        >>> N.num_cusps()\n        0\n\n        Filling cusps 0 and 2 :\n\n        >>> M = Manifold('v3227(1,2)(3,4)(5,6)')\n        >>> M.filled_triangulation([0,2])\n        v3227_filled(3,4)\n        \n        Return a new manifold where the specified cusps have been\n        permanently filled in.  Examples:""\n\n        Filling all the cusps:\n\n        >>> M = Triangulation('m125(1,2)(3,4)')\n        >>> N = M.filled_triangulation()\n        >>> N.num_cusps()\n        0\n\n        Filling cusps 0 and 2 :\n\n        >>> M = Triangulation('v3227(1,2)(3,4)(5,6)')\n        >>> M.filled_triangulation([0,2])\n        v3227_filled(3,4)\n        \n        Return a reasonably short byte sequence which encodes the\n        combinatorics of this triangulation.\n        >>> M = Manifold('m125')\n        >>> seed = M._to_bytes()\n        >>> len(seed)\n        12\n        >>> N = Manifold('empty')\n        >>> N._from_bytes(seed)\n        >>> N == M\n        True\n        \n        Return a string containing the contents of a SnapPea triangulation\n        file.\n        >>> M = Manifold('7_4')\n        >>> seed = M._to_string()\n        >>> N = Manifold(seed)\n        >>> N == M\n        True\n        \n        Return the Dowker-Thistlethwaite code of this link complement,\n        if it is a link complement. The DT code is intended to be an\n        immutable attribute, for use with knot and link exteriors\n        only, which is set only when the manifold was created.\n\n        Here is the Whitehead link:\n\n        >>> M = Manifold('L5a1')\n        >>> M.DT_code()\n        [(6, 8), (2, 10, 4)]\n        >>> M.DT_code(alpha=True)\n        'ebbccdaeb'\n        >>> M.DT_code(alpha=True, flips=True)\n        'ebbccdaeb.01110'\n        >>> M.DT_code(flips=True)\n        ([(6, 8), (2, 10, 4)], [0, 1, 1, 1, 0])\n        \n        Return the abelianization of the symmetry group\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.abelianization()\n        Z/2 + Z/2\n        \n        Return the center of the symmetry group\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.center()\n        Z/2\n        \n        Return the commutator subgroup of the SymmetryGroup\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S\n        D4\n        >>""> S.commutator_subgroup()\n        Z/2\n        \n        Return the current generators in terms of the original\n        geometric generators. Note that by default fundamental_group()\n        returns a simplified presentation of the group.\n\n        If the flag \"raw_form\" is set to True, it returns a sequence of\n        instructions for expressing the current generators in terms of\n        the original ones.  This is sometimes much more concise, though\n        the format is somewhat obscure.  See the source code of this\n        function in fundamental_group.pyx for details.\n\n        >>> M = Manifold('K7_1')\n        >>> G = M.fundamental_group()\n        >>> G.generators_in_originals()   #doctest: +NORMALIZE_WHITESPACE\n        ['DBcACbABcaCbDBcACbABcaCbACbaBcaCbd',\n         'DBcACbABcaCbDBcACbABcaCbCbDBcACbABcaBcACbaBcaCbdACbaBcaCbdBcBcACbaBcaCbd']\n        \n        Return the letters representing the generators in the presentation.\n\n        >>> M = Manifold('9_42')\n        >>> G = M.fundamental_group() #Presentation simplified by default\n        >>> G\n        Generators:\n           a,b\n        Relators:\n           aaaabbABBBAbb\n        >>> H = M.fundamental_group(False) #Unsimplified presentation\n        >>> H\n        Generators:\n           a,b,c,d,e\n        Relators:\n           ECbC\n           dEb\n           dAcaB\n           dbaE\n\n        SnapPy stores a FundamentalGroup as a presentation of the group.\n        The following commands demonstrate how generators in the unsimplified\n        and simplified presentations above correspond:\n\n        >>> G.generators()\n        ['a', 'b']\n        >>> H.generators()\n        ['a', 'b', 'c', 'd', 'e']\n        >>> G.generators_in_originals()\n        ['BABcBcbCABcBcbCCbCba', 'BcBCbCbab']\n        >>> G.original_generators()\n        ['BBAbba', 'A', 'AB', 'abba', 'bba']\n        >>> G.num_generators()\n        2\n        >>> G.num_original_generators()\n        5\n        >>> H.num_genera""tors()\n        5\n        \n        Return the name of the triangulation.\n\n        >>> M = Triangulation('4_1')\n        >>> M.name()\n        '4_1'\n        \n        Return the number of tetrahedra in the triangulation.\n\n        >>> M = Triangulation('m004')\n        >>> M.num_tetrahedra()\n        2\n        \n        Return the order of the symmetry group\n\n        >>> S = Manifold('s000').symmetry_group()\n        >>> S.order()\n        4\n        \n        Return the original geometric generators (before\n        simplification) in terms of the current generators.\n\n        >>> M = Manifold('v0000')\n        >>> G = M.fundamental_group()\n        >>> G.original_generators(as_int_list=True)\n        [[1], [-1, -2, 1, 2], [-1, 2], [-2, -1, 2], [2]]\n        \n        Return the total number of cusps.  By giving the optional argument\n        'orientable' or 'nonorientable' it will only count cusps of that type.\n\n        >>> M = Triangulation('m125')\n        >>> M.num_cusps()\n        2\n        \n        Return whether a one-cusped has a symmetry that acts on the\n        cusp via the matrix -I.\n\n        >>> S = Manifold('m015').symmetry_group()\n        >>> S.is_invertible_knot()\n        True\n        \n        Return whether the SymmetryGroup is a nontrivial direct\n        product with at least one nonabelian factor.\n\n        >>> S = Manifold('s960').symmetry_group()\n        >>> S.is_direct_product()\n        True\n        >>> S\n        Z/4 x D3\n        \n        Return whether the full symmetry group has been found.\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.is_full_group()\n        True\n        \n        Return whether the manifold has an orientation reversing symmetry.\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.is_amphicheiral()\n        True\n        \n        Return whether the symmetry group is abelian.\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.is_abelian()""\n        False\n        \n        Return whether the symmetry group is dihedral.\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.is_dihedral()\n        True\n        \n        Return whether the underlying 3-manifold is orientable.\n\n        >>> M = Triangulation('x124')\n        >>> M.is_orientable()\n        False\n        \n        Returns ``True`` if M and N are isometric, ``False`` if they not.\n        A ``RuntimeError`` is raised in cases where the SnapPea kernel fails\n        to determine either answer.  (This is fairly common for closed\n        manifolds.)\n\n        >>> M = Manifold('m004')\n        >>> N = Manifold('4_1')\n        >>> K = Manifold('5_2')\n        >>> M.is_isometric_to(N)\n        True\n        >>> N.is_isometric_to(K)\n        False\n\n        We can also get a complete list of isometries between the two\n        manifolds:\n\n        >>> M = Manifold('5^2_1')  # The Whitehead link\n        >>> N = Manifold('m129')\n        >>> isoms = M.is_isometric_to(N, return_isometries = True)\n        >>> isoms[6]  # Includes action on cusps\n        0 -> 1  1 -> 0\n        [1  2]  [-1 -2]\n        [0 -1]  [ 0  1]\n        Extends to link\n\n        Each transformation between cusps is given by a matrix which\n        acts on the left.  That is, the two *columns* of the matrix\n        give the image of the meridian and longitude respectively.  In\n        the above example, the meridian of cusp 0 is sent to the\n        meridian of cusp 1.\n\n        Note: The answer ``True`` is rigorous, but the answer ``False`` may\n        not be as there could be numerical errors resulting in finding\n        an incorrect canonical triangulation.\n        \n        Returns ``True`` if and only if the triangulation has finite (non-ideal)\n        vertices.\n\n        >>> T = Triangulation(\"m004\")\n        >>> T.has_finite_vertices()\n        False\n        >>> T.dehn_fill((12,13))\n        >>> S = T.filled_triangulation()\n        >>> S"".has_finite_vertices()\n        True\n\n        When trying to find a hyperbolic structure, SnapPea will eliminate\n        finite vertices:\n\n        >>> M = S.with_hyperbolic_structure()\n        >>> M.has_finite_vertices()\n        False\n        \n        Returns True if and only if the canonical\n        cell decomposition is a triangulation.\n\n        >>> Manifold('K4a1')._canonical_cells_are_tetrahedra()\n        True\n        >>> Manifold('L6a4')._canonical_cells_are_tetrahedra()\n        False\n        \n        Returns a Dehn filling description of the manifold realizing\n        the symmetry group.\n\n        >>> M = Manifold('m003(-3,1)')\n        >>> M.symmetry_group()\n        D6\n        >>> N = M.symmetric_triangulation()\n        >>> N\n        m003(1,0)(1,0)(1,0)\n        >>> N.dehn_fill( [(0,0), (0,0), (0,0)] )\n        >>> N.symmetry_group(of_link=True)\n        D6\n        \n        Returns a Manifold computed directly from the Dirichlet\n        domain, regarded as polyhedron with faces identified in pairs.\n        Only works if this gives a manifold not an orbifold.\n\n        >>> M = Manifold('7_3')\n        >>> D = M.dirichlet_domain()\n        >>> A = D.manifold()\n        >>> M.is_isometric_to(A)\n        True\n\n        \n        Returns a NeumannZagierTypeEquations object that contains a matrix\n        encoding the gluing equations for boundary-parabolic PGL(N,C)\n        representations together with explanations of the meaning\n        of the rows and the columns of the matrix.\n\n        This method generalizes gluing_equations() to PGL(N,C)-representations\n        as described in\n        Stavros Garoufalidis, Matthias Goerner, Christian K. Zickert:\n        \"Gluing Equations for PGL(n,C)-Representations of 3-Manifolds\"\n        (http://arxiv.org/abs/1207.6711).\n\n        The result of the :meth:`gluing_equations` can be obtained from\n        the general method by:\n\n        >>> M = Triangulation('m004')\n        >>> M.glui""ng_equations_pgl().matrix\n        [ 2  1  0  1  0  2]\n        [ 0  1  2  1  2  0]\n        [ 1  0  0  0 -1  0]\n        [ 0  0  0  0 -2  2]\n\n        But besides the matrix, the method also returns explanations of\n        the columns and rows:\n\n        >>> M = Triangulation(\"m004\")\n        >>> M.gluing_equations_pgl()\n        NeumannZagierTypeEquations(\n          [ 2  1  0  1  0  2]\n          [ 0  1  2  1  2  0]\n          [ 1  0  0  0 -1  0]\n          [ 0  0  0  0 -2  2],\n          explain_columns = ['z_0000_0', 'zp_0000_0', 'zpp_0000_0', 'z_0000_1', 'zp_0000_1', 'zpp_0000_1'],\n          explain_rows = ['edge_0_0', 'edge_0_1', 'meridian_0_0', 'longitude_0_0'])\n\n        The first row of the matrix means that the edge equation for\n        edge 0 is\n\n        .. math::\n\n           {z_{0000,0}}^2 * z'_{0000,0} * z_{0000,1} * {z''_{0000,1}}^2 = 1.\n\n        Similarly, the next row encodes the edge equation for the other edge\n        and the next two rows encode peripheral equations.\n\n        Following the SnapPy convention, a ``z`` denotes the cross ratio\n        :math:`z` at the edge (0,1), a ``zp`` the cross ratio :math:`z'` at\n        the edge (0,2) and a ``zpp`` the cross\n        ratio :math:`z''` at the edge (1,2). The entire symbol ``z_xxxx_y`` then\n        denotes the cross ratio belonging to the subsimplex at integral\n        point ``xxxx`` (always ``0000`` for ``N = 2``) of the simplex ``y``.\n\n        Note: the SnapPy convention is different from the paper\n        mentioned above, e.g., compare\n        kernel_code/edge_classes.c with Figure 3. We follow the SnapPy\n        convention here so that all computations done in SnapPy are\n        consistent.\n\n        The explanations of the rows and columns can be obtained explicitly by:\n\n        >>> M.gluing_equations_pgl(N = 3, equation_type = 'peripheral').explain_rows\n        ['meridian_0_0', 'meridian_1_0', 'longitude_0_0', 'longitude_1_0']\n        >>> M.gluing_equations_p""gl(N = 2).explain_columns\n        ['z_0000_0', 'zp_0000_0', 'zpp_0000_0', 'z_0000_1', 'zp_0000_1', 'zpp_0000_1']\n\n        A subset of all gluing equations can be obtained by setting the\n        ``equation_type``:\n\n        * all gluing equations: ``all``\n        * non-peripheral equations: ``non_peripheral``\n\n          * edge gluing equations: ``edge``\n          * face gluing equations: ``face``\n          * internal gluing equations: ``internal``\n\n        * cusp gluing equations: ``peripheral``\n\n          * cusp gluing equations for meridians: ``meridian``\n          * cusp gluing equations for longitudes: ``longitude``\n        \n        Returns a Triangulation computed directly from the Dirichlet\n        domain, regarded as polyhedron with faces identified in pairs.\n        Only works if this gives a manifold not an orbifold.\n\n        >>> M = Manifold('7_3')\n        >>> D = M.dirichlet_domain()\n        >>> B = D.triangulation()\n        >>> M.is_isometric_to(B.with_hyperbolic_structure())\n        True\n\n        \n        Returns a :class:`DirichletDomain` object representing a Dirichlet\n        domain of the hyperbolic manifold, typically centered at a\n        point which is a local maximum of injectivity radius.  It will\n        have ideal vertices if the manifold is not closed.\n\n        >>> M = Manifold('m015')\n        >>> D = M.dirichlet_domain()\n        >>> D\n        32 finite vertices, 2 ideal vertices; 54 edges; 22 faces\n        >>> D.view()   #Shows 3d-graphical view.  #doctest: +CYOPENGL\n\n        The group elements for the face-pairings of the Dirichlet domain\n        can be given as words in the original generators of the\n        (unsimplified) fundamental group by setting :attr:`include_words = True`:\n\n        >>> sorted(M.dirichlet_domain(include_words = True).pairing_words()) #doctest: +ELLIPSIS\n        ['A', ...]\n\n        Other options can be provided to customize the computation;\n        the default choices ar""e shown below:\n\n        >>> M.dirichlet_domain(vertex_epsilon=10.0**-8,\n        ...    displacement = [0.0, 0.0, 0.0],\n        ...    centroid_at_origin=True, maximize_injectivity_radius=True)\n        32 finite vertices, 2 ideal vertices; 54 edges; 22 faces\n\n        Here's one with different combinatorics:\n\n        >>> E = M.dirichlet_domain(displacement=[0.5, 0.3, -0.2],\n        ...                        maximize_injectivity_radius=False)\n        >>> E\n        44 finite vertices, 1 ideal vertices; 69 edges; 26 faces\n        \n        Returns a :class:`FundamentalGroup` object representing the fundamental\n        group of the manifold.  If integer Dehn surgery parameters\n        have been set, then the corresponding peripheral elements are\n        killed.\n\n        >>> M = Triangulation('m004')\n        >>> G = M.fundamental_group()\n        >>> G\n        Generators:\n           a,b\n        Relators:\n           aaabABBAb\n        >>> G.peripheral_curves()\n        [('ab', 'aBAbABab')]\n\n        There are four optional arguments all of which default to True:\n\n        - simplify_presentation\n        - fillings_may_affect_generators\n        - minimize_number_of_generators\n        - try_hard_to_shorten_relators\n\n        >>> M.fundamental_group(False, False, False)\n        Generators:\n           a,b,c\n        Relators:\n           CbAcB\n           BacA\n        \n        Returns a :class:`Manifold` representing the finite cover specified by a\n        transitive permutation representation.  The representation is\n        specified by a list of permutations, one for each generator of the\n        simplified presentation of the fundamental group.  Each permutation is\n        specified as a list ``P`` such such that ``set(P) == set(range(d))``\n        where ``d`` is the degree of the cover.\n\n        >>> M = Manifold('m004')\n        >>> N0 = M.cover([[1, 3, 0, 4, 2], [0, 2, 1, 4, 3]])\n        >>> abs(N0.volume()/M.volume() - 5) < 0.0000""000001\n        True\n\n\n        If within SageMath, the permutations can also be of type\n        ``PermutationGroupElement``, in which case they act on the set\n        ``range(1, d + 1)``.  Or, you can specify a GAP or Magma subgroup\n        of the fundamental group.     Some examples::\n\n          sage: M = Manifold('m004')\n\n        The basic method::\n\n          sage: N0 = M.cover([[1, 3, 0, 4, 2], [0, 2, 1, 4, 3]])\n\n        From a Gap subgroup::\n\n          sage: G = gap(M.fundamental_group())\n          sage: H = G.LowIndexSubgroupsFpGroup(5)[9]\n          sage: N1 = M.cover(H)\n          sage: N0 == N1\n          True\n\n        Or a homomorphism to a permutation group::\n\n          sage: f = G.GQuotients(PSL(2,7))[1]\n          sage: N2 = M.cover(f)\n          sage: N2.volume()/M.volume() # doctest: +NUMERIC9\n          8.00000000\n\n        Or maybe we want larger cover coming from the kernel of this::\n\n          sage: N3 = M.cover(f.Kernel())\n          sage: N3.volume()/M.volume() # doctest: +NUMERIC9\n          168.00000000\n\n        Check the homology against what Gap computes directly::\n\n          sage: N3.homology().betti_number()\n          32\n          sage: len([ x for x in f.Kernel().AbelianInvariants().sage() if x == 0])\n          32\n\n        We can do the same for Magma::\n\n          sage: G = magma(M.fundamental_group())             #doctest: +SKIP\n          sage: Q, f = G.pQuotient(5, 1, nvals = 2)          #doctest: +SKIP\n          sage: M.cover(f.Kernel()).volume()                 #doctest: +SKIP\n          10.14941606\n          sage: h = G.SimpleQuotients(1, 11, 2, 10000)[1,1]  #doctest: +SKIP\n          sage: N4 = M.cover(h)                              #doctest: +SKIP\n          sage: N2 == N4                                     #doctest: +SKIP\n          True\n        \n        Returns a :class:`Triangulation` representing the finite cover specified\n        by a transitive permutation representation.  The represe""ntation is\n        specified by a list of permutations, one for each generator of the\n        simplified presentation of the fundamental group.  Each permutation is\n        specified as a list ``P`` such that ``set(P) == set(range(d))`` where\n        ``d`` is the degree of the cover.\n\n        >>> M = Triangulation('m004')\n        >>> N0 = M.cover([[1, 3, 0, 4, 2], [0, 2, 1, 4, 3]])\n        >>> N0.homology()\n        Z + Z + Z\n        >>> N0.cover_info()['type']\n        'irregular'\n        >>> N0.cover_info()['base']\n        'm004'\n        >>> N0.cover_info()['degree']\n        5\n\n        Within Sage the permutations can also be of type\n        ``PermutationGroupElement``, in which case they act on the set\n        ``range(1, d + 1)``.  Or, you can specify a GAP or Magma subgroup\n        of the fundamental group.  For more examples, see the docstring for\n        :meth:`Manifold.cover`.\n        \n        Returns a complete list of combinatorial isomorphisms between\n        the two triangulations:\n\n        >>> M = Manifold('5^2_1')\n        >>> N = Manifold('5^2_1')\n        >>> N.set_peripheral_curves([[[2,3],[-1,-1]],[[1,1],[0,1]]])\n        >>> isoms = M.isomorphisms_to(N)\n        >>> isoms[6]\n        0 -> 1  1 -> 0\n        [ 1 0]  [-1 1]\n        [-1 1]  [-3 2]\n        Does not extend to link\n\n        Each transformation between cusps is given by a matrix which\n        acts on the left.  That is, the two *columns* of the matrix\n        give the image of the meridian and longitude respectively.  In\n        the above example, the meridian of cusp 0 is sent to the\n        meridian of cusp 1.\n        \n        Returns a copy of the manifold\n\n        >>> M = Manifold('m015')\n        >>> N = M.copy()\n        \n        Returns a copy of the triangulation.\n\n        >>> M = Triangulation('m125')\n        >>> N = M.copy()\n        \n        Returns a dictionary whose keys are the valences of the edges\n        in the triangulation, and ""the value associated to a key is the\n        number of edges of that valence.\n\n        >>> M = Triangulation('v3227')\n        >>> M.edge_valences()     # doctest: +SKIP\n        {10: 1, 4: 1, 5: 2, 6: 3}\n        \n        Returns a list of Triangulations corresponding to all of the\n        finite covers of the given degree.  The default method is\n        'low_index' for general covers and 'snappea' for cyclic\n        covers.  The former uses Sim's algorithm while the latter\n        uses the original Snappea algorithm.\n\n        WARNING: If the degree is large this might take a very, very,\n        very long time.\n\n        >>> M = Triangulation('m003')\n        >>> covers = M.covers(4)\n        >>> sorted(N.homology() for N in covers)\n        [Z/3 + Z/15 + Z, Z/5 + Z + Z]\n\n        It is faster to look just at cyclic covers.\n\n        >>> covers = M.covers(4, cover_type='cyclic')\n        >>> [(N, N.homology()) for N in covers]\n        [(m003~cyc~0(0,0), Z/3 + Z/15 + Z)]\n\n        Here we check that we get the same number of covers with the\n        'snappea' and 'low_index' methods.\n\n        >>> M = Triangulation('m125')\n        >>> len(M.covers(5))\n        19\n        >>> len(M.covers(5, method='snappea'))\n        19\n\n        If you are using Sage, you can use GAP to find the subgroups,\n        which is often much faster, by specifying the optional\n        argument method = 'gap' If you have Magma installed, you can\n        used it to do the heavy lifting by specifying method='magma'.\n        \n        Returns a list of :class:`Manifold`\\ s corresponding to all of the\n        finite covers of the given degree.  The default method is\n        'low_index' for general covers and 'snappea' for cyclic\n        covers.  The former uses Sim's algorithm while the latter\n        uses the original Snappea algorithm.\n\n        WARNING: If the degree is large this might take a very, very,\n        very long time.\n\n        >>> M = Manifold('m00""3')\n        >>> covers = M.covers(4)\n        >>> sorted(N.homology() for N in covers)\n        [Z/3 + Z/15 + Z, Z/5 + Z + Z]\n\n        It is faster to look just at cyclic covers.\n\n        >>> covers = M.covers(4, cover_type='cyclic')\n        >>> [(N, N.homology()) for N in covers]\n        [(m003~cyc~0(0,0), Z/3 + Z/15 + Z)]\n\n        Here we check that we get the same number of covers with the\n        'snappea' and 'low_index' methods.\n\n        >>> M = Manifold('m125')\n        >>> len(M.covers(5))\n        19\n        >>> len(M.covers(5, method='snappea'))\n        19\n\n        If you are using Sage, you can use GAP to find the subgroups,\n        which is often much faster, by specifying the optional\n        argument method = 'gap' If you have Magma installed, you can\n        used it to do the heavy lifting by specifying method='magma'.\n        \n        Returns a list of geodesics (with multiplicities) of length\n        up to the specified cutoff value. (The default cutoff is 1.0.)\n\n        Here's a quick example:\n\n        >>> L = Manifold(\"m016\").length_spectrum(0.75, include_words=True)\n        >>> L # doctest: +SKIP\n        mult  length                                  topology     parity word\n        1     0.58460368501799 +  2.49537045556047*I  circle       +      a\n        1     0.72978937305180 +  3.02669828218116*I  circle       +      Bc\n\n        Access just the length:\n\n        >>> L[0].length # doctest: +NUMERIC6\n        0.584603685017987 + 2.495370455560469*I\n        \n        Returns a list of meridian-longitude pairs for all cusps.\n\n        >>> G = Manifold('m125').fundamental_group()\n        >>> G.peripheral_curves()\n        [('aaba', 'abb'), ('baaba', 'Ba')]\n        \n        Returns a list of the O31Matrices which pair the faces of\n        this DirichletDomain.\n\n        >>> M = Manifold('s345')\n        >>> D = M.dirichlet_domain()\n        >>> matrices = D.pairing_matrices()\n        >>> D1 = DirichletDoma""in(O31_generators=matrices)\n        >>> N = D1.manifold()\n        >>> M.is_isometric_to(N)\n        True\n        \n        Returns a list of variables and a list polynomials where the\n        polynomials generate the ideal defining the SL(2, C) character\n        variety of this group.  Each variable is of the form \"Tw\" where\n        \"w\" is a word in the generators and \"Tw\" represents the trace\n        function of that word.\n\n        >>> H = Manifold('dLQacccbjkg')  # Hopf link exterior.\n        >>> G = H.fundamental_group()\n        >>> vars, polys = G.character_variety_vars_and_polys()\n        >>> vars\n        [Ta, Tb, Tab]\n        >>> polys    # doctest: +NORMALIZE_WHITESPACE\n        [Ta^3 - Tab*Tb*Ta^2 + (Tb^2 + (Tab^2 - 4))*Ta,\n         Ta^2 - Tab*Tb*Ta + (Tb^2 + (Tab^2 - 4))]\n\n        When used inside Sage, you can ask for the answer as a proper\n        ideal::\n\n          sage: M = Manifold('m000')  # Gieseking manifold\n          sage: G = M.fundamental_group()\n          sage: I = G.character_variety_vars_and_polys(as_ideal=True)\n          sage: I\n          Ideal (-Ta^3*Tb^2*Tab + Ta^4*Tb + Ta^2*Tb^3 + Ta^2*Tb*Tab^2 + Ta*Tb^2*Tab - 5*Ta^2*Tb - Tb^3 - Tb*Tab^2 + Ta*Tab - Ta + 3*Tb, Tb*Tab - Ta - Tb, -Ta^2*Tb^2*Tab + Ta^3*Tb + Ta*Tb^3 + Ta*Tb*Tab^2 - 4*Ta*Tb + Tab - 2) of Multivariate Polynomial Ring in Ta, Tb, Tab over Rational Field\n          sage: I.dimension()\n          1\n\n        \n        Returns a string which will define this group within GAP:\n\n        >>> M = Manifold('b++LLR')\n        >>> G = M.fundamental_group()\n        >>> G\n        Generators:\n           a,b\n        Relators:\n           aaaaBAbbAB\n        >>> G.gap_string()\n        'CallFuncList(function() local F, a, b; F := FreeGroup(\"a\", \"b\"); a := F.1; b := F.2;   return F/[a*a*a*a*b^-1*a^-1*b*b*a^-1*b^-1]; end,[])'\n        >>> G.magma_string()\n        'Group<a,b|a*a*a*a*b^-1*a^-1*b*b*a^-1*b^-1>'\n        \n        Returns a word representing a c""onjugate of the current\n        meridian for the given cusp.  Guaranteed to commute with the\n        longitude for the same cusp.\n\n        >>> G = Manifold('m125').fundamental_group()\n        >>> G.meridian(0)\n        'aaba'\n        >>> G.meridian(-1)  # The last cusp\n        'baaba'\n        \n        Returns a word representing a conjugate of the current\n        longitude for the given cusp.  Guaranteed to commute with the\n        meridian for the same cusp.  Note: for Klein bottle cusps,\n        the longitude must be defined carefully.\n\n        >>> G = Manifold('m004').fundamental_group()\n        >>> G.longitude(0)\n        'aBAbABab'\n        >>> G.longitude()   # shortcut for the above.\n        'aBAbABab'\n        \n        Returns an :class:`AbelianGroup` representing the first integral\n        homology group of the underlying (Dehn filled) manifold.\n\n        >>> M = Triangulation('m003')\n        >>> M.homology()\n        Z/5 + Z\n\n        \n        Returns an info object containing information about the given\n        cusp.   Usage:\n\n        >>> M = Triangulation('v3227(0,0)(1,2)(3,2)')\n        >>> M.cusp_info(1)\n        Cusp 1 : torus cusp with Dehn filling coefficients (M, L) = (1.0, 2.0)\n        >>> c = M.cusp_info(1)\n        >>> c.is_complete\n        False\n        >>> sorted(c.keys())\n        ['filling', 'index', 'is_complete', 'topology']\n\n        You can get information about multiple cusps at once:\n\n        >>> M.cusp_info()\n        [Cusp 0 : torus cusp, not filled,\n         Cusp 1 : torus cusp with Dehn filling coefficients (M, L) = (1.0, 2.0),\n         Cusp 2 : torus cusp with Dehn filling coefficients (M, L) = (3.0, 2.0)]\n        >>> M.cusp_info('is_complete')\n        [True, False, False]\n        \n        Returns an info object containing information about the given\n        cusp.   Usage:\n\n        >>> M = Manifold('v3227(0,0)(1,2)(3,2)')\n        >>> M.cusp_info(1)\n        Cusp 1 : torus cusp with Dehn fil""ling coefficients (M, L) = (1.0, 2.0)\n\n        To get more detailed information about the cusp, we do\n\n        >>> c = M.cusp_info(0)\n        >>> c.shape # doctest: +NUMERIC6\n        0.11044502 + 0.94677098*I\n        >>> c.modulus# doctest: +NUMERIC6\n        -0.12155872 + 1.04204128*I\n        >>> sorted(c.keys())\n        ['filling', 'holonomies', 'holonomy_accuracy', 'index', 'is_complete', 'modulus', 'shape', 'shape_accuracy', 'topology']\n\n        Here 'shape' is the shape of the cusp, i.e.\n        (longitude/meridian)\n        and 'modulus' is its shape in the geometrically preferred\n        basis, i.e.\n        ( (second shortest translation)/(shortest translation)).\n        For cusps that are filled, one instead cares about the\n        holonomies:\n\n        >>> M.cusp_info(-1)['holonomies'] # doctest: +NUMERIC6\n        (-0.59883089 + 1.09812548*I, 0.89824633 + 1.49440443*I)\n\n        The complex numbers returned for the shape and for the two\n        holonomies have an extra attribute, accuracy, which is\n        SnapPea's *estimate* of their accuracy.\n\n        You can also get information about multiple cusps at once:\n\n        >>> M.cusp_info() # doctest: +NUMERIC6\n        [Cusp 0 : complete torus cusp of shape 0.11044502 + 0.94677098*I,\n         Cusp 1 : torus cusp with Dehn filling coefficients (M, L) = (1.0, 2.0),\n         Cusp 2 : torus cusp with Dehn filling coefficients (M, L) = (3.0, 2.0)]\n        >>> M.cusp_info('is_complete')\n        [True, False, False]\n\n        The cusp shapes can be verified::\n\n            sage: M = Manifold('m292')\n            sage: M.cusp_info('shape', verified = True, bits_prec = 60) # doctest: +NUMERIC12\n            [-0.1766049820997? + 1.2028208192855?*I,\n             -0.1766049820997? + 1.2028208192855?*I]\n\n        \n        Returns information about the cusp neighborhoods of the\n        manifold, in the form of data about the corresponding horoball\n        diagrams in hyperbolic 3-space.""\n\n        >>> M = Manifold('s000')\n        >>> CN = M.cusp_neighborhood()\n        >>> CN.volume() # doctest: +NUMERIC6\n        0.32475953\n        >>> len(CN.horoballs(0.01))\n        178\n        >>> CN.view()  # Opens picture of the horoballs  #doctest: +CYOPENGL\n        \n        Returns self as a :class:`Triangulation`, forgetting the hyperbolic\n        structure in the process.\n\n        >>> M = Manifold('9_42')\n        >>> T = M.without_hyperbolic_structure()\n        >>> hasattr(T, 'volume')\n        False\n        \n        Returns the Chern-Simons invariant of the manifold (normalized by\n        dividing it by :math:`2 \\pi^2`), if it is known.\n\n        >>> M = Manifold('m015')\n        >>> M.chern_simons() # doctest: +NUMERIC6\n        -0.15320413\n\n        The return value has an extra attribute, accuracy, which\n        is the number of digits of accuracy as *estimated* by SnapPea.\n\n        >>> cs, accuracy = M.chern_simons(accuracy = True)\n        >>> accuracy in (8, 9, 56, 57) # Low and High precision\n        True\n\n        By default, when the manifold has at least one cusp, Zickert's\n        algorithm is used; when the manifold is closed we use SnapPea's\n        original algorithm, which is based on Meyerhoff-Hodgson-Neumann.\n\n        Note: When computing the Chern-Simons invariant of a closed\n        manifold, one must sometimes compute it first for the unfilled\n        manifold so as to initialize SnapPea's internals.  For instance,\n\n        >>> M = Manifold('5_2')\n        >>> M.chern_simons() # doctest: +NUMERIC6\n        -0.15320413\n        >>> M.dehn_fill( (1,2) )\n        >>> M.chern_simons() # doctest: +NUMERIC6\n        0.07731787\n\n        works, but will fail with\n        ``ValueError: The Chern-Simons invariant isn't currently known.``\n        if the first call to chern_simons is not made.\n        \n        Returns the \"(decorated) isomorphism signature\", a compact text\n        representation of the trian""gulation::\n\n          >>> T = Triangulation('m004')\n          >>> T.triangulation_isosig()\n          'cPcbbbiht_BaCB'\n\n        This string can be used later to recreate an isomorphic triangulation::\n\n          >>> U = Triangulation('cPcbbbiht_BaCB')\n          >>> T == U\n          True\n\n        The isomorphism signature is also used to compute the\n        :meth:`isometry_signature <snappy.Manifold.isometry_signature>`.\n        It comes in two flavors controlled by the :attr:`decorated` flag.\n\n        **Undecorated isomorphism signature**\n\n        The undecorated isomorphism signature is a complete invariant of the\n        (oriented) triangulation up to combinatorial isomorphism::\n\n            >>> T = Triangulation('m015')\n            >>> T.triangulation_isosig(decorated=False)\n            'dLQbcccdero'\n\n        It was introduced in\n        `Burton '11 <http://arxiv.org/abs/1110.6080>`_. It canonizes and\n        generalizes the ealier dehydration string by\n        `Callahan, Hildebrand and Weeks '99\n        <https://doi.org/10.1090/S0025-5718-99-01036-4>`_.\n        The undecorated isomorphism signature can also be given to\n        `Regina <https://regina-normal.github.io/>`_'s\n        ``Triangulation3.fromIsoSig``.\n\n        By default, the orientation (if orientable) is ignored. More\n        precisely, it computes the string for both orientations (if orientable)\n        and uses the lexicographically smaller string::\n\n            >>> T = Triangulation('m015')\n            >>> T.triangulation_isosig(decorated=False)\n            'dLQbcccdero'\n            >>> T.reverse_orientation()\n            >>> T.triangulation_isosig(decorated=False)\n            'dLQbcccdero'\n\n        When specifying :attr:`ignore_orientation = False`, the result\n        encodes the orientation (if orientable). Now the result is\n        different if we change the orientation of a chiral triangulation::\n\n            >>> T = Triangulation('m015')\n       ""     >>> T.triangulation_isosig(decorated=False, ignore_orientation=False)\n            'dLQbcccdero'\n            >>> T.reverse_orientation()\n            >>> T.triangulation_isosig(decorated=False, ignore_orientation=False)\n            'dLQbccceekg'\n\n        **Decorated isomorphism signature (default)**\n\n        SnapPy can decorate the isomorphism signature to include the following\n        peripheral information in a canonical way (that is invariant under\n        the action by combinatorial isomorphisms of the triangulation):\n\n        #. Indexing of the cusps (that is, ideal vertices).\n\n           * Included by default.\n             Can be suppressed with :attr:`ignore_cusp_ordering = True`.\n\n        #. Peripheral curves (aka meridian and longitude, up to homotopy).\n\n           * Included by default.\n             Can be suppressed with :attr:`ignore_curves = True`.\n           * By default, the decoration encodes the oriented peripheral curves.\n             By specifying :attr:`ignore_curve_orientations = True`, it encodes\n             the unoriented peripheral curves instead.\n\n        #. Dehn-fillings and orientation of core curve (if present).\n\n           * By default, the decoration encodes the Dehn-fillings and the\n             orientation of the core curve.\n             That is, we encode the (unoriented) peripheral curve that is\n             used for the Dehn-filling as well as the orientation of the class\n             of peripheral curves intersecting that peripheral curve ones\n             (this explanation only works if the coefficients are co-prime\n             integers). Note that this behavior has changed in Version 3.3.\n             By specifying :attr:`ignore_filling_orientations = True`, the\n             decoration encodes the Dehn-fillings without any regard to\n             orientation.\n             That is, it normalizes the Dehn-filling coefficients by picking\n             a canonical pair among :math:`(m,l)` and"" :math:`(-m,-l)`.\n\n        Details of the encoding are explained in the\n        `SnapPy source code <https://github.com/3-manifolds/SnapPy/blob/master/python/decorated_isosig.py>`_.\n\n        **Example**\n\n        Let us consider the links :math:`9^2_{34}` and ``L9a21``. Note that we use\n        :meth:`canonical_retriangulation <snappy.Manifold.canonical_retriangulation>`\n        to make the following examples say something intrinsic about the\n        hyperbolic manifold::\n\n          >>> from snappy import Manifold\n          >>> M = Manifold('9^2_34').canonical_retriangulation()\n          >>> N = Manifold('L9a21').canonical_retriangulation()\n\n        The decorated isosig recovers the entire peripheral information faithfully\n        (including orientation, see below)::\n\n          >>> M.triangulation_isosig()\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_baBabbbBbC'\n          >>> K = Triangulation('oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_baBabbbBbC')\n          >>> M.isomorphisms_to(K)\n          [0 -> 0  1 -> 1\n          [1 0]   [1 0]\n          [0 1]   [0 1]\n          Extends to link]\n\n        The two links have isometric complements::\n\n          >>> M.triangulation_isosig(decorated=False)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo'\n          >>> N.triangulation_isosig(decorated=False)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo'\n\n        However, the complements have different handedness::\n\n          >>> M.triangulation_isosig(decorated=False,ignore_orientation=False)\n          'oLLzLPwzQQccdeghjiiklmnmnnuvuvvavovvffffo'\n          >>> N.triangulation_isosig(decorated=False,ignore_orientation=False)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo'\n\n        Also, the cusps/components of the link are indexed differently::\n\n          >>> M.triangulation_isosig(ignore_curves=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_ba'\n          >>> N.triangulation_isosig(ignore_curves=True)\n   ""       'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_ab'\n\n        Ignoring the indexing, we also see that the oriented merdians and\n        longitudes do not match::\n\n          >>> M.triangulation_isosig(ignore_cusp_ordering=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_bBbCBabb'\n          >>> N.triangulation_isosig(ignore_cusp_ordering=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_BbbCbabb'\n\n        However, they are the same links (ignoring indexing and orientation)::\n\n          >>> M.triangulation_isosig(ignore_cusp_ordering=True, ignore_curve_orientations=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_bBBcbabb'\n          >>> N.triangulation_isosig(ignore_cusp_ordering=True, ignore_curve_orientations=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo_bBBcbabb'\n\n        Let us create two surgery presentations from the links (note that we\n        fill after\n        :meth:`canonical_retriangulation <snappy.Manifold.canonical_retriangulation>`\n        since it rejects Dehn-fillings)::\n\n          >>> M.dehn_fill((4, 5),0)\n          >>> N.dehn_fill((4,-5),1)\n\n        They are equivalent surgery presentations (of the same manifold)::\n\n          >>> M.triangulation_isosig(\n          ...         ignore_cusp_ordering=True,\n          ...         ignore_curves=True,\n          ...         ignore_filling_orientations=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo(0,0)(1,5)'\n          >>> N.triangulation_isosig(\n          ...         ignore_cusp_ordering=True,\n          ...         ignore_curves=True,\n          ...         ignore_filling_orientations=True)\n          'oLLvzQLLQQccdhifihnlmkmlnnpvuvbvouggbggoo(0,0)(1,5)'\n\n        A geometric spun-triangulation of the three-fold cover of m007(3,1)::\n\n          >>> M = Manifold('gLLMQcbeefefujumapn(2,-1)')\n          >>> M.solution_type()\n          'all tetrahedra positively oriented'\n\n        Specifying :attr:`ignore_filling_orientati""ons = True` can change the\n        orientation of the core curve and a triangulation spinning the other\n        way that fails to be geometric::\n\n          >>> isosig = M.triangulation_isosig(\n          ...         ignore_orientation=False,\n          ...         ignore_curves=True,\n          ...         ignore_filling_orientations=True,\n          ...         ignore_cusp_ordering=True)\n          >>> isosig\n          'gLLMQcbeefefujumapn(-2,1)'\n          >>> Manifold(isosig).solution_type()\n          'contains negatively oriented tetrahedra'\n\n        Preserve the unoriented spun-triangulation structure including the\n        direction it is spinning::\n\n          >>> isosig = M.triangulation_isosig(\n          ...         ignore_cusp_ordering=True,\n          ...         ignore_curves=True)\n          >>> isosig\n          'gLLMQcbeefefpjaqupw(1,1)'\n          >>> Manifold(isosig).solution_type()\n          'all tetrahedra positively oriented'\n\n        **Orientation**\n\n        Note that :attr:`ignore_orientation=True` only applies to the undecorated\n        part of the isomorphism signature. The decoration can still capture the\n        the orientation.\n        More, precisely, the result of :meth:`.triangulation_isosig` depends on\n        the orientation (if the triangulation is orientable and chiral) if any\n        of the following is true:\n\n        #. :attr:`ignore_orientation = False`.\n\n        #. :attr:`decorated = True` and\n           :attr:`ignore_curves = False` and\n           :attr:`ignore_filling_orientations = False`.\n\n        In these cases, re-constructing a triangulation from the isomorphism\n        signature yields a triangulation with the same handedness.\n\n        :param decorated:\n                Include peripheral information such as indexing of the cusps,\n                (oriented or unoriented) peripheral curves and\n                (oriented or unoriented) Dehn-fillings.\n        :param ignore_cusp_ordering:""\n                Do not encode the indexing of the cusps.\n                Only relevant if :attr:`decorated = True`.\n        :param ignore_curves:\n                Do not encode the peripheral curves.\n                Only relevant if :attr:`decorated = True`.\n                This is new in SnapPy version 3.2.\n                If :attr:`ignore_curves = True`, the result of this method cannot\n                be given to prior versions.\n        :param ignore_curve_orientations:\n                Do not encode the orientations of the peripheral curves.\n                Only relevant if :attr:`decorated = True` and\n                :attr:`ignore_curves = False`.\n        :param ignore_filling_orientations:\n                Do not encode the orientation of the class of peripheral curves\n                intersecting the Dehn-fillings.\n                Only relevant if :attr:`decorated = True`.\n        :param ignore_orientation:\n                Do not encode the orientation of the triangulation in the\n                undecorated part of the triangulation isosig.\n                See above section about orientation.\n        \n        Returns the number of \"fake\" cusps, which is typically the number\n        of finite vertices.\n\n        >>> M = Triangulation('m004(1,2)')\n        >>> F = M.filled_triangulation()\n        >>> F.num_cusps(),  F._num_fake_cusps()\n        (0, 1)\n        >>> S = Triangulation('bkaagb', remove_finite_vertices=False)\n        >>> S.num_cusps(),  S._num_fake_cusps()\n        (0, 2)\n        \n        Returns the obstruction classes needed to compute\n        pSL(N,C) = SL(N,C)/{+1,-1} representations for even N, i.e., it\n        returns a list with a representative cocycle for each class in\n        H^2(M, boundary M; Z/2). The first element in the list is always\n        representing the trivial obstruction class.\n\n        For example, 4_1 has two obstruction classes:\n\n        >>> M = Manifold(\"4_1\")\n        >>> c = M.ptolem""y_obstruction_classes()\n        >>> len(c)\n        2\n\n        The primary use of these obstruction classes is to construct\n        the Ptolemy variety as described in Definition 1.7 of\n        Stavros Garoufalidis, Dylan Thurston, Christian K. Zickert:\n        \"The Complex Volume of SL(n,C)-Representations of 3-Manifolds\"\n        (http://arxiv.org/abs/1111.2828).\n\n        For example, to construct the Ptolemy variety for\n        PSL(2,C)-representations of 4_1 that do not lift to boundary-parabolic\n        SL(2,C)-representations, use:\n\n        >>> p = M.ptolemy_variety(N = 2, obstruction_class = c[1])\n\n        Or the following short-cut:\n\n        >>> p = M.ptolemy_variety(2, obstruction_class = 1)\n\n        Note that this obstruction class only makes sense for even N:\n\n        >>> p = M.ptolemy_variety(3, obstruction_class = c[1])\n        Traceback (most recent call last):\n        ...\n        AssertionError: PtolemyObstructionClass only makes sense for even N, try PtolemyGeneralizedObstructionClass\n\n        To obtain PGL(N,C)-representations for N > 2, use the generalized\n        obstruction class:\n\n        >>> c = M.ptolemy_generalized_obstruction_classes(3)\n        >>> p = M.ptolemy_variety(3, obstruction_class = c[1])\n\n        The original obstruction class encodes a representing cocycle in Z/2 as follows:\n\n        >>> c = M.ptolemy_obstruction_classes()\n        >>> c[1]\n        PtolemyObstructionClass(s_0_0 + 1, s_1_0 - 1, s_2_0 - 1, s_3_0 + 1, s_0_0 - s_0_1, s_1_0 - s_3_1, s_2_0 - s_2_1, s_3_0 - s_1_1)\n\n        This means that the cocycle to represent this obstruction class in Z/2\n        takes value 1 in Z/2 on face 0 of tetrahedra 0 (because s_0_0 = -1)\n        and value 0 in Z/2 on face 1 of tetrahedra 0 (because s_1_0 = +1).\n\n        Face 3 of tetrahedra 0 and face 1 of tetrahedra 1 are identified,\n        hence the cocycle takes the same value on those two faces (s_3_0 = s_1_1).\n\n        \n        Returns the"" obstruction classes needed to compute\n        PGL(N,C)-representations for any N, i.e., it returns a list with\n        a representative cocycle for each element in\n        H^2(M, boundary M; Z/N) / (Z/N)^* where (Z/N)^* are the units in Z/N.\n        The first element in the list always corresponds to the trivial\n        obstruction class.\n        The generalized ptolemy obstruction classes are thus a generalization\n        of the ptolemy obstruction classes that allow to find all\n        boundary-unipotent\n        PGL(N,C)-representations including those that do not lift to\n        boundary-unipotent SL(N,C)-representations for N odd or\n        SL(N,C)/{+1,-1}-representations for N even.\n\n        For example, 4_1 has three obstruction classes up to equivalence:\n\n        >>> M = Manifold(\"4_1\")\n        >>> c = M.ptolemy_generalized_obstruction_classes(4)\n        >>> len(c)\n        3\n\n        For 4_1, we only get three obstruction classes even though we have\n        H^2(M, boundary M; Z/4) = Z/4 because the two obstruction classes\n        1 in Z/4 and -1 in Z/4 are related by a unit and thus give\n        isomorphic Ptolemy varieties.\n\n        The primary use of an obstruction class sigma is to construct the\n        Ptolemy variety of sigma. This variety computes boundary-unipotent\n        PGL(N,C)-representations whose obstruction class to a\n        boundary-unipotent lift to SL(N,C) is sigma.\n\n        For example for 4_1, there are 2 obstruction classes for N = 3:\n\n        >>> M = Manifold(\"4_1\")\n        >>> c = M.ptolemy_generalized_obstruction_classes(3)\n        >>> len(c)\n        2\n\n        The Ptolemy variety parametrizing boundary-unipotent\n        SL(3,C)-representations of 4_1 is obtained by\n\n        >>> p = M.ptolemy_variety(N = 3, obstruction_class = c[0])\n\n        and the Ptolemy variety parametrizing boundary-unipotent\n        PSL(3,C)-representations of 4_1 that do not lift to\n        boundary-unipotent SL(""3,C)-representations is obtained by\n\n        >>> p = M.ptolemy_variety(N = 3, obstruction_class = c[1])\n\n        The cocycle representing the non-trivial obstruction class looks as\n        follows:\n\n        >>> c[1]\n        PtolemyGeneralizedObstructionClass([2, 0, 0, 1])\n\n        This means that the cocycle takes the value -1 in Z/3 on the first face\n        class and 1 on the fourth face class but zero on every other of the\n        four face classes.\n        \n        Returns the product of group elements i and j.  The convention\n        is that products of symmetries read right to left.  That is,\n        the composition (symmetry[i] o symmetry[j]) acts by first\n        doing symmetry[j], then symmetry[i].\n\n        >>> S = Manifold('m004').symmetry_group()\n        >>> S.multiply_elements(2, 3)\n        1\n        \n        Returns the type of the current solution to the gluing\n        equations, basically a summary of how degenerate the solution\n        is.  If the flag :attr:`enum=True` is set, then an integer value is\n        returned. The possible answers are:\n\n        - 0: ``not attempted``\n\n        - 1: ``all tetrahedra positively oriented`` aka *geometric_solution*\n\n          Should correspond to a genuine hyperbolic structure.\n\n        - 2: ``contains negatively oriented tetrahedra`` aka *nongeometric solution*\n\n          Probably corresponds to a hyperbolic structure but some\n          simplices have reversed orientations.\n\n        - 3: ``contains flat tetrahedra`` (should be called ``all tetrahedra flat``)\n\n          All tetrahedra have shape in :math:`\\mathbb{R} - \\{0, 1\\}`.\n\n        - 4: ``contains degenerate tetrahedra``\n\n          Some shapes are close to :math:`\\{0,1, \\infty\\}`.\n\n        - 5: ``unrecognized solution type``\n\n        - 6: ``no solution found``\n\n        >>> M = Manifold('m007')\n        >>> M.solution_type()\n        'all tetrahedra positively oriented'\n        >>> M.dehn_fill( (3,1)"" )\n        >>> M.solution_type()\n        'contains negatively oriented tetrahedra'\n        >>> M.dehn_fill( (3,-1) )\n        >>> M.solution_type()\n        'contains degenerate tetrahedra'\n        \n        Returns the volume of the current solution to the hyperbolic\n        gluing equations; if the solution is sufficiently non-degenerate,\n        this is the sum of the volumes of the hyperbolic pieces in\n        the geometric decomposition of the manifold.\n\n        >>> M = Manifold('m004')\n        >>> M.volume() # doctest: +NUMERIC6\n        2.02988321\n        >>> M.solution_type()\n        'all tetrahedra positively oriented'\n\n        The return value has an extra attribute, accuracy, which is the\n        number of digits of accuracy as *estimated* by SnapPea.  When\n        printing the volume, the result is rounded to 1 more than this\n        number of digits.\n\n        >>> vol, accuracy = M.volume(accuracy = True)\n        >>> accuracy in (10, 63) # Low precision, High precision\n        True\n\n        Inside SageMath, verified computation of the volume of a\n        hyperbolic manifold is also possible (this will verify first\n        that the manifold is indeed hyperbolic)::\n\n            sage: M.volume(verified=True, bits_prec=100)   #doctest: +NUMERIC24\n            2.029883212819307250042405109?\n        \n        Reverses the orientation of the Triangulation, presuming that\n        it is orientable.\n\n        >>> M = Manifold('m015')\n        >>> cs = M.chern_simons()\n        >>> M.reverse_orientation()\n        >>> abs(cs + M.chern_simons()) # doctest: +NUMERIC9\n        0.0\n        Save Triangulation\n        Save the Dirichlet domain as a text file in \"% Generators\" format.\n\n        >>> from snappy.number import Number\n        >>> acc, Number._accuracy_for_testing = Number._accuracy_for_testing, None\n        >>> M = Manifold('m125')\n        >>> D = M.dirichlet_domain()\n        >>> from tempfile import NamedTemporaryFile""\n        >>> f = NamedTemporaryFile(delete=False)\n        >>> f.close()\n        >>> D.save(f.name)\n        >>> E = DirichletDomain(generator_file=f.name); E\n        30 finite vertices, 2 ideal vertices; 50 edges; 20 faces\n        >>> os.unlink(f.name)\n        >>> from pickle import dumps, loads\n        >>> E = loads(dumps(D)); E\n        30 finite vertices, 2 ideal vertices; 50 edges; 20 faces\n        >>> Number._accuracy_for_testing = acc\n        \n        Save the triangulation as a SnapPea triangulation file.\n\n        >>> M = Triangulation('m004')\n        >>> M.save('fig-eight.tri')     #doctest: +SKIP\n\n        To retrieve a SnapPea triangulation from the saved file\n        you can do the following. The first command creates a cusped\n        manifold M. The second one creates the filled manifold M1\n        with Dehn coefficients (2,3).\n\n        >>> M = Manifold('fig-eight.tri')   #doctest: +SKIP\n        >>> M1 = Manifold('fig-eight.tri(2,3)')   #doctest: +SKIP\n\n        \n        Searches for connected closed normal surfaces of nonnegative Euler\n        characteristic.  If spheres or projective planes are found, then\n        tori and Klein bottles aren't reported.  There is no guarantee\n        that all such normal surfaces will be found nor that any given\n        surface is incompressible.  The search is confined to surfaces\n        whose quads are in the tetrahedra that have degenerate shapes.\n\n        You can split the manifold open along one of these surfaces\n        using the method \"split\".\n\n        A connect sum of two trefoils:\n\n        >>> M1 = Manifold('DT: fafBCAEFD')\n        >>> len(M1.splitting_surfaces())\n        2\n\n        First satellite knot in the table.\n\n        >>> M2 = Manifold('K13n4587')\n        >>> M2.splitting_surfaces()\n        [Orientable two-sided with euler = 0]\n        Send to SnapPy\n        Set the Dehn filling coefficients of the cusps.  This can be\n        specified in the following w""ays, where the cusps are numbered\n        by 0,1,...,(num_cusps - 1).\n\n        - Fill cusp 2:\n\n          >>> M = Triangulation('8^4_1')\n          >>> M.dehn_fill((2,3), 2)\n          >>> M\n          8^4_1(0,0)(0,0)(2,3)(0,0)\n\n        - Fill the last cusp:\n\n          >>> M.dehn_fill((1,5), -1)\n          >>> M\n          8^4_1(0,0)(0,0)(2,3)(1,5)\n\n        - Fill the first two cusps:\n\n          >>> M.dehn_fill( [ (3,0), (1, -4) ])\n          >>> M\n          8^4_1(3,0)(1,-4)(2,3)(1,5)\n\n        - When there is only one cusp, there's a shortcut\n\n          >>> N = Triangulation('m004')\n          >>> N.dehn_fill( (-3,4) )\n          >>> N\n          m004(-3,4)\n\n        Does not return a new :class:`Triangulation`.\n        \n        Set the Dehn filling coefficients of the cusps.  This can be\n        specified in the following ways, where the cusps are numbered\n        by 0,1,...,(num_cusps - 1).\n\n        - Fill cusp 2:\n\n          >>> M = Manifold('8^4_1')\n          >>> M.dehn_fill((2,3), 2)\n          >>> M\n          8^4_1(0,0)(0,0)(2,3)(0,0)\n\n        - Fill the last cusp:\n\n          >>> M.dehn_fill((1,5), -1)\n          >>> M\n          8^4_1(0,0)(0,0)(2,3)(1,5)\n\n        - Fill the first two cusps:\n\n          >>> M.dehn_fill( [ (3,0), (1, -4) ])\n          >>> M\n          8^4_1(3,0)(1,-4)(2,3)(1,5)\n\n        - When there is only one cusp, there's a shortcut\n\n          >>> N = Manifold('m004')\n          >>> N.dehn_fill( (-3,4) )\n          >>> N\n          m004(-3,4)\n\n        Does not return a new Manifold.\n        SnapPea crashed in function SnapPea failed to compute any part of the symmetry group.SnapPea failed to find the canonical triangulation.SnapPea failed to read the census manifold.SnapPea kernel failed when computing normal surfacesSnapPea kernel failed when computing normal surfaces.SnapPea kernel failed when splitting open along the given surface.SnapPea kernel style estimation of accuracy not available for arbitr""ary precision/interval arithmetic.SnapPea only found SnapPy has no data on links with %s components.Solution type is: %s\n        Split the manifold open along a surface of positive characteristic found\n        by the method \"splitting_surfaces\".  Returns a list of the pieces, with any\n        sphere boundary components filled in.\n\n        Here's an example of a Whitehead double on the trefoil.\n\n        >>> M = Manifold('K14n26039')\n        >>> S = M.splitting_surfaces()[0]\n        >>> S\n        Orientable two-sided with euler = 0\n\n        >>> pieces = M.split(S); pieces\n        [K14n26039.a(0,0)(0,0), K14n26039.b(0,0)]\n        >>> pieces[0].volume() # doctest: +NUMERIC6\n        3.66386238\n        >>> pieces[1].fundamental_group().relators()\n        ['aabbb']\n\n        You can also specify a surface by its index.\n\n        >>> M = Manifold('L10n111')\n        >>> max( P.volume() for P in M.split(0) ) # doctest: +NUMERIC6\n        5.33348957\n        Splitting(S_{1,0}, [b1, A0], [a0,B1])Splitting\\(S_\\{(\\d+),(\\d+)\\},Starting the link editor.\nSelect Tools->Send to SnapPy to load the link complement.Supply a manifold, or generators.Supported cover_types are 'all' and 'cyclic'.Supported methods are 'low_index', 'gap', 'magma' and 'snappea'SymmetryGroup.abelian_description (line 84)SymmetryGroup.abelianization (line 236)SymmetryGroup.center (line 256)SymmetryGroup.commutator_subgroup (line 218)SymmetryGroup.direct_product_description (line 169)SymmetryGroup.is_abelian (line 72)SymmetryGroup.is_amphicheiral (line 197)SymmetryGroup.is_dihedral (line 105)SymmetryGroup.is_direct_product (line 156)SymmetryGroup.is_full_group (line 30)SymmetryGroup.is_invertible_knot (line 207)SymmetryGroup.isometries (line 295)SymmetryGroup.multiply_elements (line 276)SymmetryGroup.order (line 62)Tetrahedra data appears invalidThat Magma type not recognized.The Chern-Simons invariant isn't currently known.The Dehn filling coefficients must be relatively prime integers"".The Dirichlet Domain was computed without include_words = True.The Dirichlet Domain was not computed.The Dirichlet construction failed.The Dirichlet domain could not be triangulated; perhaps this is an orbifold group?The Ford domain construction failed.The HoroballViewer class was not imported.The Manifold is not orientable, so its orientation can't be reversed.The MorwenLinks class has been replaced by HTLinkExteriors. Please refer to the documentation for HTLinkExteriors.The Morwen 8 tetrahedra manifold %s was not found.The PolyhedronViewer class was not imported.The SnapPea kernel couldn't compute the homology presentation matrixThe SnapPea kernel was not able to determine if the manifolds are isometric.The Triangulation is already orientable.The Triangulation is empty.The Triangulation is emptyThe Triangulation must be empty.The amount of data given is not consistent with %d O31 or SL2C matrices.The braid word is invalid.The census knot %s was not found.The curve is not isotopic to a geodesic.The cusp neighborhood construction failed.The data given do not have the right determinants.The data provided are invalid for Klein bottle cusps.The data provided does not give a (positively oriented) basis.The data provided does not give a basis.The drilling curve requested is not in range(%d).The elementary divisors must form a divisibility chain\nThe empty triangulation has no name.The full symmetry group is not known.The full symmetry group not known.The generator data does not start with \"% Generators\"The homomorphism image is not a permutation group.The horoball construction failed.The link complement %s was not found.The manifold file The method must be 'fold' or 'layered' or 'layered_and_marked'The number of fillings specified exceeds the number of cusps.The peripheral data ((The peripheral data %s is not acceptable.The permutation list is invalid.The solution type is: %sThe specified cusp (%s) does not exist.The specified edge index (%s) is invalid.The specified"" face index (%s) is invalid.The specified indices to be filled are beyond the actual number of cusps.The specified tetrahedron (%s) does not exist.The symmetry group has only %d elements.The symmetry group is not a nontrivial, nonabelian direct product.The symmetry group is not abelian.The symmetry group is not polyhedral.The triangulation construction failed.The word contains a non-generator.There are only 201 census knots.This census does not support manifold lookupTo permanently fill a cusp, the Dehn filling coefficients must be relatively prime integers.% TriangulationTriangulation.DT_code (line 1108)Triangulation.__reduce__ (line 888)Triangulation._from_bytes (line 761)Triangulation._from_isosig (line 845)Triangulation._from_string (line 699)Triangulation._from_tetrahedra_gluing_data (line 791)Triangulation._isomorphisms_to (line 995)Triangulation._num_fake_cusps (line 406)Triangulation._reindex_cusps (line 932)Triangulation._remove_finite_vertices (line 314)Triangulation._to_bytes (line 723)Triangulation._to_string (line 677)Triangulation._unsimplified_filled_triangulation (line 1353)Triangulation and text filesTriangulation contains {} cusps, only accepts triangulations with 1 cuspTriangulation.copy (line 466)Triangulation.cover (line 2395)Triangulation.covers (line 2497)Triangulation.cusp_info (line 1230)Triangulation.dehn_fill (line 1160)Triangulation.edge_valences (line 1436)Triangulation.filled_triangulation (line 1303)Triangulation.fundamental_group (line 2346)Triangulation.gluing_equations (line 2108)Triangulation.gluing_equations_pgl (line 1457)Triangulation.has_finite_vertices (line 2911)Triangulation.homology (line 2311)Triangulation.is_orientable (line 451)Triangulation.name (line 1081)Triangulation.num_cusps (line 387)Triangulation.num_tetrahedra (line 1148)Triangulation or ManifoldTriangulation.orientation_cover (line 422)Triangulation.plink (line 343)Triangulation.ptolemy_generalized_obstruction_classes (line 1858)Triangulation.ptolemy_obstructio""n_classes (line 1796)Triangulation.ptolemy_variety (line 1923)Triangulation.randomize (line 483)Triangulation.reverse_orientation (line 1286)Triangulation.save (line 653)Triangulation.set_name (line 1093)Triangulation.simplify (line 497)Triangulation.symplectic_basis (line 3258)Triangulation.triangulation_isosig (line 2938)Triangulation.with_hyperbolic_structure (line 614)\n        Try to simplify the triangulation by doing Pachner moves.\n\n        >>> M = Triangulation('12n123')\n        >>> M.simplify()\n\n        It does four kinds of moves that reduce the number of\n        tetrahedra:\n\n        * 3 -> 2 and 2 -> 0 Pacher moves, which eliminate one or two\n          tetrahedra respectively.\n\n        * On suitable valence-1 edges, does a 2 -> 3 and then 2 -> 0 move,\n          which removes a tetrahedron and creates a new valence-1 edge.\n\n        * When a 2-simplex has two edges of valence-4 giving rise to the\n          suspension of a pentagon, replace these 6 tetrahedra with a\n          single edge of valence 5.\n\n        It also does random 4 -> 4 moves in hopes of setting up a\n        simplfication.  The argument passes_at_fours is the number of\n        times it goes through the valence-4 edges without progress\n        before giving up.\n\n        \n        Used by pickle.dumps.\n\n        >>> from pickle import loads, dumps\n        >>> from spherogram import random_link\n        >>> M = Manifold('m125')\n        >>> M == loads(dumps(M))\n        True\n        >>> M.dehn_fill((2,3),0)\n        >>> len(dumps(M)) < len(M._to_string())\n        True\n        >>> N = loads(dumps(M))\n        >>> N\n        m125(2,3)(0,0)\n        >>> M.is_isometric_to(N)\n        True\n        >>> M = Manifold('m024')\n        >>> M.is_orientable()\n        False\n        >>> N = loads(dumps(M))\n        >>> N == M\n        True\n        >>> N.volume() == M.volume()\n        True\n        >>> while True:\n        ...    M = random_link(500).exterior()\n        ...   "" if M.num_tetrahedra() > 256:\n        ...       break\n        ...\n        >>> M == loads(dumps(M))\n        True\n        \n        Used by the pickle module to pickle an Abelian Group.\n        >>> from pickle import loads, dumps\n        >>> A = AbelianGroup([[n**2 + 3 for n in range(n+3,n+10)] for n in range(7)])\n        >>> A\n        Z/8 + Z + Z + Z + Z\n        >>> A == loads(dumps(A))\n        True\n        Verified and arbitrary precision computation of cusp_info only implemented for cusp shapes. Pass 'shape' as first argument to cusp_info().\n        WARNING: Users should not use this function directly.  To\n        create a Triangulation or Manifold or ManifoldHP from a string\n        containing the contents of a triangulation file, simply do:\n\n        >>> M = Manifold('7_4')\n        >>> seed = M._to_string()\n        >>> N = Manifold(seed)\n        >>> N == M\n        True\n\n        Fill an empty Triangulation from a string generated by\n        _to_string.\n        \n        WARNING: Users should not use this function directly.  To\n        create a Triangulation or Manifold or ManifoldHP from an isosig,\n        simply do:\n\n        >>> M = Manifold('empty')\n        >>> M._from_isosig('jLAwLMQbcbdghgiiixxnxhhxkwv')\n        >>> N = Manifold('o9_10894')\n        >>> M == N\n        True\n\n        Fill an empty Triangulation from an isosig generated by\n        triangulation_isosig.\n        \n        WARNING: Users should not use this function directly.  To create a\n        Manifold or ManifoldHP from a string containing the contents\n        of a triangulation file, simply do:\n\n        >>> M = Manifold('7_4')\n        >>> seed = M._to_string()\n        >>> N = Manifold(seed)\n        >>> N.volume() # doctest: +NUMERIC6\n        5.13794120\n        Warning: Result is not symplecticWords must be represented as Python strings.Wrong equation_typeYou have specified a Hoste-Thistlethwaite knot with an \ninappropriate index or number of crossing""s.You must apply 'fillings' to all of the cusps.You must apply 'shortest' to all of the cusps.You provided filling data for too many cusps.  There are only %s.You provided more peripheral data than there are cusps.You tried to create an *empty* SymmetryGroup.Z/%d:  +  - [,\n  ->   )(),([ ^-+~<>), (,, .*\n   |\"; ); , ..., \\)?](\n  \n  ) .a([a-zA-Z0-9\\+\\-]+)$\\[*([abcABC_\\d!*]*|[abcABC_\\d!,]*)\\]*$abcdefghijklmnopqrstuvwxyzZYXWVUTSRQPONMLKJIHGFEDCBAadd_noteall tetrahedra positively orientedalternating.gzat least .bb++RLb+-RLb-+RRLb--RRLb([+-no])([+-])([lLrR]+)$binary binary dihedral group <2,2,%d>.browser.c..cache: complete complete?complete lengthcontains degenerate tetrahedracontains flat tetrahedracontains negatively oriented tetrahedra curve of length  cusp.cuspscython/core/abelian_group.pyxcython/core/basic.pyxcython/core/cusp_neighborhoods.pyxcython/core/dirichlet.pyxcython/core/fundamental_group.pyxcython/core/manifold.pyxcython/core/symmetry_group.pyxcython/core/tail.pyxcython/core/triangulation.pyx%d%dB~%d-%d\n        >>> data = [([1, 1, 2, 2], [[0, 1, 3, 2], [2, 3, 1, 0], [0, 1, 3, 2], [3, 0, 1, 2]]),\n        ...         ([0, 2, 2, 0], [[0, 1, 3, 2], [1, 0, 2, 3], [2, 3, 1, 0], [3, 2, 0, 1]]),\n        ...         ([1, 1, 0, 0], [[1, 0, 2, 3], [3, 2, 0, 1], [1, 2, 3, 0], [0, 1, 3, 2]])]\n        >>> M = Triangulation('empty')\n        >>> M._from_tetrahedra_gluing_data(data)\n        >>> N = Triangulation('m007')\n        >>> M == N\n        True\n\n        Check that cusp indices are transmitted. This manfiold has two\n        cusps and trivial symmetry group and we interchange the two\n        cusps.\n\n        >>> M = Manifold('o9_44133')\n        >>> tet_data = M._get_tetrahedra_gluing_data()\n        >>> cusp_data = M._get_cusp_indices_and_peripheral_curve_data()[0]\n        >>> cusp_data = [[1 - c for c in tet_cusps] for tet_cusps in cusp_data]\n        >>> N = Manifold('empty')\n        >>> N._from_tetrahedra_gluing_data(tet_data, num_or_cusps=""2, cusp_indices=cusp_data)\n        >>> M.is_isometric_to(N, True)[0].cusp_images()\n        [1, 0]\n\n        A nonorientable example.\n\n        >>> Y = Triangulation('y885')\n        >>> Y.set_peripheral_curves([([1, 0], [0, 1]), ([-1, 0], [0, -1]), ([1, 7], [1, 8])])\n        >>> tets = Y._get_tetrahedra_gluing_data()\n        >>> cusps, curves = Y._get_cusp_indices_and_peripheral_curve_data()\n        >>> max(sum(curves, []))\n        9\n        >>> X = Triangulation('empty')\n        >>> X._from_tetrahedra_gluing_data(tets, 1, 2, cusps, curves)\n        >>> X._get_cusp_indices_and_peripheral_curve_data() == (cusps, curves)\n        True\n        (), defined in disable edges; enable]; end,[]).exceptions,\n  explain_columns = ,\n  explain_rows = .export_stl faces.filedialogfilled length finite vertices, (%g,%g)gc\n    >>> get_triangulation_tester() # doctest: +NUMERIC6\n    L13n9331(0,0)(0,0)(0,0) 16.64369585 Z + Z + Z\n    m003(0,0) 2.02988321 Z/5 + Z\n    m004(0,0) 2.02988321 Z\n    v1205(2,3) 4.70744340 Z/40\n    x012(0,0)(0,0) 3.54972978 Z/2 + Z\n    y123(0,0) 5.02755480 Z\n    L13n9331(3,4)(2,3)(2,1) 14.60215339 Z/53\n    K7_1(0,0) 3.57388254 Z\n    6_1(0,0) 3.16396323 Z\n    5^2_1(3,4)(1,-2) 2.73300075 Z/3\n    8^3_3(0,0)(0,0)(0,0) 8.96736085 Z + Z + Z\n    4_1(0,0) 2.02988321 Z\n    12n123(0,0) 18.15036328 Z\n    16n1235(0,0) 21.29383093 Z\n    b++RL(0,0) 2.02988321 Z\n    b-+RRL(0,0) 2.40690959 Z/3 + Z\n    b+-RL(0,0) 2.02988321 Z/5 + Z\n    b--RRL(0,0) 2.40690959 Z/3 + Z\n    Braid:[1, 2, -1, -2](0,0)(0,0) 4.05976643 Z + Z\n    DT:[(8, 10, -14), (2, 6, 20), (-4, 22, 24, 12, 26, 18, 16)](0,0)(0,0)(0,0) 16.64369585 Z + Z + Z\n    DT[4,6,2](0,0) 0.0 Z\n    DT[mcccgdeGacjBklfmih](0,0)(0,0)(0,0) 16.64369585 Z + Z + Z\n    DT:mcccgdeGacjBklfmih(0,0)(0,0)(0,0) 16.64369585 Z + Z + Z\n    a0*B1(0,0) 2.02988321 Z\n    b1*A0 a0*B1(1,0) 0.0 Z/2\n    dLQbcccdxwb(0,0) 2.56897060 Z/3 + Z\n    L13n9331(0,0)(0,0)(0,0) Z + Z + Z\n    m003(0,0) Z/5 + Z\n    m004(0,0) Z""\n    v1205(2,3) Z/40\n    x012(0,0)(0,0) Z/2 + Z\n    y123(0,0) Z\n    L13n9331(3,4)(2,3)(2,1) Z/53\n    K7_1(0,0) Z\n    6_1(0,0) Z\n    5^2_1(3,4)(1,-2) Z/3\n    8^3_3(0,0)(0,0)(0,0) Z + Z + Z\n    4_1(0,0) Z\n    12n123(0,0) Z\n    16n1235(0,0) Z\n    b++RL(0,0) Z\n    b-+RRL(0,0) Z/3 + Z\n    b+-RL(0,0) Z/5 + Z\n    b--RRL(0,0) Z/3 + Z\n    Braid:[1, 2, -1, -2](0,0)(0,0) Z + Z\n    DT:[(8, 10, -14), (2, 6, 20), (-4, 22, 24, 12, 26, 18, 16)](0,0)(0,0)(0,0) Z + Z + Z\n    DT[4,6,2](0,0) Z\n    DT[mcccgdeGacjBklfmih](0,0)(0,0)(0,0) Z + Z + Z\n    DT:mcccgdeGacjBklfmih(0,0)(0,0)(0,0) Z + Z + Z\n    a0*B1(0,0) Z\n    b1*A0 a0*B1(1,0) Z/2\n    dLQbcccdxwb(0,0) Z/3 + Z\n    get_triangulation_tester (line 117).guiholonomy precision.horoviewerhyperbolic_data_%sa.gzhyperbolic_data_%sn.gzicosohedral group ideal vertices; \n        >>> import itertools\n        >>> M = Manifold('L14n62484')\n        >>> ['%.5f' % z.real() for z in M.cusp_info('shape')]\n        ['0.10384', '1.17955', '-1.89674', '0.86324']\n        >>> perms = itertools.permutations(range(4))\n        >>> for perm in perms:\n        ...     shapes = M.cusp_info('shape')\n        ...     M._reindex_cusps(perm)\n        ...     new_shapes = M.cusp_info('shape')\n        ...     for i in range(4):\n        ...         assert new_shapes[perm[i]] == shapes[i]\n        )) is not acceptable.isenabled[lL](?P<components>[0-9]{1})(?P<crossings>[0-9]{2})(?P<index>[0-9]+)$ length'list[snappy.Manifold]''list[snappy.Triangulation]'.manifolds.matrixmirrored arcmorwen8/morwen8.tgzno default __reduce__ due to non-trivial __cinit__no solution foundnonabelian group of order %dnonalternating.gznot attempted, not filled.numberoctahedral group of  of shape one-sidedorientation-preservingorientation-reversing.pari.polyviewer.ptolemyr:*  return F/[ %s\ns %s%s x %s.sage_helpershape precision'snappy.Manifold''snappy.Triangulation' surfaces, but you asked for surface number tetrahedra shapes were insertedtetrahedral groupthe \"gap""\" method for covers requires Sagethe \"magma\" method for covers requires Sagetorus cusp(tree fragment).tri*.tri *.txttwo-sidedtyping.Optional[str]unnamed linkunrecognized solution typeutf-8v1205(2,3).verify was not found.\n with Dehn filling coefficients (M, L) =  with euler = ([xX])(\\d+)x%d^-1AAbelianGroupAbelianGroup.__reduce__AbelianGroup.betti_numberAbelianGroup.elementary_divisorsAbelianGroup.orderAbelianGroup.rankAlphabetAlternatingKnotExteriorsAlternating_numbersAlternating_offsetsAlternating_tableBBrowserCCCuspNeighborhoodCCuspNeighborhood.Ford_domainCCuspNeighborhood.__reduce_cython__CCuspNeighborhood.__setstate_cython__CCuspNeighborhood._number_CCuspNeighborhood.check_indexCCuspNeighborhood.get_displacementCCuspNeighborhood.get_tieCCuspNeighborhood.horoballsCCuspNeighborhood.manifoldCCuspNeighborhood.max_reachCCuspNeighborhood.num_cuspsCCuspNeighborhood.original_indexCCuspNeighborhood.reachCCuspNeighborhood.set_displacementCCuspNeighborhood.set_tieCCuspNeighborhood.stopperCCuspNeighborhood.stopping_displacementCCuspNeighborhood.topologyCCuspNeighborhood.translationsCCuspNeighborhood.triangulationCCuspNeighborhood.viewCCuspNeighborhood.volumeCDirichletDomainCDirichletDomain.__reduce_ex__CDirichletDomain._edge_to_index_dictCDirichletDomain._number_CDirichletDomain._to_stringCDirichletDomain._vertex_data_listCDirichletDomain._vertex_listCDirichletDomain._vertex_to_index_dictCDirichletDomain.edge_listCDirichletDomain.export_stlCDirichletDomain.face_listCDirichletDomain.in_radiusCDirichletDomain.length_spectrum_dictsCDirichletDomain.manifoldCDirichletDomain.num_edgesCDirichletDomain.num_facesCDirichletDomain.num_finite_verticesCDirichletDomain.num_ideal_verticesCDirichletDomain.num_verticesCDirichletDomain.out_radiusCDirichletDomain.pairing_matricesCDirichletDomain.pairing_wordsCDirichletDomain.saveCDirichletDomain.spine_radiusCDirichletDomain.triangulationCDirichletDomain.vertex_listCDirichletDomain.viewCDirichletDomain.volumeCFundamentalGroupCFundamentalGr""oup.__reduce_cython__CFundamentalGroup.__setstate_cython__CFundamentalGroup._gap_init_CFundamentalGroup._magma_init_CFundamentalGroup._word_movesCFundamentalGroup.character_variety_vars_and_polysCFundamentalGroup.gap_stringCFundamentalGroup.generatorsCFundamentalGroup.generators_in_originalsCFundamentalGroup.longitudeCFundamentalGroup.magma_stringCFundamentalGroup.meridianCFundamentalGroup.num_generatorsCFundamentalGroup.num_original_generatorsCFundamentalGroup.num_relatorsCFundamentalGroup.original_generatorsCFundamentalGroup.peripheral_curvesCFundamentalGroup.relatorsCFundamentalGroup.sageCHolonomyGroupCHolonomyGroup.O31CHolonomyGroup.SL2CCHolonomyGroup.__reduce_cython__CHolonomyGroup.__setstate_cython__CHolonomyGroup._matrixCHolonomyGroup.complex_lengthCensusCensus_KnotsCensus_Morwen8Census.__contains__Census.__getitem__Census.__init__Census.__iter__Census.__len__Census.nextCertifiedShapesEngineChristyLinksChristy_linksClosedCensusDataCosetActionCuspInfoCuspInfo.__repr__CuspNeighborhoodCuspTopologyCuspedCensusCuspedCensus.__getitem__CuspedCensus.__init__CuspedCensus.lookupDDTDT_codeDT_codesDTcodecDirichletDomainDualCurveInfoDualCurveInfo.__repr__FFactorCosetActionFord_domainFormatHomForSnapPeaFreeGroupFuncResultFundamentalGroupGGGGapElementGeneratorsOfGroupGrpFPGrpPermHHTLinkExteriorsHTWKnotsHolonomyGroupHolonomyGroup._number_HomGrpHoroballViewerIImageIndexInfoInfo.__init__Info._immutableInfo.keysIntegerIsCompositionMappingRepIsSubgroupFpGroupIsToPermGroupHomomorphismByImagesIsometryIsometry.__init__Isometry.__repr__Isometry.cusp_imagesIsometry.cusp_mapsIsometry.extends_to_linkIsometry.num_cuspsKK7_1KLPProjectionKleinKnotExteriorsKnotExteriors.__getitem__KnotExteriors.__init__LL104001L13n9331LELengthSpectrumLengthSpectrumFormatStringLengthSpectrumFormatStringBaseLengthSpectrumFormatStringWithWordLengthSpectrumInfoLengthSpectrumInfo.__repr__LengthSpectrum.__repr__LinkLinkEditorLinkExteriorsLinkManagerListOnePerLineListOnePerLine.__repr__LowIndexSubgroupsLowIndexSu""bgroupsFpGroupMM0M1MTLinksMagmaElementManifoldManifold._canonical_cells_are_tetrahedraManifold._canonical_retriangulationManifold._choose_generatorsManifold._choose_generators_infoManifold._complex_volumeManifold._cusp_cross_section_infoManifold._from_bytesManifold._from_isosigManifold._from_stringManifold._get_tetrahedra_shapesManifold._identifyManifold._is_isometric_toManifold._number_Manifold._polish_hyperbolic_structuresManifold._precisionManifold.browseManifold.canonizeManifold.chern_simonsManifold.copyManifold.coverManifold.coversManifold.cusp_infoManifold.cusp_neighborhoodManifold.dehn_fillManifold.dirichlet_domainManifold.drillManifold.dual_curvesManifold.filled_triangulationManifold_from_TriangulationManifold.fundamental_groupManifold.init_hyperbolic_structureManifold.is_isometric_toManifold.is_two_bridgeManifold.length_spectrumManifold.set_peripheral_curvesManifold.set_target_holonomyManifold.set_tetrahedra_shapesManifold.solution_typeManifold.splitManifold.splitting_surfacesManifold.symmetric_triangulationManifold.symmetry_groupManifold.tetrahedra_shapesManifold.use_field_conversionManifold.volumeManifold.without_hyperbolic_structureMatrixParityMatrixWithExplanationsMatrixWithExplanations.__init__MatrixWithExplanations.__repr__.<locals>.format_explain_listMatrixWithExplanations.__repr__MorwenLinksMorwenLinks.__init__MsgIOMsgIO.__init__NNeumannZagierTypeEquationsNeumannZagierTypeEquations.__init__NeumannZagierTypeEquations.__repr__NonalternatingKnotExteriorsNonalternatingKnotExteriors.__init__Nonalternating_numbersNonalternating_offsetsNonalternating_tableNoneNonorientable_lengthsNormalSurfaceInfoNormalSurfaceInfo.__repr__NotImplementedNum_AlternatingNum_NonalternatingNumberOO31O31_generatorsObsCensusKnotsObsCensusKnots.__getitem__ObsCensusKnots.__init__ObsCensusKnots.__repr__ObsLinkExteriorsObsLinkExteriors.__getitem__ObsLinkExteriors.__init__ObsLinkExteriors.__repr__ObsMorwenLinksObsMorwenLinks.__getitem__ObsMorwenLinks.__init__ObsNonorientableClosedCens""usObsNonorientableClosedCensus.__getitem__ObsNonorientableClosedCensus.__init__ObsNonorientableCuspedCensusObsNonorientableCuspedCensus.__init__ObsNonorientableCuspedCensus.lookupObsOrientableClosedCensusObsOrientableClosedCensus.__getitem__ObsOrientableClosedCensus.__init__ObsOrientableCuspedCensusOrbifold1OrientabilityOrientableOrientable_lengthsPD_codePermutationGroupPermutationGroupElementPolyhedronViewerPreImagePresentationMatrixPresentationMatrix.__reduce_cython__PresentationMatrix.__setstate_cython__PresentationMatrix.add_rowsPresentationMatrix.explodePresentationMatrix.get_dataPresentationMatrix.row_opPresentationMatrix.simplified_matrixPresentationMatrix.simplify__Pyx_PyDict_NextRefQRRawNumberS5SCSL2CSNAPPEA_MANIFOLD_DIRECTORYSageNotAvailableSageObjectShapeInfoShapeInfo.__repr__ShortMatrixParitySnapPeaFatalErrorSnapPea_KLPProjectionSnapPea_interruptSnapPySnapPyCacheSolutionTypeStabilizer_StrLongestLen_StrLongestLen.<locals>.genexprSurfaceSymmetryGroupSymmetryGroup.__reduce_cython__SymmetryGroup.__setstate_cython__SymmetryGroup.abelian_descriptionSymmetryGroup.abelianizationSymmetryGroup.centerSymmetryGroup.commutator_subgroupSymmetryGroup.direct_product_descriptionSymmetryGroup.is_S5SymmetryGroup.is_abelianSymmetryGroup.is_amphicheiralSymmetryGroup.is_dihedralSymmetryGroup.is_direct_productSymmetryGroup.is_full_groupSymmetryGroup.is_invertible_knotSymmetryGroup.is_polyhedralSymmetryGroup.isometriesSymmetryGroup.multiply_elementsSymmetryGroup.orderSymmetryGroup.polyhedral_descriptionTTEXTTriangulationTriangulation.DT_codeTriangulation.__reduce__Triangulation._covers_gapTriangulation._covers_low_indexTriangulation._covers_magmaTriangulation._covers_snappeaTriangulation._empty_saveTriangulation._from_bytesTriangulation._from_isosigTriangulation._from_pickleTriangulation._from_stringTriangulation._from_tetrahedra_gluing_dataTriangulation._get_cusp_indices_and_peripheral_curve_dataTriangulation._get_from_link_dataTriangulation._get_tetrahedra_gluing_dataTriangul""ation._is_symplecticTriangulation._isomorphisms_toTriangulation._marked_tetrahedraTriangulation._num_fake_cuspsTriangulation._polish_hyperbolic_structuresTriangulation._presentation_matrixTriangulation._ptolemy_equations_identified_face_classesTriangulation._ptolemy_equations_identified_coordinatesTriangulation._ptolemy_equations_action_by_decoration_changeTriangulation._ptolemy_equations_boundary_map_3Triangulation._ptolemy_equations_boundary_map_2Triangulation._ptolemy_equations_boundary_map_1Triangulation._reindex_cuspsTriangulation._remove_finite_verticesTriangulation._set_DTcodeTriangulation._set_PDcodeTriangulation._symplectic_formTriangulation._three_to_twoTriangulation._to_bytesTriangulation._to_stringTriangulation._two_to_threeTriangulation._undecorated_triangulation_isosigTriangulation._unsimplified_filled_triangulationTriangulation.copyTriangulation.coverTriangulation.cover_infoTriangulation.coversTriangulation.cusp_infoTriangulation.dehn_fillTriangulation.edge_valencesTriangulation.filled_triangulationTriangulation_from_ManifoldTriangulation.fundamental_groupTriangulation.gluing_equationsTriangulation.gluing_equations_pglTriangulation.has_finite_verticesTriangulation.homologyTriangulation.is_orientableTriangulation.isomorphisms_toTriangulation.linkTriangulation.nameTriangulation.num_cuspsTriangulation.num_tetrahedraTriangulation.orientation_coverTriangulation.pickleTriangulation.plinkTriangulation.ptolemy_generalized_obstruction_classesTriangulation.ptolemy_obstruction_classesTriangulation.ptolemy_varietyTriangulation.randomizeTriangulation.reverse_orientationTriangulation.saveTriangulation.set_nameTriangulation.set_peripheral_curvesTriangulation.simplifyTriangulation.symplectic_basisTriangulation.triangulation_isosigTriangulation.with_hyperbolic_structureTypeUI_callbackViewerWindowXXbackward_neighborXbackward_strandXcomponentXforward_neighborXforward_strandYYbackward_neighborYbackward_strandYcomponentYforward_neighborYforward_strandZ_aa_ilabelian_descri""ptionabelianizationabsImagabspathacc_log_imacc_log_reacc_rec_imacc_rec_reaccuraciesaccuracyaddadd_rowsalgorithmall__all_tables__alphaalternation__annotate__ansappendare_isometricargsas_idealas_int_listas_stringasciiascii_lowercaseasksaveasfileassignmentsasyncio.coroutinesatexitbb_file_nameb_new_nameb_stringballbase__bases__basisbetti_numberbitbits_precblowup_multipleboolbrowsebrowserbundlebundle_from_stringbytebytearray_to_bytesbyteseqbytestringc0c1c2c3cc_abelianizationc_canonized_triangulationc_centerc_comm_subgroupc_core_lengthc_cover_typec_eqnsc_factor_0c_factor_1c_filled_tric_longitudec_matrixc_meridianc_movesc_new_namec_new_tric_obstruction_classc_opacitiesc_representationc_retriangulated_triangulationc_stringc_symmetric_triangulationc_targetc_tersec_triangulationc_varsc_wordcachecallback_canonical_canonical_cells_are_tetrahedra_canonical_retriangulationcanonizecb_menucensus_indexcensus_knot_archivecensus_knot_numberscentercentroid_at_origincertified_shapescharacter_varietycharacter_variety_idealcharacter_variety_vars_and_polyscheck_SnapPea_memorycheck_indexchern_simons_choose_generators_choose_generators_infocircle__class____class_getitem__clearclear_markscline_in_tracebackcloseclosed_census_directoryclosed_nonorientableclosed_orientableclosestclscobscodecodeccoefficient_listcoeffscol_supportcolscolumnscombinatorialcomm_subgroupcommutator_subgroupcompilecompletecomplete_lengthcomplete_shape_arraycomplete_shapescomplexcomplex_lengthcomplex_volume_complex_volumecomponentscompute_cornerscompute_cusp_shapescompute_volume__contains__contentcopycopy_c_triangulationcore_lengthcornerscoset_actioncovercover_c_triangulationcover_countcover_infocover.<locals>.genexprcover_typecover_typescovers_covers_gap_covers_low_index_covers_low_index.<locals>.index_covers_magma_covers_snappeacrossingscscurdircurrent_moduluscurrent_shapecurrent_shape_accuracycurve_list_cusp_cross_section_infocusp_images_cusp_imagescusp_indexcusp_indicescusp_infocusp_maps_cusp_mapscusp_neighborhoodcusp""_typecuspscusps_compute_cusp_shapescusps_to_fillcutoffcutoff_lengthcutoff_radiuscutoutcy_evalcyclicdLQbcccdxwbddatadata_ijkdata_specdatabasedatafiledec_precdecodedecorateddecorated_isosigdecoration_default_precisiondefaultextensiondegreedehn_fill__delattr____delitem__descdetdetails__dict___dictdictdirect_product_descriptiondirichlet_domaindispdisplacementdistance__doc__domaindrilldual_curvesdual_rowseedgeedge_classedge_image_indicesedge_indexedge_indicesedge_listedge_orientationsedge_to_index_edge_to_index_dictedge_valencesedgeseight_lengthelementary_divisorseliminate_fixed_ptolemyseltempty_empty_saveencodeendendpointsengine__enter__entriesenumenumerateenvironeqneqnsequation_typeequationseulerevalexceptionsexit__exit__expand_until_certifiedexplain_colsexplain_columnsexplain_rowsexplodeexport_stlextends_to_link_extends_to_linkextract_HT_knotextractfileffaceface0_genface1_genface2_genface3_genface_indexface_listface_list.<locals>.genexprfacedictsfacesfactor_0factor_1filefile_namefiledatafiledialogfilenamefilesfiletypesfillfill_allfill_by_foldfill_cusp_spec_filledfilledfilled_lengthfilled_shape_arrayfilled_shapesfilled_trifilled_triangulationfillingfilling_filling_datafillingsfillings_may_affect_generatorsfindfindallfirst_nybblefive_lengthfive_tet_nonorientablefive_tet_orientablefixed_alignmentflipsflushfoldforce_recomputeformformatformat_explain_listformat_strformat_two_by_two_from_bytes_from_isosig_from_pickle_from_string_from_tetrahedra_gluing_datafull_listfull_rigor__func__funcfunc_OKfunc_bad_inputfunc_cancelledfunc_failedfundamental_groupgg_eqnsgapgap_image_gens_gap_init_gap_stringgengen_namesgenerator_bytesgenerator_filegenerator_pathgeneratorsgenerators_in_originalsgenexprgensgeodesicsgetget_HT_knot_DTget_HT_knot_by_index_get_cusp_indices_and_peripheral_curve_dataget_dataget_displacement_get_from_link_dataget_generalized_ptolemy_obstruction_classesget_ptolemy_obstruction_classesget_ptolemy_variety_get_tetrahedra_gluing_data_get_tetrahedra_shapesget_tieget_triang""ulation_tester__getitem____getstate__gluinggluing_equationsgluing_equations_pglgluingsgroupgroupedgroupsguigziphandleshas_finite_verticesheaderhigh_precisionholonomiesholonomy_accuracyhomologyhoroball_listhoroballshoroviewerhueiidealidentify_identifyignore_curve_orientationsignore_curvesignore_cusp_orderingignore_filling_orientationsignore_orientationignore_solution_typeimagimages_immutablein_radiusinclude_wordsindexindex_within_crossingsindicesinfiniteinfo__init__init_hyperbolic_structureinitial_modulusinitial_shapeinitial_shape_accuracyinitialize_structureinput_typeintint_listinternalinterruptedintervalsinverse_list_wordirregularis_GapElementis_HT_knotis_MagmaElementis_S5is_abelianis_alpha_DT_exterioris_amphicheiralis_binary_groupis_braid_complementis_complete_is_coroutineis_decorated_isosigis_dihedralis_direct_productis_full_groupis_geometricis_int_DT_exterioris_invertible_knot_is_isometric_tois_isometric_tois_isosigis_link_complement1is_link_complement1_patis_link_complement2is_link_complement2_patis_link_complement3is_link_complement3_patis_orientableis_polyhedral_is_symplecticis_torus_bundleis_twister_bundleis_twister_splittingis_two_bridgeisfileislowerisometries_isomorphisms_toisomorphisms_toisosigisosig_patternitemitems__iter__its_matrixjjoinkkeykeysklkleinklpkwargsll0l1l2layeredlayered_and_markedlazyleftleft_pad_stringlenlenStr__len__lengthlength_spectrumlength_spectrum_dictsletter_letter_seperatorlineline0line1line2line3linklink_archivelink_directorylist_as_wordlist_as_word.<locals>.genexprljustloglog_imlog_relog_shapelong_relatorslongitudelongitude_longitude_accuracylookuplow_indexlowermm003m004magma_magma_init_magma_string__main__majormanifoldmanifoldMethods_manifold_classmanifold_classmanifold_namemanifold_pathmanifold_pathsmanifoldsmapmapsmark_solid_torimarked_marked_tetrahedramaskmatmatchmathmatricesmatrix_matrixmatsnfmaxmax_crossingsmax_reachmax_segmentsmaximize_injectivity_radiusmeridianmeridian_meridian_accuracymessage__metaclass__methodminimize_nu""mber_of_generatorsmodemodel__module__modulusmonodromymorwen_link_directorymoves__mro_entries__msg_streammultmultiplicitiesmultiplicitymultiply_elementsmyslicenname__name__ncolsneighborneighbor0_idxneighbor1_idxneighbor2_idxneighbor3_idxneighbor_endneighbors__new__newnew_displacementnew_namenew_tienew_trinext__next__no_arcsnon_peripheralnonorientablenonzerosnrowsnumnum_colsnum_componentsnum_crossingsnum_curvesnum_cuspsnum_edgesnum_faces_num_fake_cuspsnum_finite_verticesnum_gennum_generatorsnum_gensnum_ideal_verticesnum_lengthsnum_linksnum_nonor_cuspsnum_or_cuspsnum_orig_gensnum_original_generatorsnum_relationsnum_relatorsnum_rowsnum_subdivisionsnum_surfacesnum_tetnum_tetrahedranum_threadsnum_verticesnumber_number_number_to_native_number_obsoleteobstruction_classof_linkoffsetoldomega_one_manifoldone_tet_lengthsone_tet_tiltsone_vertex_lengthsopacitiesopenoperatororderorientorientabilityorientableorientation_coverorig_gensoriginal_generatorsoriginal_indexosotherout_radiusoutputoutput_fileowns_c_symmetry_groupppadpairpairing_matricespairing_wordspariparitypartpartspasses_at_fourspath__path__peripheralperipheral_curvesperipheral_datapermperm0perm1perm2perm3permspermutationpermutation_reppermutation_repspicklepiecesplinkplink_callback_plink_callback_polish_hyperbolic_structurespolished_tetrahedra_shapespolyhedral_descriptionpolyviewerpoppopitemposition_precisionprecisionprefix__prepare__presentation_presentation_matrixprintprotocolptolemyptolemyManifoldMethods_ptolemy_equations_action_by_decoration_change_ptolemy_equations_boundary_map_3_ptolemy_equations_boundary_map_2_ptolemy_equations_boundary_map_1_ptolemy_equations_identified_coordinates_ptolemy_equations_identified_face_classesptolemy_generalized_obstruction_classesptolemy_obstruction_classesptolemy_varietypython_major_version__pyx_checksum__pyx_result__pyx_state__pyx_type__pyx_unpickle_PresentationMatrix__pyx_vtable__q__qualname__rradiusrandomizerankraw_formrbrereachreadreadlinereadlinesreal_real_coerced_to_bits_pre""crecomputerecordrectrect_imrect_rerect_shape__reduce____reduce_cython____reduce_ex__reduce_list_wordregular_reindex_cuspsrelrelationrelation_listrelatorsrelsremoveremove_finite_vertices_remove_finite_verticesreopenrepreplacerepr__repr__repsresultresult_curvesresult_cusp_indicesreturnreturn_isometriesreturn_matricesreturn_typeretvalrev_spec_dictreverse_orientationrightrjustrolfsen_link_regexsroundrowrow_entriesrow_oprowsssagesage.groups.free_groupsage.groups.perm_gps.permgroupsage.groups.perm_gps.permgroup_elementsage_helpersage.interfaces.abcsage.interfaces.gapsage.interfaces.magmasage_matrixsage.matrix.constructorsage.rings.integersage.structure.sage_objectsavesavefilesecond_charsecond_nybbleseedseeksegmentsegment_listselfsendsep_set_DTcode_set_PDcodeset_displacement__set_name__set_nameset_peripheral_curvesset_peripheral_from_decorationset_rand_seedset_target_holonomyset_test_flagset_tetrahedra_shapesset_tie__setattr__setdefault__setitem____setstate____setstate_cython__seven_lengthshapeshape_accuracyshapesshort_relatorsshortestshortest_longitudesshortest_meridiansshow_uAcknowledgeshrink_factorsideside_lengthssidedsignsignssigntypesimplified_matrixsimplifysimplify_presentationsingularity_indexsix_lengthsizesmith_formsnapsnapPeasnappea__snappy__so_farsolnsolution_typesortedspecspecsspectrumspherogramspin_shortspine_radiussplitsplit_filling_infosplittingsplitting_from_stringsplitting_surfacesstartstartswithstatestaticmethodstderrstdoutstepstlstopstopperstopping_displacementstrstrandtypestrategystringstripstrlinestructsubgroupsuccesssumsupersurfacesurfacessymmetric_triangulationsymmetries_of_linksymmetries_of_manifoldsymmetry_groupsymplectic_basis_symplectic_formsysttabletable_directorytailtail_vertex_indextarfiletargettarpathtemptempfile__test__tettet_numtetrahedra_datatetrahedra_shapes_three_to_twothrowtiltstimetiptip_vertex_indextitleto_byte_str_to_bytesto_doto_str_to_string_to_string.<locals>.genexprtop_level_triestopologytotaltranslationstriangulation_triangulatio""n_classtriangulation_helptriangulation_isosigtry_hard_to_shorten_relatorstwistertwister_wordtwo_sided_two_to_threetype_type_strtypestypingu_undecorated_triangulation_isosigunitunknownunnamedunpack_unpickle_dirichlet_domain_unsimplified_filled_triangulation.<locals>.genexpr_unsimplified_filled_triangulationupdateupperuse_field_conversionuse_setstateuser_radiusvvalid_indexvaluevaluesverbose_formverifiedverifyverify_complex_volumeversion_infovertexvertex_class_vertex_data_listvertex_epsilonvertex_image_indicesvertex_indices_vertex_listvertex_listvertex_to_index_vertex_to_index_dictverticesviewvolvolumeww0w1wbwhere_to_resumewhich_curvewhich_cuspwhich_solutionwhich_surfacewith_hyperbolic_structure_within_sagewithout_hyperbolic_structurewordword_as_listword_list_word_moveswordswritexx012yy123zzeros\n% Generators% Triangulation:\320\004\036\320\0360\3200C\3001\360<\000\t\014\2109\220C\220q\330\014\017\210q\330\020\026\220j\240\001\330\024\025\360\006\000\r\024\2206\230\037\250\001\330\020\026\220i\230z\250\032\2601\340\010\016\210d\220-\230q\330\010\013\2101\330\014\024\220D\230\t\240\021\240&\250\003\2501\340\014\023\2204\220y\240\001\240\021\200\001\330\0040\260\001\260\026\260q\200\001\330\004\013\2101\210G\2201\200\001\330\004\013\2101\210G\2201\220L\240\004\240A\240S\250\003\250;\260a\320\004#\2401\360Z\001\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\021\320\021%\240Q\240d\250!\330&'\240z\260\021\260!\330\010\017\210r\220\022\2206\230\021\230\"\230A\230S\240\004\240E\250\025\250a\250q\330\021\025\220U\230%\230q\240\001\330\010\035\230Q\230h\240a\340\010\014\210E\220\025\220a\220t\230:\240Q\330\014\030\230\004\230J\240a\240q\330\014\017\210y\230\001\330\020\030\230\002\230\"\230E\240\022\2401\340\020\030\230\001\230\031\240!\330\014\021\220\023\220F\230!\330\020\026\320\026'\240q\250\004\250A\330(+\2503\250a\250t\2603\260a\260t\2701\270A\330\020\024\220G\2301\230A\230S\240\001\240\023\240D\250\005\250U\260!\2601\330\020\"\240!\2401\340\010""\013\2105\220\003\2201\330\014\023\2206\230\021\230!\340\010\013\2105\220\003\2201\330\014\022\220*\230A\230Q\340\010\017\210q\330\010\014\210G\2201\330\014\020\220\004\220O\2401\330\014\017\210t\2201\220C\220q\230\003\2301\230C\230q\240\001\330\014\020\220\001\330\014\020\220\005\220U\230!\2301\330\020\024\220C\220q\230\001\230\021\230\"\230B\230a\330\020\021\220\021\220%\220s\230!\2301\230A\230S\240\002\240!\330\020\021\220\021\220%\220q\230\003\2301\230A\230Q\230b\240\002\240#\240R\240q\330\020\025\220Q\220e\2302\230R\230w\240a\330\014\020\220\007\220s\230#\230S\240\001\330\010\017\210q\320\004;\2701\360\024\000\t\026\220\\\240\021\240&\250\001\330\010\013\2101\330\014\020\320\020*\250!\2401\320\004%\320%;\2701\330$3\2601\330$%\360B\001\000\t\014\2104\320\017 \240\003\2401\330\014\023\2201\360\n\000\t\014\2104\210t\220>\240\023\240E\250\032\2603\260i\270s\300!\330\014\025\220T\320\031+\2502\320-?\270q\330',\250A\330'7\260q\330'1\260\033\270I\300Q\330'1\260\032\2703\270a\330\014\017\210u\220G\2301\330\020\027\220q\340\020\027\220~\240Q\240a\340\010\021\220\021\330\010\013\210:\220S\230\001\330\014\017\320\017\037\230s\240!\330\020\026\220j\240\001\330\024\025\340\014\025\220T\320\0314\260A\330\020\026\220i\230z\250\032\2601\330\020%\240Q\330\014\020\220\005\220Q\330\020\026\220g\230Q\230i\240q\250\005\250Q\330(,\250A\250T\260\021\330(4\260F\270&\300\006\300a\340\014\020\220\005\220U\230!\2304\230\177\250a\330\020\035\230Q\230d\320\"4\260C\260x\270q\330\036\037\230y\250\001\250\031\260!\2608\2701\270A\330\036\037\230|\2501\250A\330\036\037\230|\2501\250A\330\036\037\230q\340\020\033\2306\240\021\240,\250a\250y\270\001\330\020\032\230-\240q\250\014\260A\330\020\032\230&\240\001\240\034\250Q\250h\260a\330\020\031\230\035\240a\240|\2601\330\020\023\2205\230\004\230H\240G\2501\340\024\032\230'\240\021\240)\2501\330\034!\240\024\240Y\250a\250q\330\034 \240\004\240I\250Q\250a\330\034(\250\014\260A\330(4\260A\340\024\032\230'\240\021\240)\2501\330\034!\240\024\240Y\250a""\250q\330\034 \240\004\240I\250Q\250a\330\034#\240:\250W\260A\330\034(\250\014\260A\330(4\260A\340\010\013\2101\330\014\017\210z\230\023\230A\330\020\031\230\026\320\0375\260Q\330\024\032\230!\2301\230A\230X\240T\250\025\250a\330\024\035\230Z\240z\260\021\340\020\031\230\026\320\0375\260Q\330\024\032\230!\2301\230A\230X\240T\250\025\250a\330\024 \240\004\240K\250q\330\014\017\210t\2206\320\0310\260\001\330\020\026\220l\240!\2401\360\006\000\r\026\220R\220y\240\001\240\025\240a\330!%\240Q\240d\250!\330!-\250U\260%\260u\270A\330\027\033\2305\240\006\240a\340\010\013\2105\220\007\220q\330\014\r\330\020\027\220q\230\001\230\021\230&\240\004\240E\250\021\330\023\024\330\020\026\220j\240\001\240\021\360\006\000\r\024\220>\240\021\240!\320\004(\320(;\2701\360\022\000\t\014\2104\320\017 \240\003\2401\330\014\r\330\010,\250A\250T\3201C\320CT\320TU\330\010\014\210G\2206\230\021\230(\240!\320\004:\270!\360\036\000\t1\260\001\330\010\013\2104\320\017 \240\007\240q\330\014\022\220*\230A\230Q\330\010\023\220;\230a\230q\330\010\032\320\0328\270\001\270\021\330\010\014\320\014 \240\001\240\021\330\010\013\2101\330\014\020\320\020(\250\001\320\0041\260\031\270!\360D\001\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\024\220D\230\n\240!\340\010\013\210;\220g\230Q\330\014\031\230\033\240A\330\020\034\230A\330\020\021\340\014\026\220l\240!\330\014\031\230\031\240#\240R\240t\250:\260S\270\001\330\014\031\230\021\230$\230a\330\032&\240a\330\032%\240Q\240a\330\032%\240Q\240a\330\014\020\220\007\220v\230Q\230h\240a\340\014\017\210z\230\022\2302\230T\240\023\240A\240^\2603\260a\330\020\025\220T\230\027\240\001\240\036\250q\330\025\030\230\004\230G\2401\240L\260\001\260\024\260Q\330\024\032\230*\240A\240Q\360\006\000\r\020\210z\230\023\230B\230d\240#\240Q\240n\260C\260q\330\020\035\230Z\240q\250\006\250n\270A\330\020\021\330\014\017\210s\220!\220>\240\022\2401\330\020\026\220j\240\001\240\021\330BC\330!\"\330\014\020\220\003\2208\2309\240A\240Q\330\020\035\230Z\240q""\250\006\250f\260A\320\0041\260\031\270!\360D\001\000\t\026\220Z\230q\240\006\240n\260A\330\010\027\220q\230\004\230A\330\010\014\210G\2206\230\021\230(\240!\320\004#\2401\330\010\014\320\014\035\230W\240E\250\021\250.\270\001\340\010\013\2105\220\002\220#\220]\240#\240Q\240d\250!\330\014\022\220*\230A\230Q\330.0\260\001\340\010\014\210N\230!\340\010\014\210J\220c\230\021\230$\230j\250\001\250\021\340\010\016\210i\220q\230\007\230w\240a\240q\330#'\240y\260\007\260q\270\001\330\037&\240a\240q\320\004#\2401\360\034\000\t\020\320\017\037\230q\240\001\320\0001\260\021\330 !\360\010\000\005\t\210\017\220q\230\014\240O\2603\260j\300\016\310a\310q\330\004\007\200q\320\010\031\230\023\230A\330\010\017\210q\330\004\026\220a\220q\320\030*\250!\2501\330\004\005\320\005\031\230\021\230!\330\004\007\200q\360\006\000\t\024\2201\220A\330\010\013\320\013\035\230Q\320\036/\250r\260\021\330\014\"\240!\2401\330\014\027\220q\230\001\340\010*\250!\2501\330\010\027\220q\230\001\340\004\005\200Y\210a\210q\220\005\220Q\330\004\005\200_\220A\220Q\330\004\013\2101\200\001\330\004\013\2102\210Q\210b\220\004\220E\230\024\230T\240\021\320\0042\260!\330)*\330-.\330*+\330&'\360D\001\000\t\030\220q\230\004\230A\330\030#\2401\240A\330\030\031\330\030\031\330\030\031\330\030#\2401\240A\330\030\031\230\021\330\030\031\230\021\330\010\023\2201\330\010\014\210G\2209\230A\330\014\025\220^\2401\240I\250Q\250b\260\001\330\014\031\230\026\230q\240\001\240\021\240$\240i\250q\260\013\2701\270F\300)\3101\310B\310g\320UV\320VX\320XY\320YZ\330\"&\240e\2505\260\001\260\024\260T\270\025\270e\3001\300A\330\014\r\330\020\033\2304\230y\250\001\250\021\330\020\033\230<\240q\250\t\260\021\260\"\260A\330\020\035\230Y\240a\240y\260\001\260\022\2601\330\020\"\240)\2501\250B\250a\330\020\033\2301\340\014\025\220Y\230a\230r\240\021\330\014\017\210q\330\020\021\220\021\220*\320\034,\250A\330\024\034\230D\320 B\300!\340\014\024\220G\2301\320\034.\250c\260\021\330\010\034\230A\230[\250\001\330\010\017\210~\230Q\230a\320\0043""\3203C\320CV\320VW\360$\000\t\021\220\004\220L\240\001\330\010\013\2101\330\014\023\2201\340\010\014\210D\320\020(\250\001\340\010\020\220\001\220\026\220r\230\022\2302\230R\230r\240\024\240T\250\025\250e\2601\260A\340\010\016\210c\220\021\220'\230\022\2301\330\014\020\220\005\220T\230\021\230!\330\014\017\210r\220\023\220C\220q\230\001\330\020\024\220E\230\026\230q\240\001\360\006\000\021\027\220h\230e\2402\240T\250\025\250a\250q\260\001\260\021\330\020\030\230\001\230\025\230a\230v\240R\240r\250\027\3200A\300\021\300%\300q\310\001\310\021\330\031\035\230U\240!\330\020\025\220W\230A\320\035-\250Q\250c\260\021\260'\270\021\340\020\024\220E\230\024\230Q\230a\330\020\023\2202\220S\230\001\330\024\031\230\021\230%\230u\240B\240a\330\024\034\230E\240\023\240A\330\025\027\220s\230!\2301\330\024\031\230\021\230%\320\0370\260\001\260\025\260a\260q\340\024\027\220t\2305\240\001\240\023\240A\240U\250%\250q\260\003\2601\260A\330\024\027\220q\230\001\230\022\2302\230Q\330\030\034\320\034-\250Q\250a\330\024\031\230\021\230#\230Q\230f\320$4\260A\260Q\260a\260u\270B\270b\300\007\300q\310\001\310\021\340\010\013\2101\330\014\023\2205\230\001\230\021\340\014\020\220\004\320\024,\250A\330\014\023\2202\220\\\240\021\240&\250\003\250>\270\024\270X\300U\310!\3101\320\004\"\320\"3\3203F\300a\360z\001\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\013\2109\220C\220q\330\014\017\210t\220:\230S\240\001\330\020\026\220i\230q\240\001\360\010\000\r\024\320\023,\250A\250V\260;\270a\330.:\270!\340\010\013\210:\220S\230\001\330\014\023\220>\240\021\240!\2404\240z\260\021\260!\330#'\240u\250E\260\021\260$\260j\300\001\340\010\013\210:\220Q\220k\240\021\330\014\023\2201\220A\220Q\220k\240\024\240U\250$\250j\270\001\330\010\025\220[\240\001\330\014\027\220t\230:\240Q\330\014\r\340\010\025\220Q\220d\320\032,\250A\330\026\027\220z\240\021\240-\250q\260\003\2601\260A\330\026\027\220\177\240a\240q\330\026\027\320\027/\250q\260\001\330\026\027\320\027(\250\001\250\021\330\010""\024\220A\220T\320\031+\2501\330\025\026\220l\240!\2401\330\025\026\320\026)\250\021\250!\330\010\017\210~\230Q\230a\330\010\r\210\\\230\021\330\010\023\220>\240\021\240!\330\010\020\220\014\230A\330\010\024\220N\240!\2401\330\010\021\220\034\230Q\330\010\022\220.\240\001\240\021\330\010\t\330\014\026\220a\330\014\031\230\034\240Q\240a\330\014\034\230C\230q\240\001\330\014\031\230\032\2401\240D\250\n\260!\2601\330\014\025\220T\230\031\240!\2401\330\014\036\230a\330\014\027\220t\2309\240A\240Q\330\014\033\2304\230y\250\001\250\033\260D\270\t\300\021\300!\330\014%\320%7\260q\360\006\000\t\026\220Q\220d\320\032,\250A\330\026\027\320\027*\250!\250?\270!\2701\340\010\013\320\013\035\230S\240\001\330\014\032\230.\250\001\250\021\330\014\027\220|\2401\330\014\020\220\007\220q\330\020\037\230t\2409\250A\250Q\330\020%\240Q\360\006\000\t\020\210x\220s\230!\320\0043\3203I\310\021\360H\001\000\t\026\320\025'\240q\250\004\250A\360\010\000\t\014\2104\320\017 \240\003\2401\330\014\023\2201\340\010\013\2101\330\014\017\210t\2203\220a\220{\240#\240R\240r\250\021\330\020\026\220i\230q\240\001\330\014\032\230+\240V\2501\250B\250b\260\002\260\"\260A\330\014\020\220\005\220U\230!\2302\230R\230q\330\020\033\2301\230E\240\025\240i\250q\260\010\270\001\330\014\036\230a\230t\2401\330\037 \240\001\340\014\026\220a\330\014\020\220\005\220U\230!\2301\330\020\036\230a\330\020\"\240!\2404\240q\330#$\240A\330\020\031\230\036\240q\250\001\330\020\023\220:\230Q\230h\240c\250\021\330\024\036\230a\330\024\025\340\024&\240a\240q\340\014\017\210t\2201\330\020\026\220l\240!\2401\360\006\000\t1\260\001\330\0200\260\001\340\010\014\210A\210Q\340\010\022\320\022&\240a\240q\330\010\017\320\017#\2401\240A\330\010\017\210y\230\001\230\024\230U\240#\240R\240q\340\010\017\210q\200\001\330\004\020\220\001\330\004\007\200|\2203\220a\330\010\014\210E\220\025\220a\220s\230!\330\014\017\320\017\"\240!\2403\240b\250\001\330\020\034\230A\230Q\230a\330\020\021\330\010!\240\026\240r\320)<\270A\270Q\330\t\025\220S\230""\001\330\010\014\210E\220\025\220a\220s\230!\330\014\017\320\017%\240Q\240c\250\022\2501\330\020\034\230A\230Q\230a\330\020\021\330\010!\240\026\240r\320)?\270q\300\001\330\004\013\2105\220\002\220*\230B\230l\250\"\250E\260\023\3204K\3102\310Q\330\004\013\210>\230\021\230!\320\004 \240\003\2403\240a\320'=\270Q\330\010\016\210i\220q\230\006\230a\330\010\014\320\014\034\230G\2405\250\001\320)>\270a\320\004 \240\003\2403\240a\320'=\270W\300E\310\021\330\010\016\210i\220q\230\006\230a\320\004 \240\003\2403\240a\320':\270'\300\025\300a\330\010\016\210i\220q\230\006\230a\200\001\330\004\013\2103\210a\210s\220$\220a\320\000\"\240!\330\004\013\2103\210b\220\007\220r\230\023\230A\230V\2402\240Q\320\0044\260A\360\010\000\t\r\210D\320\020\"\240!\340\010\023\2206\230\021\230!\2309\240A\240\\\260\027\270\004\270A\340\010\030\320\030(\250\004\250A\330\010\023\2201\340\010\013\2101\330\014\017\210s\220!\2208\2301\230D\240\003\2401\240A\240Q\330\020!\240\021\240$\240d\250'\260\031\270#\270S\300\001\300\025\300c\310\021\310!\3101\330\020 \240\010\250\001\250\023\250A\250Q\330\020\033\2301\330\021\024\220A\220X\230Q\230d\240#\240Q\240a\240q\330\020!\240\021\240$\240d\250'\260\031\270#\270S\300\001\300\025\300c\310\021\310!\3101\330\020 \240\010\250\001\250\023\250A\250Q\340\010\017\210y\320\030)\250\021\250!\250?\270!\330*+\330*+\330*+\330*3\2601\330*6\260a\340\010\t\360\006\000\t\022\220\021\220$\220f\230A\230S\240\004\240E\250\025\250c\260\025\260a\260s\270#\270Q\330\010\014\210C\210u\220I\230Q\230a\330\014\r\210Y\220a\220q\230\005\230S\240\002\240#\240Q\240a\330\010\017\210q\320\004 \240\001\360\020\000\t\014\2104\320\017 \240\003\2401\330\014\023\2201\330\010\017\320\017!\240\021\240$\240a\320\004(\250\001\360<\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\360\010\000\t\014\2101\330\014\017\210}\230A\230Q\330\020\023\220?\320\"4\260A\330\024\031\230\023\230A\230T\320!3\2601\330\024#\2402\320%7\260q\270\001\330\024%\240\\\260\026\260r\3209K\3101\330\024\030\320""\030(\250\001\250\021\330\024\033\2304\230v\240Q\240a\240q\250\001\250\023\250D\260\005\260Q\330\026%\320%G\300s\310!\330\026%\320%=\270Q\330\024\030\230\001\330\024\033\2304\230v\240Q\240a\240y\260\001\260\021\260&\270\002\270+\300Q\300a\340\024\032\230*\240A\240Q\340\021 \240\001\240\021\330\020\035\230T\240\021\240/\260\025\260a\330\020\023\220;\230c\240\021\330\024\031\230\025\230a\230t\320#5\260Q\330\024\030\230\002\230,\240a\240q\330\025 \240\003\2401\330\024\030\230\001\330\024\027\220t\2304\230q\240\001\240\026\240r\250\025\250d\260#\260Q\330\030\036\230i\240q\250\001\360\006\000\025\033\230)\2401\240A\340\020\025\220U\230!\2301\360\n\000\021#\240!\320#7\260r\270\025\270a\360\006\000 !\330\020\"\240!\2401\240B\240b\250\002\250$\250e\2604\260w\270a\330#'\240x\250q\340\010\014\210D\320\020\"\240!\330\010\033\2304\320\0371\260\021\260!\330\010\021\220\023\220A\220_\240A\240W\250C\250q\3200A\300\022\3007\310!\360\016\000\t \230q\320 A\300\021\300$\300a\340\010\032\230/\250\021\250$\250a\330*+\330*/\250q\330\010\020\220\004\220J\230a\230q\330\010\r\320\r!\240\021\240!\330\010\r\210_\230A\330\014\027\220t\2305\240\001\330\014\027\220{\240!\320#3\2601\330\014\027\220q\340\010\r\210Y\220a\220t\2305\240\003\2401\240D\250\002\250$\250a\250w\260b\270\001\330\010\033\2301\230A\330\034\035\320\0355\260Q\330\034 \240\n\250!\330\010\017\210q\320\004\"\240!\360>\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\013\210:\220S\230\001\330\014\023\220>\240\021\240!\2404\240z\260\021\260!\330#'\240u\250E\260\021\260$\260j\300\001\330\010\013\210:\220Q\220k\240\021\330\014\023\2201\220A\220Q\220k\240\024\240U\250$\250j\270\001\330\010\025\220[\240\001\330\014\027\220t\230:\240Q\330\014\r\340\010\025\220Q\220d\320\032,\250A\330\026\027\220z\240\021\240-\250q\260\003\2601\260A\330\026\027\220\177\240a\240q\330\026\027\320\027/\250q\260\001\330\026\027\320\027(\250\001\250\021\330\010\t\330\013\025\220Q\330\013\030\230\014\240A\240Q\330\013\033\2303\230a\230q""\330\013\030\230\n\240!\2404\240z\260\021\260!\360\006\000\t\020\210x\220s\230!\320\004\"\240(\250!\360\022\000\t\026\220[\240\001\240\021\330\010 \240\001\330\010\013\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\036\230a\230t\320#5\260Q\320\004:\270!\360 \000\t\014\2104\320\017 \240\007\240q\330\014\022\220*\230A\230Q\340\010\020\320\020#\2406\250\021\250!\330\010\013\2101\330\014\024\220M\240\025\240g\250Q\330\r\026\220f\230A\230Q\330\014\031\230\021\360\006\000\r\016\340\010\014\320\014 \240\001\330\0144\260A\260V\2707\300!\3001\360\006\000\t\014\2104\320\017 \240\003\2401\330\014\r\340\010\013\2101\330\014\034\320\034;\2701\270F\300!\340\010\013\2101\330\014\020\320\020(\250\001\200\001\330\004\013\2104\210q\220\001\320\004:\270!\330\010\013\2104\210t\2201\330\014\r\330\010\013\2104\320\0171\260\024\260T\270\021\330\014\r\330\010*\250!\2504\250q\330\010\027\220q\230\004\230A\330\010\014\320\0140\260\001\320\004\032\230!\360\024\000\t\n\330\014\023\2204\220w\230g\240Q\240a\330\017\020\360\014\000\t\014\2104\320\017 \240\003\2401\330\014\023\220<\230q\330\010\014\210H\220A\220T\230\021\330\010\013\2102\210S\220\001\330\014\037\230q\330\014\"\240!\2401\330\014\020\220\007\220y\240\001\240\021\330\020 \240\007\240q\250\001\320)>\270a\270q\330\014\036\230a\230q\330\014\025\220\\\240\021\320\"6\260a\340\014\r\330\020\031\230\024\320\035-\250Q\330\023\024\330\020\031\230\024\230]\250!\330\010\017\210t\2207\230%\230q\240\010\250\001\200\001\330\004\013\2104\210x\220q\230\005\230Q\330\004\010\320\010\034\230F\240!\2401\330\004\007\200q\330\010\013\2103\210h\220j\240\001\240\027\250\001\330\010\013\2104\210s\220!\2204\220s\230!\2301\330\010\021\220\026\220x\230q\240\005\240T\250\030\260\021\260%\260q\330\010\022\220'\230\030\240\021\240%\240t\2508\2601\260E\270\021\330\010\022\220'\230\030\240\022\2403\240a\330\010\017\210w\220j\240\001\240\030\250\031\260,\270a\200\001\330\004\013\2104\210x\220q\230\005\230Q\330\004\010\320\010\031\230\026\230q\240\001""\330\004\007\200q\330\010\013\2103\210l\230!\2307\240!\330\010\013\2104\210s\220!\2204\220s\230!\2301\330\010\024\220I\230X\240Q\240e\2504\250x\260q\270\005\270Q\330\010\022\220'\230\030\240\022\2403\240a\330\010\017\210w\220g\230Q\230k\250\034\260Q\200\001\330\004\013\2105\220\001\220\021\320\0045\260Q\330#D\300A\360f\005\000\t\020\320\017%\320%9\270\021\330\014\022\220#\220Q\330\014\027\220q\330\014'\240q\320\0045\260]\300!\360\026\000\t\024\220>\240\021\240!\330\010\033\2301\230D\240\001\330\034(\250\n\260!\210\001\330\014\023\2205\230\003\2301\230J\240c\250\027\260\003\2601\260H\270A\270Q\200\001\330\004\013\210?\230!\320\033+\2506\260\027\270\001\270\032\300>\320QR\200\001\330\004\013\2107\320\022$\240A\320\004%\320%7\260q\360\030\000\t\026\220T\230\034\240Q\240a\330\010\027\320\0278\270\001\330\014\020\220\001\330\014\r\330\010\013\210=\230\003\2301\330\014\022\220,\230a\230q\330\010\021\220\021\330\010\014\210E\220\025\220a\220|\2401\330\014\026\220l\240(\250!\2501\330\014\017\210q\330\020\021\330\024\030\230\t\240\021\240.\260\001\260\027\270\t\300\021\300!\330\024\030\230\t\240\021\240.\260\001\260\027\270\t\300\021\300!\340\020\030\230\017\240q\250\007\250y\270\001\270\021\330\030'\240q\250\007\250y\270\001\270\021\330\014\022\220'\230\021\230!\330\010+\2501\250A\330\010\017\210q\320\004&\320&7\260q\360j\002\000\t\014\2102\210R\210r\220\023\220B\220b\230\001\330\014\022\220*\230A\230Q\340\010\013\210>\230\030\240\021\330!\"\330!)\250\030\260\021\330!\"\330!.\250a\330\014\022\220*\230A\230Q\340\010\013\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\024\220A\330\010\027\220q\330\010\027\220q\340\010\013\210>\230\025\230g\320%7\260q\360\006\000\r*\250\021\250$\250a\330*+\250:\260Q\330\014\022\220#\220_\320$C\3001\300A\330\014\031\230\021\330\014\034\230A\340\010\013\210>\230\025\230g\320%7\260q\360\006\000\r*\250\021\250$\250a\330*+\250:\260Q\330\014\022\220#\220_\320$C\3001\300A\330\014\031\230\021\330\014\034\230A\340\010\013\210>\230\025""\230g\320%8\270\001\360\006\000\r.\250Q\250d\260!\330./\250z\270\021\330\014\022\220#\220_\320$C\3001\300A\330\014\031\230\021\330\014\034\230A\340\010\013\210>\230\024\230W\240N\260-\270q\360\010\000\r\021\220\005\220U\230!\2304\230z\250\021\330\020\034\230D\240\n\250!\2501\340\020\030\230\001\360\010\000\021\024\2209\230A\360\006\000\025\030\220~\240U\250,\260n\300A\330\030!\240\023\240B\240a\330\030(\250\001\330\0340\260\003\2603\260d\270%\270u\300A\300Q\300a\300q\360\006\000\025\030\220~\240U\250-\260~\300Q\330\030!\240\023\240B\240a\330\030(\250\001\330\0341\260\023\260C\260t\2705\300\005\300Q\300a\300q\310\001\360\n\000\025\036\230R\230y\250\001\330\024$\240A\330\030+\2503\250c\260\024\260U\270%\270q\300\001\300\021\300!\360\006\000\021\026\220S\230\006\230a\340\024*\250!\2504\250q\330+,\250A\330+.\250c\260\023\260A\340\024\032\230#\230Q\330\0307\260q\270\001\330\024!\240\021\340\010\013\210:\220S\230\001\340\014\023\2201\340\010\017\320\017)\250\021\250&\260\001\260\021\330*+\330*+\320\004 \240\003\2408\2501\330\010\016\210i\220q\230\006\230a\320\004 \240\003\2408\2501\330\010\016\210i\220q\230\006\230a\330\010\014\320\014\036\230g\240U\250!\2502\250U\260%\260q\270\017\320GW\320WX\320\0048\270\001\360:\000\t\014\2104\210q\330\014\033\2304\320\0371\260\021\260!\330\014\022\220,\230g\240\\\260\021\340\014\017\210t\2201\330\020\026\220l\240!\2401\330\014\022\220$\320\026.\250a\250q\330\010\017\210q\320\0048\270\001\360\030\000\t\026\220]\240!\2406\250\021\330\010\013\2101\330\014\020\320\020*\250!\320\0048\270\001\360\n\000\t\026\220]\240!\2406\250\021\330\010\013\2104\320\017 \240\003\2401\330\014\r\330\010\013\2101\330\014\020\320\020*\250!\320\0048\270\001\360J\001\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\014\210D\220\n\230!\330\010\013\320\013#\2401\330\014\022\220*\230A\230Q\330\010*\250!\340\010'\240q\340\010\013\2107\220#\220Q\330\014\033\2301\330\r\024\220C\220q\330\014\033\2301\330\014\036\230a\330\r\024\220C\220q\330\014""\033\2301\330\014\036\230a\340\014\022\220*\230A\230Q\340\010\024\220I\230Q\230d\320\"4\260K\270q\300\004\300E\310\023\310B\310a\330\010\031\230\032\2406\250\021\250!\2501\250A\330\010\014\210E\220\025\220a\220q\330\014\032\230!\2305\240\001\340\010\023\2201\220K\320\037/\250~\270Q\330\010\035\230Q\230a\330\010\037\230q\240\001\330\010\031\230\021\230!\330\010\023\2201\220A\330\010\025\320\025)\250\021\250!\330\010\022\320\022&\240a\240q\330\010\014\210A\210Q\330\010\017\210q\320\004)\320)9\3209Q\320QR\330!4\260N\300!\3608\000\t\022\220\023\220A\220T\230\032\2404\240w\250h\3206H\310\017\320WX\330\r\021\220\021\220*\230H\240A\330\014\020\220\010\230\001\330\020\023\220<\230w\240a\330\024\037\230q\330\020\033\2306\240\021\240!\320\004&\320&9\270\021\360\022\000\t\035\230D\240\017\250q\340\010\030\230\001\330\010\030\320\030,\250A\250T\260\021\330\010\014\210G\2209\230A\330\014\027\220\177\240a\240t\320+B\300!\330\014\017\210q\330\020\027\320\027)\250\021\250!\340\020\027\320\027'\240q\250\n\260*\270A\330\014\031\230\027\240\001\240\021\330\014\034\230A\230Q\330\010\017\210q\320\004'\320'9\270\021\360\022\000\t\026\220T\230\034\240Q\240a\330\010\027\320\027:\270!\330\014\020\220\001\330\014\r\330\010\013\210=\230\003\2301\330\014\022\220,\230a\230q\330\010\021\220\021\330\010\014\210G\2209\230L\250\001\330\014\026\220l\240(\250!\2501\330\014\017\210q\330\020\021\330\024\030\230\t\240\021\240.\260\001\260\027\270\t\300\021\300!\330\024\030\230\t\240\021\240.\260\001\260\027\270\t\300\021\300!\340\020\035\230_\250A\250W\260I\270Q\270a\330\035,\250A\250W\260I\270Q\270a\330\014\027\220w\230a\330\027\036\230a\330\027\036\230a\330\014\022\220'\230\022\230>\250\033\260L\300\001\330\010+\2501\250A\330\010\017\210q\200A\33023\33056\33023\33078\330<=\360J\001\000\t1\260\001\330\010\013\2104\320\017 \240\007\240q\330\014\022\220*\230A\230Q\330\010\032\320\0323\2601\260A\33045\33045\33045\33045\330\010\014\320\014 \240\001\240\021\330\010\013\2101\330\014\020\320\020(\250\001\200A""\3606\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\021\320\021%\240Q\240d\320*<\270A\270Q\330\010\013\2107\220#\220Q\330\014\022\220,\230a\230q\340\010\016\210a\330\010\014\210E\220\025\220a\320\0278\270\001\270\021\330\014\017\210w\220b\320\030)\250\021\330\020\033\2303\230a\320\037;\2701\270J\300a\330\020\032\230#\230Q\320\0369\270\021\270*\300A\330\020\026\320\0269\270\021\270*\300A\330\020\026\220a\340\010\034\230A\230Q\330\010\017\210~\230Q\230a\200A\3606\000\t\r\210K\220q\330\014\025\220T\230\037\250\001\330\014\r\340\010\014\210K\220q\330\014\030\230\001\330\014\r\340\010\016\210d\320\022\"\240/\260\021\330\010\014\210E\220\025\220a\220q\330\014\022\220#\220Q\340\010\013\2103\210k\230\021\230\"\230G\2403\240a\330\014\023\2201\340\010\021\220\034\230Q\230c\240\033\250A\250T\260\021\260!\330\036\037\230t\320#3\2601\340\010\013\2107\220#\220Q\330\014\020\220\007\220v\230Q\230j\250\001\330\014\020\320\020.\250a\340\010\017\210q\200A\3608\000\t\035\230A\230T\320!4\260A\360\n\000\t\033\230$\320\0364\260A\330\010\030\230\004\320\0340\260\001\360\006\000\t\017\210g\220V\2306\240\023\240C\240s\250!\330\010\020\220\001\330\010\017\210t\2201\330\010\016\210e\2203\220a\220t\320\033.\250a\330\014\027\220q\330\014\035\230Q\330\014#\2401\330\014\033\2301\330\014!\240\021\330\014 \240\001\330\014\023\2204\220q\330\014\r\340\020\027\220x\230t\2402\240Q\240f\250C\250z\270\021\330\020\026\220g\230U\240#\240Z\250q\330\020\031\230\024\230R\230q\240\001\330\020\030\230\007\230q\240\005\240Q\330!\"\340\020\036\230g\240Q\330\024#\2401\240I\250Q\330\020\034\230G\2401\330\024!\240\021\240)\2501\330\020!\240\027\250\001\330\024\025\220U\230%\230s\240+\250Q\340\020\033\2304\230y\250\001\250\021\330\020\"\240'\250\021\330\024!\240\021\240(\250!\340\020\037\230q\330\020\023\2204\220t\320\033/\250q\260\001\330\024#\2408\2504\250s\260)\2701\340\020$\240G\2501\330\024#\2401\240I\250X\260R\260q\270\001\360\006\000\021\030\220t\2302\230Q\230d\240!\2401\330\020\023""\2205\230\003\2304\230q\330\024\025\340\014\021\220\027\230\001\330\021\036\230a\330\021$\240A\330\021\"\240!\330\021*\250!\330\021(\250\001\330\021\036\230d\240)\2501\250K\260q\270\006\270d\300!\330\021\036\230a\330\025\031\230\031\240!\240;\250a\250v\260T\270\036\300q\310\001\330\025\031\230\025\230e\2401\240B\240a\330\021\036\230k\250\021\250$\250h\260a\330\021'\240q\330\014\023\2204\220q\330\010\017\210q\200A\360B\001\000\t\021\220\004\220M\240\024\240W\250A\200A\330FG\360\020\000\t)\250\001\360\006\000\t\014\2102\210R\210r\220\023\220B\220b\230\001\330\014\022\220*\230A\230Q\340\010\013\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\013\2101\330\014\020\320\020\"\240!\2404\240q\330\014\017\210r\220\022\2202\220S\230\003\2301\230A\330\020\026\220j\240\001\240\021\330\014\"\240'\250\026\250q\260\001\260\021\260!\2601\260A\330\014\020\220\003\2205\230\t\240\021\240!\330\020#\2401\240E\250\021\340\010\035\230Q\230d\240!\340\0104\260A\330\014\020\320\020\"\240!\2408\2503\250a\340\010\014\210A\210Q\340\010\017\320\017;\2701\270A\200A\360P\001\000\t\r\210D\220\017\230q\330\010\017\210r\320\021\"\240!\2403\320&6\260a\330\021\025\220U\230%\230q\240\003\2401\240A\240Q\200\001\330\004\t\210\021\330\004\014\210A\210Q\210j\230\002\230!\330\004\010\210\010\220\006\220b\230\001\330\010\030\230\005\230R\230v\240S\250\001\330\010\013\210=\230\003\2301\330\014\033\2301\330\010\n\210'\220\021\220!\2201\220A\330\010\030\230\005\230R\230q\330\010\013\210>\230\023\230A\330\014\034\230A\330\010\n\210'\220\021\220!\2201\220A\330\004\007\200|\2203\220a\330\010\020\220\006\220b\230\002\230\"\230B\230b\240\006\240b\250\001\330\010\017\210q\330\010\014\210E\220\025\220a\220q\330\014\020\220\006\220c\230\025\230c\240\024\240S\250\001\330\020\022\220!\2205\230\001\230\022\2301\230A\330\004\013\2102\210R\210q\200A\330)0\260\001\3304;\2701\330-4\260A\3309@\300\001\330;B\300!\33029\270\031\300!\360x\007\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\020""\220\001\330\020\021\330\020\021\330\020\021\330\020\021\330\020\021\330\010\t\330\014\023\2204\220w\230g\240Q\320&?\270q\330\017\020\360\006\000\t\014\2101\330\014\025\320\025%\320%6\260a\330\020\026\220a\330\020'\240q\330\020 \240\001\330\020,\250A\330\020.\250a\330\020%\240Q\340\014\025\220T\320\031;\2701\330\020%\240Q\330\010\017\210t\2207\230%\230q\240\010\320(A\300\021\200A\360\024\000\t\020\320\017*\250!\2501\200A\360\\\001\000\t\017\320\016#\2401\240A\200A\360\010\000\t\020\320\017#\2401\240D\250\001\200A\340\010\022\320\022#\2401\240D\250\001\330\010\020\320\020\"\240!\2401\330\010\030\230\001\230\021\330\010\017\210q\200A\360\020\000\t\020\320\017#\2401\240D\250\001\200A\360\032\000\t\024\2201\220D\230\001\330\010\017\320\017!\240\021\240$\240a\200A\330\010\017\320\017\"\240!\2401\200A\340$+\2501\330-4\260A\330,3\2601\330+2\260!\330\021\022\360>\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\020\320\020'\240q\330\020/\250q\330\010\t\330\014\023\2204\220w\230g\240Q\320&<\270A\330\017\020\360\006\000\t\020\210t\2207\230%\230q\320 0\260\001\260\027\270\001\330 6\260a\200A\340$+\2501\330-4\260A\330,3\2601\330+2\260!\330\r\016\360B\001\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\020\320\020'\240q\330\020/\250q\330\010\t\330\014\023\2204\220w\230g\240Q\320&<\270A\330\017\020\360\006\000\t\022\220\035\230a\230w\240a\330\010\017\210t\2207\230%\230q\240\010\320(>\270a\320\004$\240A\360\036\000\t\014\2101\330\014\023\2204\320\027)\250\021\340\014\023\2204\220}\240A\200A\360\032\000\t1\260\001\330\010\013\2104\320\017 \240\007\240q\330\014\022\220*\230A\230Q\330\010\032\320\0322\260!\2601\330\010\014\320\014 \240\001\240\021\200A\360\n\000\t\014\2101\330\014\027\220}\240A\330\020\025\220U\230&\320 6\3206G\300q\330\020\034\230A\330\0255\260_\300A\330\025'\240t\2501\330\025\"\240!\330\014\017\210q\330\020\033\2308\2401\330\020\030\230\006\230a\330\020\024\220E\230\021\230!\330\020\021\340\010\016\210j\230\001\230""\021\200A\330,-\330./\330'(\360\020\000\t,\2501\330\010-\250Q\340\010\013\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\014\320\014\036\230a\230t\2401\330\010\013\210>\230\027\240\001\330\014!\240\033\250F\260!\2601\260A\260Q\330\014\020\220\003\2209\230I\240Q\240a\330\020\"\240!\2405\250\017\260q\270\007\270q\300\001\330\010\013\320\013\033\2307\240!\330\014#\240;\250f\260A\260Q\260a\260q\330\014\020\220\003\2209\230I\240Q\240a\330\020$\240A\240U\250/\270\021\270'\300\021\300!\330\010\013\2101\330\014\025\220Q\220d\320\032,\250A\330\010\026\220a\220t\2301\330\027\030\330\027\030\330\010\032\230!\2304\230q\330\010\037\230q\240\004\240A\330\010\013\320\013\036\230c\240\021\330\014\020\220\001\220\021\330\010\013\320\013 \240\003\2401\330\014\020\220\001\220\021\330\010\014\210G\2206\230\021\230(\240!\200A\360\032\000\t\033\320\0321\260\021\260$\260a\330\010\030\230\r\240Q\240d\250.\270\004\270A\330\010\025\320\025+\2501\250A\330\010\017\210q\200A\330\010\013\2101\330\014\023\220<\230q\320 2\260*\270D\300\n\310!\330 &\320&<\270A\270T\300\021\330\010\016\210l\230!\2301\200A\330\037 \330%+\2501\330\")\250\021\330(/\250q\360$\000\t\021\220\010\230\014\240I\250Q\330\010\t\330\014\023\2204\220w\230g\240Q\320&:\270!\330\017\020\340\010\014\210D\320\020!\240\021\320\"2\260!\330\010\017\210t\2207\230%\230q\330\014\r\320\r#\2401\330\020 \240\001\330\020\035\230Q\330\020\032\230!\330\014\r\330\r\016\200A\200A\330\010\021\220\032\2302\230T\240\027\250\005\250Q\330\010\022\220#\220Q\220d\230'\240\025\240a\330\010\013\2108\2202\220Q\330\014\017\210t\2207\230%\230s\240\"\240A\330\020\032\230!\340\020\032\230!\330\014\026\220l\240\"\240A\340\010\013\2107\220#\220Q\330\014\023\320\0236\260a\330\020\024\220A\330\020\021\330\020\024\220A\330\020!\240\021\240$\240a\330\020\024\220A\340\014\023\320\023.\250a\330\020\024\220A\330\020\021\330\020\024\220A\330\020!\240\021\240$\240a\200A\340,3\2601\360\010\000\t\020\210t\320\023$\240A\330\014\023\320\023'\240q\200A\330\010""\013\2103\210a\210v\220R\220r\230\024\230W\240C\240t\2501\250A\330\014\023\320\0236\260a\330\020\030\230\013\240<\250z\270\021\340\014\023\320\023.\250a\330\020\030\230\013\240<\250q\330\010\017\210t\2205\230\001\230\021\230&\240\002\240!\2404\240q\250\003\2504\250u\260A\200A\360\010\000\t\021\220\t\230\022\2303\230e\2401\240D\250\013\2604\260r\270\024\270Q\330\020\024\220E\230\021\230$\230i\240q\250\r\260W\270B\270a\200A\330\010\013\2103\210h\220c\230\021\330\014\020\220\t\230\021\330\014\020\220\t\230\021\340\014\020\220\t\230\023\230G\2401\330\014\020\220\t\230\023\230G\2401\200A\330\010\016\320\016!\240\021\240!\200A\360\020\000\t4\2601\330\010\017\210s\220!\320\023,\250A\330\014\020\320\020#\2401\240A\200A\340-4\260A\360N\001\000\t)\250\001\340\010\013\2104\320\017 \240\003\2405\250\003\2505\3200A\300\023\300A\330\014\022\220*\230A\230Q\340\010\t\330\014\017\210t\2209\230C\230s\240%\240y\260\001\330\020\023\2201\330\024\033\2301\340\024\033\2301\330\017\020\360\006\000\t\014\2101\330\014\025\320\025'\240q\250\004\250A\330(-\250Q\330()\250\021\330()\250\034\260Q\340\014\025\320\025'\240q\250\004\250A\330(-\250Q\330()\250\037\270\006\270a\340\010\013\210:\220Q\220h\230c\240\021\330\014\022\220*\230A\230Q\360\006\000\t\014\210:\220Q\220h\230c\240\021\330\014\022\220,\230a\230q\360\006\000\t\017\210d\220!\2201\340\010\013\2101\330\014\017\210t\2201\330\020\027\220q\340\020\023\220;\230c\240\021\330\024\032\230*\240A\240Q\330\020\026\320\026.\250a\250q\330\020\"\240!\2401\340\010\017\210q\200A\360\036\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\013\2106\220\023\220B\220a\220}\240D\250\005\250T\260\032\2701\330\014\022\220*\230A\230Q\330\010\022\220,\230a\230t\2401\330\010\022\220)\2301\230A\230W\240A\330\010\016\210f\220C\220q\330\010\014\210G\2209\230A\230Q\230g\240Q\330\014\017\210w\320\026'\240q\250\001\330\020\030\230\002\230#\230Q\330\014\023\2201\330\014\017\210t\2202\220R\220s\230!\330\020\027\220w\230a\230q\330\020\026\220f\230C""\230q\330\010\013\2101\330\014\023\2207\230!\2301\330\010\014\210G\2209\230B\230b\240\007\240q\330\014\023\2207\230!\2307\240.\260\001\260\021\330\010\014\210G\2209\230B\230b\240\007\240q\330\014\023\2207\230!\2307\240-\250q\260\001\330\010 \240\001\240\021\330\010\017\320\017!\240\021\240!\200A\330 *\250!\360$\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\014\210D\220\n\230!\330\010\013\210>\230\023\230A\330\014\034\230A\230R\230t\2405\250\005\250Q\250c\260\023\3204D\300A\300T\320I[\320[\\\340\010\013\2106\220\023\220B\220b\230\003\2305\240\001\240\024\240T\250\025\250a\330\014\022\220*\230A\230Q\340\010\013\2102\210S\220\001\320\021!\240\021\240$\320&8\270\001\330\021\025\220U\230!\330\014\022\220*\230A\230Q\360\010\000\t.\250Q\340\010'\240q\340\010\031\230\032\2406\250\021\250!\2501\250A\330\010\014\210E\220\025\220a\220q\330\014\032\230!\2305\240\010\250\002\250#\320-@\300\001\330\010\023\2203\220a\220q\230\002\230#\230^\2504\250u\260E\270\021\270!\330\010\027\220z\240\021\240$\240a\330\"2\260$\260a\330\010\014\210A\210Q\330\010\025\220T\230\032\2401\240A\330\010\022\320\022&\240a\240q\330\010\022\220)\2301\230D\240\005\240S\250\002\250!\330\010\017\210q\200A\360\"\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\035\230Q\230d\240!\340\0105\260Q\330\014\020\320\020\"\240!\2401\340\010\017\320\017;\2701\270A\200A\360\030\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\035\230Q\230d\240!\340\0109\270\021\330\014\020\320\020!\240\023\240A\240Q\330\010\013\210>\230\037\320(G\300q\330\014\r\340\010\017\210s\220.\240\001\200A\360@\001\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\021\320\021%\240Q\240d\320*<\270A\270Q\330\010\013\2107\220#\220Q\330\014\022\220,\230a\230q\340\010\013\210:\220Q\220o\240Q\330\014\034\230M\250\021\340\010\027\320\0278\270\001\270\021\330\010\013\2105\220\002\220#\320\025%\240Q\330\014\022\220*\230A\320\035g\320gu\320uv\340\010\021\320\021+""\2501\250J\260o\300Q\330\010\013\2107\220#\220Q\330\014\022\220,\230a\230q\340\010\016\210a\330\010\013\2106\220\021\220#\220S\230\001\330\014\021\220\024\220Z\230q\240\001\330\014\016\320\016\"\240!\2406\250\021\250!\330\014\016\210i\220q\230\004\230E\240\023\240B\240a\330\014\017\210w\220a\220q\330\010\013\2106\220\021\220#\220S\230\001\330\014\021\220\024\220Z\230q\240\001\330\014\016\320\016\"\240!\2406\250\021\250!\330\014\016\210i\220q\230\004\230E\240\023\240B\240a\330\014\017\210w\220a\220q\340\010\034\230A\230Q\330\010\017\210q\200A\360\"\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\035\230Q\230d\240!\340\010,\250A\250T\3201C\3001\300A\340\010\013\210>\230\037\320(G\300q\330\014\r\340\010\017\210s\220.\240\001\200A\360\022\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\035\230Q\230d\240!\340\010,\250A\250T\3201C\3001\300A\340\010\013\210>\230\037\320(G\300q\330\014\r\340\010\017\210s\220.\240\001\200A\360\026\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\035\230Q\230d\240!\340\010,\250A\250T\3201C\3001\300A\340\010\013\210>\230\037\320(G\300q\330\014\r\340\010\017\210s\220.\240\001\200A\360\030\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\014\r\330\020\033\320\033/\250q\260\004\260A\330\020\031\230\021\340\020\024\220A\220Q\330\014\023\2206\230\021\230!\200A\360\034\000\t\014\2104\320\017 \240\003\2401\330\014\027\220q\230\004\230A\330\014\017\320\017!\240\021\240$\320&8\270\002\270!\330\020&\240a\240t\2501\330\020\033\2301\230D\240\001\200A\360\016\000\t\033\230!\2304\320\0373\2601\330\033\034\230A\330\010\014\210O\2301\230A\330\010\t\320\t\035\230Q\230a\330\010\t\210\031\220!\2204\220\177\240b\250\001\330\010\017\210q\200A\360\"\000\t\014\2104\320\017#\2403\240a\330\014\022\220*\230A\230Q\330\010\023\2201\330\010\017\210t\320\023&\320&6\260a\330\010\016\210e\2203\220a\220t\320\033.\250a\330\014\020\220\004\220A\330\014\024\220G\2301\230F\240!\330\020\021""\220\021\220$\220i\230q\240\013\2501\250F\260!\2601\260B\260a\260r\270\021\270!\330\022\026\220e\2305\240\001\240\024\240T\250\025\250e\2601\260A\330\014\023\2204\220q\330\010\017\210q\200A\360\"\000\t\014\2104\320\017#\2403\240a\330\014\022\220*\230A\230Q\340\010\020\220\001\340\010\017\210t\320\023&\320&6\260a\330\010\016\210e\2203\220a\220t\320\033.\250a\330\014\025\220T\230\021\340\014\017\210w\220c\230\021\330\020\026\220j\240\001\240\021\360\006\000\r\022\220\027\230\001\330\020 \240\001\330\024\034\230D\320 B\300!\340\014\023\2204\220q\340\010\017\210q\200A\360*\000\t)\250\001\340\010\013\2104\320\017 \240\003\2405\250\003\2505\3200A\300\023\300A\330\014\022\220*\230A\230Q\340\010#\2401\240D\250\001\330$)\250\021\330$%\240Q\330$%\340\010\013\320\013\035\230Q\230l\250#\250Q\330\014\025\220Q\340\014\025\320\025-\250Q\250a\330\010\032\230!\2301\330\010\017\210q\200A\360\034\000\t\014\2104\210~\230Q\330\014\022\220*\230A\230Q\340\0106\260a\360\006\000\t!\240\014\250A\250T\260\021\330\010\022\220$\220j\240\001\240\021\330\010\017\320\017#\2401\240A\330\010\017\210y\230\001\230\024\230U\240#\240R\240q\330\010\017\320\017\037\230{\250$\250e\2601\330\037*\250!\330\037*\250!\330\010\017\210q\200A\330\010\023\2204\320\027(\250\001\330\010\021\320\021'\240r\250\023\250A\250Q\330\010\014\210J\220a\330\014\020\220\007\220q\330\020\032\230(\240\"\240C\240u\250D\260\001\330\014\026\220a\330\010\017\210q\200A\330\010\020\220\001\330\031\033\2304\230q\200A\360\010\000\t\014\2104\210q\330\014\022\320\022\"\240!\2401\340\010\014\210C\210q\220\004\320\024&\240a\330\010\021\220\021\220$\220f\230A\230Q\330\022\026\220e\2301\320\0345\260Q\260a\330\022\025\220Q\220f\230A\230S\240\003\2401\330\010\014\210C\210u\220I\230Q\230a\330\014\r\210Y\220a\220q\230\005\230S\240\002\240#\240Q\240a\330\010\017\210q\200A\360\010\000\t\014\2104\210q\330\014\022\320\022\"\240!\2401\340\010\014\210E\220\021\220$\320\026(\250\001\330\010\021\220\021\220$\220f\230A\230Q\330\022\026\220e\2301\320\034.""\250a\250q\330/7\260q\330\010\014\210C\210u\220I\230Q\230a\330\014\r\210Y\220a\220q\230\005\230S\240\002\240#\240Q\240a\330\010\017\210q\200A\360\014\000\t\014\2104\210q\330\014\023\2204\220q\230\004\230A\200A\360\010\000\t\014\2104\210q\330\014\022\220,\230a\230q\330\010\014\210I\220Q\220d\230+\240Q\330\010\017\210q\220\001\220\021\220#\220T\230\025\230d\240)\2501\250L\270\001\330\010\017\210q\220\001\220\021\200A\330\010\013\2104\210q\330\014\017\210x\220s\230!\330\020\030\230\001\330\031\035\230X\240T\250\033\260D\270\001\340\020\030\230\001\330\031\035\230X\240T\250\021\340\014\024\220A\330\025\031\230\030\240\024\240[\260\004\260A\200A\360\036\000\t\014\2104\210t\2207\230!\330\014\020\220\003\2207\230!\330\r\021\320\021'\240w\250a\330\014\020\320\020#\2401\240D\250\001\330\r\021\220\030\230\023\230G\2401\330\014\020\320\020#\2401\330\014\020\220\n\230(\240\"\240D\250\010\260\001\260\026\260v\270U\300!\330\014\r\210U\220!\2204\220q\340\014\022\220*\230A\230Q\200A\360\020\000\t\014\2104\210t\220>\240\021\330\014\022\220*\230A\230Q\340\010$\240A\240T\250\021\330%&\320&7\260q\270\003\2701\270C\270q\300\001\340\010\017\210r\220\023\220A\340\010\013\2102\210S\220\001\330\014\023\2201\330\014\023\320\0234\260B\260a\330\r\016\210c\220\021\330\014\023\220=\320 5\260Q\330\014\025\220S\230\001\330\025\030\230\001\330\025\030\320\030,\250A\250Q\340\010\017\210q\200A\360\022\000\t\014\2104\210t\220>\240\021\330\014\022\220*\230A\230Q\360\n\000\t\034\320\033-\250Q\250d\260!\330\010\031\230\035\240a\240t\250>\270\024\270Q\330\010\026\320\026,\250A\250Q\330\010\017\210~\320\0351\260\021\200A\360\022\000\t\014\2104\210t\220>\240\021\330\014\022\220*\230A\230Q\360\n\000\t\024\220:\230Q\230d\240!\330\010\021\220\035\230a\230t\240>\260\024\260Q\330\010\016\320\016$\240A\240Q\330\010\017\210v\320\025)\250\021\200A\360\024\000\t\014\2104\210t\320\023%\240Q\330\014\022\220*\230A\230Q\360\020\000\t\026\320\025.\250a\250t\3203F\300a\330\010\025\320\025.\250a\250t\3203F\300a\340\010""\023\220=\240\001\240\026\240q\330\010\023\220=\240\001\240\026\240q\330\010\020\320\020&\240a\240q\330\010\020\320\020&\240a\240q\330\010\020\220\n\230!\200A\330\010\013\2104\210w\220c\230\024\230Q\330\014\022\220!\330\010\014\210I\220T\230\027\240\002\240$\240a\330\010\017\210t\2201\220D\230\006\230a\230t\2401\200A\360\036\000\t\n\330\014\023\2204\220w\230g\240Q\240a\330\017\020\330\014\020\220\017\230q\330\014\023\2204\220w\230g\240Q\240a\200A\360\020\000\t\014\2104\210y\230\007\230q\330\014\023\220:\230U\240!\2404\240q\330\r\021\220\030\230\023\230G\2401\330\014\023\220:\230X\240R\240t\2508\2601\260F\270&\300\005\300Q\340\014\022\220*\230A\230Q\200A\360\006\000\t\014\2105\220\003\2204\220z\240\021\240!\330\014\020\320\020'\240q\250\001\250\030\260\021\260!\330\014\030\230\001\230\024\320\035/\250v\260V\2702\270Q\330\014\025\220^\2401\240A\330\014\022\220,\230a\340\014\025\220T\230\035\240c\250\021\330\020\024\220N\240#\240Q\330\020\033\2301\320\034-\250R\250v\260Q\260a\330\010\017\210t\2209\230A\230Q\200A\360\016\000\t6\260Q\360\006\000\t\014\2104\320\017 \240\003\2401\330\014\023\2204\220z\240\021\240!\330\010\032\230!\2304\320\0371\260\021\260!\330\010\022\220$\220j\240\001\240\021\330\010\017\320\017#\2401\240A\330\010\017\210q\200A\330 *\250!\360,\000\t\022\320\021%\320%:\270!\2706\300\021\330\010\013\2106\220\032\2303\230c\240\021\330\014\023\320\023.\250a\250q\330\010\017\210q\200A\330\010\021\320\021!\240\024\320%6\260a\330\010\020\220\017\230t\320#3\2601\330\010\017\320\017*\250(\260'\270\024\270Q\200A\360\030\000\t\014\2108\2203\220a\330\014\022\220,\230a\230q\330\010\017\210w\220a\220q\200A\330\010 \240\001\240\024\320%8\270\001\330\010\023\2201\330\010\021\220\026\220q\330\010\016\210g\220S\230\001\230\024\320\0350\260\001\330\014\024\220G\2301\330\021\025\220Y\230a\230{\250!\2506\260\026\260r\270\021\270!\330\021\025\220Y\230a\230{\250!\2506\260\026\260r\270\021\270!\330\021\025\220Y\230a\230{\250!\2506\260\026\260r\270\021\270!\330\014\025\220V\2301""\330\010\017\210q\200A\330\010 \240\001\240\024\320%8\270\001\330\010\023\2201\330\010\021\220\026\220q\330\010\016\210g\220S\230\001\230\024\320\0350\260\001\330\014\024\220G\2301\330\021\037\230t\2409\250A\250[\270\001\270\026\270v\300R\300q\310\001\330\037#\2409\250A\250[\270\001\270\026\270v\300R\300q\310\001\330\037#\2409\250A\250[\270\001\270\026\270v\300R\300q\310\001\330\021\032\230$\230a\230v\240Q\330\021\"\240&\250\010\260\001\340\014\025\220V\2301\330\010\017\210q\200A\360\010\000\t!\240\001\240\024\320%8\270\001\340\010\021\220\021\330\010\020\220\001\330\010\021\220\026\220q\330\010\016\210g\220S\230\001\230\024\320\0350\260\001\330\014\022\220!\2209\230K\240q\330\014\025\220Q\330\014\025\220V\2301\330\010\017\210q\200A\330\010$\240A\240T\250\021\200A\360\010\000\t\020\320\017$\240A\240T\250\021\200A\360\026\000\t\035\230A\230T\320!4\260A\330\010\032\230!\340\010\032\230$\320\0364\260A\340\010\017\210t\2201\330\010\016\210e\2203\220a\220t\320\033.\250a\340\014\021\220\027\230\001\330\021&\240o\260Q\260i\270t\3002\300Q\300a\330\021%\240_\260A\260Y\270d\300\"\300A\300Q\330\021\037\230t\2408\2501\340\014\023\2204\220q\340\010\017\210q\200A\360\010\000\t\035\230A\230T\320!4\260A\340\010\021\220\021\330\010\020\220\001\330\010\017\210t\2201\330\010\016\210e\2203\220a\220t\320\033.\250a\330\014\022\220!\2209\230I\240Q\330\014\025\220Q\330\014\023\2204\220q\330\010\017\210q\200A\360\010\000\t\022\220\033\230A\230T\320!4\260A\330\010\017\210t\2209\230A\230Q\200A\360\n\000\t\022\220\033\230A\230T\320!4\260A\330\010\017\210t\2209\230A\230Q\200A\360\022\000\t\022\220\033\230A\230T\320!4\260A\330\010\017\210t\2209\230A\230Q\200A\360\006\000\026-\250A\330\031 \240\001\330\r\016\360H\001\000\t\022\220\035\230g\240Q\240f\250H\260G\2701\330\010\017\210q\320\020+\2501\250A\330,6\260a\330,;\2704\270q\330\020\024\220I\230Q\200A\360\006\000\026-\250A\330\031\036\230a\330\r\016\360H\001\000\t\014\2107\220\"\220A\330\014\022\220*\230A\230Q\340\010\013\2104\320\017 \240\003""\2401\330\014\022\220*\230A\230Q\330\010\013\210;\220h\230j\250\001\330\014\022\220*\230A\230Q\340\010\013\2107\220#\220Q\330\014\025\220Q\340\014\025\220V\2306\240\021\340\010\013\210;\220c\230\031\240#\240W\250C\250q\330\014\023\2204\320\027'\240q\250\010\260\001\340\010\013\2107\220#\220Q\330\014\023\2204\320\027)\250\021\250!\330\010\013\2107\220#\220Q\330\014\023\2204\220|\2401\240A\330\010\013\2107\220#\220Q\330\014\023\2204\220~\240Q\240a\340\010\016\210j\230\001\230\021\200A\360\010\000\t\r\210C\210q\220\001\330\010\013\2102\210S\220\004\220D\230\001\330\014\023\2201\340\014\022\220*\230A\230Q\330&(\250\001\200A\360\014\000\t\r\210C\210q\220\001\340\010\014\210E\220\025\220a\220q\330\014\020\220\005\220U\230!\2303\230a\330\020\030\230\003\2301\230D\320 1\260\021\260!\2601\260D\270\001\270\021\270!\340\020\023\2202\220R\220r\230\023\230B\230d\240\"\240B\240b\250\003\2502\250T\260\022\2603\260b\270\002\270!\330\024\027\220v\230S\240\001\330\030\037\230q\330\025\026\330\024\033\2301\340\010\017\210q\320\004$\240A\360\010\000\t\r\210D\220\014\230A\230Q\330\010\023\320\0231\260\021\260$\3206L\310A\330\010\017\210|\2301\230A\320\004<\270A\360\010\000\t\r\210D\220\014\230A\230Q\330\010*\250!\2504\250q\330+.\250k\270\021\270!\200A\360\014\000\t\r\210D\220\014\230A\230Q\330\010\017\320\0177\260q\330\014\020\320\020&\240a\200A\360\n\000\t\r\210D\220\014\230A\230Q\330\010\017\320\017(\250\001\250\024\320-C\3001\200A\360\010\000\t\r\210D\220\014\230A\230Q\330\010!\240\021\240$\320&<\270C\270q\320\004,\250A\360\024\000\t\r\210D\220\014\230A\230Q\330\010\017\210v\220Q\220h\230a\320\037A\300\021\330\014\020\320\020&\240a\330\010\017\210t\2209\230A\230Q\200A\360\030\000\t\r\210D\220\005\220Q\330\010\t\210\031\220!\330\010!\240\021\240!\2401\330\010\023\2201\220A\220Q\330\010\017\320\017!\240\021\240!\320#5\260S\270\001\200A\360(\000\016\022\220\021\220*\230E\240\031\250!\330\014\022\220&\230\001\230\024\230[\250\002\250'\260\021\260!\200A\360\010\000\t\r\210E\220\024\220Q""\220d\230-\240q\250\001\330\014\020\220\001\220\022\2206\230\021\230!\2304\230q\240\002\240!\200A\360\026\000\t\021\220\004\220F\230!\330\010\014\210E\220\021\220#\220Q\330\014\017\210u\220B\220c\230\024\230Q\330\020\026\220j\240\001\240\021\330-/\250q\340\010\017\320\017%\240Q\240d\320*=\270S\300\001\200A\330?F\300j\320PQ\330\010\013\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\360\006\000\t\n\330\014\027\320\0270\260\001\330\020\024\320\024&\240a\330\014\023\2206\230\021\230!\340\014\020\220\001\220\021\200A\330\010\014\210I\220Q\200A\360\010\000\t\r\210I\220Q\330\010\022\220!\2202\220T\230\025\230e\2401\240D\250\007\250s\260\"\260G\2704\270q\330\010\017\210q\220\002\220$\220e\2305\240\001\240\024\240W\250C\250t\260=\300\004\300A\300S\310\001\330\010\013\2104\210q\330\014\033\2301\230A\230R\230t\2405\250\001\340\014\033\2301\230A\230T\240\031\250$\250b\260\003\2604\260s\270$\270e\3001\330\034 \240\005\240Q\330\010\017\210v\220Q\220a\200A\340\010\014\210J\220a\330\010\014\320\014\034\230A\330\010\014\320\014\037\230q\200A\360\016\000\t\021\220\004\220J\230a\230q\330\010\013\2104\320\017 \240\003\2401\330\014\023\2201\330\010\017\320\017*\250!\2506\260\037\300\004\300A\200A\330\010\014\210K\220q\200A\360 \000\t\r\210K\220q\330\014\025\220T\230\037\250\001\330\014\r\340\010\014\210K\220q\330\014\030\230\001\330\014\r\340\010\016\210d\320\022\"\240/\260\021\330\010\014\210E\220\025\220a\220q\330\014\022\220#\220Q\330\010\021\220\034\230Q\230e\2403\240a\240t\320+;\2701\340\010\013\2107\220#\220Q\330\014\020\220\007\220v\230Q\230j\250\001\330\014\020\320\020.\250a\340\010\017\210q\320\004$\240A\360\016\000\t\025\220L\240\001\240\026\240t\250?\270!\330\010\021\320\021!\240\021\240!\340\010\021\320\021\"\240!\2404\320'>\270h\300f\310A\310Q\330\010\013\2107\220#\220Q\330\014\023\2204\220y\240\001\240\036\250q\3200A\300\021\300!\3001\330\010\017\210q\200A\360\016\000\t\025\220L\240\001\240\026\240t\250?\270!\330\010\021\320\021!\240\021\240!\360\006\000\t\014\2106""\220\023\220A\330\014\025\320\025&\240a\240t\320+B\300(\310&\320PQ\320QR\330\014\017\210w\220c\230\021\330\020\027\220v\230Q\330\024\025\220Q\220d\230)\2401\240N\260!\2601\260G\2701\270B\270a\270q\330\026\032\230%\230u\240A\240T\250\024\250U\260%\260q\270\001\330\r\023\2203\220a\330\014\025\320\025&\240a\240t\320+B\300(\310#\310Q\330\014\017\210w\220c\230\021\330\020\027\220v\230Q\330\024\025\220Q\220d\230)\2401\240K\250q\260\006\260a\260q\270\002\270!\2701\330\026\032\230%\230u\240A\240T\250\024\250U\260%\260q\270\001\340\014\023\2201\200A\330\010\014\210O\2304\230~\250]\270!\330\010\014\320\014 \240\001\200A\360\032\000\t\014\210?\230#\230Q\330\014\023\2201\330\r\034\230C\230q\330\014\023\2201\340\014\022\220*\230A\230Q\330\010\021\220\021\330\010\014\210E\220\025\220a\220t\230?\250!\330\014\031\230\021\230$\320\0360\260\003\2606\270\021\330\032\033\2309\240A\240Y\250a\250x\260q\270\001\330\032\033\230<\240q\250\014\260A\260\\\300\021\300!\330\032\033\2301\330\014\022\220'\230\021\230&\240\001\240\034\250Q\250i\260q\330\010\017\210q\200A\330\010\017\320\017%\240Q\240a\200A\360\006\000\t\014\210:\220Q\220c\230\021\330\014\023\2204\220z\240\021\240!\2408\2501\250D\260\001\330\010\013\2102\210R\210q\330\014\020\220\004\220H\230B\230a\330\010\013\2102\210R\210t\2201\330\014\026\220a\330\014\033\2304\230w\240a\240q\330\r\017\210r\220\024\220]\240\"\240D\250\001\330\014\026\220a\330\014\033\2302\230R\230t\2401\330\r\017\210r\220\024\220]\240\"\240D\250\014\260B\260d\270!\330\014\026\220a\330\014\033\2302\230R\230t\240=\260\002\260$\260a\330\016\022\220/\240\023\240M\260\026\260q\270\001\330\016\023\2202\220R\220t\230=\250\002\250$\250l\270!\330\023\027\220~\240R\240t\2501\330\014\034\230B\230b\240\004\240M\260\022\2604\260q\330\034\036\230d\240!\340\014\022\220$\220a\220q\330\014\023\2204\220r\230\023\230B\230b\240\002\240#\240Q\240f\250B\250a\330\014\026\220k\240\022\2401\330\014\r\330\020\033\2304\230\177\250l\270!\2708\3005\310\001\330\020\"\320\"@\300\001\300\021""\340\020\026\220g\230Q\230a\330/1\260\021\330\014\025\220X\230Q\230e\2401\330\014\022\320\022&\240a\240q\330\014\023\2201\360\006\000\r\023\220*\230A\230Q\330\010\032\320\0321\260\021\330\014\020\220\007\220y\240\004\320$4\260A\330\010\013\320\013\033\2303\230a\330\014\021\220\021\220)\2301\330\014\022\220,\230a\230q\330\010\021\220\030\230\021\230%\230q\330\010\016\320\016\"\240!\2401\330\010\017\210q\200A\360\006\000\t\014\210:\220Q\220c\230\021\330\014\023\2204\220z\240\021\240!\2408\2501\250D\260\001\330\010\013\2109\220G\2303\230d\320\";\2705\300\001\300\022\3006\310\021\330\010\032\320\0321\260\021\330\014\020\220\007\220s\230!\230:\240T\320)9\270\023\270A\270Q\330\010\013\320\013\033\2303\230a\330\014\021\220\021\220)\2301\330\014\022\220,\230a\230q\330\010\021\220\035\230a\230u\240A\330\010\016\320\016\"\240!\2401\330\010\016\210j\230\002\230#\230Q\230d\240#\240Q\240a\330\010\017\210v\320\025/\250q\200A\360\006\000\t\014\210:\220Q\220c\230\021\330\014\023\2204\220z\240\021\240!\2408\2501\250D\260\001\330\010\013\2109\220G\2303\230d\320\">\270e\3001\300B\300f\310A\330\010\032\320\0321\260\021\330\014\020\220\007\220s\230!\230:\240T\320)9\270\023\270A\270Q\330\010\013\320\013\033\2303\230a\330\014\021\220\021\220)\2301\330\014\022\220,\230a\230q\330\010\021\220\035\230a\230u\240A\330\010\016\320\016\"\240!\2401\330\010\016\210j\230\002\230#\230Q\230d\240#\240Q\240a\330\010\017\210v\320\025/\250q\200A\330\010\013\210:\220Q\220c\230\021\330\014\023\2204\220z\240\021\240!\2408\2501\250D\260\001\340\014\024\220A\330\014\020\220\005\220U\230!\2303\230a\330\020\023\2206\230\022\320\033.\250a\250s\260#\260Q\330\024\035\320\0350\260\001\260\021\330\024\025\340\024\033\2309\240C\240s\250\"\250B\250f\260B\260a\330\024\025\330\014\017\210q\330\020\032\320\032+\2502\250Q\330\020\021\330\024\037\230t\240=\260\014\270A\270X\300U\310!\330\024&\320&D\300A\300Q\340\024\032\230'\240\021\320\"F\300b\310\001\330\020\031\230\035\240a\240q\330\020\026\320\026*\250!\2501\330\020""\026\220i\230q\240\001\330\020\027\220v\320\0357\260q\340\020\026\220j\240\001\240\021\200A\330\010\013\210:\220Q\220c\230\021\330\014\023\2204\220z\240\021\240!\2408\2501\250D\260\001\330\010\021\220\021\330\010\014\210E\220\025\220a\220t\230?\250\"\250A\330\014\020\220\004\220J\230a\230t\240<\250q\260\001\330\014\025\220W\230B\230a\330\014\017\210w\220b\230\001\330\020\024\220B\220b\230\007\230r\240\022\2402\240Q\330\020\033\230>\250\023\250D\260\r\270S\300\001\330\020\023\2204\220|\2402\240Q\330\024\033\230;\240c\250\023\250D\260\r\270Q\340\024\033\2308\2403\240c\250\021\330\020\032\320\032,\250B\250a\330\020\021\330\024\037\230t\240>\260\034\270Q\270h\300e\3101\330\024&\320&D\300A\300Q\340\024\032\230'\240\021\240!\330+-\250Q\330\020\031\230\035\240a\240q\330\020\026\320\026*\250!\2501\330\020\026\220i\230q\240\001\330\020\027\220v\320\0357\260q\200A\330\010\013\210:\220Q\220c\230\021\330\014\023\2204\220z\240\021\240!\2408\2501\250D\260\001\340\014\023\320\023'\240q\250\004\250N\270#\270Q\200A\330\010\013\210:\220Q\220c\230\021\330\014\021\220\024\220Z\230r\240\021\330\014\016\210l\230$\230i\240q\250\001\330\014\016\210j\230\003\2301\230B\230a\330\014\022\220)\2301\230D\240\t\250\023\250C\250q\260\002\260,\270a\330\014\023\2201\340\014\023\2203\220a\220x\230r\240\024\240Y\250a\250q\330\014\025\220X\230Q\230a\330\014\022\220)\2301\230A\330\014\023\2201\200A\360\006\000\t\036\230Q\230d\320\"4\260A\260Q\330\010\021\220\021\330\010\014\210G\2209\230D\240\001\330\014\030\230\001\230\024\320\035.\250a\250r\260\037\300\001\300\021\330\031\035\230U\240%\240q\250\001\330\014\024\220A\220Q\220d\320\032+\2501\250B\250g\260Q\260b\270\001\270\021\330\026\032\230%\230u\240A\240T\250\024\250U\260%\260q\270\001\340\014\022\220'\230\022\230;\240a\330\010\037\230q\240\001\330\010\017\210q\200A\360\006\000\t\036\230Q\230d\320\"4\260A\260Q\340\010\036\230a\330\010\014\210E\220\025\220a\220t\230?\250!\330\014\022\220!\2204\320\027(\250\001\250\022\250;\260a\260q\330\023\027\220u""\230E\240\021\240!\330\014\037\230w\240a\240q\340\010\030\230\001\330\010\014\210E\220\025\220a\220t\230?\250!\330\014\020\220\005\220U\230!\2301\330\020\024\220E\230\025\230a\230q\330\024\037\230t\320#4\260A\260R\260v\270Q\270b\300\001\300\021\330\024\032\230!\2308\2401\240B\240a\240s\250$\250e\2605\270\001\270\023\270D\300\005\300U\310!\3101\330\024!\240\027\250\001\250\021\340\010\037\230q\240\001\330\010\020\320\020%\240Q\200A\360\024\000\t\026\220S\230\001\320\0312\260!\2604\3207J\310!\3101\330\010\013\2104\210q\330\014\022\220*\230A\230Q\340\010\021\220\021\330\010\014\210E\220\025\220a\220q\230\001\330\014\022\220'\230\021\230!\320\0330\260\001\260\021\360\006\000\t\020\210|\2301\320\0340\260\001\320\004\"\240*\250A\360\022\000\t\014\210:\220S\230\001\330\014\023\220=\240\001\240\024\240Q\330\r\027\220s\230!\330\014\023\320\023#\2401\240D\250\001\330\r\027\220s\230!\330\014\023\320\023&\240a\240t\2501\340\014\022\220*\230A\230Q\200A\330\010\020\320\020-\250T\260\033\270D\300\004\300A\320\004\037\320\037/\250}\270A\330!\"\360\024\000\t\026\220T\230\034\240Q\240a\330\010\030\320\0307\260q\330\014\020\220\001\330\014\r\330\014\r\330\014\027\220q\230\001\330\010\013\210>\230\023\230A\330\014\022\220,\230a\230q\330\010\021\220\021\330\010\014\210G\2209\230M\250\021\330\014\023\220=\240\t\250\021\250!\330\014\017\210q\330\020\021\330\024\037\230t\2409\250A\250^\2701\270D\300\001\330\024\037\230t\2409\250A\250[\270\001\270\024\270Q\330\024\037\230t\2401\340\020\030\230\013\240?\260!\2604\260q\330\030#\240:\250Q\250d\260!\330\030#\2404\240q\330\014\022\220'\230\021\230!\330\010,\250A\250Q\330\010\017\210q\200A\360\014\000\t\026\220W\230A\330\010\016\210c\220\021\220$\220i\230r\240\021\330\014\020\220\003\2205\230\004\230A\330\020\021\330\014\032\230!\2302\230T\240\025\240d\250-\260q\270\003\2703\270b\300\003\3003\300b\310\001\310\021\330\014\032\230\"\230C\230t\2409\250D\260\002\260\"\260D\270\001\330\033\037\230u\240D\250\r\260Q\260a\330\014\023\2204\220q\230\002""\230!\330\014\020\220\005\220Q\330\020\024\220D\230\001\230\024\230Q\230b\240\001\360\006\000\021\025\220C\220x\230q\330\024\032\230\"\230A\330\024\033\2304\230y\250\004\250A\250T\260\021\330\024\030\230\005\230Q\230d\240%\240r\250\021\250!\2501\330\014\020\220\r\230T\240\021\240!\200A\330\010\020\220\001\330\021\025\220X\230\\\250\021\250$\250j\270\004\270A\200A\330\010\017\320\017%\240Y\250a\250q\330/0\200A\330\010\031\230\021\230$\230a\330\032\033\330\032\033\200A\360\024\000\t\031\230\001\330\010\016\210a\330\010\013\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\016\320\016\"\240!\2404\320'9\270\023\270C\270r\300\021\330\014\020\320\020$\240A\240T\320);\2703\270a\330\014\017\210r\220\022\2201\330\020\023\2201\220E\230\021\330\014\021\220\021\330\010\017\210q\200A\360\n\000\t\017\210a\330\010\014\210E\220\024\220Q\330\014\022\220$\220b\230\001\330\010\017\210~\230T\240\023\240G\2501\200A\360\026\000\t\017\210a\330\010\014\210E\220\025\220a\220t\230?\250!\330\014'\240q\250\004\250A\330(+\2501\250A\330()\250\033\260A\260Q\330()\250\033\260A\260Q\330()\250\024\250Q\250d\260!\2604\260q\270\001\330()\250\037\270\001\270\021\330()\250\037\270\001\270\021\330()\250\027\260\001\260\027\270\001\270\027\300\001\300\021\330\014\017\210w\220a\330\021\031\230\021\330\021 \240\013\250;\260k\300\021\330\021\037\230\177\250a\330\037.\250a\330\021\035\230U\240!\2402\240U\250#\250R\250r\260\023\260B\260b\270\004\270E\300\025\300a\300q\330\035\"\240!\2402\240U\250#\250R\250r\260\023\260B\260b\270\004\270E\300\025\300a\300q\330\035\"\240!\2402\240U\250#\250R\250r\260\023\260B\260b\270\004\270E\300\025\300a\300q\330\035\"\240!\2402\240U\250#\250R\250r\260\023\260B\260b\270\004\270E\300\025\300a\300q\330\021\035\230T\240\031\250!\250>\270\021\270!\330\035!\240\031\250!\250>\270\021\270!\330\035!\240\031\250!\250>\270\021\270!\330\035!\240\031\250!\250>\270\021\270!\330\021#\2401\340\010\017\210q\200A\340\010\022\220$\220a\220q\330\010\014\210E\220\027\230\004\230J\240f""\250A\330\014\r\330\020\027\220q\230\007\230w\240a\240q\330\023\024\340\010\r\210Q\210f\220E\230\031\240!\2401\330\010\014\210I\220W\230A\230Q\200A\360\034\000\t\026\320\025&\240a\240t\2501\330\010\016\320\016&\240a\240q\330\010\017\210q\200A\360\010\000\t\021\220\006\220a\220x\230q\320 ?\270q\330\014\020\220\001\330\010\017\210t\2209\230A\230Q\200A\360\024\000\t\014\210;\220c\230\021\330\014\033\2301\340\014\033\2301\340\010\017\320\017#\2401\330\014\020\320\020\"\240(\250!\340\010\021\220\021\330\010\016\210d\220!\330\010\026\220a\330\010\016\210d\220#\220Q\330\014\024\220O\2401\240D\250\001\330$%\330$(\250\001\330\014\020\220\004\220J\230a\230q\330\014\r\320\r!\240\021\240!\330\014\r\210_\230A\330\020\033\2304\230u\240A\330\020\033\230;\240a\240s\250!\330\020\033\2301\340\014\r\210Y\220a\220t\2301\230H\240B\240d\250\"\250D\260\001\260\027\270\002\270#\270R\270v\300Q\330\027\030\330\014\022\220'\230\021\230!\330\014\033\2301\330\014\022\220#\220Q\340\010 \240\001\240\021\330\010\017\210q\200A\330()\330).\250e\2601\330.5\260Q\3307>\270a\330)0\260\n\270!\360F\001\000\t\021\320\020 \240\005\240Q\240o\260Q\330\020-\250Q\330\010\t\330\014\023\2204\220w\230g\240Q\320&;\2701\330\017\020\360\006\000\t\020\210t\2207\230%\230q\240\017\250q\260\007\260q\330 5\260Q\200A\330\010\036\230i\240q\250\001\330(-\250^\2701\200A\360\036\000\t\033\230$\230j\250\001\330\010\013\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\r\210S\220\001\220\035\230c\240\024\240S\250\003\2501\250M\270\023\270C\270q\300\005\300Q\300a\330\014\022\220*\230A\230Q\330\010\022\220'\230\026\230q\240\003\2401\240A\330\010\014\210E\220\025\220a\220q\330\014\023\2201\220E\230\033\240A\240Q\330\010\025\220Q\220d\320\032,\250A\330\010\014\210A\210Q\200A\330\010\016\210n\230A\230Q\200\001\330\004\013\320\013\034\230A\230]\250%\250q\330\031\032\200A\330\010\017\210q\200A\330)?\270q\360$\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\013\210;\220g\230Q\330\014\031\230\033\240A""\330\020\034\230D\240\n\250!\330\020\021\340\010\014\210G\2206\230\021\230(\240!\330\010\013\320\013\033\2303\230a\330\014\017\210{\230'\240\021\330\020\026\220j\240\001\240\021\340\014'\240q\250\004\250A\330\014\r\330\r\035\230S\240\001\330\014\017\210q\330\020\033\230?\250&\260\001\260\024\260Z\270s\300!\33012\330\020+\2501\250D\3200B\300!\330\020\027\220q\330\020\024\220E\230\025\230a\230t\240:\250Q\330\024\030\230\007\230q\240\002\240\"\240H\250A\250R\250q\260\002\260!\2604\260x\270q\300\002\300!\3002\300Q\300a\330\"$\240H\250A\250R\250q\260\002\260!\2604\260x\270q\300\002\300!\3002\300Q\300a\330\020\024\220A\220Q\330\020\027\220q\340\020!\240\021\240$\240a\330\r\030\230\007\230q\330\014\026\220l\240!\330\014\017\210t\2201\330\014\017\210t\2201\330\014\017\210q\220\001\220\022\2202\220Q\220a\220r\230\023\230B\230e\2404\240~\260S\270\003\2701\270A\270R\270r\300\021\300!\3002\300T\310\021\330\020\023\2204\220~\240Q\330\024\032\230*\240A\240Q\360\006\000\025\033\230*\240A\240Q\340\014\017\210x\220s\230$\230j\250\001\250\033\260A\260Q\330\020\023\2202\220S\230\002\230#\230R\230s\240!\330\024\032\230*\240A\240Q\360\006\000\r\030\220\177\240f\250A\250T\260\032\2703\270a\330-.\340\014\020\220\005\220U\230!\2304\230z\250\021\330\020\024\220B\220e\2302\230R\230t\2402\240T\250\022\2504\250r\260\021\330\024\034\230A\230R\230q\240\002\240!\2405\250\005\250R\250s\260'\270\021\340\014\024\220A\220[\240\001\240\022\2401\240E\250\021\330\014\024\220A\220[\240\001\240\022\2401\240E\250\021\330\014\024\220A\220[\240\001\240\022\2401\240E\250\021\330\014\024\220A\220[\240\001\240\022\2401\240E\250\021\330\014\017\210t\220>\240\021\330\020\031\320\0311\260\021\260$\3206H\310\001\340\020\031\320\031?\270q\330\024\030\320\030*\250!\330\014\020\220\001\220\021\330\014\017\210w\220c\230\021\330\020\026\220j\240\001\240\021\3309;\2702\270R\270q\360\006\000\r\020\210t\220:\230S\240\003\2402\240T\250\023\250A\320->\270c\300\021\330\020\024\320\024*\250!\320+<\270A\330\020\021\330\014\017""\210s\220!\320\023$\240B\240d\250*\260A\330\020\026\220j\240\001\240\021\360\006\000\r\030\220\177\240f\250A\250T\260\032\2703\270a\330-.\340\014\020\220\005\220U\230!\2304\230z\250\021\330\020\024\220C\220u\230B\230c\240\025\240c\250\025\250c\260\025\260c\270\021\330\024\034\230A\230R\230q\240\002\240!\2405\250\005\250R\250s\260'\270\021\340\014\020\220\003\2209\230I\240Q\240a\340\020\032\230,\240a\330\020\023\2204\220q\330\020\023\2204\220q\330\020\023\2201\220A\220R\220r\230\021\230!\2302\230S\240\002\240%\240t\250>\270\023\270C\270q\300\001\300\022\3002\300Q\300a\300r\310\024\310Q\330\024\027\220t\230>\250\021\330\030\034\230A\230Q\330\030\036\230j\250\001\250\021\360\006\000\031\035\230A\230Q\330\030\036\230j\250\001\250\021\360\006\000\021\024\2208\2303\230d\240*\250A\250R\250q\260\001\330\024\027\220r\230\023\230B\230c\240\022\2403\240a\330\030\034\230A\230Q\330\030\036\230j\250\001\250\021\360\006\000\021\031\230\001\230\022\2301\230B\230a\230u\240A\330\020\030\230\001\230\022\2301\230B\230a\230u\240A\330\020\030\230\001\230\022\2301\230B\230a\230u\240A\330\020\030\230\001\230\022\2301\230B\230a\230u\240A\340\014\017\210t\220>\240\021\330\020\031\320\0311\260\021\260$\3206H\310\001\340\020\031\320\031?\270q\330\024\030\320\030*\250!\330\014\020\220\001\220\021\330\014\017\210w\220c\230\021\330\020\026\220j\240\001\320!M\310Q\330!\"\200A\330\010\t\330\014\023\320\023'\240q\250\004\250A\330\017\020\360\010\000\r\024\2204\220{\240!\200A\340\010\037\230q\240\004\240A\330\010\036\230a\230t\2401\330\010\025\220Q\220d\230!\330\010\017\210\177\230d\240!\330\010\016\210d\320\022\"\240/\260\021\330\010\016\210d\220#\220Q\220d\320\032*\250!\330\014\033\320\033-\250T\260\021\330\014\020\220\005\220U\230!\2301\330\020\035\230W\240A\240T\250\031\260!\260;\270a\270v\300S\310\005\310Q\310a\330\020%\240Q\330\020\024\220E\230\025\230a\230q\330\024\027\220r\230\023\230A\330\030*\250'\260\021\260$\260i\270q\330\034'\240q\250\006\250c\260\036\270|\3101\310B\310a\310q\340\030*""\250'\260\021\260!\330\020\037\230w\240a\240q\330\014\021\220\027\230\001\230\021\330\014\030\230\007\230q\240\001\330\014\022\220#\220Q\340\010\033\2301\230D\240\001\330\010\017\210w\220a\200A\360\010\000\t\020\210q\220\001\220\024\220Y\230d\240\"\240C\240t\2503\250d\260%\260u\270A\270T\300\021\330\020\024\220E\230\025\230a\230t\2401\200A\330)?\270q\360t\001\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\013\210;\220g\230Q\330\014\031\230\033\240A\330\020\034\230D\240\n\250!\330\020\021\340\010\014\210G\2206\230\021\230(\240!\340\010\013\320\013\033\2303\230a\360\006\000\r\025\220A\220_\320$4\260E\270\021\270$\270j\310\001\330\014\023\2201\330\014\020\220\005\220Q\330\020\025\220Q\220a\220t\230:\240Q\240b\250\001\250\031\260%\260r\270\026\270q\330\020\024\320\024*\250!\2502\250S\260\001\260\025\260b\270\005\270Q\330\020\024\220G\2301\230A\230Q\230b\240\003\2401\240B\240a\330\014\017\210q\330\020\027\220q\340\r\035\230S\240\001\360\006\000\r\025\220A\220_\320$4\260E\270\021\270$\270j\310\001\330\014\023\2201\330\014\020\220\005\220Q\330\020\024\220D\230\n\240!\2402\240Q\240h\250e\2602\260V\2701\330\020\024\320\024*\250!\2502\250S\260\005\260Q\260b\270\005\270Q\330\020\024\220G\2301\230A\230Q\230b\240\003\2401\240B\240a\330\014\017\210q\330\020\027\220q\340\r\035\230S\240\001\330\014\017\210{\230'\240\021\330\020\026\220j\240\001\240\021\340\014\017\210q\330\020\033\230?\250&\260\001\260\024\260Z\270s\300!\33012\330\020.\250a\250t\3203E\300Q\330\020\027\220q\330\020\024\220E\230\025\230a\230t\240:\250Q\330\024\030\230\007\230q\240\002\240\"\240H\250A\250R\250q\260\002\260!\2604\260q\270\010\300\001\300\022\3001\300B\300a\300q\330\"$\240A\240X\250Q\250b\260\001\260\022\2601\260D\270\010\300\001\300\022\3001\300B\300a\300q\330\020\024\220A\220Q\330\020\027\220q\340\020&\240a\240t\2501\360\006\000\r\024\220=\320 6\260a\330\020\026\320\026'\240{\260!\200\001\340\004,\250A\330\004\007\200r\210\032\2203\220a\330\010\n\210,\220o\240Q\240a\330\004""\017\210r\220\021\330\004\n\210\"\320\014\"\240!\330\004\007\200t\2103\210a\330\010\016\210l\230!\2301\330\t\r\210T\220\023\220C\220s\230!\330\010\022\220&\230\001\230\021\340\010\020\220\014\230A\230Z\240x\250r\260\022\2608\2701\330\010\020\220\014\230A\230R\230x\240q\330\010\032\320\032:\270!\2701\330\010\013\320\013\033\2307\240!\330\014.\250a\250q\330\010\013\2108\320\023$\240G\2501\330\014\036\230a\230x\240q\330\010\020\320\020$\240A\240Q\330\010\020\220\007\220v\230Q\230h\240a\330\010\022\220&\230\001\230\021\200A\330\010\017\210s\220!\2201\220A\220Q\220b\230\002\230#\230R\230q\240\001\240\022\2402\240R\240r\250\023\250B\250a\250q\260\002\260\"\260B\260b\270\003\2702\270Q\270a\270r\300\022\3003\300d\310%\310u\320TU\320UX\320XY\320Y\\\320\\_\320_`\200A\360\010\000\t\020\210s\220!\2201\220B\220d\230%\230t\240:\250S\260\002\260#\260Q\200A\360\020\000\t\020\210s\220!\320\0231\260\021\260$\260a\200A\360\022\000\t\020\210s\220!\320\0231\260\021\260$\260a\200A\360\026\000\t\020\210s\220!\320\0233\2601\260D\270\001\200A\330\010\017\210s\220!\2204\220|\2401\200A\360\010\000\t\020\210s\220!\2204\220q\200A\360\020\000\t\020\210s\220!\320\023-\250Q\250d\260!\320\004,\250A\360\020\000\t\020\210s\220$\220i\230q\240\003\2401\330\022\026\220j\240\001\240\023\240A\330\021\025\220U\230%\230q\240\004\240A\200A\360\010\000\t\020\210s\220!\320\023'\240q\250\004\250A\200A\360\n\000\t\020\210s\220!\320\023/\250q\260\004\260A\33006\260f\270F\300!\200A\360\n\000\t\020\210t\320\023)\250\021\200A\330\010\017\210t\2201\200A\330\010\017\210t\2201\220D\230\001\200A\360\010\000\t\020\210t\2201\200A\360\020\000\t\020\210t\2201\200A\330\010\017\210t\2202\220V\2305\240\001\240\021\240$\240a\240s\250$\250e\2607\270\"\270A\200A\360 \000\t\020\210t\2205\230\001\230\024\230[\250\001\330\010\024\220D\230\005\230Q\230a\230t\2402\240R\240r\250\024\250T\260\025\260d\270+\300Q\330\010\023\2204\220u\230A\230T\240\031\250!\250=\270\001\330\010\026\220b\230\005\230Q\330\014\r\320\r\037\230s\240!\2401\240A""\330\r\022\220#\220V\2309\240A\240T\250\033\260A\340\010\020\220\001\340\023\031\230\033\240M\260\021\200A\360\016\000\t\020\210t\2207\230$\230g\240T\250\021\200A\330\010\017\210t\2209\230E\240\021\200A\330\010\017\210t\220=\240\001\200A\360\010\000\t\020\210t\320\023$\240A\240Q\200A\330\010\021\220\024\220\\\240\021\330\010\017\210t\220:\230Q\330\010\017\210w\220h\230d\240$\240a\330\010\014\210E\220\025\220a\220t\230:\240Q\330\014\021\220\033\230C\230s\240&\250\001\250\021\330\014\020\220\005\320\025&\240a\240t\2501\250A\330\014\023\2201\220C\220q\230\005\230S\240\001\240\025\240c\250\021\250!\330\014\021\220\027\230\001\230\022\2306\240\021\240!\330\014\021\220\027\230\001\230\022\2306\240\021\240!\330\014\021\220\027\230\001\230\022\2306\240\021\240!\330\010\020\320\020%\240T\320)9\270\030\300\021\330\010\017\210t\2205\230\001\230\021\230$\230e\2401\240B\240f\250A\330\032\036\230e\2401\240G\2507\260(\270\"\270A\270Q\200A\330\010\017\210t\220;\230a\200A\360\010\000\t\020\210t\320\023&\240a\200A\360\032\000\t\020\210t\220<\230q\240\001\200A\330\010\017\210v\220Q\200A\360\024\000\t\021\220\017\230v\240T\320)=\270Q\200A\340\010\017\210v\320\025-\250Q\250a\200A\360x\001\000\t\020\320\017%\320%E\300Q\300a\200A\360z\001\000\t\n\330\014\"\320\"N\310a\330\020\026\220a\320\004/\320/B\300!\360\030\000\t\034\2304\230\177\250a\330\010!\240\024\320%=\270Q\330\010\024\220A\330\010\014\210G\2209\230A\330\014\022\320\022+\2501\250D\3200G\300q\330\014\017\210q\330\020\027\320\027)\250\021\250!\340\020\027\320\027'\240q\250\005\250Y\260a\330\014\025\220W\230A\230Q\330\014\034\230A\230Q\330\010\017\210q\320\004(\250\001\360B\002\000\t\021\220\r\230V\2401\240F\250!\330\010\017\320\017*\250!\2507\260*\270A\330+:\270$\270a\200\001\330\004\014\210B\210b\220\013\2303\230a\330\004\r\210Q\330\004\010\210\014\220C\220q\330\014\020\220\n\230#\230Q\330\014\020\220\002\220#\220X\320\0350\260\001\260\021\330\010\021\220\021\220\"\320\024'\240q\250\013\2602\260Q\330\010\031\230\025\230a\230q""\330\010\017\320\017 \240\005\240Q\240a\330\010\021\220\026\220w\230a\230v\240R\240v\250Q\330\n\026\220c\230\021\330\n\016\210j\230\003\2301\330\n\016\210b\220\003\2208\320\0331\260\021\260!\330\010\021\220\022\2202\320\025+\2501\250K\260r\270\021\330\010\034\230E\240\021\240!\330\010\017\320\017#\2405\250\001\250\024\250Q\250a\330\010\021\220\026\220w\230a\230v\240S\250\004\250A\250T\260\021\340\010\016\210j\230\001\230\021\360\010\000\005\n\210\037\230\001\230\030\240\033\250A\330\004\013\2101\320\004(\250\001\360\024\000\t\r\210D\220\014\230A\230Q\330\010*\250!\2504\250q\330+,\330+,\250A\330+,\250A\330\010\013\2104\210~\230Q\230k\250\036\260q\270\001\330\010\017\210t\2209\230A\230T\240\024\240Y\250a\250q\320\004 \240\001\360\n\000\t\r\210D\220\014\230A\230Q\330\010\021\220\026\220q\230\010\240\001\320!B\300!\330\020\024\320\024*\250!\330\010\017\210t\2209\230A\230Q\320\004\034\230M\250\021\360&\000\t\021\220\004\220A\330\010\013\2106\220\023\220A\330\014\023\2201\330\r\021\220\032\2301\230G\240:\250Q\330\014\020\220\013\2308\240:\250X\260Q\260a\330\010\013\2101\330\014\023\2205\230\007\230q\240\007\240w\250f\260A\340\014\017\210q\330\020\027\220u\230G\2401\240C\240q\250\003\2504\250u\260E\270\021\340\020\027\220u\230A\320\004-\250Q\330\010\033\2301\330\010\014\210D\220\017\230q\330\010\021\220\026\220v\230Q\230a\230q\240\001\330\010\037\230q\240\004\320$6\260a\330\010\016\210a\210v\220Q\220c\230\024\230U\240%\240q\250\001\330\010\014\210A\210Q\330\010\013\2101\330\014%\240Q\240d\250!\330\010\017\210q\200\001\330\004\n\210+\220Q\320\004%\240Q\360*\000\t\014\2104\320\017 \240\003\2401\330\014\023\2201\340\010\023\2201\220D\230\001\330\010\017\320\017!\240\021\240$\320&8\270\002\270!\320\004\035\230Q\360 \000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\013\210:\220S\230\001\330\014\020\220\014\230A\340\014\032\230+\240Q\240a\330\014\037\230q\240\004\320$6\260a\320\004%\240Q\360\026\000\t\014\2104\210t\220>\240\021\330\014\022\220*\230A\230Q""\340\010\020\220\001\220\024\220Q\330\010\014\210G\2206\230\021\230(\240!\320\004%\240Q\330\010\013\2104\210u\220D\230\004\230J\240a\240v\250Z\260q\330\014\023\220:\230X\240Q\240a\330\010\014\210K\220q\200\001\360\010\000\005\016\210Q\330\004\010\210\n\220!\330\010\013\2107\220$\220f\230B\230c\240\023\240A\240Q\330\014\022\220$\220a\340\014\022\220'\230\021\230!\330\004\013\2101\210\001\330\014\023\220:\230Q\230e\2401\320\004!\240\021\360T\001\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\330\010\030\320\0300\260\001\260\024\260Q\330\010\013\2101\330\014\023\2201\340\014\023\220<\230q\240\001\200\001\360\010\000\005\016\210T\220\037\240\004\240K\250t\260?\300$\300i\310t\320SZ\320Z^\320^m\320mq\320qr\330\004\014\210G\2201\220F\230,\240a\330\004\007\200v\210W\220E\230\024\230Q\330\010\022\220!\330\010\027\220q\340\010\027\220t\230>\250\027\260\005\260S\270\004\270J\300g\310U\320RU\320UY\320Yg\320gn\320ns\320sv\320vz\360\000\000{\001C\002\360\000\000C\002J\002\360\000\000J\002O\002\360\000\000O\002R\002\360\000\000R\002V\002\360\000\000V\002d\002\360\000\000d\002k\002\360\000\000k\002l\002\330\004\007\200q\330\010\017\320\0173\2604\260q\270\007\270{\310'\320QR\340\010\017\320\0173\2604\260q\270\007\270{\310!\230\021\240\021\260\001\200\001\330\004\032\230!\200\001\360\n\000\005\n\210\021\210!\320\004&\240a\360H\001\000\t\016\210T\220\036\230q\330\010\013\2101\330\014\024\220D\230\t\240\021\240%\240r\250\021\340\014\023\2204\220y\240\001\240\021\320\004>\270a\360\006\000\t1\260\001\330\010\013\2104\320\017 \240\007\240q\330\014\022\220*\230A\230Q\330\010\032\320\0320\260\001\260\021\330\010\014\320\014 \240\001\240\021\330\010\013\2101\330\014\020\320\020(\250\001\220a\320\004\026\220a\360\020\000\t\014\2104\320\017 \240\003\2401\330\014\r\330\010\017\210v\220Q\320\026,\250A\250T\260\021\320\004'\240\177\260a\360\032\000\t\026\220[\240\001\330\014\030\230\004\230A\330\014\r\340\010\013\2101\330\014\023\320\023%\240Q\330\017\037\230q\240\004\320$;\2701""\340\014\023\320\023#\2401\330\017\037\230q\240\004\320$;\2701\330\017\023\220?\240!\330\036\037\320\004(\250\001\330\010\016\210a\330\010\014\210I\220X\230_\250G\2601\330\014\024\220E\230\031\240!\2406\250\021\330\014\017\210q\330\020\023\2207\230!\2301\330\010\017\210q\320\004.\250a\360&\000\t\014\210:\220Q\220m\2401\330\014\033\230;\240a\330\014\032\230+\240Q\340\010\023\220;\230a\230t\2405\250\003\2502\250V\2602\260Q\330\010\025\220Q\340\010\023\2201\220D\230\001\330\024\025\330\024\025\220Q\330\024\025\220Q\340\010\013\210<\220w\230e\2401\240A\330\014\022\220*\230A\230Q\330-/\250q\340\010\032\230*\240A\240T\250\021\330%/\250q\260\001\330%&\330\010\030\230\001\230\034\240Q\340\010\013\320\013\033\2303\230a\330\014\022\220,\230a\230q\340\014\025\220T\230\032\2401\240A\330\014\022\320\022&\240a\240q\330\014\023\2201\200\001\330\004\006\200b\210\002\210$\210a\210u\220B\220b\230\004\230E\240\021\240#\240Q\240b\250\004\250C\250q\260\002\260$\260c\270\021\270\"\270D\300\003\3001\300B\300a\330\004\014\210A\210S\220\001\220\024\220S\230\001\230\021\330\004\014\210A\210S\220\001\220\024\220S\230\001\230\021\330\004\014\210D\220\002\220!\2206\230\021\230$\230b\240\004\240B\240a\240v\250Q\250d\260\"\260A\330\014\020\220\002\220!\2206\230\021\230$\230b\240\004\240B\240a\240v\250Q\250d\260\"\260A\320\004\036\230j\250\001\360\024\000\t\026\220T\230\034\240Q\240a\330\010\013\2101\330\014\023\220<\230q\320 0\260\006\260k\300\021\330 '\240q\330 &\240a\330$+\2504\250z\270\023\270B\270g\300Q\330$(\250\001\330\010\016\210l\230!\2301\320\004&\240o\260Q\360\030\000\t\026\220[\240\001\330\014\030\230\004\230A\330\014\r\340\010\013\2101\330\014\023\320\023%\240Q\330\017\036\230a\230t\320#:\270!\340\014\023\320\023#\2401\330\017\036\230a\230t\320#:\270!\330\017\023\220?\240!\330\036\037\230q\320\004'\240q\3604\000\t\014\2104\320\017 \240\003\2401\330\014\r\330\010)\250\021\250$\320.@\300\001\330\010\014\210G\2206\230\021\230(\240!\320\004'\240q\360P\001\000\t\014\2104\320\017 \240\003""\2401\330\014\022\220*\230A\230Q\330\010\023\2201\220D\230\001\330\024\025\330\024\025\220Q\330\024\025\220Q\330\010\021\220\021\330\010\014\210G\2209\230A\330\014\037\230q\330\020\032\230!\2301\330\020\021\220\021\330\020\021\220\021\330\020\021\220\021\340\014\022\220'\230\021\330\020\035\230Q\330\024\032\230!\330\024\033\2301\330\024\"\240$\240i\250q\260\016\270a\270q\330\024$\240D\250\t\260\021\260.\300\001\300\021\330\024!\240\021\360\006\000\t\031\230\001\230\034\240Q\330\010\017\210~\230Q\230a\200\001\340\004\037\230q\320 0\260\013\270;\300k\320QR\330\004\023\320\023%\240X\250Q\250a\330\004\007\200|\2207\230!\330\0104\260A\3205J\310.\320XY\330\004\013\2101\200\001\340\004\005\330\004\n\210!\330\004\027\220q\330\004\013\2101\320\004\037\230q\360,\000\t\014\2104\320\017 \240\003\2401\330\014\023\2201\340\010\032\230!\2304\320\0371\260\021\260!\330\010\026\220a\220q\330\010\022\220!\320\023.\250a\250\177\270a\270s\300!\3001\330\010\032\230!\2301\330\010\013\2101\330\014\024\220B\220a\340\014\023\2201\320\004(\250\007\250q\360.\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\360\006\000\t\014\2104\210z\230\023\230B\230a\330\014\022\220*\230A\320\035g\320gn\320no\320os\320s}\320}~\340\010\017\210q\340\010\031\230\021\230$\230a\360\006\000\t\r\210E\220\025\220a\220t\230:\240Q\330\014\030\230\004\230J\240a\240q\330\014\017\210y\230\001\330\020\030\230\002\230\"\230E\240\022\2401\340\020\030\230\001\230\031\240!\330\014\021\220\023\220F\230!\330\020\026\320\026'\240q\250\004\250A\330(+\2503\250a\250t\2603\260a\260t\2701\270A\330\020\024\220G\2301\230A\230S\240\001\240\023\240D\250\005\250U\260!\2601\330\020\"\240!\2401\360\006\000\t\022\320\021%\240Q\240d\320*<\270A\270[\310\001\310\032\320ST\340\010\014\210E\220\025\220a\220q\330\014\020\220\007\220q\230\001\230\026\230q\240\002\240!\2403\240d\250%\250u\260A\260Q\340\010\035\230Q\230h\240a\360\006\000\t\020\210s\220!\2201\330\010\021\220\021\220!\2204\220q\230\002\230!\2302\230S\240\002\240#\240S""\250\002\250\"\250B\250c\260\022\2604\260q\270\002\270!\2702\270S\300\002\300#\300S\310\002\310#\310T\320QV\320V[\320[\\\320\\c\320cg\320gl\320lq\320qr\320rs\340\010\013\2101\330\014\017\210t\220?\240!\2401\330\020\025\220Q\220a\340\020\025\220Q\220a\340\010\017\210v\220Q\220a\320\004?\270q\330\010\013\2104\320\017 \240\003\2401\330\014\036\230a\230t\2401\330\010\014\320\014\037\320\037?\270q\300\006\300a\200\001\330\004\007\200q\330\010\013\2104\210w\220a\220s\230!\330\014\020\220\013\2301\230A\330\010\013\2104\210q\220\006\220d\230!\2306\240\021\330\010\021\220\021\320\022&\240a\240z\260\021\340\010\013\2104\210z\230\021\230#\230Q\330\014\020\220\006\220a\220q\330\010\013\2104\210q\220\001\330\010\021\220\021\220#\220Q\220c\230\024\230U\240$\240g\250Q\250c\260\023\260A\260X\270S\300\007\300q\360\006\000\005\010\200r\210\022\2101\330\010\021\220\027\230\002\230!\2304\230q\240\001\240\021\330\004\007\200r\210\022\2101\330\010\014\210E\220\025\220a\220r\230\022\2301\330\014\022\220'\230\021\230!\360\006\000\005\r\210A\210R\210t\2205\230\007\230s\240\"\240C\240q\330\004\017\210q\220\002\220$\220e\2307\240#\240R\240s\250!\330\004\014\210E\220\021\330\004\013\2109\220B\220a\200\001\360\014\000\005\006\330\004\005\330\004\007\200q\330\010$\240A\330\004\013\2101\200\001\360\010\000\005\010\200q\320\010\031\230\023\230A\330\010\017\320\017#\2401\240A\340\004\026\220a\220q\320\030*\250!\2501\330\004 \240\001\240\021\330\004\010\320\010\034\230A\230Q\330\004\005\320\005\031\230\021\230!\330\004\005\200Y\210a\210q\220\005\220Q\330\004\005\200_\220A\220Q\330\004\013\2101\320\004'\240q\330\010\013\210?\230\"\230A\330\014\r\340\010\024\220E\230\021\230#\230W\240N\260#\260Z\270q\300\001\330\010\020\220\001\330\010\014\210E\220\021\330\014\020\220\017\230q\240\005\240R\240s\250#\250Q\330\014\021\220\027\230\001\320\0312\260\"\260A\330\014\017\210r\220\022\2201\330\020\025\220W\230A\320\0356\260b\270\001\340\010\014\210I\220Q\340\010\014\210L\230\001\330\010\026\220f\320\034,\250A""\250^\2701\270A\330\010\014\210H\220A\330\014\023\2204\220u\230A\320\0353\2602\260R\260u\270B\270e\300:\310Q\330\014\020\220\010\230\001\330\020\032\230$\230g\240Q\330\020\023\2207\230!\2303\230c\240\021\330\024\030\230\t\240\027\250\001\250\027\260\006\260a\340\010\014\210J\220c\230\021\230$\230a\330\010\016\210i\220q\230\006\230i\240s\250#\250Q\250d\260,\270a\320\004\032\230!\360$\000\t\022\220\036\230q\240\004\240A\330\010\013\210:\220Q\220h\230c\240\021\330\014\022\220,\230a\230q\340\010\014\210G\2206\230\021\230(\240!\320\004\037\230q\360\014\000\t\r\210D\220\014\230A\230Q\330\010\020\220\006\220a\220x\230q\320 ;\2701\330\014\020\320\020&\240a\330\010\017\210t\2209\230A\230Q\320\004/\250q\360\014\000\t\r\210D\220\014\230A\230Q\330\010\017\210v\220Q\220h\230a\320\037J\310!\330\014\020\320\020&\240a\330\010\017\210t\2209\230A\230Q\320\004\027\220q\340\010\t\360\020\000\t\n\330\014\r\360\010\000\037 \330\036$\240E\250\021\250$\250a\250t\2608\2706\300\021\300!\330\0361\260\021\260$\260a\330\0361\260\021\260$\260a\320\004\027\220q\330\010\013\320\013$\240F\250#\250Q\330\014\027\220r\230\025\230e\2401\240A\330$%\330\014 \240\004\240A\240Q\330\014%\240X\320->\270j\310\001\330\014\035\230V\2401\330\010\014\210J\220c\230\021\320\0323\2601\330\010\016\210i\220q\230\006\230a\320\004\037\230q\360\020\000\t\031\230\r\240Q\320&7\260q\270\004\270A\330\010\013\210>\230\023\230A\330\014\023\2201\330\010\013\210>\230\023\230A\330\014\023\2201\330\010\017\210q\320\004'\240q\330\010\016\210j\230\001\330\014\r\320\004\027\220q\330\010\022\220%\220r\230\021\330\010\014\210H\220D\230\007\230t\2408\2507\260(\270!\2704\270q\330\010\014\210I\220T\230\021\320\004\027\220q\330\010\013\320\013'\240v\250S\260\001\330\014\027\220r\230\025\230e\2401\240A\330$%\330\014#\2404\240q\250\001\330\014(\250\010\3200D\300J\310a\330\014 \240\006\240a\330\010\014\210J\220c\230\021\320\0326\260a\330\010\016\210i\220q\230\006\230a\200\001\360r\001\000\005\t\210\010\320\020 \240\001\240\021\330\004\014""\210A\210Q\210k\230\024\230X\240X\250^\2708\3001\330\r(\250\010\260\001\330\r!\240\031\250+\260Z\270q\330\r\026\220j\240\t\250\021\330\r!\240\025\240a\240t\2501\250A\250X\260U\270!\330\r\022\220!\2201\220H\230A\230V\2406\250\022\2501\330\r\022\220!\2201\220H\230A\230V\2401\330\r*\250!\330\r\016\340\004\010\210\010\220\001\330\010\014\210H\220A\220Q\330\010\016\210a\210w\220a\330\010\013\2103\210a\210u\220B\220a\330\014\022\220!\330\010\r\210Q\210c\220\025\220a\220y\240\001\340\004\010\210\010\220\001\330\010\014\210M\230\021\230!\330\010\r\210Q\210c\220\021\220)\2301\210\001\330\014\017\210s\220!\2203\220c\230\021\330\020\027\220t\2301\230A\340\014\023\2201\330\020\024\220E\230\021\230#\230Q\230f\240A\240R\240q\330\020\024\220E\230\021\230#\230Q\230f\240A\240R\240q\320\004\032\230!\360\020\000\t\020\210t\2208\2301\230F\240!\320\004\031\230\021\360\016\000\t\020\210t\2208\2301\230F\240!\200\001\330\004\007\200t\210:\220Q\220f\230A\330\010\016\210i\220q\230\001\330\004\020\220\001\330\004\007\200\177\220b\230\001\330\010\014\210H\220J\230b\240\010\250\001\320)9\270\021\330\014\020\220\003\2201\220A\330\014\017\210u\220B\220b\230\002\230$\230b\240\003\2401\330\020\026\220j\240\001\240\021\330\014\017\210v\220X\230Q\330\020\031\230\027\240\002\240!\340\020\031\230\027\240\001\240\021\240!\340\010\014\210J\220a\330\014\020\220\003\2201\220F\230&\240\004\240F\250%\250r\260\021\330\014\017\210u\220B\220b\230\002\230$\230b\240\003\2401\330\020\026\220j\240\001\240\021\330\014\017\210v\220X\230Q\330\020\031\230\027\240\002\240!\340\020\031\230\027\240\001\240\021\240!\340\004\013\2101\200\001\360 \000\005\006\330\010\017\210u\220A\220R\220q\230\001\330\013\014\330\010\016\210j\230\001\230\033\240B\240a\320\004'\240w\250j\270\001\360\014\000\t8\260q\330\0103\2601\330\010:\270!\360\014\000\t\014\2104\320\017 \240\003\2401\330\014\022\220*\230A\230Q\340\010\t\330\014\023\2204\220w\230g\240Q\320&8\270\001\330\017\020\360\006\000\t\022\320\021'\240q\250\004\250A\330()\250\021""\330()\250\021\330()\250\021\330()\250\021\340\010\013\2107\220#\220Q\330\014\022\220*\230A\230Q\360\006\000\t#\240$\240j\260\001\260\021\330\010\037\320\0373\2601\260A\330\010\014\210G\2205\230\001\320\0312\260!\340\010\031\230\035\240a\240s\250!\320+;\2701\330\010\013\2101\330\014\037\230q\240\001\330\014\032\320\0320\260\001\260\021\340\014\037\230q\240\001\330\014\032\320\0320\260\001\260\021\340\010\017\210t\2207\230%\230q\320 0\3200B\300!pickle:from_datapickle";
    PyObject *data = NULL;
    CYTHON_UNUSED_VAR(__Pyx_DecompressString);
    #endif
    PyObject **stringtab = __pyx_mstate->__pyx_string_tab;
    Py_ssize_t pos = 0;
    for (int i = 0; i < 2024; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 587) PyUnicode_InternInPlace(&string);
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
      stringtab[i] = string;
      pos += bytes_length;
    }
    for (int i = 2024; i < 2317; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length);
      stringtab[i] = string;
      pos += bytes_length;
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    Py_XDECREF(data);
    for (Py_ssize_t i = 0; i < 2317; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 2024;
      for (Py_ssize_t i=0; i<293; ++i) {
        #if PY_VERSION_HEX >= 0x030F0000
        PyUnstable_SetImmortal(table[i]);
        #elif CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
        if ((PY_SSIZE_T_MAX <= _Py_IMMORTAL_REFCNT_LOCAL)) break;
        #if PY_VERSION_HEX < 0x030E0000
        if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
        #else
        if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
        #endif
        {
          Py_SET_REFCNT(table[i], ((Py_ssize_t)_Py_IMMORTAL_REFCNT_LOCAL + 1));
        }
        #else
        if ((PY_SSIZE_T_MAX < _Py_IMMORTAL_INITIAL_REFCNT)) break;
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
        #endif
      }
    }
    #endif
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab;
    double const c_constants[] = {0.0,0.1,0.2,0.9,1.0,1e-9};
    for (int i = 0; i < 6; i++) {
      numbertab[i] = PyFloat_FromDouble(c_constants[i]);
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab + 6;
    int8_t const cint_constants_1[] = {0,-1,1,2,-3,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127};
    int16_t const cint_constants_2[] = {128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,552,887,888,962,1260,1288,3552,4878,5110,10000,11031,12846,17661,19536,27436};
    int32_t const cint_constants_4[] = {32768L,85263L,168030L,379799L,1008906L,94173347L};
    for (int i = 0; i < 438; i++) {
      numbertab[i] = PyLong_FromLong((i < 130 ? cint_constants_1[i - 0] : (i < 432 ? cint_constants_2[i - 130] : cint_constants_4[i - 432])));
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_number_tab;
    for (Py_ssize_t i=0; i<444; ++i) {
      #if PY_VERSION_HEX >= 0x030F0000
      PyUnstable_SetImmortal(table[i]);
      #elif CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      if ((PY_SSIZE_T_MAX <= _Py_IMMORTAL_REFCNT_LOCAL)) break;
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], ((Py_ssize_t)_Py_IMMORTAL_REFCNT_LOCAL + 1));
      }
      #else
      if ((PY_SSIZE_T_MAX < _Py_IMMORTAL_INITIAL_REFCNT)) break;
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_codeobjects ### */
typedef struct {
    unsigned int argcount : 4;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 5;
    unsigned int flags : 10;
    unsigned int first_line : 12;
} __Pyx_PyCode_New_function_description;
/* NewCodeObj.proto */
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
);


static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) {
  PyObject* tuple_dedup_map = PyDict_New();
  if (unlikely(!tuple_dedup_map)) return -1;
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 375};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_l};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_format_explain_list, __pyx_mstate->__pyx_kp_b_iso88591_s_3c_t1A_1_E_QfARq_E_QfARq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 551};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_e};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_a_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 1393};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_c_2};
    __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 2466};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_p};
    __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2591};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_subgroup};
    __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_kp_b_iso88591_5_1Jc_1HAQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 100};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_g};
    __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__42, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 434};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__43, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_GENERATOR), 636};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_kp_b_iso88591__44, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 31};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_elt};
    __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_is_GapElement, __pyx_mstate->__pyx_kp_b_iso88591_Qe1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 34};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_elt};
    __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_is_MagmaElement, __pyx_mstate->__pyx_kp_b_iso88591_Qe1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 85};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_format_str};
    __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_valid_index, __pyx_mstate->__pyx_kp_b_iso88591_uARq_j_Ba, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 109};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_3hc_G1_G1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 121};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_s};
    __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_to_str, __pyx_mstate->__pyx_kp_b_iso88591_1G1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 125};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_bytearray_to_bytes, __pyx_mstate->__pyx_kp_b_iso88591_5, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 129};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_s};
    __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_to_byte_str, __pyx_mstate->__pyx_kp_b_iso88591_1G1L_AS_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 159};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_old};
    __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_set_test_flag, __pyx_mstate->__pyx_kp_b_iso88591_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 186};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_SnapPea_interrupt, __pyx_mstate->__pyx_kp_b_iso88591_q_A_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 256};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_s};
    __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_cy_eval, __pyx_mstate->__pyx_kp_b_iso88591_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 260};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_M, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_zeros, __pyx_mstate->__pyx_n_u_nonzeros, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_smith_form, __pyx_mstate->__pyx_kp_b_iso88591_q_4was_1A_4q_d_6_az_4z_Q_aq_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 306};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_check_SnapPea_memory, __pyx_mstate->__pyx_kp_b_iso88591__45, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 310};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_seed};
    __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_set_rand_seed, __pyx_mstate->__pyx_kp_b_iso88591__46, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 367};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_mat, __pyx_mstate->__pyx_n_u_explain_rows, __pyx_mstate->__pyx_n_u_explain_columns};
    __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_Ja_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 373};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_type_str, __pyx_mstate->__pyx_n_u_format_explain_list, __pyx_mstate->__pyx_n_u_format_explain_list};
    __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_q_E_at86_1_a_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 396};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_mat, __pyx_mstate->__pyx_n_u_explain_rows, __pyx_mstate->__pyx_n_u_explain_columns};
    __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_iq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 400};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_Yaq_0, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS), 503};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_kwargs, __pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_old, __pyx_mstate->__pyx_n_u_new_2};
    __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_aq_E_JfA_q_waq_QfE_1_IWAQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS), 514};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_args};
    __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_immutable, __pyx_mstate->__pyx_kp_b_iso88591_A_nAQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 517};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_keys, __pyx_mstate->__pyx_kp_b_iso88591_A_t9E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 526};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_xs_XT_D_XT_A_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 543};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_X_j_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 550};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_l, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_StrLongestLen, __pyx_mstate->__pyx_kp_b_iso88591_3as_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 572};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_lenStr, __pyx_mstate->__pyx_n_u_absImag};
    __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_2T_Q_Qd_a_82Q_t7_s_A_l_A_7_Q_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 600};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_t1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 605};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_orient, __pyx_mstate->__pyx_n_u_sided};
    __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_6a_t_31_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 612};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_base, __pyx_mstate->__pyx_n_u_s};
    __pyx_mstate_global->__pyx_codeobj_tab[34] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_3avRr_WCt1A_6a_z_a_q_t5_4q_4uA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[34])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 623};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_s};
    __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_t2V5_as_e7_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 629};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mat, __pyx_mstate->__pyx_n_u_a_2, __pyx_mstate->__pyx_n_u_b_2, __pyx_mstate->__pyx_n_u_c_2, __pyx_mstate->__pyx_n_u_d_2, __pyx_mstate->__pyx_n_u_w0, __pyx_mstate->__pyx_n_u_w1, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_format_two_by_two, __pyx_mstate->__pyx_kp_b_iso88591_b_auBb_E_Qb_Cq_c_D_1Ba_AS_S_AS, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 641};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_cusp_images, __pyx_mstate->__pyx_n_u_cusp_maps, __pyx_mstate->__pyx_n_u_extends_to_link};
    __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_O4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 645};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[38] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_cusp_images, __pyx_mstate->__pyx_kp_b_iso88591_A_t1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[38])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 648};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[39] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_cusp_maps, __pyx_mstate->__pyx_kp_b_iso88591_A_t1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[39])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 651};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[40] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_extends_to_link, __pyx_mstate->__pyx_kp_b_iso88591_A_t1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[40])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 654};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[41] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_num_cusps, __pyx_mstate->__pyx_kp_b_iso88591_A_s_4_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[41])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 657};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_images, __pyx_mstate->__pyx_n_u_maps, __pyx_mstate->__pyx_n_u_line0, __pyx_mstate->__pyx_n_u_line1, __pyx_mstate->__pyx_n_u_line2, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_l0, __pyx_mstate->__pyx_n_u_l1, __pyx_mstate->__pyx_n_u_l2, __pyx_mstate->__pyx_n_u_L, __pyx_mstate->__pyx_n_u_line3, __pyx_mstate->__pyx_n_u_l};
    __pyx_mstate_global->__pyx_codeobj_tab[42] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_t_Q_whd_a_E_at_Q_Cs_at1A_1Cq_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[42])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 697};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_LE, __pyx_mstate->__pyx_n_u_manifold, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_klp};
    __pyx_mstate_global->__pyx_codeobj_tab[43] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_plink_callback_2, __pyx_mstate->__pyx_kp_b_iso88591_A_r_3a_oQa_r_t3a_l_1_T_Cs_AZxr, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[43])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 723};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_T, __pyx_mstate->__pyx_n_u_recompute, __pyx_mstate->__pyx_n_u_manifold_class_2, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_M};
    __pyx_mstate_global->__pyx_codeobj_tab[44] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_Manifold_from_Triangulation, __pyx_mstate->__pyx_kp_b_iso88591_1_q_O3j_aq_q_A_q_aq_1_q_1A_Q_r, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[44])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 749};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_M, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_T};
    __pyx_mstate_global->__pyx_codeobj_tab[45] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_basic_pyx, __pyx_mstate->__pyx_n_u_Triangulation_from_Manifold, __pyx_mstate->__pyx_kp_b_iso88591_q_A_1A_aq_1_AQ_Yaq_Q__AQ_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[45])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 279};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_data, __pyx_mstate->__pyx_n_u_remove_finite_vertices};
    __pyx_mstate_global->__pyx_codeobj_tab[46] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_get_from_link_data, __pyx_mstate->__pyx_kp_b_iso88591_q_4_1_at1_q_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[46])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 314};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[47] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_remove_finite_vertices_2, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_q_A_8_at1_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[47])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 334};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[48] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_cover_info, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_4q_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[48])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 343};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_L};
    __pyx_mstate_global->__pyx_codeobj_tab[49] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_plink, __pyx_mstate->__pyx_kp_b_iso88591_A_4t7_7_wa_1D_G1_1_D_vU_U_4q_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[49])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 369};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[50] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_link, __pyx_mstate->__pyx_kp_b_iso88591_A_4y_q_U_4q_G1_XRt81F_Q_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[50])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 387};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_cusp_type};
    __pyx_mstate_global->__pyx_codeobj_tab[51] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_num_cusps, __pyx_mstate->__pyx_kp_b_iso88591_A_S_Q_s_1D_s_at1_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[51])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 406};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[52] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_num_fake_cusps, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[52])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 422};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_cover_c_triangulation, __pyx_mstate->__pyx_n_u_new_tri};
    __pyx_mstate_global->__pyx_codeobj_tab[53] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_orientation_cover, __pyx_mstate->__pyx_kp_b_iso88591_A_4_Q_AQ_6a_AT_j_1A_y_U_Rq_e1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[53])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 451};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_orientability};
    __pyx_mstate_global->__pyx_codeobj_tab[54] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_is_orientable, __pyx_mstate->__pyx_kp_b_iso88591_q_Q_7q_A_A_1_A_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[54])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 466};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_copy_c_triangulation, __pyx_mstate->__pyx_n_u_new_tri};
    __pyx_mstate_global->__pyx_codeobj_tab[55] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_copy, __pyx_mstate->__pyx_kp_b_iso88591_A_6Q_4_1_4z_4_1_j_1A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[55])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 483};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_blowup_multiple, __pyx_mstate->__pyx_n_u_passes_at_fours};
    __pyx_mstate_global->__pyx_codeobj_tab[56] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_randomize, __pyx_mstate->__pyx_kp_b_iso88591_1_4_1_AT1CCTTU_G6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[56])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 497};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_passes_at_fours};
    __pyx_mstate_global->__pyx_codeobj_tab[57] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_simplify, __pyx_mstate->__pyx_kp_b_iso88591_q4_4_1_G6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[57])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 528};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tet_num, __pyx_mstate->__pyx_n_u_face_index, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_tet, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_f, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[58] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_two_to_three, __pyx_mstate->__pyx_kp_b_iso88591_A_Kq_T_Kq_d_E_aq_Q_Qe3at_1_7_Q_v, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[58])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 563};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tet_num, __pyx_mstate->__pyx_n_u_edge_index, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_tet, __pyx_mstate->__pyx_n_u_where_to_resume, __pyx_mstate->__pyx_n_u__21, __pyx_mstate->__pyx_n_u_e, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[59] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_three_to_two, __pyx_mstate->__pyx_kp_b_iso88591_A6_Kq_T_Kq_d_E_aq_Q_3k_G3a_1_Qc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[59])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 614};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[60] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_with_hyperbolic_structure, __pyx_mstate->__pyx_kp_b_iso88591_A_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[60])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 626};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[61] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_polish_hyperbolic_structures, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[61])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 633};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_savefile, __pyx_mstate->__pyx_n_u_filename};
    __pyx_mstate_global->__pyx_codeobj_tab[62] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_empty_save, __pyx_mstate->__pyx_kp_b_iso88591_A_1_A_U_66Gq_A_5_A_t1_q_81_a_E_j, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[62])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 653};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_file_name, __pyx_mstate->__pyx_n_u_b_file_name};
    __pyx_mstate_global->__pyx_codeobj_tab[63] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_save, __pyx_mstate->__pyx_kp_b_iso88591_Q_4_1_AQ_S_A_Qa_q_6a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[63])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 677};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_string, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[64] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_to_string, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_q_A_AQ_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[64])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 699};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_string, __pyx_mstate->__pyx_n_u_remove_finite_vertices, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_b_string};
    __pyx_mstate_global->__pyx_codeobj_tab[65] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_from_string, __pyx_mstate->__pyx_kp_b_iso88591_1_4_q_AQ_aq_8_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[65])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 723};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_terse, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_byte, __pyx_mstate->__pyx_n_u_byteseq, __pyx_mstate->__pyx_n_u_bit, __pyx_mstate->__pyx_n_u_c_2};
    __pyx_mstate_global->__pyx_codeobj_tab[66] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_to_bytes, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_6_Ba_D_T_1_AQ_at1_1AWA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[66])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS), 761};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_bytestring, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_c_triangulation};
    __pyx_mstate_global->__pyx_codeobj_tab[67] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_from_bytes, __pyx_mstate->__pyx_kp_b_iso88591_A_1_4_q_AQ_2_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[67])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 780};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_bytestring, __pyx_mstate->__pyx_n_u_remove_finite_vertices, __pyx_mstate->__pyx_n_u_c_triangulation};
    __pyx_mstate_global->__pyx_codeobj_tab[68] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_from_pickle, __pyx_mstate->__pyx_kp_b_iso88591_a_1_4_q_AQ_0_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[68])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 791};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tetrahedra_data, __pyx_mstate->__pyx_n_u_num_or_cusps, __pyx_mstate->__pyx_n_u_num_nonor_cusps, __pyx_mstate->__pyx_n_u_cusp_indices, __pyx_mstate->__pyx_n_u_peripheral_curves, __pyx_mstate->__pyx_n_u_remove_finite_vertices, __pyx_mstate->__pyx_n_u_c_triangulation};
    __pyx_mstate_global->__pyx_codeobj_tab[69] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_from_tetrahedra_gluing_data, __pyx_mstate->__pyx_kp_b_iso88591_A23562378_J_1_4_q_AQ_31A45454545, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[69])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 845};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_isosig, __pyx_mstate->__pyx_n_u_remove_finite_vertices, __pyx_mstate->__pyx_n_u_match, __pyx_mstate->__pyx_n_u_decoration};
    __pyx_mstate_global->__pyx_codeobj_tab[70] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_from_isosig, __pyx_mstate->__pyx_kp_b_iso88591_4_q_AQ_6_1_M_gQ_fAQ_4AV7_1_4_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[70])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 888};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[71] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_reduce, __pyx_mstate->__pyx_kp_b_iso88591_AB_M_WA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[71])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 923};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[72] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_pickle_2, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[72])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 932};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_permutation, __pyx_mstate->__pyx_n_u_indices, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_num};
    __pyx_mstate_global->__pyx_codeobj_tab[73] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_reindex_cusps, __pyx_mstate->__pyx_kp_b_iso88591_A_j_4_1_AQ_S_c_S_1M_Cq_Qa_AQ_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[73])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 958};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_f, __pyx_mstate->__pyx_n_u_data, __pyx_mstate->__pyx_n_u_result_cusp_indices, __pyx_mstate->__pyx_n_u_row, __pyx_mstate->__pyx_n_u_result_curves, __pyx_mstate->__pyx_n_u_data_ijk, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_f};
    __pyx_mstate_global->__pyx_codeobj_tab[74] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_get_cusp_indices_and_peripheral, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd_4AQ_a_E_at_4_aq_uE_waq_E_at, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[74])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 980};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_data, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_neighbors, __pyx_mstate->__pyx_n_u_perms, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_k};
    __pyx_mstate_global->__pyx_codeobj_tab[75] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_get_tetrahedra_gluing_data, __pyx_mstate->__pyx_kp_b_iso88591_A_Qd_4AQ_G9D_ar_U_q_AQd_1BgQb_uA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[75])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 995};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other, __pyx_mstate->__pyx_n_u_isometries, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[76] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_isomorphisms_to, __pyx_mstate->__pyx_kp_b_iso88591_A_4_5_50A_A_AQ_1D_Q_Ql_Q_Q_Qa_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[76])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1033};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other};
    __pyx_mstate_global->__pyx_codeobj_tab[77] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_isomorphisms_to_2, __pyx_mstate->__pyx_kp_b_iso88591_A_t_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[77])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1081};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[78] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_kp_b_iso88591_a_4_1_vQ_AT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[78])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1093};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_new_name, __pyx_mstate->__pyx_n_u_b_new_name, __pyx_mstate->__pyx_n_u_c_new_name};
    __pyx_mstate_global->__pyx_codeobj_tab[79] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_set_name_2, __pyx_mstate->__pyx_kp_b_iso88591_4_1_AQ_at_5Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[79])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1108};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_alpha, __pyx_mstate->__pyx_n_u_flips, __pyx_mstate->__pyx_n_u_codec, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[80] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_DT_code, __pyx_mstate->__pyx_kp_b_iso88591_M_A_6_A_1_1G_Q_8_XQa_1_5_q_wfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[80])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1140};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_code, __pyx_mstate->__pyx_n_u_lazy};
    __pyx_mstate_global->__pyx_codeobj_tab[81] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_set_DTcode, __pyx_mstate->__pyx_kp_b_iso88591_Q_4uD_JavZq_XQa_Kq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[81])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1145};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_code};
    __pyx_mstate_global->__pyx_codeobj_tab[82] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_set_PDcode, __pyx_mstate->__pyx_kp_b_iso88591_A_Kq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[82])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1148};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[83] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_num_tetrahedra, __pyx_mstate->__pyx_kp_b_iso88591_4_1_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[83])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1160};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_filling_data, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_num_cusps, __pyx_mstate->__pyx_n_u_meridian, __pyx_mstate->__pyx_n_u_longitude, __pyx_mstate->__pyx_n_u_complete_2, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_fill};
    __pyx_mstate_global->__pyx_codeobj_tab[84] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_dehn_fill, __pyx_mstate->__pyx_kp_b_iso88591_1_D_4_1_AQ_D_gQ_A_A_l_Rt_S_a_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[84])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1230};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_data_spec, __pyx_mstate->__pyx_n_u_cusp_index, __pyx_mstate->__pyx_n_u_topology, __pyx_mstate->__pyx_n_u_is_complete, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_l, __pyx_mstate->__pyx_n_u_initial_shape, __pyx_mstate->__pyx_n_u_current_shape, __pyx_mstate->__pyx_n_u_initial_shape_accuracy, __pyx_mstate->__pyx_n_u_current_shape_accuracy, __pyx_mstate->__pyx_n_u_initial_modulus, __pyx_mstate->__pyx_n_u_current_modulus, __pyx_mstate->__pyx_n_u_info, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_c_2};
    __pyx_mstate_global->__pyx_codeobj_tab[85] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_cusp_info, __pyx_mstate->__pyx_kp_b_iso88591_4_1_AQ_S_4z_uE_j_Qk_1AQk_U_j_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[85])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1286};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[86] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_reverse_orientation, __pyx_mstate->__pyx_kp_b_iso88591_Q_4t_AQ_Q_G6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[86])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1303};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_cusps_to_fill, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_c_filled_tri, __pyx_mstate->__pyx_n_u_filled_tri, __pyx_mstate->__pyx_n_u_fill_cusp_spec, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_fill_all, __pyx_mstate->__pyx_n_u_c_2, __pyx_mstate->__pyx_n_u_c_2, __pyx_mstate->__pyx_n_u_c_2, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[87] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_filled_triangulation, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_D_A_ARt5_Qc_4DATI_6_Bb, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[87])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1353};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_method, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_c_new_tri, __pyx_mstate->__pyx_n_u_filled_tri, __pyx_mstate->__pyx_n_u_fill_cusp_spec, __pyx_mstate->__pyx_n_u_fill_by_fold, __pyx_mstate->__pyx_n_u_mark_solid_tori, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[88] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_unsimplified_filled_triangulati_2, __pyx_mstate->__pyx_kp_b_iso88591_8_J_4_1_AQ_D_1_AQ_q_7_Q_1_Cq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[88])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1425};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_clear_marks, __pyx_mstate->__pyx_n_u_marked, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_ans, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[89] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_marked_tetrahedra, __pyx_mstate->__pyx_kp_b_iso88591_Q_1_D_q_vQaq_q_6a_avQc_U_q_AQ_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[89])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1436};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_2, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_ans};
    __pyx_mstate_global->__pyx_codeobj_tab[90] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_edge_valences, __pyx_mstate->__pyx_kp_b_iso88591_A_a_4_1_AQ_4_9_Cr_AT_3a_r_1_1E_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[90])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 17, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1457};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_equation_type, __pyx_mstate->__pyx_n_u_c_matrix, __pyx_mstate->__pyx_n_u_equations, __pyx_mstate->__pyx_n_u_explain_rows, __pyx_mstate->__pyx_n_u_explain_cols, __pyx_mstate->__pyx_n_u_eqns, __pyx_mstate->__pyx_n_u_r, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_cusp_info, __pyx_mstate->__pyx_n_u_to_do, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_l, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[91] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_gluing_equations_pgl, __pyx_mstate->__pyx_kp_b_iso88591_7qj_2Rr_Bb_AQ_a_AQ_4_1_AQ_A_q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[91])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1637};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_vars};
    __pyx_mstate_global->__pyx_codeobj_tab[92] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_equations_identified_fa, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_Qd_5Q_1_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[92])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1664};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_obstruction_class, __pyx_mstate->__pyx_n_u_c_vars, __pyx_mstate->__pyx_n_u_c_obstruction_class, __pyx_mstate->__pyx_n_u_T, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_c_2};
    __pyx_mstate_global->__pyx_codeobj_tab[93] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_equations_identified_co, __pyx_mstate->__pyx_kp_b_iso88591_AFG_2Rr_Bb_AQ_4_1_AQ_1_4q_r_2S_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[93])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1699};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_c_matrix, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_explain_rows, __pyx_mstate->__pyx_n_u_explain_cols};
    __pyx_mstate_global->__pyx_codeobj_tab[94] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_equations_action_by_dec, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_Qd_9_AQ_Gq_s, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[94])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1723};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_matrix, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_explain_rows, __pyx_mstate->__pyx_n_u_explain_cols};
    __pyx_mstate_global->__pyx_codeobj_tab[95] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_equations_boundary_map, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_Qd_AT1C1A_Gq_s, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[95])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1752};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_matrix, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_explain_rows, __pyx_mstate->__pyx_n_u_explain_cols};
    __pyx_mstate_global->__pyx_codeobj_tab[96] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_equations_boundary_map_2, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_Qd_AT1C1A_Gq_s_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[96])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1773};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_matrix, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_explain_rows, __pyx_mstate->__pyx_n_u_explain_cols};
    __pyx_mstate_global->__pyx_codeobj_tab[97] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_equations_boundary_map_3, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_Qd_AT1C1A_Gq_s_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[97])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1796};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[98] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_obstruction_classes, __pyx_mstate->__pyx_kp_b_iso88591_Ax_EQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[98])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1858};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_N};
    __pyx_mstate_global->__pyx_codeobj_tab[99] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_generalized_obstruction, __pyx_mstate->__pyx_kp_b_iso88591_Az_Na_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[99])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1923};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_obstruction_class, __pyx_mstate->__pyx_n_u_simplify, __pyx_mstate->__pyx_n_u_eliminate_fixed_ptolemys};
    __pyx_mstate_global->__pyx_codeobj_tab[100] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_ptolemy_variety, __pyx_mstate->__pyx_kp_b_iso88591_5Q_DAf_9_Q_q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[100])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 23, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2108};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_form, __pyx_mstate->__pyx_n_u_c_eqns, __pyx_mstate->__pyx_n_u_num_rows, __pyx_mstate->__pyx_n_u_num_cols, __pyx_mstate->__pyx_n_u_eqn, __pyx_mstate->__pyx_n_u_eqns, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_cusp_info, __pyx_mstate->__pyx_n_u_to_do, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_l, __pyx_mstate->__pyx_n_u_rect, __pyx_mstate->__pyx_n_u_row, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_a_2, __pyx_mstate->__pyx_n_u_b_2, __pyx_mstate->__pyx_n_u_c_2, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_r, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[101] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_gluing_equations, __pyx_mstate->__pyx_kp_b_iso88591_1Z_4_1_AQ_Qd_z_r_6_AS_E_aq_U_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[101])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2271};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[102] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_presentation_matrix, __pyx_mstate->__pyx_kp_b_iso88591_A_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[102])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2311};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_H, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_coefficient_list, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[103] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_homology, __pyx_mstate->__pyx_kp_b_iso88591_4wgQa_4_1_q_HAT_2S_q_1_y_q_aq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[103])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2346};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_simplify_presentation, __pyx_mstate->__pyx_n_u_fillings_may_affect_generators, __pyx_mstate->__pyx_n_u_minimize_number_of_generators, __pyx_mstate->__pyx_n_u_try_hard_to_shorten_relators, __pyx_mstate->__pyx_n_u_args};
    __pyx_mstate_global->__pyx_codeobj_tab[104] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_fundamental_group, __pyx_mstate->__pyx_kp_b_iso88591_A_1_4A_31_2_4_1_AQ_q_q_4wgQ_A_t7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[104])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 19, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2395};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_permutation_rep, __pyx_mstate->__pyx_n_u_c_representation, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_cover, __pyx_mstate->__pyx_n_u_GG, __pyx_mstate->__pyx_n_u_coset_action, __pyx_mstate->__pyx_n_u_gap_image_gens, __pyx_mstate->__pyx_n_u_Q_2, __pyx_mstate->__pyx_n_u_f, __pyx_mstate->__pyx_n_u_input_type, __pyx_mstate->__pyx_n_u_G, __pyx_mstate->__pyx_n_u_degree, __pyx_mstate->__pyx_n_u_info, __pyx_mstate->__pyx_n_u_g, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_perm, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[105] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_cover, __pyx_mstate->__pyx_kp_b_iso88591_4_1_AQ_1_AQ_4A_AT_31_2_7q_r9K1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[105])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2497};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_degree, __pyx_mstate->__pyx_n_u_method, __pyx_mstate->__pyx_n_u_cover_type};
    __pyx_mstate_global->__pyx_codeobj_tab[106] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_covers, __pyx_mstate->__pyx_kp_b_iso88591_A_A_a_H_7_A_AQ_4_1_AQ_hj_AQ_7_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[106])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 17, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2564};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_degree, __pyx_mstate->__pyx_n_u_num_threads, __pyx_mstate->__pyx_n_u_G, __pyx_mstate->__pyx_n_u_relators, __pyx_mstate->__pyx_n_u_short_relators, __pyx_mstate->__pyx_n_u_long_relators, __pyx_mstate->__pyx_n_u_strategy, __pyx_mstate->__pyx_n_u_reps, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_covers, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_C, __pyx_mstate->__pyx_n_u_rel, __pyx_mstate->__pyx_n_u_rel, __pyx_mstate->__pyx_n_u_H};
    __pyx_mstate_global->__pyx_codeobj_tab[107] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_covers_low_index, __pyx_mstate->__pyx_kp_b_iso88591_4A_D_6_9A_A_A_1_1_s_81D_1AQ_d_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[107])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2599};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_degree, __pyx_mstate->__pyx_n_u_G, __pyx_mstate->__pyx_n_u_covers, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_C, __pyx_mstate->__pyx_n_u_H};
    __pyx_mstate_global->__pyx_codeobj_tab[108] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_covers_gap, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_1_Cq_a_fAQ_e1_5Qa_QfAS_1_Cu, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[108])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2614};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_degree, __pyx_mstate->__pyx_n_u_G, __pyx_mstate->__pyx_n_u_covers, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_C, __pyx_mstate->__pyx_n_u_H};
    __pyx_mstate_global->__pyx_codeobj_tab[109] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_covers_magma, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_1_E_fAQ_e1_aq_7q_CuIQa_Yaq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[109])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2629};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_degree, __pyx_mstate->__pyx_n_u_cover_type, __pyx_mstate->__pyx_n_u_reps, __pyx_mstate->__pyx_n_u_rep, __pyx_mstate->__pyx_n_u_cover, __pyx_mstate->__pyx_n_u_T, __pyx_mstate->__pyx_n_u_c_cover_type, __pyx_mstate->__pyx_n_u_covers, __pyx_mstate->__pyx_n_u_cover_count, __pyx_mstate->__pyx_n_u_info};
    __pyx_mstate_global->__pyx_codeobj_tab[110] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_covers_snappea, __pyx_mstate->__pyx_kp_b_iso88591_A_c_1_1_1_d_a_d_Q_O1D_Jaq__A_4uA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[110])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 17, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2776};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_peripheral_data, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_return_matrices, __pyx_mstate->__pyx_n_u_a_2, __pyx_mstate->__pyx_n_u_b_2, __pyx_mstate->__pyx_n_u_c_2, __pyx_mstate->__pyx_n_u_d_2, __pyx_mstate->__pyx_n_u_matrices, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_cobs, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_meridian, __pyx_mstate->__pyx_n_u_longitude, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_basis};
    __pyx_mstate_global->__pyx_codeobj_tab[111] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_set_peripheral_curves, __pyx_mstate->__pyx_kp_b_iso88591_A_q_4_1_AQ_gQ_A_D_G6_3a_j_q_A_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[111])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2911};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[112] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_has_finite_vertices, __pyx_mstate->__pyx_kp_b_iso88591_Q_4_1_1_1D_8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[112])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 2938};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_decorated, __pyx_mstate->__pyx_n_u_ignore_cusp_ordering, __pyx_mstate->__pyx_n_u_ignore_curves, __pyx_mstate->__pyx_n_u_ignore_curve_orientations, __pyx_mstate->__pyx_n_u_ignore_filling_orientations, __pyx_mstate->__pyx_n_u_ignore_orientation, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[113] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_triangulation_isosig, __pyx_mstate->__pyx_kp_b_iso88591_A_0_4_1_4A9_B_29_x_4_1_AQ_4wgQ_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[113])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3222};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_ignore_orientation, __pyx_mstate->__pyx_n_u_c_string};
    __pyx_mstate_global->__pyx_codeobj_tab[114] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_undecorated_triangulation_isosi, __pyx_mstate->__pyx_kp_b_iso88591_A_FjPQ_4_1_AQ_0_a_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[114])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3235};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_u, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[115] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_symplectic_form, __pyx_mstate->__pyx_kp_b_iso88591_A_s_1AQb_Rq_2Rr_Baq_Bb_2Qar_3d_u, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[115])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3238};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_M, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_omega};
    __pyx_mstate_global->__pyx_codeobj_tab[116] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_is_symplectic, __pyx_mstate->__pyx_kp_b_iso88591_A_Cq_E_aq_U_3a_1D_1_1D_2Rr_Bd_Bb, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[116])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 20, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3258};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_verify, __pyx_mstate->__pyx_n_u_c_eqns, __pyx_mstate->__pyx_n_u_g_eqns, __pyx_mstate->__pyx_n_u_num_rows, __pyx_mstate->__pyx_n_u_num_cols, __pyx_mstate->__pyx_n_u_dual_rows, __pyx_mstate->__pyx_n_u_eqn, __pyx_mstate->__pyx_n_u_eqns, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_cusp_info, __pyx_mstate->__pyx_n_u_to_do, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_l, __pyx_mstate->__pyx_n_u_rows, __pyx_mstate->__pyx_n_u_retval, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[117] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_triangulation_pyx, __pyx_mstate->__pyx_n_u_symplectic_basis, __pyx_mstate->__pyx_kp_b_iso88591_q_4_1_AQ_4z_Ba_A_ggnnooss_q_a_E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[117])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 85};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[118] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_number_2, __pyx_mstate->__pyx_kp_b_iso88591_A_v_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[118])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 89};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cls, __pyx_mstate->__pyx_n_u_func_2};
    __pyx_mstate_global->__pyx_codeobj_tab[119] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_use_field_conversion, __pyx_mstate->__pyx_kp_b_iso88591_A_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[119])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 137};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_force_recompute};
    __pyx_mstate_global->__pyx_codeobj_tab[120] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_init_hyperbolic_structure, __pyx_mstate->__pyx_kp_b_iso88591_4t1_4_1_T_4q_q_A_0, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[120])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 146};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[121] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_canonize, __pyx_mstate->__pyx_kp_b_iso88591_q_A_Qhc_aq_G6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[121])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 170};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_opacities, __pyx_mstate->__pyx_n_u_top_level_tries, __pyx_mstate->__pyx_n_u_c_opacities, __pyx_mstate->__pyx_n_u_c_retriangulated_triangulation, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_new_tri, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_success};
    __pyx_mstate_global->__pyx_codeobj_tab[122] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_canonical_retriangulation, __pyx_mstate->__pyx_kp_b_iso88591_33I_H_q_A_4_1_1_1_t3a_Rr_iq_V1B, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[122])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 249};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_M};
    __pyx_mstate_global->__pyx_codeobj_tab[123] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_canonical_cells_are_tetrahedra, __pyx_mstate->__pyx_kp_b_iso88591_A_D_Q_1_1AQ_5S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[123])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 267};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_string, __pyx_mstate->__pyx_n_u_initialize_structure};
    __pyx_mstate_global->__pyx_codeobj_tab[124] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_from_string, __pyx_mstate->__pyx_kp_b_iso88591_8_6_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[124])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 283};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_bytestring, __pyx_mstate->__pyx_n_u_initialize_structure};
    __pyx_mstate_global->__pyx_codeobj_tab[125] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_from_bytes, __pyx_mstate->__pyx_kp_b_iso88591_1_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[125])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 297};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_isosig, __pyx_mstate->__pyx_n_u_initialize_structure};
    __pyx_mstate_global->__pyx_codeobj_tab[126] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_from_isosig, __pyx_mstate->__pyx_kp_b_iso88591_8_6_4_1_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[126])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 308};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_empty};
    __pyx_mstate_global->__pyx_codeobj_tab[127] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_copy, __pyx_mstate->__pyx_kp_b_iso88591_A_Jaq_4_1_1_6_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[127])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 320};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[128] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_cusp_neighborhood, __pyx_mstate->__pyx_kp_b_iso88591_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[128])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 336};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_vertex_epsilon, __pyx_mstate->__pyx_n_u_displacement, __pyx_mstate->__pyx_n_u_centroid_at_origin, __pyx_mstate->__pyx_n_u_maximize_injectivity_radius, __pyx_mstate->__pyx_n_u_include_words, __pyx_mstate->__pyx_n_u_args};
    __pyx_mstate_global->__pyx_codeobj_tab[129] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_dirichlet_domain, __pyx_mstate->__pyx_kp_b_iso88591_A_e1_5Q7_a_0_F_QoQ_Q_4wgQ_1_t7_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[129])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 386};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[130] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_browse, __pyx_mstate->__pyx_kp_b_iso88591_A_83a_aq_waq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[130])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 402};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_cusps_to_fill, __pyx_mstate->__pyx_n_u_filled_2};
    __pyx_mstate_global->__pyx_codeobj_tab[131] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_filled_triangulation, __pyx_mstate->__pyx_kp_b_iso88591_A_6_6_3c_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[131])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 430};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_simplify_presentation, __pyx_mstate->__pyx_n_u_fillings_may_affect_generators, __pyx_mstate->__pyx_n_u_minimize_number_of_generators, __pyx_mstate->__pyx_n_u_try_hard_to_shorten_relators, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[132] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_fundamental_group, __pyx_mstate->__pyx_kp_b_iso88591_A_1_4A_31_2_B_4_1_AQ_q_q_4wgQ_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[132])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 482};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_of_link, __pyx_mstate->__pyx_n_u_symmetries_of_manifold, __pyx_mstate->__pyx_n_u_symmetries_of_link, __pyx_mstate->__pyx_n_u_c_symmetric_triangulation, __pyx_mstate->__pyx_n_u_symmetric_triangulation, __pyx_mstate->__pyx_n_u_is_full_group, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_symmetry_group};
    __pyx_mstate_global->__pyx_codeobj_tab[133] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_symmetry_group, __pyx_mstate->__pyx_kp_b_iso88591_wj_8q_31_4_1_AQ_4wgQ_8_q_A_7_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[133])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 528};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[134] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_symmetric_triangulation, __pyx_mstate->__pyx_kp_b_iso88591_A_4wgQa_q_4wgQa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[134])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 549};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_permutation_rep, __pyx_mstate->__pyx_n_u_cover};
    __pyx_mstate_global->__pyx_codeobj_tab[135] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_cover, __pyx_mstate->__pyx_kp_b_iso88591_B_V1F_7_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[135])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 618};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_degree, __pyx_mstate->__pyx_n_u_method, __pyx_mstate->__pyx_n_u_cover_type, __pyx_mstate->__pyx_n_u_covers, __pyx_mstate->__pyx_n_u_cover};
    __pyx_mstate_global->__pyx_codeobj_tab[136] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_covers, __pyx_mstate->__pyx_kp_b_iso88591_A_A_H_gQfHG1_q_1A_6a_4q_IQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[136])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 714};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_volume, __pyx_mstate->__pyx_n_u_accuracy, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[137] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_complex_volume_2, __pyx_mstate->__pyx_kp_b_iso88591_A_5_4z_q_vV2Q_1A_a_T_c_N_Q_1_RvQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[137])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 728};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_accuracy, __pyx_mstate->__pyx_n_u_verified, __pyx_mstate->__pyx_n_u_bits_prec, __pyx_mstate->__pyx_n_u_vol};
    __pyx_mstate_global->__pyx_codeobj_tab[138] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_volume, __pyx_mstate->__pyx_kp_b_iso88591_00C1_9Cq_q_j_6_iz_1_d_q_1_D_1_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[138])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 821};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_accuracy, __pyx_mstate->__pyx_n_u_cs};
    __pyx_mstate_global->__pyx_codeobj_tab[139] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_chern_simons, __pyx_mstate->__pyx_kp_b_iso88591_aH_T_q_1_D_r_4y, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[139])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 863};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[140] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_without_hyperbolic_structure, __pyx_mstate->__pyx_kp_b_iso88591_A_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[140])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 875};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[141] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_polish_hyperbolic_structures, __pyx_mstate->__pyx_kp_b_iso88591_A_AT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[141])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 26, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 878};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_part, __pyx_mstate->__pyx_n_u_fixed_alignment, __pyx_mstate->__pyx_n_u_bits_prec, __pyx_mstate->__pyx_n_u_dec_prec, __pyx_mstate->__pyx_n_u_intervals, __pyx_mstate->__pyx_n_u_rect_re, __pyx_mstate->__pyx_n_u_rect_im, __pyx_mstate->__pyx_n_u_log_re, __pyx_mstate->__pyx_n_u_log_im, __pyx_mstate->__pyx_n_u_acc_rec_re, __pyx_mstate->__pyx_n_u_acc_rec_im, __pyx_mstate->__pyx_n_u_acc_log_re, __pyx_mstate->__pyx_n_u_acc_log_im, __pyx_mstate->__pyx_n_u_is_geometric, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_shapes, __pyx_mstate->__pyx_n_u_z, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_rect_shape, __pyx_mstate->__pyx_n_u_log_shape, __pyx_mstate->__pyx_n_u_engine, __pyx_mstate->__pyx_n_u_a_2, __pyx_mstate->__pyx_n_u_a_2, __pyx_mstate->__pyx_n_u_z, __pyx_mstate->__pyx_n_u_a_2};
    __pyx_mstate_global->__pyx_codeobj_tab[142] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_tetrahedra_shapes, __pyx_mstate->__pyx_kp_b_iso88591_1_31_B_4_1_1_4t_E_3is_T_2_q_A_7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[142])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 997};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_solution, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_rect_re, __pyx_mstate->__pyx_n_u_rect_im, __pyx_mstate->__pyx_n_u_log_re, __pyx_mstate->__pyx_n_u_log_im, __pyx_mstate->__pyx_n_u_acc_rec_re, __pyx_mstate->__pyx_n_u_acc_rec_im, __pyx_mstate->__pyx_n_u_acc_log_re, __pyx_mstate->__pyx_n_u_acc_log_im, __pyx_mstate->__pyx_n_u_is_geometric, __pyx_mstate->__pyx_n_u_soln, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[143] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_get_tetrahedra_shapes, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_1_Cq_1_AQ_E_at_0_6_9AYaxq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[143])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1025};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_filled_shapes, __pyx_mstate->__pyx_n_u_complete_shapes, __pyx_mstate->__pyx_n_u_fillings, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_filled_shape_array, __pyx_mstate->__pyx_n_u_complete_shape_array, __pyx_mstate->__pyx_n_u_shape};
    __pyx_mstate_global->__pyx_codeobj_tab[144] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_set_tetrahedra_shapes, __pyx_mstate->__pyx_kp_b_iso88591_A_1_Q_4_1_AQ_at1_F_1AQ_9IQa_5_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[144])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1063};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_enum, __pyx_mstate->__pyx_n_u_solution_type};
    __pyx_mstate_global->__pyx_codeobj_tab[145] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_solution_type, __pyx_mstate->__pyx_kp_b_iso88591_T_4_1_AQ_0_Q_1_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[145])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1113};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_recompute, __pyx_mstate->__pyx_n_u_c_target};
    __pyx_mstate_global->__pyx_codeobj_tab[146] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_set_target_holonomy, __pyx_mstate->__pyx_kp_b_iso88591_5_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[146])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 30, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1128};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_data_spec, __pyx_mstate->__pyx_n_u_verified, __pyx_mstate->__pyx_n_u_bits_prec, __pyx_mstate->__pyx_n_u_cusp_index, __pyx_mstate->__pyx_n_u_topology, __pyx_mstate->__pyx_n_u_is_complete, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_l, __pyx_mstate->__pyx_n_u_initial_shape, __pyx_mstate->__pyx_n_u_current_shape, __pyx_mstate->__pyx_n_u_initial_shape_accuracy, __pyx_mstate->__pyx_n_u_current_shape_accuracy, __pyx_mstate->__pyx_n_u_initial_modulus, __pyx_mstate->__pyx_n_u_current_modulus, __pyx_mstate->__pyx_n_u_meridian_accuracy, __pyx_mstate->__pyx_n_u_longitude_accuracy, __pyx_mstate->__pyx_n_u_singularity_index, __pyx_mstate->__pyx_n_u_accuracy, __pyx_mstate->__pyx_n_u_c_meridian, __pyx_mstate->__pyx_n_u_c_longitude, __pyx_mstate->__pyx_n_u_c_core_length, __pyx_mstate->__pyx_n_u_shape, __pyx_mstate->__pyx_n_u_meridian, __pyx_mstate->__pyx_n_u_longitude, __pyx_mstate->__pyx_n_u_modulus, __pyx_mstate->__pyx_n_u_info, __pyx_mstate->__pyx_n_u_core_length, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_c_2};
    __pyx_mstate_global->__pyx_codeobj_tab[147] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_cusp_info, __pyx_mstate->__pyx_kp_b_iso88591_33Faz_4_1_AQ_9Cq_t_S_iq_AV_a_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[147])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1251};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_filling_data, __pyx_mstate->__pyx_n_u_which_cusp};
    __pyx_mstate_global->__pyx_codeobj_tab[148] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_dehn_fill, __pyx_mstate->__pyx_kp_b_iso88591_1_D_Zq_nA_q_A_G6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[148])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1289};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_peripheral_data, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_return_matrices, __pyx_mstate->__pyx_n_u_d_2, __pyx_mstate->__pyx_n_u_matrices, __pyx_mstate->__pyx_n_u_cusps, __pyx_mstate->__pyx_n_u_cobs, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[149] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_set_peripheral_curves, __pyx_mstate->__pyx_kp_b_iso88591_A_qt_4_1_AQ_gQ_A_D_G6_3a_A__4E_j, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[149])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1403};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_max_segments, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_num_curves, __pyx_mstate->__pyx_n_u_curve_list, __pyx_mstate->__pyx_n_u_parity, __pyx_mstate->__pyx_n_u_complete_length, __pyx_mstate->__pyx_n_u_filled_length, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[150] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_dual_curves, __pyx_mstate->__pyx_kp_b_iso88591_qP_4_1_AQ_1D_Q_Q_G9A_q_1_Q_1_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[150])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1469};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_cutoff, __pyx_mstate->__pyx_n_u_full_rigor, __pyx_mstate->__pyx_n_u_grouped, __pyx_mstate->__pyx_n_u_include_words, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_D};
    __pyx_mstate_global->__pyx_codeobj_tab[151] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_length_spectrum, __pyx_mstate->__pyx_kp_b_iso88591_A_1_q_IQ_4wgQ_D_2_t7_q_1_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[151])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1505};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_curve, __pyx_mstate->__pyx_n_u_max_segments, __pyx_mstate->__pyx_n_u_num_curves, __pyx_mstate->__pyx_n_u_curve_list, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_c_new_name, __pyx_mstate->__pyx_n_u_new_name};
    __pyx_mstate_global->__pyx_codeobj_tab[152] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_drill, __pyx_mstate->__pyx_kp_b_iso88591_a_Qm1_a_Q_at5_2V2Q_Q_1D_Q_Q_we1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[152])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1552};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other, __pyx_mstate->__pyx_n_u_return_isometries, __pyx_mstate->__pyx_n_u_are_isometric, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_isometries, __pyx_mstate->__pyx_n_u_ans};
    __pyx_mstate_global->__pyx_codeobj_tab[153] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_is_isometric_to, __pyx_mstate->__pyx_kp_b_iso88591_A_4AN_4_5_50A_A_AQ_t9Cs_y_1_1_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[153])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1638};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_other, __pyx_mstate->__pyx_n_u_return_isometries};
    __pyx_mstate_global->__pyx_codeobj_tab[154] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_is_isometric_to_2, __pyx_mstate->__pyx_kp_b_iso88591_A_31_t_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[154])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1647};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_is_two_bridge, __pyx_mstate->__pyx_n_u_p, __pyx_mstate->__pyx_n_u_q_2, __pyx_mstate->__pyx_n_u_c_canonized_triangulation};
    __pyx_mstate_global->__pyx_codeobj_tab[155] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_is_two_bridge, __pyx_mstate->__pyx_kp_b_iso88591_q_4_1_1_4_1_aq_a_as_1_1_1_Ba_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[155])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1681};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_compute_corners, __pyx_mstate->__pyx_n_u_centroid_at_origin};
    __pyx_mstate_global->__pyx_codeobj_tab[156] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_choose_generators, __pyx_mstate->__pyx_kp_b_iso88591_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[156])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 24, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1686};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_generator_path, __pyx_mstate->__pyx_n_u_face0_gen, __pyx_mstate->__pyx_n_u_face1_gen, __pyx_mstate->__pyx_n_u_face2_gen, __pyx_mstate->__pyx_n_u_face3_gen, __pyx_mstate->__pyx_n_u_c0, __pyx_mstate->__pyx_n_u_c1, __pyx_mstate->__pyx_n_u_c2, __pyx_mstate->__pyx_n_u_c3, __pyx_mstate->__pyx_n_u_neighbor0_idx, __pyx_mstate->__pyx_n_u_neighbor1_idx, __pyx_mstate->__pyx_n_u_neighbor2_idx, __pyx_mstate->__pyx_n_u_neighbor3_idx, __pyx_mstate->__pyx_n_u_perm0, __pyx_mstate->__pyx_n_u_perm1, __pyx_mstate->__pyx_n_u_perm2, __pyx_mstate->__pyx_n_u_perm3, __pyx_mstate->__pyx_n_u_ans, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[157] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_choose_generators_info, __pyx_mstate->__pyx_kp_b_iso88591_A_a_E_at_q_A_1A_AQ_AQ_Qd_4q_wa_k, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[157])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1724};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_surfaces, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_ans, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[158] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_splitting_surfaces, __pyx_mstate->__pyx_kp_b_iso88591_A6_4_1_AQ_Qd_AQ_7_Q_aq_a_E_a_8_w, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[158])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1768};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_surface, __pyx_mstate->__pyx_n_u_surfaces, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_num_surfaces, __pyx_mstate->__pyx_n_u_pieces, __pyx_mstate->__pyx_n_u_M0, __pyx_mstate->__pyx_n_u_M1, __pyx_mstate->__pyx_n_u_ans};
    __pyx_mstate_global->__pyx_codeobj_tab[159] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_split, __pyx_mstate->__pyx_kp_b_iso88591_A_4_1_AQ_Qd_AQ_7_Q_aq_QoQ_M_8_5, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[159])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1833};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_extends_to_link, __pyx_mstate->__pyx_n_u_ans, __pyx_mstate->__pyx_n_u_table, __pyx_mstate->__pyx_n_u_match};
    __pyx_mstate_global->__pyx_codeobj_tab[160] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_identify_2, __pyx_mstate->__pyx_kp_b_iso88591_a_IX_G1_E_6_q_7_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[160])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1841};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_tet, __pyx_mstate->__pyx_n_u_tilts, __pyx_mstate->__pyx_n_u_side_lengths, __pyx_mstate->__pyx_n_u_one_tet_tilts, __pyx_mstate->__pyx_n_u_one_tet_lengths, __pyx_mstate->__pyx_n_u_v, __pyx_mstate->__pyx_n_u_one_vertex_lengths, __pyx_mstate->__pyx_n_u_f};
    __pyx_mstate_global->__pyx_codeobj_tab[161] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_cusp_cross_section_info, __pyx_mstate->__pyx_kp_b_iso88591_A_q_A_at1_Qd_d_d_d_Qd_T_U_1_WAT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[161])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1867};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[162] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_manifold_pyx, __pyx_mstate->__pyx_n_u_precision, __pyx_mstate->__pyx_kp_b_iso88591_A_vQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[162])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 82};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[163] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_reduce, __pyx_mstate->__pyx_kp_b_iso88591_A_vT_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[163])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 113};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[164] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_elementary_divisors, __pyx_mstate->__pyx_kp_b_iso88591_A_t1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[164])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 119};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[165] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_rank, __pyx_mstate->__pyx_kp_b_iso88591_A_s_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[165])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 125};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[166] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_betti_number, __pyx_mstate->__pyx_kp_b_iso88591_A_s_1Bd_t_S_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[166])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 131};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_det, __pyx_mstate->__pyx_n_u_c_2};
    __pyx_mstate_global->__pyx_codeobj_tab[167] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_order, __pyx_mstate->__pyx_kp_b_iso88591_A_a_E_Q_b_T_G1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[167])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 159};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[168] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_get_data, __pyx_mstate->__pyx_kp_b_iso88591_A_t7_gT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[168])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 213};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[169] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_add_rows, __pyx_mstate->__pyx_kp_b_iso88591_A_IQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[169])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 216};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_k};
    __pyx_mstate_global->__pyx_codeobj_tab[170] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_row_op, __pyx_mstate->__pyx_kp_b_iso88591_A_E_Qd_q_6_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[170])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 223};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[171] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_explode, __pyx_mstate->__pyx_kp_b_iso88591_A_q_Yd_Ct3d_uAT_E_at1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[171])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 230};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_l, __pyx_mstate->__pyx_n_u_col_support, __pyx_mstate->__pyx_n_u_row_entries, __pyx_mstate->__pyx_n_u_unit, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_a_il, __pyx_mstate->__pyx_n_u_kl, __pyx_mstate->__pyx_n_u_temp, __pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_l};
    __pyx_mstate_global->__pyx_codeobj_tab[172] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_simplify, __pyx_mstate->__pyx_kp_b_iso88591_A_WA_c_ir_5_A_2T_d_q_3b_3b_Ct9D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[172])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 254};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_columns, __pyx_mstate->__pyx_n_u_rows, __pyx_mstate->__pyx_n_u_presentation, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[173] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_abelian_group_pyx, __pyx_mstate->__pyx_n_u_simplified_matrix, __pyx_mstate->__pyx_kp_b_iso88591_A_IQ_2T_e1D_s_G4q_q_e5_WCt_AS_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[173])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_state, __pyx_mstate->__pyx_n_u_dict_2, __pyx_mstate->__pyx_n_u_use_setstate};
    __pyx_mstate_global->__pyx_codeobj_tab[174] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_T_Kt_itSZZ_mmqqr_G1F_a_vWE_Q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[174])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 16};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[175] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_0_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[175])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 9};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_word, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[176] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_inverse_list_word, __pyx_mstate->__pyx_kp_b_iso88591_2Qb_E_T, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[176])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 13};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_word, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_letter};
    __pyx_mstate_global->__pyx_codeobj_tab[177] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_reduce_list_word, __pyx_mstate->__pyx_kp_b_iso88591_Q_7_fBc_AQ_a_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[177])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 59};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_verbose_form};
    __pyx_mstate_global->__pyx_codeobj_tab[178] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_letter_seperator, __pyx_mstate->__pyx_kp_b_iso88591_7_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[178])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 73};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_word, __pyx_mstate->__pyx_n_u_num_generators, __pyx_mstate->__pyx_n_u_word_list, __pyx_mstate->__pyx_n_u_prefix, __pyx_mstate->__pyx_n_u_number, __pyx_mstate->__pyx_n_u_g, __pyx_mstate->__pyx_n_u_letter};
    __pyx_mstate_global->__pyx_codeobj_tab[179] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_word_as_list, __pyx_mstate->__pyx_kp_b_iso88591_t_QfA_iq_b_HJb_9_1A_uBb_b_1_j_v, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[179])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 98};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_int_list, __pyx_mstate->__pyx_n_u_num_generators, __pyx_mstate->__pyx_n_u_verbose_form, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[180] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_list_as_word, __pyx_mstate->__pyx_kp_b_iso88591_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[180])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 134};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[181] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_num_generators, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[181])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 140};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[182] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_num_relators, __pyx_mstate->__pyx_kp_b_iso88591_A_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[182])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 146};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[183] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_num_original_generators, __pyx_mstate->__pyx_kp_b_iso88591_A_1D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[183])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 152};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_verbose_form, __pyx_mstate->__pyx_n_u_as_int_list, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_gen, __pyx_mstate->__pyx_n_u_num_gen, __pyx_mstate->__pyx_n_u_num_orig_gens, __pyx_mstate->__pyx_n_u_orig_gens, __pyx_mstate->__pyx_n_u_word};
    __pyx_mstate_global->__pyx_codeobj_tab[184] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_original_generators, __pyx_mstate->__pyx_kp_b_iso88591_B_4_a_Q_A_G9A_1D0Gq_q_q_Ya_WAQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[184])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 177};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_verbose_form, __pyx_mstate->__pyx_n_u_raw_form, __pyx_mstate->__pyx_n_u_as_int_list, __pyx_mstate->__pyx_n_u_moves, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_words, __pyx_mstate->__pyx_n_u_a_2, __pyx_mstate->__pyx_n_u_word, __pyx_mstate->__pyx_n_u_parts, __pyx_mstate->__pyx_n_u_b_2, __pyx_mstate->__pyx_n_u_A_3, __pyx_mstate->__pyx_n_u_B, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_g, __pyx_mstate->__pyx_n_u_word};
    __pyx_mstate_global->__pyx_codeobj_tab[185] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_generators_in_originals, __pyx_mstate->__pyx_kp_b_iso88591_33CCVVW_L_1_1_D_r_2Rr_T_e1A_c_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[185])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 232};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_moves, __pyx_mstate->__pyx_n_u_moves};
    __pyx_mstate_global->__pyx_codeobj_tab[186] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_word_moves, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[186])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 239};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[187] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_generators, __pyx_mstate->__pyx_kp_b_iso88591_AP_D_q_r_3_6a_U_q_1AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[187])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 283};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_verbose_form, __pyx_mstate->__pyx_n_u_as_int_list, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_relation, __pyx_mstate->__pyx_n_u_num_gens, __pyx_mstate->__pyx_n_u_relation_list, __pyx_mstate->__pyx_n_u_num_relations, __pyx_mstate->__pyx_n_u_word};
    __pyx_mstate_global->__pyx_codeobj_tab[188] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_relators, __pyx_mstate->__pyx_kp_b_iso88591_9_D_q_AT_G9A_at_B_q_q_A_AQ_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[188])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 306};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_as_int_list};
    __pyx_mstate_global->__pyx_codeobj_tab[189] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_meridian, __pyx_mstate->__pyx_kp_b_iso88591_oQ_A_1_Q_at_1_at, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[189])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 331};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_as_int_list};
    __pyx_mstate_global->__pyx_codeobj_tab[190] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_longitude, __pyx_mstate->__pyx_kp_b_iso88591_a_A_1_Q_q_1_1_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[190])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 357};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_as_int_list, __pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[191] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_peripheral_curves, __pyx_mstate->__pyx_kp_b_iso88591_A_s_iq_1_j_A_U_q_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[191])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 369};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[192] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_magma_string, __pyx_mstate->__pyx_kp_b_iso88591_A_3e1D_4r_Q_E_iq_WBa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[192])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 376};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_gens, __pyx_mstate->__pyx_n_u_gen_names, __pyx_mstate->__pyx_n_u_relators, __pyx_mstate->__pyx_n_u_assignments, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[193] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_gap_string, __pyx_mstate->__pyx_kp_b_iso88591_A_t5_D_Qat2Rr_T_d_Q_4uAT_b_Q_s_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[193])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 404};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[194] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_gap_init, __pyx_mstate->__pyx_kp_b_iso88591_A_t_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[194])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 407};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_magma};
    __pyx_mstate_global->__pyx_codeobj_tab[195] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_magma_init, __pyx_mstate->__pyx_kp_b_iso88591_A_t_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[195])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 410};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_F_2, __pyx_mstate->__pyx_n_u_rels, __pyx_mstate->__pyx_n_u_R};
    __pyx_mstate_global->__pyx_codeobj_tab[196] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_sage, __pyx_mstate->__pyx_kp_b_iso88591_A_4q_aq_IQd_Q_q_T_d_1L_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[196])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 420};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_as_ideal, __pyx_mstate->__pyx_n_u_presentation, __pyx_mstate->__pyx_n_u_ans};
    __pyx_mstate_global->__pyx_codeobj_tab[197] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_character_variety_vars_and_polys, __pyx_mstate->__pyx_kp_b_iso88591_8_4q_4_1_g_t1_l_1_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[197])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[198] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[198])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[199] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[199])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 486};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_word, __pyx_mstate->__pyx_n_u_group, __pyx_mstate->__pyx_n_u_c_word, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_word_list, __pyx_mstate->__pyx_n_u_O, __pyx_mstate->__pyx_n_u_M, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[200] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_matrix_2, __pyx_mstate->__pyx_kp_b_iso88591_A_L_t_6_A_at_B_PQQR_wc_vQ_Qd_1N, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[200])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 512};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_word};
    __pyx_mstate_global->__pyx_codeobj_tab[201] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_SL2C, __pyx_mstate->__pyx_kp_b_iso88591_t81F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[201])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 522};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_word};
    __pyx_mstate_global->__pyx_codeobj_tab[202] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_O31, __pyx_mstate->__pyx_kp_b_iso88591_t81F_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[202])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 531};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_word, __pyx_mstate->__pyx_n_u_c_word, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_word_list, __pyx_mstate->__pyx_n_u_M};
    __pyx_mstate_global->__pyx_codeobj_tab[203] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_complex_length, __pyx_mstate->__pyx_kp_b_iso88591_A_L_t_4_hfAQ_7_Q_4y_q0A_1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[203])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[204] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[204])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[205] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[205])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 600};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[206] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_fundamental_group_py, __pyx_mstate->__pyx_n_u_number_2, __pyx_mstate->__pyx_kp_b_iso88591_A_v_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[206])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 30};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[207] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_is_full_group, __pyx_mstate->__pyx_kp_b_iso88591_A_t1_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[207])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 62};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[208] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_order, __pyx_mstate->__pyx_kp_b_iso88591_A_1D_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[208])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 72};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_abelian_description};
    __pyx_mstate_global->__pyx_codeobj_tab[209] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_is_abelian, __pyx_mstate->__pyx_kp_b_iso88591_A_41_s_A_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[209])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 84};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_A_3, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_is_abelian, __pyx_mstate->__pyx_n_u_coeffs};
    __pyx_mstate_global->__pyx_codeobj_tab[210] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_abelian_description, __pyx_mstate->__pyx_kp_b_iso88591_A_S_2_47J_1_4q_AQ_E_aq_0_1_0, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[210])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 105};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[211] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_is_dihedral, __pyx_mstate->__pyx_kp_b_iso88591_A_s_Qd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[211])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 115};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[212] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_is_polyhedral, __pyx_mstate->__pyx_kp_b_iso88591_A_s_q_A06fF, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[212])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 123};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_is_binary_group, __pyx_mstate->__pyx_n_u_p, __pyx_mstate->__pyx_n_u_q_2, __pyx_mstate->__pyx_n_u_r, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[213] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_polyhedral_description, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_AQ_AT_7q_1Cq_r_A_2S_1_4Ba_c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[213])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 150};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[214] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_is_S5, __pyx_mstate->__pyx_kp_b_iso88591_A_s_q_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[214])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 156};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[215] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_is_direct_product, __pyx_mstate->__pyx_kp_b_iso88591_A_s_31D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[215])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 169};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_factor_0, __pyx_mstate->__pyx_n_u_c_factor_1, __pyx_mstate->__pyx_n_u_factor_0, __pyx_mstate->__pyx_n_u_factor_1};
    __pyx_mstate_global->__pyx_codeobj_tab[216] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_direct_product_description, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_Q_AQ_at3Fa_at3Fa_q_q_aq_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[216])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 197};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[217] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_is_amphicheiral, __pyx_mstate->__pyx_kp_b_iso88591_A_s_1_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[217])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 207};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[218] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_is_invertible_knot, __pyx_mstate->__pyx_kp_b_iso88591_A_s_1_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[218])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 218};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_comm_subgroup, __pyx_mstate->__pyx_n_u_comm_subgroup};
    __pyx_mstate_global->__pyx_codeobj_tab[219] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_commutator_subgroup, __pyx_mstate->__pyx_kp_b_iso88591_A_1_a_Qd_A_1A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[219])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 236};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_abelianization, __pyx_mstate->__pyx_n_u_abelianization};
    __pyx_mstate_global->__pyx_codeobj_tab[220] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_abelianization, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_AQ_Qd_at_Q_AQ_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[220])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 256};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_center, __pyx_mstate->__pyx_n_u_center};
    __pyx_mstate_global->__pyx_codeobj_tab[221] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_center, __pyx_mstate->__pyx_kp_b_iso88591_A_4t_AQ_Qd_at_Q_AQ_v, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[221])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 276};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_order, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[222] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_multiply_elements, __pyx_mstate->__pyx_kp_b_iso88591_A_F_E_Q_uBc_Q_j_q_Qd_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[222])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 295};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_isometries, __pyx_mstate->__pyx_n_u_ans};
    __pyx_mstate_global->__pyx_codeobj_tab[223] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_symmetry_group_pyx, __pyx_mstate->__pyx_n_u_isometries, __pyx_mstate->__pyx_kp_b_iso88591_A_at1_aq_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[223])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[224] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[224])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[225] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[225])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 102};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[226] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_number_2, __pyx_mstate->__pyx_kp_b_iso88591_A_v_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[226])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 184};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[227] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_num_vertices, __pyx_mstate->__pyx_kp_b_iso88591_A_t_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[227])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 190};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[228] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_num_finite_vertices, __pyx_mstate->__pyx_kp_b_iso88591_A_t_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[228])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 196};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[229] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_num_ideal_vertices, __pyx_mstate->__pyx_kp_b_iso88591_A_t_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[229])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 202};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[230] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_num_edges, __pyx_mstate->__pyx_kp_b_iso88591_A_t_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[230])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 208};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[231] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_num_faces, __pyx_mstate->__pyx_kp_b_iso88591_A_t_a_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[231])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 214};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_radius};
    __pyx_mstate_global->__pyx_codeobj_tab[232] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_in_radius, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_4A_t9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[232])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 221};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_radius};
    __pyx_mstate_global->__pyx_codeobj_tab[233] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_out_radius, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_4A_t9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[233])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 228};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_radius};
    __pyx_mstate_global->__pyx_codeobj_tab[234] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_spine_radius, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_4A_t9AQ_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[234])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 236};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_cutoff_length, __pyx_mstate->__pyx_n_u_full_rigor, __pyx_mstate->__pyx_n_u_multiplicities, __pyx_mstate->__pyx_n_u_user_radius, __pyx_mstate->__pyx_n_u_grouped, __pyx_mstate->__pyx_n_u_num_lengths, __pyx_mstate->__pyx_n_u_geodesics, __pyx_mstate->__pyx_n_u_c_word, __pyx_mstate->__pyx_n_u_spectrum, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_its_matrix, __pyx_mstate->__pyx_n_u_d_2, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[235] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_length_spectrum_dicts, __pyx_mstate->__pyx_kp_b_iso88591_2_D_q_A_1A_1A_1_G9A_1IQb_q_iq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[235])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 303};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_details};
    __pyx_mstate_global->__pyx_codeobj_tab[236] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_vertex_list_2, __pyx_mstate->__pyx_kp_b_iso88591_A_1_4_4_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[236])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 323};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_vertex, __pyx_mstate->__pyx_n_u_vertices};
    __pyx_mstate_global->__pyx_codeobj_tab[237] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_vertex_list, __pyx_mstate->__pyx_kp_b_iso88591_A_8_1_q_gS_0_G1_Ya_6_r_Ya_6_r_Ya, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[237])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 335};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_vertex, __pyx_mstate->__pyx_n_u_vertices};
    __pyx_mstate_global->__pyx_codeobj_tab[238] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_vertex_data_list, __pyx_mstate->__pyx_kp_b_iso88591_A_8_1_q_gS_0_G1_t9A_vRq_9A_vRq_9, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[238])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 350};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_vertex, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_index};
    __pyx_mstate_global->__pyx_codeobj_tab[239] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_vertex_to_index_dict, __pyx_mstate->__pyx_kp_b_iso88591_A_8_q_gS_0_9Kq_Q_V1_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[239])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 365};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_edge, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_index};
    __pyx_mstate_global->__pyx_codeobj_tab[240] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_edge_to_index_dict, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_4A_t1_e3at_a_9IQ_Q_4q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[240])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 24, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 380};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_edge, __pyx_mstate->__pyx_n_u_neighbor, __pyx_mstate->__pyx_n_u_vertex, __pyx_mstate->__pyx_n_u_vertex_to_index, __pyx_mstate->__pyx_n_u_edge_to_index, __pyx_mstate->__pyx_n_u_left, __pyx_mstate->__pyx_n_u_right, __pyx_mstate->__pyx_n_u_tail, __pyx_mstate->__pyx_n_u_tip, __pyx_mstate->__pyx_n_u_faces_2, __pyx_mstate->__pyx_n_u_vertices, __pyx_mstate->__pyx_n_u_vertex_indices, __pyx_mstate->__pyx_n_u_vertex_image_indices, __pyx_mstate->__pyx_n_u_edge_indices, __pyx_mstate->__pyx_n_u_edge_image_indices, __pyx_mstate->__pyx_n_u_edge_orientations, __pyx_mstate->__pyx_n_u_side, __pyx_mstate->__pyx_n_u_end_2, __pyx_mstate->__pyx_n_u_neighbor_end, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[241] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_face_list, __pyx_mstate->__pyx_kp_b_iso88591_A8_AT_4A_4A_0_gV6_Cs_t1_e3at_a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[241])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 474};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_edge, __pyx_mstate->__pyx_n_u_edges_2, __pyx_mstate->__pyx_n_u_vertex_to_index};
    __pyx_mstate_global->__pyx_codeobj_tab[242] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_edge_list, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_4A_4A_t1_e3at_a_oQit2Qa__AY, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[242])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 502};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[243] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_view, __pyx_mstate->__pyx_kp_b_iso88591_A_1_q_2_D_AT_l_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[243])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 509};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[244] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_manifold, __pyx_mstate->__pyx_kp_b_iso88591_A_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[244])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 524};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[245] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_triangulation, __pyx_mstate->__pyx_kp_b_iso88591_A_t_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[245])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 552};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_volume};
    __pyx_mstate_global->__pyx_codeobj_tab[246] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_volume, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_4A_t9AQ_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[246])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 564};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_M, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_matrices, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_j};
    __pyx_mstate_global->__pyx_codeobj_tab[247] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_pairing_matrices, __pyx_mstate->__pyx_kp_b_iso88591_A_4_3a_AQ_1_t_6a_e3at_a_A_G1F_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[247])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 593};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_c_word, __pyx_mstate->__pyx_n_u_words};
    __pyx_mstate_global->__pyx_codeobj_tab[248] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_pairing_words, __pyx_mstate->__pyx_kp_b_iso88591_A_4_3a_AQ_t_6a_e3at_a_T_wc_j_D_B, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[248])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 631};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_matrices, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_matrix, __pyx_mstate->__pyx_n_u_row, __pyx_mstate->__pyx_n_u_genexpr, __pyx_mstate->__pyx_n_u_genexpr};
    __pyx_mstate_global->__pyx_codeobj_tab[249] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_to_string, __pyx_mstate->__pyx_kp_b_iso88591_A_4_r_AQ_Ja_q_CuD_a_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[249])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 640};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_protocol};
    __pyx_mstate_global->__pyx_codeobj_tab[250] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_reduce_ex, __pyx_mstate->__pyx_kp_b_iso88591_A_T_D_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[250])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 643};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_filename, __pyx_mstate->__pyx_n_u_output};
    __pyx_mstate_global->__pyx_codeobj_tab[251] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_save, __pyx_mstate->__pyx_kp_b_iso88591_A_E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[251])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 666};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_filename, __pyx_mstate->__pyx_n_u_model, __pyx_mstate->__pyx_n_u_cutout, __pyx_mstate->__pyx_n_u_num_subdivisions, __pyx_mstate->__pyx_n_u_shrink_factor, __pyx_mstate->__pyx_n_u_cutoff_radius, __pyx_mstate->__pyx_n_u_callback, __pyx_mstate->__pyx_n_u_output, __pyx_mstate->__pyx_n_u_output_file, __pyx_mstate->__pyx_n_u_line};
    __pyx_mstate_global->__pyx_codeobj_tab[252] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_export_stl, __pyx_mstate->__pyx_kp_b_iso88591_99QQR_4N_8_AT_4wh6H_WX_HA_wa_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[252])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 742};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_string, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[253] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_dirichlet_pyx, __pyx_mstate->__pyx_n_u_unpickle_dirichlet_domain, __pyx_mstate->__pyx_kp_b_iso88591_6_QR, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[253])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 9};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[254] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_number_2, __pyx_mstate->__pyx_kp_b_iso88591_A_v_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[254])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 39};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_M};
    __pyx_mstate_global->__pyx_codeobj_tab[255] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_manifold, __pyx_mstate->__pyx_kp_b_iso88591_A_4_31_A_O1A_Qa_4_b_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[255])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 53};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp};
    __pyx_mstate_global->__pyx_codeobj_tab[256] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_original_index, __pyx_mstate->__pyx_kp_b_iso88591_A_t_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[256])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 59};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N};
    __pyx_mstate_global->__pyx_codeobj_tab[257] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_check_index, __pyx_mstate->__pyx_kp_b_iso88591_A_Cq_2S_D_1_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[257])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 70};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[258] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_num_cusps, __pyx_mstate->__pyx_kp_b_iso88591_A_t1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[258])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 76};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_topology};
    __pyx_mstate_global->__pyx_codeobj_tab[259] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_topology, __pyx_mstate->__pyx_kp_b_iso88591_A_D_AQ_1_6LA_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[259])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 84};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_disp};
    __pyx_mstate_global->__pyx_codeobj_tab[260] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_get_displacement, __pyx_mstate->__pyx_kp_b_iso88591_A_D_AQ_vQha_A_a_t9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[260])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 99};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_new_displacement, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N};
    __pyx_mstate_global->__pyx_codeobj_tab[261] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_set_displacement, __pyx_mstate->__pyx_kp_b_iso88591_A_D_AQ_4q_k, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[261])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 107};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_disp};
    __pyx_mstate_global->__pyx_codeobj_tab[262] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_stopping_displacement, __pyx_mstate->__pyx_kp_b_iso88591_q_D_AQ_vQha_J_a_t9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[262])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 118};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N};
    __pyx_mstate_global->__pyx_codeobj_tab[263] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_stopper, __pyx_mstate->__pyx_kp_b_iso88591_A_D_AQ_7q_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[263])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 128};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_reach};
    __pyx_mstate_global->__pyx_codeobj_tab[264] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_reach, __pyx_mstate->__pyx_kp_b_iso88591_q_D_AQ_axq_1_a_t9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[264])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 139};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_reach};
    __pyx_mstate_global->__pyx_codeobj_tab[265] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_max_reach, __pyx_mstate->__pyx_kp_b_iso88591_A_axq_q_t9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[265])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 147};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N};
    __pyx_mstate_global->__pyx_codeobj_tab[266] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_get_tie, __pyx_mstate->__pyx_kp_b_iso88591_A_D_AQ_C1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[266])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 155};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_new_tie, __pyx_mstate->__pyx_n_u_N};
    __pyx_mstate_global->__pyx_codeobj_tab[267] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_set_tie, __pyx_mstate->__pyx_kp_b_iso88591_A_D_AQ_Cq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[267])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 162};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_volume};
    __pyx_mstate_global->__pyx_codeobj_tab[268] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_volume, __pyx_mstate->__pyx_kp_b_iso88591_D_AQ_q_B_t9AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[268])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 172};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_meridian, __pyx_mstate->__pyx_n_u_longitude, __pyx_mstate->__pyx_n_u_N, __pyx_mstate->__pyx_n_u_M, __pyx_mstate->__pyx_n_u_L};
    __pyx_mstate_global->__pyx_codeobj_tab[269] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_translations, __pyx_mstate->__pyx_kp_b_iso88591_D_AQ_4q_A_A_4_Qk_q_t9AT_Yaq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[269])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 190};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_cutoff, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_full_list, __pyx_mstate->__pyx_n_u_high_precision, __pyx_mstate->__pyx_n_u_horoball_list, __pyx_mstate->__pyx_n_u_ball, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_dict_3};
    __pyx_mstate_global->__pyx_codeobj_tab[270] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_horoballs, __pyx_mstate->__pyx_kp_b_iso88591_A_T_Qa_7q_q_A_aq_G9M_q_t9A_1D_t, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[270])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 225};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_high_precision, __pyx_mstate->__pyx_n_u_segment_list, __pyx_mstate->__pyx_n_u_segment, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_pair};
    __pyx_mstate_global->__pyx_codeobj_tab[271] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_Ford_domain, __pyx_mstate->__pyx_kp_b_iso88591_7q_T_Qa_8_1_aq_E_a_1_l_1_q_q_y, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[271])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 257};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_high_precision, __pyx_mstate->__pyx_n_u_segment_list, __pyx_mstate->__pyx_n_u_segment, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_endpoints, __pyx_mstate->__pyx_n_u_indices};
    __pyx_mstate_global->__pyx_codeobj_tab[272] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_triangulation, __pyx_mstate->__pyx_kp_b_iso88591_9_T_Qa_1_aq_G9L_l_1_q__AWIQa_AW, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[272])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 289};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_which_cusp, __pyx_mstate->__pyx_n_u_cutoff};
    __pyx_mstate_global->__pyx_codeobj_tab[273] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_cusp_neighborhoods_p, __pyx_mstate->__pyx_n_u_view, __pyx_mstate->__pyx_kp_b_iso88591_j_T_Qa_1_q_0_k_q_a_4z_BgQ_l_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[273])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[274] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_reduce_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[274])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 3};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_pyx_state};
    __pyx_mstate_global->__pyx_codeobj_tab[275] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_setstate_cython, __pyx_mstate->__pyx_kp_b_iso88591_Q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[275])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 29};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_desc, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_g, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_monodromy, __pyx_mstate->__pyx_n_u_surface};
    __pyx_mstate_global->__pyx_codeobj_tab[276] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_bundle_from_string, __pyx_mstate->__pyx_kp_b_iso88591_4xq_Q_q_q_3l_7_4s_4s_1_IXQe4xq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[276])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 40};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_desc, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_g, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_gluing, __pyx_mstate->__pyx_n_u_handles, __pyx_mstate->__pyx_n_u_surface};
    __pyx_mstate_global->__pyx_codeobj_tab[277] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_splitting_from_string, __pyx_mstate->__pyx_kp_b_iso88591_4xq_Q_F_1_q_3hj_4s_4s_1_xq_T_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[277])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 117};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_M, __pyx_mstate->__pyx_n_u_specs, __pyx_mstate->__pyx_n_u_spec, __pyx_mstate->__pyx_n_u_vol};
    __pyx_mstate_global->__pyx_codeobj_tab[278] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_get_triangulation_tester, __pyx_mstate->__pyx_kp_b_iso88591_r_AQk_XX_81_Zq_j_at1AXU_1HAV6_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[278])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 227};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_record, __pyx_mstate->__pyx_n_u_crossings, __pyx_mstate->__pyx_n_u_alternation, __pyx_mstate->__pyx_n_u_DT_3, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_byte, __pyx_mstate->__pyx_n_u_first_nybble, __pyx_mstate->__pyx_n_u_second_nybble, __pyx_mstate->__pyx_n_u_signs, __pyx_mstate->__pyx_n_u_mask, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[279] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_extract_HT_knot, __pyx_mstate->__pyx_kp_b_iso88591_AQj_b_RvS_1_1_1A_Rq_A_A_1A_3a_b, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[279])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 248};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_crossings, __pyx_mstate->__pyx_n_u_alternation, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_offset, __pyx_mstate->__pyx_n_u_data, __pyx_mstate->__pyx_n_u_record, __pyx_mstate->__pyx_n_u_DT_3};
    __pyx_mstate_global->__pyx_codeobj_tab[280] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_get_HT_knot_DT, __pyx_mstate->__pyx_kp_b_iso88591_Bb_3a_Q_Cq_Q_X_0_q_2Q_aq_Qa_wav, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[280])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 274};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_alternation, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_manifold_class_2, __pyx_mstate->__pyx_n_u_crossings, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_index_within_crossings, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[281] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_get_HT_knot_by_index, __pyx_mstate->__pyx_kp_b_iso88591_3a_E_as_3b_AQa_r_AQ_S_E_as_Qc_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[281])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 301};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_indices, __pyx_mstate->__pyx_n_u_myslice};
    __pyx_mstate_global->__pyx_codeobj_tab[282] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_q_r_HD_t87_4q_IT, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[282])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 306};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[283] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_iter, __pyx_mstate->__pyx_kp_b_iso88591_A_q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[283])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 309};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_item};
    __pyx_mstate_global->__pyx_codeobj_tab[284] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_contains, __pyx_mstate->__pyx_kp_b_iso88591_A_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[284])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 312};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[285] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_next, __pyx_mstate->__pyx_kp_b_iso88591_A_4wc_Q_IT_a_t1D_at1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[285])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 320};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[286] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_len_2, __pyx_mstate->__pyx_kp_b_iso88591_A_t1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[286])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 324};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[287] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[287])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 376};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_indices};
    __pyx_mstate_global->__pyx_codeobj_tab[288] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_81_iq_a_gU_2U_q_GWWX, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[288])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 381};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[289] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_lookup, __pyx_mstate->__pyx_kp_b_iso88591_A_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[289])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 384};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_num_tet, __pyx_mstate->__pyx_n_u_census_index, __pyx_mstate->__pyx_n_u_num, __pyx_mstate->__pyx_n_u_spec, __pyx_mstate->__pyx_n_u_tarpath, __pyx_mstate->__pyx_n_u_filedata};
    __pyx_mstate_global->__pyx_codeobj_tab[290] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_Qc_4z_81D_2Rq_HBa_2Rt1_a_4waq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[290])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 444};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_indices};
    __pyx_mstate_global->__pyx_codeobj_tab[291] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_81_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[291])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 447};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[292] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_lookup, __pyx_mstate->__pyx_kp_b_iso88591_A_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[292])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 461};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_indices, __pyx_mstate->__pyx_n_u_datafile, __pyx_mstate->__pyx_n_u_closed_orientable};
    __pyx_mstate_global->__pyx_codeobj_tab[293] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_q_F_Q_r_e1A_AQ_X_j_V1_Jc_31_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[293])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 471};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u__21, __pyx_mstate->__pyx_n_u_num_tet, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_l};
    __pyx_mstate_global->__pyx_codeobj_tab[294] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_Qc_4z_81D_9G3d_5_6_1_s_T_9_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[294])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 496};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_indices, __pyx_mstate->__pyx_n_u_datafile, __pyx_mstate->__pyx_n_u_closed_nonorientable};
    __pyx_mstate_global->__pyx_codeobj_tab[295] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_q_vS_r_e1A_4q_0DJa_a_Jc_6a_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[295])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 506};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u__21, __pyx_mstate->__pyx_n_u_num_tet, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_l};
    __pyx_mstate_global->__pyx_codeobj_tab[296] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_Qc_4z_81D_9G3d_e1BfA_1_s_T_9_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[296])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 533};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_indices};
    __pyx_mstate_global->__pyx_codeobj_tab[297] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_3a_a_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[297])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 536};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n};
    __pyx_mstate_global->__pyx_codeobj_tab[298] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_Qc_4z_81D_q_N_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[298])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 558};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_indices};
    __pyx_mstate_global->__pyx_codeobj_tab[299] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_3a_WE_iq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[299])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 571};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_indices};
    __pyx_mstate_global->__pyx_codeobj_tab[300] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_3a_Q_iq_a_G5_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[300])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 575};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[301] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[301])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 578};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_total, __pyx_mstate->__pyx_n_u_m, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_tarpath, __pyx_mstate->__pyx_n_u_filedata, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[302] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_Qc_4z_81D_A_U_3a_6_as_Q_0_9Cs, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[302])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 619};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_components, __pyx_mstate->__pyx_n_u_indices};
    __pyx_mstate_global->__pyx_codeobj_tab[303] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_1_WE_5_Qd_AQ_0_N_Jc_j_iq_waq_y, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[303])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 634};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[304] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[304])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 638};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_j, __pyx_mstate->__pyx_n_u_so_far, __pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_l, __pyx_mstate->__pyx_n_u_filename, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_tarpath, __pyx_mstate->__pyx_n_u_filedata, __pyx_mstate->__pyx_n_u_c_triangulation, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[305] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_Qc_4z_81D_E_at_A_Jat_q_WBa_wb, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[305])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 672};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_num_components, __pyx_mstate->__pyx_n_u_num_crossings};
    __pyx_mstate_global->__pyx_codeobj_tab[306] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_q_j, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[306])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 679};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_str, __pyx_mstate->__pyx_n_u_length, __pyx_mstate->__pyx_n_u_pad};
    __pyx_mstate_global->__pyx_codeobj_tab[307] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_left_pad_string, __pyx_mstate->__pyx_kp_b_iso88591_3b_r_AV2Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[307])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 687};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_num_components, __pyx_mstate->__pyx_n_u_num_crossings, __pyx_mstate->__pyx_n_u_crossings, __pyx_mstate->__pyx_n_u_files, __pyx_mstate->__pyx_n_u_c_2, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_second_char, __pyx_mstate->__pyx_n_u_file, __pyx_mstate->__pyx_n_u_data, __pyx_mstate->__pyx_n_u_line, __pyx_mstate->__pyx_n_u_strline};
    __pyx_mstate_global->__pyx_codeobj_tab[308] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_q_A_E_WN_Zq_E_q_Rs_Q_2_A_r_1_WA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[308])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 713};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_SC, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[309] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_cython_core_tail_pyx, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_Qc_Zr_l_iq_j_1Ba_1D_Cq_a_1_3ax, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[309])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 4};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pyx_type, __pyx_mstate->__pyx_n_u_pyx_checksum, __pyx_mstate->__pyx_n_u_pyx_state, __pyx_mstate->__pyx_n_u_pyx_result};
    __pyx_mstate_global->__pyx_codeobj_tab[310] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_tree_fragment, __pyx_mstate->__pyx_n_u_pyx_unpickle_PresentationMatri, __pyx_mstate->__pyx_kp_b_iso88591_q_0_kQR_XQa_7_4A5J_XY_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[310])) goto bad;
  }
  Py_DECREF(tuple_dedup_map);
  return 0;
  bad:
  Py_DECREF(tuple_dedup_map);
  return -1;
}
/* #### Code section: init_globals ### */

static int __Pyx_InitGlobals(void) {
  /* PythonCompatibility.init */
  if (likely(__Pyx_init_co_variables() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CommonTypesMetaclass.init */
  if (likely(__pyx_CommonTypesMetaclass_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CachedMethodType.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *typesModule=NULL;
      typesModule = PyImport_ImportModule("types");
      if (typesModule) {
          __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType");
          Py_DECREF(typesModule);
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CythonFunctionShared.init */
  if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* AssertionsEnabled.init */
  if (likely(__Pyx_init_assertions_enabled() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* Generator.init */
  if (likely(__pyx_Generator_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyErrFetchRestore (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    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);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#endif
}
#endif

/* PyObjectGetAttrStr (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
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);
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
#endif
}

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
            "name '%U' is not defined", name);
    }
    return result;
}

/* PyDictVersioning (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        if (!PyErr_Occurred())
            PyErr_SetNone(PyExc_NameError);
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
    PyErr_Clear();
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) PyErr_Clear();
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return result;
    }
#else
    result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PyObjectCall (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall(" 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

/* PyObjectCallMethO (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall */
#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API
  #if PY_VERSION_HEX < 0x03090000
    #define __Pyx_PyVectorcall_Function(callable) _PyVectorcall_Function(callable)
  #elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) {
    PyTypeObject *tp = Py_TYPE(callable);
    #if defined(__Pyx_CyFunction_USED)
    if (__Pyx_CyFunction_CheckExact(callable)) {
        return __Pyx_CyFunction_func_vectorcall(callable);
    }
    #endif
    if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
        return NULL;
    }
    assert(PyCallable_Check(callable));
    Py_ssize_t offset = tp->tp_vectorcall_offset;
    assert(offset > 0);
    vectorcallfunc ptr;
    memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
    return ptr;
}
  #else
    #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable)
  #endif
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
          #if CYTHON_COMPILING_IN_LIMITED_API
            return PyObject_Vectorcall(func, args, _nargs, NULL);
          #else
            vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
            if (f) {
                return f(func, args, _nargs, NULL);
            }
          #endif
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs);
    }
    #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
    #else
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #endif
}

/* PyObjectFastCallMethod */
#if !CYTHON_VECTORCALL || PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf) {
    PyObject *result;
    PyObject *attr = PyObject_GetAttr(args[0], name);
    if (unlikely(!attr))
        return NULL;
    result = __Pyx_PyObject_FastCall(attr, args+1, nargsf - 1);
    Py_DECREF(attr);
    return result;
}
#endif

/* TupleAndListFromArray (used by fastcall) */
#if !CYTHON_COMPILING_IN_CPYTHON && CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    Py_ssize_t i;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    for (i = 0; i < n; i++) {
        Py_INCREF(src[i]);
        if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
    }
    return res;
}
#elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL ||\
        !(CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS)
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length, length2;
        int kind;
        void *data1, *data2;
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        #endif
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length < 0)) return -1;
        #endif
        length2 = __Pyx_PyUnicode_GET_LENGTH(s2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length2 < 0)) return -1;
        #endif
        if (length != length2) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    return (equals == Py_EQ);
return_ne:
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(n == -1)) return NULL;
    #endif
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        if (s == namei) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        int eq = __Pyx_PyUnicode_Equals(s, namei, Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs;
    PyObject *dict;
#if !CYTHON_ASSUME_SAFE_SIZE
    nkwargs = PyTuple_Size(kwnames);
    if (unlikely(nkwargs < 0)) return NULL;
#else
    nkwargs = PyTuple_GET_SIZE(kwnames);
#endif
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
#if !CYTHON_ASSUME_SAFE_MACROS
        PyObject *key = PyTuple_GetItem(kwnames, i);
        if (!key) goto bad;
#else
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
#endif
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* PyObjectCallOneArg (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* UnpackUnboundCMethod (used by CallUnboundCMethod0) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) {
    PyObject *result;
    PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args));
    if (unlikely(!selfless_args)) return NULL;
    result = PyObject_Call(method, selfless_args, kwargs);
    Py_DECREF(selfless_args);
    return result;
}
#elif CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) {
        return _PyObject_Vectorcall
            (method, args ? args+1 : NULL, nargs ? nargs-1 : 0, kwnames);
}
#else
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
    return
#if PY_VERSION_HEX < 0x03090000
    _PyObject_Vectorcall
#else
    PyObject_Vectorcall
#endif
        (method, args ? args+1 : NULL, nargs ? (size_t) nargs-1 : 0, kwnames);
}
#endif
static PyMethodDef __Pyx_UnboundCMethod_Def = {
     "CythonUnboundCMethod",
     __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall),
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
     METH_VARARGS | METH_KEYWORDS,
#else
     METH_FASTCALL | METH_KEYWORDS,
#endif
     NULL
};
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method, *result=NULL;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    result = method;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    } else
#endif
#if CYTHON_COMPILING_IN_PYPY
#else
    if (PyCFunction_Check(method))
#endif
    {
        PyObject *self;
        int self_found;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        self = PyObject_GetAttrString(method, "__self__");
        if (!self) {
            PyErr_Clear();
        }
#else
        self = PyCFunction_GET_SELF(method);
#endif
        self_found = (self && self != Py_None);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        Py_XDECREF(self);
#endif
        if (self_found) {
            PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method);
            if (unlikely(!unbound_method)) return -1;
            Py_DECREF(method);
            result = unbound_method;
        }
    }
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    if (unlikely(target->method)) {
        Py_DECREF(result);
    } else
#endif
    target->method = result;
    return 0;
}

/* CallUnboundCMethod0 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        if (likely(cfunc->flag == METH_NOARGS))
            return __Pyx_CallCFunction(cfunc, self, NULL);
        if (likely(cfunc->flag == METH_FASTCALL))
            return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0);
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL);
        if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS)))
            return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
        if (cfunc->flag == METH_VARARGS)
            return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple);
        return __Pyx__CallUnboundCMethod0(cfunc, self);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *result;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
    result = __Pyx_PyObject_CallOneArg(cfunc->method, self);
    return result;
}

/* py_dict_items (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_items, d);
}

/* py_dict_values (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_values, d);
}

/* OwnedDictNext (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue) {
    PyObject *next = NULL;
    if (!*ppos) {
        if (pvalue) {
            PyObject *dictview = pkey ? __Pyx_PyDict_Items(p) : __Pyx_PyDict_Values(p);
            if (unlikely(!dictview)) goto bad;
            *ppos = PyObject_GetIter(dictview);
            Py_DECREF(dictview);
        } else {
            *ppos = PyObject_GetIter(p);
        }
        if (unlikely(!*ppos)) goto bad;
    }
    next = PyIter_Next(*ppos);
    if (!next) {
        if (PyErr_Occurred()) goto bad;
        return 0;
    }
    if (pkey && pvalue) {
        *pkey = __Pyx_PySequence_ITEM(next, 0);
        if (unlikely(*pkey)) goto bad;
        *pvalue = __Pyx_PySequence_ITEM(next, 1);
        if (unlikely(*pvalue)) goto bad;
        Py_DECREF(next);
    } else if (pkey) {
        *pkey = next;
    } else {
        assert(pvalue);
        *pvalue = next;
    }
    return 1;
  bad:
    Py_XDECREF(next);
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
    PyErr_FormatUnraisable("Exception ignored in __Pyx_PyDict_NextRef");
#else
    PyErr_WriteUnraisable(__pyx_mstate_global->__pyx_n_u_Pyx_PyDict_NextRef);
#endif
    if (pkey) *pkey = NULL;
    if (pvalue) *pvalue = NULL;
    return 0;
}
#else // !CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) {
    int result = PyDict_Next(p, ppos, pkey, pvalue);
    if (likely(result == 1)) {
        if (pkey) Py_INCREF(*pkey);
        if (pvalue) Py_INCREF(*pvalue);
    }
    return result;
}
#endif

/* RaiseDoubleKeywords (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, args, 2);
        }
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, 2, NULL);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod2(&tmp_cfunc, self, arg1, arg2);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *result = NULL;
        PyObject *args = PyTuple_New(2);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
        return result;
    }
#endif
    {
        PyObject *args[4] = {NULL, self, arg1, arg2};
        return __Pyx_PyObject_FastCall(cfunc->method, args+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
    }
}

/* ParseKeywordsImpl (used by ParseKeywords) */
static int __Pyx_ValidateDuplicatePosArgs(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char* function_name)
{
    PyObject ** const *name = argnames;
    while (name != first_kw_arg) {
        PyObject *key = **name;
        int found = PyDict_Contains(kwds, key);
        if (unlikely(found)) {
            if (found == 1) __Pyx_RaiseDoubleKeywordsError(function_name, key);
            goto bad;
        }
        name++;
    }
    return 0;
bad:
    return -1;
}
#if CYTHON_USE_UNICODE_INTERNALS
static CYTHON_INLINE int __Pyx_UnicodeKeywordsEqual(PyObject *s1, PyObject *s2) {
    int kind;
    Py_ssize_t len = PyUnicode_GET_LENGTH(s1);
    if (len != PyUnicode_GET_LENGTH(s2)) return 0;
    kind = PyUnicode_KIND(s1);
    if (kind != PyUnicode_KIND(s2)) return 0;
    const void *data1 = PyUnicode_DATA(s1);
    const void *data2 = PyUnicode_DATA(s2);
    return (memcmp(data1, data2, (size_t) len * (size_t) kind) == 0);
}
#endif
static int __Pyx_MatchKeywordArg_str(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    #if CYTHON_USE_UNICODE_INTERNALS
    Py_hash_t key_hash = ((PyASCIIObject*)key)->hash;
    if (unlikely(key_hash == -1)) {
        key_hash = PyObject_Hash(key);
        if (unlikely(key_hash == -1))
            goto bad;
    }
    #endif
    name = first_kw_arg;
    while (*name) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (key_hash == ((PyASCIIObject*)name_str)->hash && __Pyx_UnicodeKeywordsEqual(name_str, key)) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) {
                *index_found = (size_t) (name - argnames);
                return 1;
            }
        }
        #endif
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (unlikely(key_hash == ((PyASCIIObject*)name_str)->hash)) {
            if (__Pyx_UnicodeKeywordsEqual(name_str, key))
                goto arg_passed_twice;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            if (unlikely(name_str == key)) goto arg_passed_twice;
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) goto arg_passed_twice;
        }
        #endif
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
bad:
    return -1;
}
static int __Pyx_MatchKeywordArg_nostr(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type;
    name = first_kw_arg;
    while (*name) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (cmp == 1) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        if (unlikely(cmp == -1)) goto bad;
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (unlikely(cmp != 0)) {
            if (cmp == 1) goto arg_passed_twice;
            else goto bad;
        }
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
bad:
    return -1;
}
static CYTHON_INLINE int __Pyx_MatchKeywordArg(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    return likely(PyUnicode_CheckExact(key)) ?
        __Pyx_MatchKeywordArg_str(key, argnames, first_kw_arg, index_found, function_name) :
        __Pyx_MatchKeywordArg_nostr(key, argnames, first_kw_arg, index_found, function_name);
}
static void __Pyx_RejectUnknownKeyword(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char *function_name)
{
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos = NULL;
    #else
    Py_ssize_t pos = 0;
    #endif
    PyObject *key = NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(kwds);
    while (
        #if CYTHON_AVOID_BORROWED_REFS
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL)
        #else
        PyDict_Next(kwds, &pos, &key, NULL)
        #endif
    ) {
        PyObject** const *name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (!*name) {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp != 1) {
                if (cmp == 0) {
                    PyErr_Format(PyExc_TypeError,
                        "%s() got an unexpected keyword argument '%U'",
                        function_name, key);
                }
                #if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(key);
                #endif
                break;
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        #endif
    }
    __Pyx_END_CRITICAL_SECTION();
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(pos);
    #endif
    assert(PyErr_Occurred());
}
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t extracted = 0;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    name = first_kw_arg;
    while (*name && num_kwargs > extracted) {
        PyObject * key = **name;
        PyObject *value;
        int found = 0;
        #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        found = PyDict_GetItemRef(kwds, key, &value);
        #else
        value = PyDict_GetItemWithError(kwds, key);
        if (value) {
            Py_INCREF(value);
            found = 1;
        } else {
            if (unlikely(PyErr_Occurred())) goto bad;
        }
        #endif
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            extracted++;
        }
        name++;
    }
    if (num_kwargs > extracted) {
        if (ignore_unknown_kwargs) {
            if (unlikely(__Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name) == -1))
                goto bad;
        } else {
            __Pyx_RejectUnknownKeyword(kwds, argnames, first_kw_arg, function_name);
            goto bad;
        }
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t len;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    if (PyDict_Update(kwds2, kwds) < 0) goto bad;
    name = first_kw_arg;
    while (*name) {
        PyObject *key = **name;
        PyObject *value;
#if !CYTHON_COMPILING_IN_LIMITED_API && (PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop))
        int found = PyDict_Pop(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
        }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        int found = PyDict_GetItemRef(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            if (unlikely(PyDict_DelItem(kwds2, key) < 0)) goto bad;
        }
#else
    #if CYTHON_COMPILING_IN_CPYTHON
        value = _PyDict_Pop(kwds2, key, kwds2);
    #else
        value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, kwds2, key, kwds2);
    #endif
        if (value == kwds2) {
            Py_DECREF(value);
        } else {
            if (unlikely(!value)) goto bad;
            values[name-argnames] = value;
        }
#endif
        name++;
    }
    len = PyDict_Size(kwds2);
    if (len > 0) {
        return __Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name);
    } else if (unlikely(len == -1)) {
        goto bad;
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject *key = NULL;
    PyObject** const * name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    for (Py_ssize_t pos = 0; pos < num_kwargs; pos++) {
#if CYTHON_AVOID_BORROWED_REFS
        key = __Pyx_PySequence_ITEM(kwds, pos);
#else
        key = __Pyx_PyTuple_GET_ITEM(kwds, pos);
#endif
#if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!key)) goto bad;
#endif
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            PyObject *value = kwvalues[pos];
            values[name-argnames] = __Pyx_NewRef(value);
        } else {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp == 1) {
                PyObject *value = kwvalues[pos];
                values[index_found] = __Pyx_NewRef(value);
            } else {
                if (unlikely(cmp == -1)) goto bad;
                if (kwds2) {
                    PyObject *value = kwvalues[pos];
                    if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
                } else if (!ignore_unknown_kwargs) {
                    goto invalid_keyword;
                }
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        key = NULL;
        #endif
    }
    return 0;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    goto bad;
bad:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(key);
    #endif
    return -1;
}

/* ParseKeywords */
static int __Pyx_ParseKeywords(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds)))
        return __Pyx_ParseKeywordsTuple(kwds, kwvalues, argnames, kwds2, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
    else if (kwds2)
        return __Pyx_ParseKeywordDictToDict(kwds, argnames, kwds2, values, num_pos_args, function_name);
    else
        return __Pyx_ParseKeywordDict(kwds, argnames, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (unlikely(!j)) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS)) {
        return __Pyx_PyList_GetItemRefFast(o, wrapped_i, unsafe_shared);
    } else
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyList_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyTuple_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)) {
            return __Pyx_PyList_GetItemRefFast(o, n, unsafe_shared);
        } else if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            return __Pyx_NewRef(PyList_GET_ITEM(o, n));
        }
    } else
    #if !CYTHON_AVOID_BORROWED_REFS
    if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            return __Pyx_NewRef(PyTuple_GET_ITEM(o, n));
        }
    } else
    #endif
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (!is_list && mm && mm->mp_subscript) {
            PyObject *r, *key = PyLong_FromSsize_t(i);
            if (unlikely(!key)) return NULL;
            r = mm->mp_subscript(o, key);
            Py_DECREF(key);
            return r;
        }
        if (is_list || likely(sm && sm->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return sm->sq_item(o, i);
        }
    }
#else
    if (is_list || !PyMapping_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
}

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) {
    PyObject *runerr = NULL;
    Py_ssize_t key_value;
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        __Pyx_TypeName index_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(index));
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError,
            "cannot fit '" __Pyx_FMT_TYPENAME "' into an index-sized integer", index_type_name);
        __Pyx_DECREF_TypeName(index_type_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
    __Pyx_TypeName obj_type_name;
    if (likely(PyType_Check(obj))) {
        PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_mstate_global->__pyx_n_u_class_getitem);
        if (!meth) {
            PyErr_Clear();
        } else {
            PyObject *result = __Pyx_PyObject_CallOneArg(meth, key);
            Py_DECREF(meth);
            return result;
        }
    }
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "'" __Pyx_FMT_TYPENAME "' object is not subscriptable", obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
    PyTypeObject *tp = Py_TYPE(obj);
    PyMappingMethods *mm = tp->tp_as_mapping;
    PySequenceMethods *sm = tp->tp_as_sequence;
    if (likely(mm && mm->mp_subscript)) {
        return mm->mp_subscript(obj, key);
    }
    if (likely(sm && sm->sq_item)) {
        return __Pyx_PyObject_GetIndex(obj, key);
    }
    return __Pyx_PyObject_GetItem_Slow(obj, key);
}
#endif

/* GetTopmostException (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    PyObject *exc_value = exc_info->exc_value;
    if (exc_value == NULL || exc_value == Py_None) {
        *value = NULL;
        *type = NULL;
        *tb = NULL;
    } else {
        *value = exc_value;
        Py_INCREF(*value);
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        *tb = PyException_GetTraceback(exc_value);
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #endif
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    PyObject *tmp_value = exc_info->exc_value;
    exc_info->exc_value = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
  #else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
  #endif
}
#endif

/* GetException */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type = NULL, *local_value, *local_tb = NULL;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if PY_VERSION_HEX >= 0x030C0000
    local_value = tstate->current_exception;
    tstate->current_exception = 0;
  #else
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
  #endif
#elif __PYX_LIMITED_VERSION_HEX > 0x030C0000
    local_value = PyErr_GetRaisedException();
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
#if __PYX_LIMITED_VERSION_HEX > 0x030C0000
    if (likely(local_value)) {
        local_type = (PyObject*) Py_TYPE(local_value);
        Py_INCREF(local_type);
        local_tb = PyException_GetTraceback(local_value);
    }
#else
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
#endif // __PYX_LIMITED_VERSION_HEX > 0x030C0000
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
      #if PY_VERSION_HEX >= 0x030B00a4
        tmp_value = exc_info->exc_value;
        exc_info->exc_value = local_value;
        tmp_type = NULL;
        tmp_tb = NULL;
        Py_XDECREF(local_type);
        Py_XDECREF(local_tb);
      #else
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
      #endif
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#elif __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    PyErr_SetHandledException(local_value);
    Py_XDECREF(local_value);
    Py_XDECREF(local_type);
    Py_XDECREF(local_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
#if __PYX_LIMITED_VERSION_HEX <= 0x030C0000
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
#endif
}

/* RaiseException */
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 (cause) {
        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 PY_VERSION_HEX >= 0x030C00A6
        PyException_SetTraceback(value, tb);
#elif CYTHON_FAST_THREAD_STATE
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#else
        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);
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}

/* PyObjectSetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
    return PyObject_SetAttr(obj, attr_name, value);
}
#endif

/* PyObjectFormatAndDecref */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f) {
    if (unlikely(!s)) return NULL;
    if (likely(PyUnicode_CheckExact(s))) return s;
    return __Pyx_PyObject_FormatAndDecref(s, f);
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f) {
    PyObject *result;
    if (unlikely(!s)) return NULL;
    result = PyObject_Format(s, f);
    Py_DECREF(s);
    return result;
}

/* JoinPyUnicode */
static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char) {
#if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyObject *result_uval;
    int result_ukind, kind_shift;
    Py_ssize_t i, char_pos;
    void *result_udata;
    if (max_char > 1114111) max_char = 1114111;
    result_uval = PyUnicode_New(result_ulength, max_char);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
    kind_shift = (result_ukind == PyUnicode_4BYTE_KIND) ? 2 : result_ukind - 1;
    result_udata = PyUnicode_DATA(result_uval);
    assert(kind_shift == 2 || kind_shift == 1 || kind_shift == 0);
    if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - result_ulength < 0))
        goto overflow;
    char_pos = 0;
    for (i=0; i < value_count; i++) {
        int ukind;
        Py_ssize_t ulength;
        void *udata;
        PyObject *uval = values[i];
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (__Pyx_PyUnicode_READY(uval) == (-1))
            goto bad;
        #endif
        ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(ulength < 0)) goto bad;
        #endif
        if (unlikely(!ulength))
            continue;
        if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - ulength < char_pos))
            goto overflow;
        ukind = __Pyx_PyUnicode_KIND(uval);
        udata = __Pyx_PyUnicode_DATA(uval);
        if (ukind == result_ukind) {
            memcpy((char *)result_udata + (char_pos << kind_shift), udata, (size_t) (ulength << kind_shift));
        } else {
            #if PY_VERSION_HEX >= 0x030d0000
            if (unlikely(PyUnicode_CopyCharacters(result_uval, char_pos, uval, 0, ulength) < 0)) goto bad;
            #elif CYTHON_COMPILING_IN_CPYTHON || defined(_PyUnicode_FastCopyCharacters)
            _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
            #else
            Py_ssize_t j;
            for (j=0; j < ulength; j++) {
                Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
                __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
            }
            #endif
        }
        char_pos += ulength;
    }
    return result_uval;
overflow:
    PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
bad:
    Py_DECREF(result_uval);
    return NULL;
#else
    Py_ssize_t i;
    PyObject *result = NULL;
    PyObject *value_tuple = PyTuple_New(value_count);
    if (unlikely(!value_tuple)) return NULL;
    CYTHON_UNUSED_VAR(max_char);
    CYTHON_UNUSED_VAR(result_ulength);
    for (i=0; i<value_count; i++) {
        Py_INCREF(values[i]);
        if (__Pyx_PyTuple_SET_ITEM(value_tuple, i, values[i]) != (0)) goto bad;
    }
    result = PyUnicode_Join(__pyx_mstate_global->__pyx_empty_unicode, value_tuple);
bad:
    Py_DECREF(value_tuple);
    return result;
#endif
}

/* PyObjectVectorCallKwBuilder */
#if CYTHON_VECTORCALL
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_PyObject_FastCallDict;
    Py_INCREF(key);
    if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1;
    args[n] = value;
    return 0;
}
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_VectorcallBuilder_AddArgStr;
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n);
}
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    PyObject *pyKey = PyUnicode_FromString(key);
    if (!pyKey) return -1;
    return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n);
}
#else // CYTHON_VECTORCALL
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) {
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return PyDict_SetItem(builder, key, value);
}
#endif

/* HasAttr */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!PyUnicode_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_PyObject_GetAttrStrNoError(o, n);
    if (!r) {
        return (unlikely(PyErr_Occurred())) ? -1 : 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}
#endif

/* PyObjectVectorCallMethodKwBuilder */
#if !CYTHON_VECTORCALL || PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_Object_VectorcallMethod_CallFromBuilder(PyObject *name, PyObject *const *args, size_t nargsf, PyObject *kwnames) {
    PyObject *result;
    PyObject *obj = PyObject_GetAttr(args[0], name);
    if (unlikely(!obj))
        return NULL;
    result = __Pyx_Object_Vectorcall_CallFromBuilder(obj, args+1, nargsf-1, kwnames);
    Py_DECREF(obj);
    return result;
}
#endif

/* RaiseTooManyValuesToUnpack */
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);
}

/* RaiseNeedMoreValuesToUnpack */
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");
}

/* IterFinish */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
    PyObject* exc_type;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    exc_type = __Pyx_PyErr_CurrentExceptionType();
    if (unlikely(exc_type)) {
        if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))
            return -1;
        __Pyx_PyErr_Clear();
        return 0;
    }
    return 0;
}

/* UnpackItemEndCheck */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    }
    return __Pyx_IterFinish();
}

/* PyLongCompare */
static CYTHON_INLINE int __Pyx_PyLong_BoolEqObjC(PyObject *op1, PyObject *op2, long intval, long inplace) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(inplace);
    if (op1 == op2) {
        return 1;
    }
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        const digit* digits = __Pyx_PyLong_Digits(op1);
        if (intval == 0) {
            return (__Pyx_PyLong_IsZero(op1) == 1);
        } else if (intval < 0) {
            if (__Pyx_PyLong_IsNonNeg(op1))
                return 0;
            intval = -intval;
        } else {
            if (__Pyx_PyLong_IsNeg(op1))
                return 0;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        return (unequal == 0);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = __Pyx_PyFloat_AS_DOUBLE(op1);
        return ((double)a == (double)b);
    }
    return __Pyx_PyObject_IsTrueAndDecref(
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* PyLongCompare */
static CYTHON_INLINE int __Pyx_PyLong_BoolNeObjC(PyObject *op1, PyObject *op2, long intval, long inplace) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(inplace);
    if (op1 == op2) {
        return 0;
    }
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        const digit* digits = __Pyx_PyLong_Digits(op1);
        if (intval == 0) {
            return (__Pyx_PyLong_IsZero(op1) != 1);
        } else if (intval < 0) {
            if (__Pyx_PyLong_IsNonNeg(op1))
                return 1;
            intval = -intval;
        } else {
            if (__Pyx_PyLong_IsNeg(op1))
                return 1;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        return (unequal != 0);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = __Pyx_PyFloat_AS_DOUBLE(op1);
        return ((double)a != (double)b);
    }
    return __Pyx_PyObject_IsTrueAndDecref(
        PyObject_RichCompare(op1, op2, Py_NE));
}

/* SliceObject */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
        Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
        int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) {
    __Pyx_TypeName obj_type_name;
#if CYTHON_USE_TYPE_SLOTS
    PyMappingMethods* mp = Py_TYPE(obj)->tp_as_mapping;
    if (likely(mp && mp->mp_subscript))
#endif
    {
        PyObject* result;
        PyObject *py_slice, *py_start, *py_stop;
        if (_py_slice) {
            py_slice = *_py_slice;
        } else {
            PyObject* owned_start = NULL;
            PyObject* owned_stop = NULL;
            if (_py_start) {
                py_start = *_py_start;
            } else {
                if (has_cstart) {
                    owned_start = py_start = PyLong_FromSsize_t(cstart);
                    if (unlikely(!py_start)) goto bad;
                } else
                    py_start = Py_None;
            }
            if (_py_stop) {
                py_stop = *_py_stop;
            } else {
                if (has_cstop) {
                    owned_stop = py_stop = PyLong_FromSsize_t(cstop);
                    if (unlikely(!py_stop)) {
                        Py_XDECREF(owned_start);
                        goto bad;
                    }
                } else
                    py_stop = Py_None;
            }
            py_slice = PySlice_New(py_start, py_stop, Py_None);
            Py_XDECREF(owned_start);
            Py_XDECREF(owned_stop);
            if (unlikely(!py_slice)) goto bad;
        }
#if CYTHON_USE_TYPE_SLOTS
        result = mp->mp_subscript(obj, py_slice);
#else
        result = PyObject_GetItem(obj, py_slice);
#endif
        if (!_py_slice) {
            Py_DECREF(py_slice);
        }
        return result;
    }
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "'" __Pyx_FMT_TYPENAME "' object is unsliceable", obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
bad:
    return NULL;
}

/* dict_setdefault (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) {
    PyObject* value;
#if __PYX_LIMITED_VERSION_HEX >= 0x030F0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4)
    PyDict_SetDefaultRef(d, key, default_value, &value);
#elif CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    PyObject *args[] = {d, key, default_value};
    value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL);
#else
    value = PyDict_SetDefault(d, key, default_value);
    if (unlikely(!value)) return NULL;
    Py_INCREF(value);
#endif
    return value;
}

/* LimitedApiGetTypeDict (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static Py_ssize_t __Pyx_GetTypeDictOffset(void) {
    PyObject *tp_dictoffset_o;
    Py_ssize_t tp_dictoffset;
    tp_dictoffset_o = PyObject_GetAttrString((PyObject*)(&PyType_Type), "__dictoffset__");
    if (unlikely(!tp_dictoffset_o)) return -1;
    tp_dictoffset = PyLong_AsSsize_t(tp_dictoffset_o);
    Py_DECREF(tp_dictoffset_o);
    if (unlikely(tp_dictoffset == 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' doesn't have a dictoffset");
        return -1;
    } else if (unlikely(tp_dictoffset < 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' has an unexpected negative dictoffset. "
            "Please report this as Cython bug");
        return -1;
    }
    return tp_dictoffset;
}
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) {
    static Py_ssize_t tp_dictoffset = 0;
    if (unlikely(tp_dictoffset == 0)) {
        tp_dictoffset = __Pyx_GetTypeDictOffset();
        if (unlikely(tp_dictoffset == -1 && PyErr_Occurred())) {
            tp_dictoffset = 0; // try again next time?
            return NULL;
        }
    }
    return *(PyObject**)((char*)tp + tp_dictoffset);
}
#endif

/* SetItemOnTypeDict (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_SetItem(tp_dict, k, v);
    if (likely(!result)) {
        PyType_Modified(tp);
        if (unlikely(PyObject_HasAttr(v, __pyx_mstate_global->__pyx_n_u_set_name))) {
            PyObject *setNameResult = PyObject_CallMethodObjArgs(v, __pyx_mstate_global->__pyx_n_u_set_name,  (PyObject *) tp, k, NULL);
            if (!setNameResult) return -1;
            Py_DECREF(setNameResult);
        }
    }
    return result;
}

/* FixUpExtensionType (used by FetchCommonType) */
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
#if __PYX_LIMITED_VERSION_HEX > 0x030900B1
    CYTHON_UNUSED_VAR(spec);
    CYTHON_UNUSED_VAR(type);
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#else
    const PyType_Slot *slot = spec->slots;
    int changed = 0;
#if !CYTHON_COMPILING_IN_LIMITED_API
    while (slot && slot->slot && slot->slot != Py_tp_members)
        slot++;
    if (slot && slot->slot == Py_tp_members) {
#if !CYTHON_COMPILING_IN_CPYTHON
        const
#endif  // !CYTHON_COMPILING_IN_CPYTHON)
            PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
        while (memb && memb->name) {
            if (memb->name[0] == '_' && memb->name[1] == '_') {
                if (strcmp(memb->name, "__weaklistoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_weaklistoffset = memb->offset;
                    changed = 1;
                }
                else if (strcmp(memb->name, "__dictoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_dictoffset = memb->offset;
                    changed = 1;
                }
#if CYTHON_METH_FASTCALL
                else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_vectorcall_offset = memb->offset;
                    changed = 1;
                }
#endif  // CYTHON_METH_FASTCALL
#if !CYTHON_COMPILING_IN_PYPY
                else if (strcmp(memb->name, "__module__") == 0) {
                    PyObject *descr;
                    assert(memb->type == T_OBJECT);
                    assert(memb->flags == 0 || memb->flags == READONLY);
                    descr = PyDescr_NewMember(type, memb);
                    if (unlikely(!descr))
                        return -1;
                    int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                    Py_DECREF(descr);
                    if (unlikely(set_item_result < 0)) {
                        return -1;
                    }
                    changed = 1;
                }
#endif  // !CYTHON_COMPILING_IN_PYPY
            }
            memb++;
        }
    }
#endif  // !CYTHON_COMPILING_IN_LIMITED_API
#if !CYTHON_COMPILING_IN_PYPY
    slot = spec->slots;
    while (slot && slot->slot && slot->slot != Py_tp_getset)
        slot++;
    if (slot && slot->slot == Py_tp_getset) {
        PyGetSetDef *getset = (PyGetSetDef*) slot->pfunc;
        while (getset && getset->name) {
            if (getset->name[0] == '_' && getset->name[1] == '_' && strcmp(getset->name, "__module__") == 0) {
                PyObject *descr = PyDescr_NewGetSet(type, getset);
                if (unlikely(!descr))
                    return -1;
                #if CYTHON_COMPILING_IN_LIMITED_API
                PyObject *pyname = PyUnicode_FromString(getset->name);
                if (unlikely(!pyname)) {
                    Py_DECREF(descr);
                    return -1;
                }
                int set_item_result = __Pyx_SetItemOnTypeDict(type, pyname, descr);
                Py_DECREF(pyname);
                #else
                CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
                int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                #endif
                Py_DECREF(descr);
                if (unlikely(set_item_result < 0)) {
                    return -1;
                }
                changed = 1;
            }
            ++getset;
        }
    }
#else
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#endif  // !CYTHON_COMPILING_IN_PYPY
    if (changed)
        PyType_Modified(type);
#endif  // PY_VERSION_HEX > 0x030900B1
    return 0;
}

/* AddModuleRef (used by FetchSharedCythonModule) */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) {
      PyObject *module_dict = PyImport_GetModuleDict();
      PyObject *m;
      if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) {
          return NULL;
      }
      if (m != NULL && PyModule_Check(m)) {
          return m;
      }
      Py_XDECREF(m);
      m = PyModule_NewObject(name);
      if (m == NULL)
          return NULL;
      if (PyDict_CheckExact(module_dict)) {
          PyObject *new_m;
          (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m);
          Py_DECREF(m);
          return new_m;
      } else {
           if (PyObject_SetItem(module_dict, name, m) != 0) {
                Py_DECREF(m);
                return NULL;
            }
            return m;
      }
  }
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *py_name = PyUnicode_FromString(name);
      if (!py_name) return NULL;
      PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name);
      Py_DECREF(py_name);
      return module;
  }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#else
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif

/* FetchSharedCythonModule (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    return __Pyx_PyImport_AddModuleRef(__PYX_ABI_MODULE_NAME);
}

/* FetchCommonType (used by CommonTypesMetaclass) */
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject* __Pyx_PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *result = __Pyx_PyType_FromModuleAndSpec(module, spec, bases);
    if (result && metaclass) {
        PyObject *old_tp = (PyObject*)Py_TYPE(result);
    Py_INCREF((PyObject*)metaclass);
#if __PYX_LIMITED_VERSION_HEX >= 0x03090000
        Py_SET_TYPE(result, metaclass);
#else
        result->ob_type = metaclass;
#endif
        Py_DECREF(old_tp);
    }
    return result;
}
#else
#define __Pyx_PyType_FromMetaclass(me, mo, s, b) PyType_FromMetaclass(me, mo, s, b)
#endif
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize) {
    Py_ssize_t basicsize;
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (expected_basicsize == 0) {
        return 0; // size is inherited, nothing useful to check
    }
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
    py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
    if (unlikely(!py_basicsize)) return -1;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = NULL;
    if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1;
#else
    basicsize = ((PyTypeObject*) cached_type)->tp_basicsize;
#endif
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module = NULL, *cached_type = NULL, *abi_module_dict, *new_cached_type, *py_object_name;
    int get_item_ref_result;
    const char* object_name = strrchr(spec->name, '.');
    object_name = object_name ? object_name+1 : spec->name;
    py_object_name = PyUnicode_FromString(object_name);
    if (!py_object_name) return NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) goto done;
    abi_module_dict = PyModule_GetDict(abi_module);
    if (!abi_module_dict) goto done;
    get_item_ref_result = __Pyx_PyDict_GetItemRef(abi_module_dict, py_object_name, &cached_type);
    if (get_item_ref_result == 1) {
        if (__Pyx_VerifyCachedType(
              cached_type,
              object_name,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else if (unlikely(get_item_ref_result == -1)) {
        goto bad;
    }
    cached_type = __Pyx_PyType_FromMetaclass(
        metaclass,
        CYTHON_USE_MODULE_STATE ? module : abi_module,
        spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
    new_cached_type = __Pyx_PyDict_SetDefault(abi_module_dict, py_object_name, cached_type);
    if (unlikely(new_cached_type != cached_type)) {
        if (unlikely(!new_cached_type)) goto bad;
        Py_DECREF(cached_type);
        cached_type = new_cached_type;
        if (__Pyx_VerifyCachedType(
                cached_type,
                object_name,
                spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else {
        Py_DECREF(new_cached_type);
    }
done:
    Py_XDECREF(abi_module);
    Py_DECREF(py_object_name);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* CommonTypesMetaclass (used by CythonFunctionShared) */
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
    return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
}
#if __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject* __pyx_CommonTypesMetaclass_call(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *args, CYTHON_UNUSED PyObject *kwds) {
    PyErr_SetString(PyExc_TypeError, "Cannot instantiate Cython internal types");
    return NULL;
}
static int __pyx_CommonTypesMetaclass_setattr(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *attr, CYTHON_UNUSED PyObject *value) {
    PyErr_SetString(PyExc_TypeError, "Cython internal types are immutable");
    return -1;
}
#endif
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
    {"__module__", __pyx_CommonTypesMetaclass_get_module, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_CommonTypesMetaclass_slots[] = {
    {Py_tp_getset, (void *)__pyx_CommonTypesMetaclass_getset},
    #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {Py_tp_call, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_new, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_setattro, (void*)__pyx_CommonTypesMetaclass_setattr},
    #endif
    {0, 0}
};
static PyType_Spec __pyx_CommonTypesMetaclass_spec = {
    __PYX_TYPE_MODULE_PREFIX "_common_types_metatype",
    0,
    0,
    Py_TPFLAGS_IMMUTABLETYPE |
    Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT,
    __pyx_CommonTypesMetaclass_slots
};
static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    PyObject *bases = PyTuple_Pack(1, &PyType_Type);
    if (unlikely(!bases)) {
        return -1;
    }
    mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
    Py_DECREF(bases);
    if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
        return -1;
    }
    return 0;
}

/* CallTypeTraverse (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) {
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x03090000
    if (__Pyx_get_runtime_version() < 0x03090000) return 0;
    #endif
    if (!always_call) {
        PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*);
        unsigned long flags = PyType_GetFlags(base);
        if (flags & Py_TPFLAGS_HEAPTYPE) {
            return 0;
        }
    }
    Py_VISIT((PyObject*)Py_TYPE(o));
    return 0;
}
#endif

/* PyMethodNew (used by CythonFunctionShared) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    PyObject *result;
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    {
        PyObject *args[] = {func, self};
        result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL);
    }
    #else
    result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL);
    #endif
    return result;
}
#else
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#endif

/* PyVectorcallFastCallDict (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i;
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos;
    #else
    Py_ssize_t pos;
    #endif
    size_t j;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    #if !CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t nkw = PyDict_Size(kw);
    if (unlikely(nkw == -1)) return NULL;
    #else
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    #endif
    newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (j = 0; j < nargs; j++) newargs[j] = args[j];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = 0;
    i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (__Pyx_PyDict_NextRef(kw, &pos, &key, &value)) {
        keys_are_strings &=
        #if CYTHON_COMPILING_IN_LIMITED_API
            PyType_GetFlags(Py_TYPE(key));
        #else
            Py_TYPE(key)->tp_flags;
        #endif
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(PyTuple_SetItem(kwnames, i, key) < 0)) goto cleanup;
        #else
        PyTuple_SET_ITEM(kwnames, i, key);
        #endif
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(pos);
    #endif
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    Py_ssize_t kw_size =
        likely(kw == NULL) ?
        0 :
#if !CYTHON_ASSUME_SAFE_SIZE
        PyDict_Size(kw);
#else
        PyDict_GET_SIZE(kw);
#endif
    if (kw_size == 0) {
        return vc(func, args, nargs, NULL);
    }
#if !CYTHON_ASSUME_SAFE_SIZE
    else if (unlikely(kw_size == -1)) {
        return NULL;
    }
#endif
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared (used by CythonFunction) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) {
    if (__Pyx_CyFunction_Check(func)) {
        return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) {
        int result;
        PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func);
        if (unlikely(!newFunc)) {
            PyErr_Clear(); // It's only an optimization, so don't throw an error
            return 0;
        }
        result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc);
        Py_DECREF(newFunc);
        return result;
    }
    return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc);
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if (PyMethod_Check(func)) {
        func = PyMethod_GET_FUNCTION(func);
    }
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx_CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static PyObject *
__Pyx_CyFunction_get_doc_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_doc == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
        if (unlikely(!op->func_doc)) return NULL;
#else
        if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
            op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
#endif
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) {
    PyObject *result;
    CYTHON_UNUSED_VAR(closure);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_doc_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_name == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_name = PyObject_GetAttrString(op->func, "__name__");
#else
        op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_name_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    Py_INCREF(op->func_qualname);
    result = op->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
#endif
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(op);
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_defaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_kwdefaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int __Pyx_CyFunction_set_annotate_in_dict_if_exists(PyObject *op_in, PyObject *value);
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    __Pyx_END_CRITICAL_SECTION();
    if (unlikely(__Pyx_CyFunction_set_annotate_in_dict_if_exists((PyObject*) op, Py_None) < 0)) return -1;
    return 0;
}
static int
__Pyx_CyFunction_get_dict_if_exists(PyObject *op_in, PyObject **dict) {
    /* Return 1 if the function dict exists, 0 otherwise.  This cannot fail:
     * _PyObject_GetDictPtr() may clear errors internally, but never reports them. */
#if CYTHON_COMPILING_IN_PYPY
    *dict = PyObject_GenericGetDict(op_in, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030C0000
    *dict = ((__pyx_CyFunctionObject*) op_in)->func_dict;
#else
    PyObject **dictptr = _PyObject_GetDictPtr(op_in);
    *dict = likely(dictptr) ? *dictptr : NULL;
#endif
    return *dict ? 1 : 0;
}
static int
__Pyx_CyFunction_get_annotate_from_dict_if_exists(PyObject *op_in, PyObject **annotate) {
    PyObject *dict;
    int dict_found;
    *annotate = NULL;
    dict_found = __Pyx_CyFunction_get_dict_if_exists(op_in, &dict);
    if (!dict_found) return 0;
    return __Pyx_PyDict_GetItemRef(dict, __pyx_mstate_global->__pyx_n_u_annotate, annotate);
}
static int
__Pyx_CyFunction_set_annotate_in_dict_if_exists(PyObject *op_in, PyObject *value) {
    PyObject *dict;
    int dict_found;
    dict_found = __Pyx_CyFunction_get_dict_if_exists(op_in, &dict);
    if (!dict_found) return 0;
    return PyDict_SetItem(dict, __pyx_mstate_global->__pyx_n_u_annotate, value);
}
static int
__Pyx_CyFunction_set_annotate_in_dict(PyObject *op_in, PyObject *value) {
    PyObject *dict;
    int result;
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    dict = __Pyx_CyFunction_get_dict((__pyx_CyFunctionObject*) op_in, NULL);
#else
    dict = PyObject_GenericGetDict(op_in, NULL);
#endif
    if (unlikely(!dict)) return -1;
    result = PyDict_SetItem(dict, __pyx_mstate_global->__pyx_n_u_annotate, value);
    Py_DECREF(dict);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_annotations_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->func_annotations;
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_annotations(PyObject *op_in, void *context) {
    PyObject *annotate = NULL;
    PyObject *result = NULL;
    __pyx_CyFunctionObject *op = (__pyx_CyFunctionObject*) op_in;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op_in);
    result = __Pyx_XNewRef(op->func_annotations);
    __Pyx_END_CRITICAL_SECTION();
    if (result) return result;
    if (unlikely(__Pyx_CyFunction_get_annotate_from_dict_if_exists(op_in, &annotate) < 0)) return NULL;
    if (!annotate || annotate == Py_None) {
        Py_XDECREF(annotate);
        __Pyx_BEGIN_CRITICAL_SECTION(op_in);
        result = __Pyx_CyFunction_get_annotations_locked(op);
        __Pyx_END_CRITICAL_SECTION();
        return result;
    }
    PyObject *format = PyLong_FromLong(1L);  // annotationlib.Format.VALUE
    if (likely(format)) {
        result = __Pyx_PyObject_CallOneArg(annotate, format);
        Py_DECREF(format);
    }
    Py_DECREF(annotate);
    if (unlikely(!result)) return NULL;
    if (unlikely(!PyDict_Check(result))) {
        PyErr_SetString(PyExc_TypeError, "__annotate__ must return a dict");
        Py_DECREF(result);
        return NULL;
    }
    __Pyx_BEGIN_CRITICAL_SECTION(op_in);
    __Pyx_Py_XDECREF_SET(op->func_annotations, __Pyx_NewRef(result));
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *__Pyx_CyFunction_annotate_impl(PyObject *self, PyObject *args) {
    CYTHON_UNUSED_VAR(args);
    if (unlikely(!self)) {
        PyErr_SetString(PyExc_SystemError, "cython __annotate__ called without 'self' argument");
    }
    Py_XINCREF(self);
    return self;
}
static PyMethodDef __Pyx_CyFunction_annotate_method = {
    "__annotate__",
    (PyCFunction)(void (*)(void))__Pyx_CyFunction_annotate_impl,
    METH_VARARGS,
    "Placeholder __annotate__ function to allow 'functools.wraps' to work "
    "on Cython functions."
};
static PyObject *
__Pyx_CyFunction_get_annotate(PyObject *op_in, void *context) {
    PyObject *annotate = NULL;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(__Pyx_CyFunction_get_annotate_from_dict_if_exists(op_in, &annotate) < 0)) return NULL;
    if (annotate) return annotate;
    PyObject *annotations = __Pyx_CyFunction_get_annotations(op_in, NULL);
    if (unlikely(!annotations)) return NULL;
    PyObject *method = PyCFunction_New(
        &__Pyx_CyFunction_annotate_method,
        annotations);
    Py_DECREF(annotations);
    return method;
}
static int
__Pyx_CyFunction_set_annotate(PyObject *op_in, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        PyErr_SetString(PyExc_TypeError, "__annotate__ cannot be deleted");
        return -1;
    }
    if (unlikely(value != Py_None && !PyCallable_Check(value))) {
        PyErr_SetString(PyExc_TypeError, "__annotate__ must be callable or None");
        return -1;
    }
    if (value != Py_None) {
        __pyx_CyFunctionObject *op = (__pyx_CyFunctionObject*) op_in;
        __Pyx_BEGIN_CRITICAL_SECTION(op_in);
        Py_CLEAR(op->func_annotations);
        __Pyx_END_CRITICAL_SECTION();
    }
    return __Pyx_CyFunction_set_annotate_in_dict(op_in, value);
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) {
    int is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
    if (is_coroutine) {
        PyObject *is_coroutine_value, *module, *fromlist, *marker = __pyx_mstate_global->__pyx_n_u_is_coroutine;
        fromlist = PyList_New(1);
        if (unlikely(!fromlist)) return NULL;
        Py_INCREF(marker);
#if CYTHON_ASSUME_SAFE_MACROS
        PyList_SET_ITEM(fromlist, 0, marker);
#else
        if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) {
            Py_DECREF(fromlist);
            return NULL;
        }
#endif
        module = PyImport_ImportModuleLevelObject(__pyx_mstate_global->__pyx_n_u_asyncio_coroutines, NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
        if (unlikely(!module)) goto ignore;
        is_coroutine_value = __Pyx_PyObject_GetAttrStr(module, marker);
        Py_DECREF(module);
        if (likely(is_coroutine_value)) {
            return is_coroutine_value;
        }
ignore:
        PyErr_Clear();
    }
    return __Pyx_PyBool_FromLong(is_coroutine);
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    if (op->func_is_coroutine) {
        return __Pyx_NewRef(op->func_is_coroutine);
    }
    result = __Pyx_CyFunction_get_is_coroutine_value(op);
    if (unlikely(!result))
        return NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    if (op->func_is_coroutine) {
        Py_DECREF(result);
        result = __Pyx_NewRef(op->func_is_coroutine);
    } else {
        op->func_is_coroutine = __Pyx_NewRef(result);
    }
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_CyFunction_raise_argument_count_error(__pyx_CyFunctionObject *func, const char* message, Py_ssize_t size) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        py_name, message, size);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        name, message, size);
#endif
}
static void __Pyx_CyFunction_raise_type_error(__pyx_CyFunctionObject *func, const char* message) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s",
        py_name, message);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s",
        name, message);
#endif
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_GetAttrString(op->func, "__module__");
}
static int
__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_SetAttrString(op->func, "__module__", value);
}
#endif
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
#else
    {"func_dict", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
#endif
    {"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {"__annotate__", (getter)__Pyx_CyFunction_get_annotate, (setter)__Pyx_CyFunction_set_annotate, 0, 0},
    {"_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
#if !CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#endif
#if CYTHON_METH_FASTCALL
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
#else
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {"__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(args);
    __Pyx_BEGIN_CRITICAL_SECTION(m);
    Py_INCREF(m->func_qualname);
    result = m->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
#endif
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
                                       PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyCFunctionObject *cf = (PyCFunctionObject*) op;
#endif
    if (unlikely(op == NULL))
        return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    op->func = PyCFunction_NewEx(ml, (PyObject*)op, module);
    if (unlikely(!op->func)) return NULL;
#endif
    op->flags = flags;
    __Pyx_CyFunction_weakreflist(op) = NULL;
#if !CYTHON_COMPILING_IN_LIMITED_API
    cf->m_ml = ml;
    cf->m_self = (PyObject *) op;
#endif
    Py_XINCREF(closure);
    op->func_closure = closure;
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_XINCREF(module);
    cf->m_module = module;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_dict = NULL;
#endif
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_classobj = NULL;
#else
    ((PyCMethodObject*)op)->mm_class = NULL;
#endif
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    Py_XINCREF(code);
    op->func_code = code;
    op->defaults = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    op->func_is_coroutine = NULL;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func);
#else
    Py_CLEAR(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func_dict);
#elif PY_VERSION_HEX < 0x030d0000
    _PyObject_ClearManagedDict((PyObject*)m);
#else
    PyObject_ClearManagedDict((PyObject*)m);
#endif
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
#else
    {
        PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
        ((PyCMethodObject *) (m))->mm_class = NULL;
        Py_XDECREF(cls);
    }
#endif
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    Py_CLEAR(m->func_is_coroutine);
    Py_CLEAR(m->defaults);
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    __Pyx_PyHeapTypeObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    {
        int e = __Pyx_call_type_traverse((PyObject*)m, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func);
#else
    Py_VISIT(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func_dict);
#else
    {
        int e =
#if PY_VERSION_HEX < 0x030d0000
            _PyObject_VisitManagedDict
#else
            PyObject_VisitManagedDict
#endif
                ((PyObject*)m, visit, arg);
        if (e != 0) return e;
    }
#endif
    __Pyx_VISIT_CONST(m->func_name);
    __Pyx_VISIT_CONST(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    __Pyx_VISIT_CONST(m->func_code);
    Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    Py_VISIT(m->func_annotations);
    Py_VISIT(m->func_is_coroutine);
    Py_VISIT(m->defaults);
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
    PyObject *repr;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    repr = PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
    __Pyx_END_CRITICAL_SECTION();
    return repr;
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
    PyCFunction meth;
    int flags;
    meth = PyCFunction_GetFunction(f);
    if (unlikely(!meth)) return NULL;
    flags = PyCFunction_GetFlags(f);
    if (unlikely(flags < 0)) return NULL;
#else
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    int flags = f->m_ml->ml_flags;
#endif
    Py_ssize_t size;
    switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void(*)(void))meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 0))
                return (*meth)(self, NULL);
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes no arguments", size);
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes exactly one argument", size);
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
    __Pyx_CyFunction_raise_type_error(
        (__pyx_CyFunctionObject*)func, "takes no keyword arguments");
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *self, *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
    if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
    self = ((PyCFunctionObject*)func)->m_self;
#endif
    result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
    return result;
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
#if CYTHON_ASSUME_SAFE_SIZE
        argc = PyTuple_GET_SIZE(args);
#else
        argc = PyTuple_Size(args);
        if (unlikely(argc < 0)) return NULL;
#endif
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
            PyErr_Format(PyExc_TypeError,
                         "unbound method %.200S() needs an argument",
                         cyfunc->func_qualname);
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            __Pyx_CyFunction_raise_type_error(
                cyfunc, "needs an argument");
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(__Pyx_PyTuple_GET_SIZE(kwnames))) {
        __Pyx_CyFunction_raise_type_error(
            cyfunc, "takes no keyword arguments");
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes no arguments", nargs);
        return NULL;
    }
    return meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes exactly one argument", nargs);
        return NULL;
    }
    return meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))meth)(self, args, nargs, kwnames);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    #if PY_VERSION_HEX < 0x030e00A6
    size_t nargs_value = (size_t) nargs;
    #else
    Py_ssize_t nargs_value = nargs;
    #endif
    return ((__Pyx_PyCMethod)(void(*)(void))meth)(self, cls, args, nargs_value, kwnames);
}
#endif
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if CYTHON_METH_FASTCALL
#if defined(Py_TPFLAGS_HAVE_VECTORCALL)
    Py_TPFLAGS_HAVE_VECTORCALL |
#elif defined(_Py_TPFLAGS_HAVE_VECTORCALL)
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
#endif // CYTHON_METH_FASTCALL
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_DICT |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    __pyx_CyFunctionType_slots
};
static int __pyx_CyFunction_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_CyFunctionType_spec, NULL);
    if (unlikely(mstate->__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type);
    if (unlikely(!m->defaults))
        return NULL;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunction */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    PyObject *op = __Pyx_CyFunction_Init(
        PyObject_GC_New(__pyx_CyFunctionObject, __pyx_mstate_global->__pyx_CyFunctionType),
        ml, flags, qualname, closure, module, globals, code
    );
    if (likely(op)) {
        PyObject_GC_Track(op);
    }
    return op;
}

/* pybytes_as_double (used by pyobject_as_double) */
static double __Pyx_SlowPyString_AsDouble(PyObject *obj) {
    PyObject *float_value = PyFloat_FromString(obj);
    if (likely(float_value)) {
        double value = __Pyx_PyFloat_AS_DOUBLE(float_value);
        Py_DECREF(float_value);
        return value;
    }
    return (double)-1;
}
static const char* __Pyx__PyBytes_AsDouble_Copy(const char* start, char* buffer, Py_ssize_t length) {
    int last_was_punctuation = 1;
    int parse_error_found = 0;
    Py_ssize_t i;
    for (i=0; i < length; i++) {
        char chr = start[i];
        int is_punctuation = (chr == '_') | (chr == '.') | (chr == 'e') | (chr == 'E');
        *buffer = chr;
        buffer += (chr != '_');
        parse_error_found |= last_was_punctuation & is_punctuation;
        last_was_punctuation = is_punctuation;
    }
    parse_error_found |= last_was_punctuation;
    *buffer = '\0';
    return unlikely(parse_error_found) ? NULL : buffer;
}
static double __Pyx__PyBytes_AsDouble_inf_nan(const char* start, Py_ssize_t length) {
    int matches = 1;
    char sign = start[0];
    int is_signed = (sign == '+') | (sign == '-');
    start += is_signed;
    length -= is_signed;
    switch (start[0]) {
        #ifdef Py_NAN
        case 'n':
        case 'N':
            if (unlikely(length != 3)) goto parse_failure;
            matches &= (start[1] == 'a' || start[1] == 'A');
            matches &= (start[2] == 'n' || start[2] == 'N');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_NAN : Py_NAN;
        #endif
        case 'i':
        case 'I':
            if (unlikely(length < 3)) goto parse_failure;
            matches &= (start[1] == 'n' || start[1] == 'N');
            matches &= (start[2] == 'f' || start[2] == 'F');
            if (likely(length == 3 && matches))
                return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
            if (unlikely(length != 8)) goto parse_failure;
            matches &= (start[3] == 'i' || start[3] == 'I');
            matches &= (start[4] == 'n' || start[4] == 'N');
            matches &= (start[5] == 'i' || start[5] == 'I');
            matches &= (start[6] == 't' || start[6] == 'T');
            matches &= (start[7] == 'y' || start[7] == 'Y');
            if (unlikely(!matches)) goto parse_failure;
            return (sign == '-') ? -Py_HUGE_VAL : Py_HUGE_VAL;
        case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':
            break;
        default:
            goto parse_failure;
    }
    return 0.0;
parse_failure:
    return -1.0;
}
static CYTHON_INLINE int __Pyx__PyBytes_AsDouble_IsSpace(char ch) {
    return (ch == 0x20) | !((ch < 0x9) | (ch > 0xd));
}
CYTHON_UNUSED static double __Pyx__PyBytes_AsDouble(PyObject *obj, const char* start, Py_ssize_t length) {
    double value;
    Py_ssize_t i, digits;
    const char *last = start + length;
    char *end;
    while (__Pyx__PyBytes_AsDouble_IsSpace(*start))
        start++;
    while (start < last - 1 && __Pyx__PyBytes_AsDouble_IsSpace(last[-1]))
        last--;
    length = last - start;
    if (unlikely(length <= 0)) goto fallback;
    value = __Pyx__PyBytes_AsDouble_inf_nan(start, length);
    if (unlikely(value == -1.0)) goto fallback;
    if (value != 0.0) return value;
    digits = 0;
    for (i=0; i < length; digits += start[i++] != '_');
    if (likely(digits == length)) {
        value = PyOS_string_to_double(start, &end, NULL);
    } else if (digits < 40) {
        char number[40];
        last = __Pyx__PyBytes_AsDouble_Copy(start, number, length);
        if (unlikely(!last)) goto fallback;
        value = PyOS_string_to_double(number, &end, NULL);
    } else {
        char *number = (char*) PyMem_Malloc((digits + 1) * sizeof(char));
        if (unlikely(!number)) goto fallback;
        last = __Pyx__PyBytes_AsDouble_Copy(start, number, length);
        if (unlikely(!last)) {
            PyMem_Free(number);
            goto fallback;
        }
        value = PyOS_string_to_double(number, &end, NULL);
        PyMem_Free(number);
    }
    if (likely(end == last) || (value == (double)-1 && PyErr_Occurred())) {
        return value;
    }
fallback:
    return __Pyx_SlowPyString_AsDouble(obj);
}

/* pyobject_as_double */
static double __Pyx__PyObject_AsDouble(PyObject* obj) {
    if (PyUnicode_CheckExact(obj)) {
        return __Pyx_PyUnicode_AsDouble(obj);
    } else if (PyBytes_CheckExact(obj)) {
        return __Pyx_PyBytes_AsDouble(obj);
    } else if (PyByteArray_CheckExact(obj)) {
        return __Pyx_PyByteArray_AsDouble(obj);
    } else {
        PyObject* float_value;
#if !CYTHON_USE_TYPE_SLOTS
        float_value = PyNumber_Float(obj);  if ((0)) goto bad;
        (void)__Pyx_PyObject_CallOneArg;
#else
        PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number;
        if (likely(nb) && likely(nb->nb_float)) {
            float_value = nb->nb_float(obj);
            if (likely(float_value) && unlikely(!PyFloat_Check(float_value))) {
                __Pyx_TypeName float_value_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(float_value));
                PyErr_Format(PyExc_TypeError,
                    "__float__ returned non-float (type " __Pyx_FMT_TYPENAME ")",
                    float_value_type_name);
                __Pyx_DECREF_TypeName(float_value_type_name);
                Py_DECREF(float_value);
                goto bad;
            }
        } else {
            float_value = __Pyx_PyObject_CallOneArg((PyObject*)&PyFloat_Type, obj);
        }
#endif
        if (likely(float_value)) {
            double value = __Pyx_PyFloat_AS_DOUBLE(float_value);
            Py_DECREF(float_value);
            return value;
        }
    }
bad:
    return (double)-1;
}

/* PyObjectCallNoArg (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg[2] = {NULL, NULL};
    return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectGetMethod (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    __Pyx_TypeName type_name;
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
        if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR))
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (likely(descr != NULL)) {
        *method = descr;
        return 0;
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(tp);
    PyErr_Format(PyExc_AttributeError,
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}
#endif

/* PyObjectCallMethod0 (used by dict_iter) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[1] = {obj};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_CallNoArg;
    return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
#endif
}

/* RaiseNoneIterError (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else {
      Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(t);
 #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely(size < 0)) return;
 #endif
      if (size < index) {
        __Pyx_RaiseNeedMoreValuesError(size);
      } else {
        __Pyx_RaiseTooManyValuesError(index);
      }
    }
}

/* UnpackTuple2 (used by dict_iter) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
        PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple) {
    if (likely(is_tuple || PyTuple_Check(tuple))) {
        Py_ssize_t size;
        if (has_known_size) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        size = __Pyx_PyTuple_GET_SIZE(tuple);
        if (likely(size == 2)) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        if (size >= 0) {
            __Pyx_UnpackTupleError(tuple, 2);
        }
        return -1;
    } else {
        return __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple);
    }
}
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
    value1 = __Pyx_PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = __Pyx_PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = __Pyx_PyObject_GetIterNextFunc(iter);
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
#if CYTHON_AVOID_BORROWED_REFS
#include <string.h>
#endif
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_AVOID_BORROWED_REFS
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#else
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_AVOID_BORROWED_REFS
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
#if !CYTHON_AVOID_BORROWED_REFS
static CYTHON_INLINE int __Pyx_dict_iter_next_source_is_dict(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem) {
    PyObject *key, *value;
    if (unlikely(orig_length != PyDict_Size(iter_obj))) {
        PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
        return -1;
    }
    if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
        return 0;
    }
    if (pitem) {
        PyObject* tuple = PyTuple_New(2);
        if (unlikely(!tuple)) {
            return -1;
        }
        Py_INCREF(key);
        Py_INCREF(value);
        #if CYTHON_ASSUME_SAFE_MACROS
        PyTuple_SET_ITEM(tuple, 0, key);
        PyTuple_SET_ITEM(tuple, 1, value);
        #else
        if (unlikely(PyTuple_SetItem(tuple, 0, key) < 0)) {
            Py_DECREF(value);
            Py_DECREF(tuple);
            return -1;
        }
        if (unlikely(PyTuple_SetItem(tuple, 1, value) < 0)) {
            Py_DECREF(tuple);
            return -1;
        }
        #endif
        *pitem = tuple;
    } else {
        if (pkey) {
            Py_INCREF(key);
            *pkey = key;
        }
        if (pvalue) {
            Py_INCREF(value);
            *pvalue = value;
        }
    }
    return 1;
}
#endif
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_AVOID_BORROWED_REFS
    if (source_is_dict) {
        int result;
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_BEGIN_CRITICAL_SECTION(iter_obj);
#endif
        result = __Pyx_dict_iter_next_source_is_dict(iter_obj, orig_length, ppos, pkey, pvalue, pitem);
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_END_CRITICAL_SECTION();
#endif
        return result;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(tuple_size < 0)) return -1;
        #endif
        if (unlikely(pos >= tuple_size)) return 0;
        *ppos = pos + 1;
        #if CYTHON_ASSUME_SAFE_MACROS
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        #else
        next_item = PyTuple_GetItem(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
        #endif
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t list_size = __Pyx_PyList_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(list_size < 0)) return -1;
        #endif
        if (unlikely(pos >= list_size)) return 0;
        *ppos = pos + 1;
        next_item = __Pyx_PyList_GetItemRef(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* DictGetItem */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    if (unlikely(__Pyx_PyDict_GetItemRef(d, key, &value) == 0)) { // no value, no error
        if (unlikely(PyTuple_Check(key))) {
            PyObject* args = PyTuple_Pack(1, key);
            if (likely(args)) {
                PyErr_SetObject(PyExc_KeyError, args);
                Py_DECREF(args);
            }
        } else {
            PyErr_SetObject(PyExc_KeyError, key);
        }
    }
    return value;
}
#endif

/* RaiseUnboundLocalError */
static void __Pyx_RaiseUnboundLocalError(const char *varname) {
    PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname);
}

/* pep479 */
static void __Pyx_Generator_Replace_StopIteration(int in_async_gen) {
    PyObject *exc, *val, *tb, *cur_exc, *new_exc;
    __Pyx_PyThreadState_declare
    int is_async_stopiteration = 0;
    CYTHON_MAYBE_UNUSED_VAR(in_async_gen);
    __Pyx_PyThreadState_assign
    cur_exc = __Pyx_PyErr_CurrentExceptionType();
    if (likely(!__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopIteration))) {
        if (in_async_gen && unlikely(__Pyx_PyErr_GivenExceptionMatches(cur_exc, PyExc_StopAsyncIteration))) {
            is_async_stopiteration = 1;
        } else {
            return;
        }
    }
    __Pyx_GetException(&exc, &val, &tb);
    Py_XDECREF(exc);
    Py_XDECREF(tb);
    new_exc = PyObject_CallFunction(PyExc_RuntimeError, "s",
        is_async_stopiteration ? "async generator raised StopAsyncIteration" :
        in_async_gen ? "async generator raised StopIteration" :
        "generator raised StopIteration");
    if (!new_exc) {
        Py_XDECREF(val);
        return;
    }
    PyException_SetCause(new_exc, val); // steals ref to val
    PyErr_SetObject(PyExc_RuntimeError, new_exc);
    Py_DECREF(new_exc);
}

/* py_abs */
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject *__Pyx_PyLong_AbsNeg(PyObject *n) {
#if PY_VERSION_HEX >= 0x030C00A7
    if (likely(__Pyx_PyLong_IsCompact(n))) {
        return PyLong_FromSize_t(__Pyx_PyLong_CompactValueUnsigned(n));
    }
#else
    if (likely(Py_SIZE(n) == -1)) {
        return PyLong_FromUnsignedLong(__Pyx_PyLong_Digits(n)[0]);
    }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
    {
        PyObject *copy = _PyLong_Copy((PyLongObject*)n);
        if (likely(copy)) {
            #if PY_VERSION_HEX >= 0x030C00A7
            ((PyLongObject*)copy)->long_value.lv_tag ^= ((PyLongObject*)copy)->long_value.lv_tag & _PyLong_SIGN_MASK;
            #else
            __Pyx_SET_SIZE(copy, -Py_SIZE(copy));
            #endif
        }
        return copy;
    }
#else
    return PyNumber_Negative(n);
#endif
}
#endif

/* UnicodeConcatInPlace */
# if CYTHON_COMPILING_IN_CPYTHON
static int
__Pyx_unicode_modifiable(PyObject *unicode, int unsafe_shared)
{
    if (!__Pyx_IS_UNIQUELY_REFERENCED(unicode, unsafe_shared))
        return 0;
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030F0000
    if (PyUnstable_Unicode_GET_CACHED_HASH(unicode) != -1)
        return 0;
#endif
    if (!PyUnicode_CheckExact(unicode))
        return 0;
    if (PyUnicode_CHECK_INTERNED(unicode))
        return 0;
    return 1;
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right, int unsafe_shared
        #if CYTHON_REFNANNY
        , void* __pyx_refnanny
        #endif
    ) {
    PyObject *left = *p_left;
    Py_ssize_t left_len, right_len, new_len;
    if (unlikely(__Pyx_PyUnicode_READY(left) == -1))
        return NULL;
    if (unlikely(__Pyx_PyUnicode_READY(right) == -1))
        return NULL;
    left_len = PyUnicode_GET_LENGTH(left);
    if (left_len == 0) {
        Py_INCREF(right);
        return right;
    }
    right_len = PyUnicode_GET_LENGTH(right);
    if (right_len == 0) {
        Py_INCREF(left);
        return left;
    }
    if (unlikely(left_len > PY_SSIZE_T_MAX - right_len)) {
        PyErr_SetString(PyExc_OverflowError,
                        "strings are too large to concat");
        return NULL;
    }
    new_len = left_len + right_len;
    if (__Pyx_unicode_modifiable(left, unsafe_shared)
            && PyUnicode_CheckExact(right)
            && PyUnicode_KIND(right) <= PyUnicode_KIND(left)
            && !(PyUnicode_IS_ASCII(left) && !PyUnicode_IS_ASCII(right))) {
        int ret;
        __Pyx_GIVEREF(*p_left);
        ret = PyUnicode_Resize(p_left, new_len);
        __Pyx_GOTREF(*p_left);
        if (unlikely(ret != 0))
            return NULL;
        #if PY_VERSION_HEX >= 0x030d0000
        if (unlikely(PyUnicode_CopyCharacters(*p_left, left_len, right, 0, right_len) < 0)) return NULL;
        #else
        _PyUnicode_FastCopyCharacters(*p_left, left_len, right, 0, right_len);
        #endif
        __Pyx_INCREF(*p_left);
        __Pyx_GIVEREF(*p_left);
        return *p_left;
    } else {
        return __Pyx_PyUnicode_Concat(left, right);
    }
  }
#endif

/* PyUnicode_Unicode */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj) {
    if (unlikely(obj == Py_None))
        obj = __pyx_mstate_global->__pyx_kp_u_None;
    return __Pyx_NewRef(obj);
}

/* PyObjectCall2Args (used by CallUnboundCMethod1) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args[3] = {NULL, arg1, arg2};
    return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* CallUnboundCMethod1 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) {
    int was_initialized =  __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        int flag = cfunc->flag;
        if (flag == METH_O) {
            return __Pyx_CallCFunction(cfunc, self, arg);
        } else if (flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, &arg, 1);
        } else if (flag == (METH_FASTCALL | METH_KEYWORDS)) {
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, &arg, 1, NULL);
        }
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod1(&tmp_cfunc, self, arg);
    }
#endif
    PyObject* result = __Pyx__CallUnboundCMethod1(cfunc, self, arg);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){
    PyObject *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *args = PyTuple_New(1);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 0, arg);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
    } else
#endif
    {
        result = __Pyx_PyObject_Call2Args(cfunc->method, self, arg);
    }
    return result;
}

/* ExtTypeTest */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    __Pyx_TypeName obj_type_name;
    __Pyx_TypeName type_name;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    PyErr_Format(PyExc_TypeError,
                 "Cannot convert " __Pyx_FMT_TYPENAME " to " __Pyx_FMT_TYPENAME,
                 obj_type_name, type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
}

/* ArgTypeTestFunc (used by ArgTypeTest) */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    __Pyx_TypeName type_name;
    __Pyx_TypeName obj_type_name;
    PyObject *extra_info = __pyx_mstate_global->__pyx_empty_unicode;
    int from_annotation_subclass = 0;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (!exact) {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    } else if (exact == 2) {
        if (__Pyx_TypeCheck(obj, type)) {
            from_annotation_subclass = 1;
            extra_info = __pyx_mstate_global->__pyx_kp_u_Note_that_Cython_is_deliberately;
        }
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME
        ", got " __Pyx_FMT_TYPENAME ")"
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        "%s%U"
#endif
        , name, type_name, obj_type_name
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        , (from_annotation_subclass ? ". " : ""), extra_info
#endif
        );
#if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    if (exact == 2 && from_annotation_subclass) {
        PyObject *res;
        PyObject *vargs[2];
        vargs[0] = PyErr_GetRaisedException();
        vargs[1] = extra_info;
        res = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_kp_u_add_note, vargs, 2, NULL);
        Py_XDECREF(res);
        PyErr_SetRaisedException(vargs[0]);
    }
#endif
    __Pyx_DECREF_TypeName(type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* GetAttr */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_USE_TYPE_SLOTS
    if (likely(PyUnicode_Check(n)))
        return __Pyx_PyObject_GetAttrStr(o, n);
#endif
    return PyObject_GetAttr(o, n);
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op2);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a + b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla + llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_AddObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) + (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_AddObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_AddObjC(op1, op2, inplace);
}
#endif

/* RejectKeywords */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) {
    PyObject *key = NULL;
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) {
        key = __Pyx_PySequence_ITEM(kwds, 0);
    } else {
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *pos = NULL;
#else
        Py_ssize_t pos = 0;
#endif
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
        if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return;
#endif
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL);
#if CYTHON_AVOID_BORROWED_REFS
        Py_XDECREF(pos);
#endif
    }
    if (likely(key)) {
        PyErr_Format(PyExc_TypeError,
            "%s() got an unexpected keyword argument '%U'",
            function_name, key);
        Py_DECREF(key);
    }
}

/* pybuiltin_invalid (used by pyint_simplify) */
static void __Pyx_PyBuiltin_Invalid(PyObject *obj, const char *type_name, const char *argname) {
    __Pyx_TypeName obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    if (argname) {
        PyErr_Format(PyExc_TypeError,
            "Argument '%.200s' has incorrect type (expected %.200s, got " __Pyx_FMT_TYPENAME ")",
            argname, type_name, obj_type_name
        );
    } else {
        PyErr_Format(PyExc_TypeError,
            "Expected %.200s, got " __Pyx_FMT_TYPENAME,
            type_name, obj_type_name
        );
    }
    __Pyx_DECREF_TypeName(obj_type_name);
}

/* pyint_simplify */
static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none) {
    PyObject *number = *number_var;
    if (likely((accept_none && number == Py_None) || PyLong_CheckExact(number))) {
        return 0;
    }
    PyObject *int_object;
    if (likely(PyNumber_Check(number))) {
        int_object = PyNumber_Long(number);
        if (unlikely(!int_object)) goto bad;
    } else {
        __Pyx_PyBuiltin_Invalid(number, "int", argname);
        goto bad;
    }
    *number_var = int_object;
    Py_DECREF(number);
    return 0;
bad:
    *number_var = NULL;
    Py_DECREF(number);
    return -1;
}

/* SwapException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_value = exc_info->exc_value;
    exc_info->exc_value = *value;
    if (tmp_value == NULL || tmp_value == Py_None) {
        Py_XDECREF(tmp_value);
        tmp_value = NULL;
        tmp_type = NULL;
        tmp_tb = NULL;
    } else {
        tmp_type = (PyObject*) Py_TYPE(tmp_value);
        Py_INCREF(tmp_type);
        #if CYTHON_COMPILING_IN_CPYTHON
        tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback;
        Py_XINCREF(tmp_tb);
        #else
        tmp_tb = PyException_GetTraceback(tmp_value);
        #endif
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
  #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
  #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_RemainderObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceRemainder : PyNumber_Remainder)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_RemainderObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_remainder(op1, op2);
    }
    calculate_long:
        {
            long x = a % b;
            x += ((x != 0) & ((x ^ b) < 0)) * b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx = lla % llb;
            llx += ((llx != 0) & ((llx ^ llb) < 0)) * llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyLong_RemainderObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_RemainderObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    return __Pyx_Fallback___Pyx_PyLong_RemainderObjC(op1, op2, inplace);
}
#endif

/* PyObjectCallMethod1 (used by ByteArrayAppend) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
    PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
    Py_DECREF(method);
    return result;
}
#endif
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[2] = {obj, arg};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_Call2Args;
    return PyObject_VectorcallMethod(method_name, args, 2 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_Call2Args(method, obj, arg);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) return NULL;
    return __Pyx__PyObject_CallMethod1(method, arg);
#endif
}

/* ByteArrayAppend */
static CYTHON_INLINE int __Pyx_PyByteArray_Append(PyObject* bytearray, int value) {
    PyObject *pyval, *retval;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(__Pyx_is_valid_index(value, 256))) {
        Py_ssize_t n = Py_SIZE(bytearray);
        if (likely(n != PY_SSIZE_T_MAX)) {
            if (unlikely(PyByteArray_Resize(bytearray, n + 1) < 0))
                return -1;
            PyByteArray_AS_STRING(bytearray)[n] = (char) (unsigned char) value;
            return 0;
        }
    } else {
        PyErr_SetString(PyExc_ValueError, "byte must be in range(0, 256)");
        return -1;
    }
#endif
    pyval = PyLong_FromLong(value);
    if (unlikely(!pyval))
        return -1;
    retval = __Pyx_PyObject_CallMethod1(bytearray, __pyx_mstate_global->__pyx_n_u_append, pyval);
    Py_DECREF(pyval);
    if (unlikely(!retval))
        return -1;
    Py_DECREF(retval);
    return 0;
}

/* RaiseUnexpectedTypeError */
static int
__Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj)
{
    __Pyx_TypeName obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError, "Expected %s, got " __Pyx_FMT_TYPENAME,
                 expected, obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* WriteUnraisableException */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
    else state = (PyGILState_STATE)0;
    CYTHON_UNUSED_VAR(clineno);
    CYTHON_UNUSED_VAR(lineno);
    CYTHON_UNUSED_VAR(filename);
    CYTHON_MAYBE_UNUSED_VAR(nogil);
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(0);
    }
    ctx = PyUnicode_FromString(name);
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
    if (nogil)
        PyGILState_Release(state);
}

/* PyLongCompare */
static CYTHON_INLINE PyObject* __Pyx_PyLong_EqObjC(PyObject *op1, PyObject *op2, long intval, long inplace) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(inplace);
    if (op1 == op2) {
        Py_RETURN_TRUE;
    }
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        const digit* digits = __Pyx_PyLong_Digits(op1);
        if (intval == 0) {
            if (__Pyx_PyLong_IsZero(op1) == 1) Py_RETURN_TRUE; else Py_RETURN_FALSE;
        } else if (intval < 0) {
            if (__Pyx_PyLong_IsNonNeg(op1))
                Py_RETURN_FALSE;
            intval = -intval;
        } else {
            if (__Pyx_PyLong_IsNeg(op1))
                Py_RETURN_FALSE;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        if (unequal == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = __Pyx_PyFloat_AS_DOUBLE(op1);
        if ((double)a == (double)b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    return (
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* RaiseClosureNameError */
static void __Pyx_RaiseClosureNameError(const char *varname) {
    PyErr_Format(PyExc_NameError, "free variable '%s' referenced before assignment in enclosing scope", varname);
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return PyLong_FromLong(-intval);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a - b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla - llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_SubtractObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) - (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_SubtractObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_SubtractObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_SubtractObjC(op1, op2, inplace);
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_MultiplyCObj(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceMultiply : PyNumber_Multiply)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_MultiplyCObj(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long a = intval;
    long b;
    const PY_LONG_LONG lla = intval;
    PY_LONG_LONG llb;
    if (unlikely(__Pyx_PyLong_IsZero(op2))) {
        return __Pyx_NewRef(op2);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op2);
    const digit* digits = __Pyx_PyLong_Digits(op2);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op2);
    if (likely(size == 1)) {
        b = (long) digits[0];
        if (!is_positive) b *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT+30) {
                    b = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) b *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT+30) {
                    llb = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) llb *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT+30) {
                    b = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) b *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT+30) {
                    llb = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) llb *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT+30) {
                    b = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) b *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT+30) {
                    llb = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) llb *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_multiply(op1, op2);
    }
    calculate_long:
        CYTHON_UNUSED_VAR(a);
        CYTHON_UNUSED_VAR(b);
        llb = b;
        goto calculate_long_long;
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla * llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_MultiplyCObj(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long a = intval;
    double b = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) * (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_MultiplyCObj(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op2))) {
        return __Pyx_Unpacked___Pyx_PyLong_MultiplyCObj(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op2)) {
        return __Pyx_Float___Pyx_PyLong_MultiplyCObj(op2, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_MultiplyCObj(op1, op2, inplace);
}
#endif

/* CIntToDigits (used by CIntToPyUnicode) */
static const char DIGIT_PAIRS_10[2*10*10+1] = {
    "00010203040506070809"
    "10111213141516171819"
    "20212223242526272829"
    "30313233343536373839"
    "40414243444546474849"
    "50515253545556575859"
    "60616263646566676869"
    "70717273747576777879"
    "80818283848586878889"
    "90919293949596979899"
};
static const char DIGIT_PAIRS_8[2*8*8+1] = {
    "0001020304050607"
    "1011121314151617"
    "2021222324252627"
    "3031323334353637"
    "4041424344454647"
    "5051525354555657"
    "6061626364656667"
    "7071727374757677"
};
static const char DIGITS_HEX[2*16+1] = {
    "0123456789abcdef"
    "0123456789ABCDEF"
};

/* BuildPyUnicode (used by COrdinalToPyUnicode) */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, const char* chars, int clength,
                                                int prepend_sign, char padding_char) {
    PyObject *uval;
    Py_ssize_t uoffset = ulength - clength;
#if CYTHON_USE_UNICODE_INTERNALS
    Py_ssize_t i;
    void *udata;
    uval = PyUnicode_New(ulength, 127);
    if (unlikely(!uval)) return NULL;
    udata = PyUnicode_DATA(uval);
    if (uoffset > 0) {
        i = 0;
        if (prepend_sign) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, 0, '-');
            i++;
        }
        for (; i < uoffset; i++) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, i, padding_char);
        }
    }
    for (i=0; i < clength; i++) {
        __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, uoffset+i, chars[i]);
    }
#else
    {
        PyObject *sign = NULL, *padding = NULL;
        uval = NULL;
        if (uoffset > 0) {
            prepend_sign = !!prepend_sign;
            if (uoffset > prepend_sign) {
                padding = PyUnicode_FromOrdinal(padding_char);
                if (likely(padding) && uoffset > prepend_sign + 1) {
                    PyObject *tmp = PySequence_Repeat(padding, uoffset - prepend_sign);
                    Py_DECREF(padding);
                    padding = tmp;
                }
                if (unlikely(!padding)) goto done_or_error;
            }
            if (prepend_sign) {
                sign = PyUnicode_FromOrdinal('-');
                if (unlikely(!sign)) goto done_or_error;
            }
        }
        uval = PyUnicode_DecodeASCII(chars, clength, NULL);
        if (likely(uval) && padding) {
            PyObject *tmp = PyUnicode_Concat(padding, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
        if (likely(uval) && sign) {
            PyObject *tmp = PyUnicode_Concat(sign, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
done_or_error:
        Py_XDECREF(padding);
        Py_XDECREF(sign);
    }
#endif
    return uval;
}

/* COrdinalToPyUnicode (used by CIntToPyUnicode) */
static CYTHON_INLINE int __Pyx_CheckUnicodeValue(int value) {
    return value <= 1114111;
}
static PyObject* __Pyx_PyUnicode_FromOrdinal_Padded(int value, Py_ssize_t ulength, char padding_char) {
    Py_ssize_t padding_length = ulength - 1;
    if (likely((padding_length <= 250) && (value < 0xD800 || value > 0xDFFF))) {
        char chars[256];
        if (value <= 255) {
            memset(chars, padding_char, (size_t) padding_length);
            chars[ulength-1] = (char) value;
            return PyUnicode_DecodeLatin1(chars, ulength, NULL);
        }
        char *cpos = chars + sizeof(chars);
        if (value < 0x800) {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xc0 | (value & 0x1f));
        } else if (value < 0x10000) {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xe0 | (value & 0x0f));
        } else {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xf0 | (value & 0x07));
        }
        cpos -= padding_length;
        memset(cpos, padding_char, (size_t) padding_length);
        return PyUnicode_DecodeUTF8(cpos, chars + sizeof(chars) - cpos, NULL);
    }
    if (value <= 127 && CYTHON_USE_UNICODE_INTERNALS) {
        const char chars[1] = {(char) value};
        return __Pyx_PyUnicode_BuildFromAscii(ulength, chars, 1, 0, padding_char);
    }
    {
        PyObject *uchar, *padding_uchar, *padding, *result;
        padding_uchar = PyUnicode_FromOrdinal(padding_char);
        if (unlikely(!padding_uchar)) return NULL;
        padding = PySequence_Repeat(padding_uchar, padding_length);
        Py_DECREF(padding_uchar);
        if (unlikely(!padding)) return NULL;
        uchar = PyUnicode_FromOrdinal(value);
        if (unlikely(!uchar)) {
            Py_DECREF(padding);
            return NULL;
        }
        result = PyUnicode_Concat(padding, uchar);
        Py_DECREF(padding);
        Py_DECREF(uchar);
        return result;
    }
}

/* CIntToPyUnicode */
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_int(int value, Py_ssize_t width, char padding_char) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!(is_unsigned || value == 0 || value > 0) ||
                    !(sizeof(value) <= 2 || value & ~ (int) 0x01fffff || __Pyx_CheckUnicodeValue((int) value)))) {
        PyErr_SetString(PyExc_OverflowError, "%c arg not in range(0x110000)");
        return NULL;
    }
    if (width <= 1) {
        return PyUnicode_FromOrdinal((int) value);
    }
    return __Pyx_PyUnicode_FromOrdinal_Padded((int) value, width, padding_char);
}
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_int(int value, Py_ssize_t width, char padding_char, char format_char) {
    char digits[sizeof(int)*3+2];
    char *dpos, *end = digits + sizeof(int)*3+2;
    const char *hex_digits = DIGITS_HEX;
    Py_ssize_t length, ulength;
    int prepend_sign, last_one_off;
    int remaining;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (format_char == 'X') {
        hex_digits += 16;
        format_char = 'x';
    }
    remaining = value;
    last_one_off = 0;
    dpos = end;
    do {
        int digit_pos;
        switch (format_char) {
        case 'o':
            digit_pos = abs((int)(remaining % (8*8)));
            remaining = (int) (remaining / (8*8));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 8);
            break;
        case 'd':
            digit_pos = abs((int)(remaining % (10*10)));
            remaining = (int) (remaining / (10*10));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_10 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 10);
            break;
        case 'x':
            *(--dpos) = hex_digits[abs((int)(remaining % 16))];
            remaining = (int) (remaining / 16);
            break;
        default:
            assert(0);
            break;
        }
    } while (unlikely(remaining != 0));
    assert(!last_one_off || *dpos == '0');
    dpos += last_one_off;
    length = end - dpos;
    ulength = length;
    prepend_sign = 0;
    if (!is_unsigned && value <= neg_one) {
        if (padding_char == ' ' || width <= length + 1) {
            *(--dpos) = '-';
            ++length;
        } else {
            prepend_sign = 1;
        }
        ++ulength;
    }
    if (width > ulength) {
        ulength = width;
    }
    if (ulength == 1) {
        return PyUnicode_FromOrdinal(*dpos);
    }
    return __Pyx_PyUnicode_BuildFromAscii(ulength, dpos, (int) length, prepend_sign, padding_char);
}

/* DivInt[Py_ssize_t] */
static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t a, Py_ssize_t b, int b_is_constant) {
    Py_ssize_t q = a / b;
    Py_ssize_t r = a - q*b;
    Py_ssize_t adapt_python = (b_is_constant ?
        ((r != 0) & ((r < 0) ^ (b < 0))) :
        ((r != 0) & ((r ^ b) < 0))
    );
    return q - adapt_python;
}

/* ModInt[Py_ssize_t] */
static CYTHON_INLINE Py_ssize_t __Pyx_mod_Py_ssize_t(Py_ssize_t a, Py_ssize_t b, int b_is_constant) {
    Py_ssize_t r = a % b;
    Py_ssize_t adapt_python = (b_is_constant ?
        ((r != 0) & ((r < 0) ^ (b < 0))) :
        ((r != 0) & ((r ^ b) < 0))
    );
    return r + adapt_python * b;
}

/* append */
static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
    if (likely(PyList_CheckExact(L))) {
        if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1;
    } else {
        PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_mstate_global->__pyx_n_u_append, x);
        if (unlikely(!retval))
            return -1;
        Py_DECREF(retval);
    }
    return 0;
}

/* ImportImpl (used by Import) */
static int __Pyx__Import_GetModule(PyObject *qualname, PyObject **module) {
    PyObject *imported_module = PyImport_GetModule(qualname);
    if (unlikely(!imported_module)) {
        *module = NULL;
        if (PyErr_Occurred()) {
            return -1;
        }
        return 0;
    }
    *module = imported_module;
    return 1;
}
static int __Pyx__Import_Lookup(PyObject *qualname, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject **module) {
    PyObject *imported_module;
    PyObject *top_level_package_name;
    Py_ssize_t i;
    int status, module_found;
    Py_ssize_t dot_index;
    module_found = __Pyx__Import_GetModule(qualname, &imported_module);
    if (unlikely(!module_found || module_found == -1)) {
        *module = NULL;
        return module_found;
    }
    if (imported_names) {
        for (i = 0; i < len_imported_names; i++) {
            PyObject *imported_name = imported_names[i];
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
            int has_imported_attribute = PyObject_HasAttr(imported_module, imported_name);
#else
            int has_imported_attribute = PyObject_HasAttrWithError(imported_module, imported_name);
            if (unlikely(has_imported_attribute == -1)) goto error;
#endif
            if (!has_imported_attribute) {
                goto not_found;
            }
        }
        *module = imported_module;
        return 1;
    }
    dot_index = PyUnicode_FindChar(qualname, '.', 0, PY_SSIZE_T_MAX, 1);
    if (dot_index == -1) {
        *module = imported_module;
        return 1;
    }
    if (unlikely(dot_index == -2)) goto error;
    top_level_package_name = PyUnicode_Substring(qualname, 0, dot_index);
    if (unlikely(!top_level_package_name)) goto error;
    Py_DECREF(imported_module);
    status = __Pyx__Import_GetModule(top_level_package_name, module);
    Py_DECREF(top_level_package_name);
    return status;
error:
    Py_DECREF(imported_module);
    *module = NULL;
    return -1;
not_found:
    Py_DECREF(imported_module);
    *module = NULL;
    return 0;
}
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level) {
    PyObject *module = 0;
    PyObject *empty_dict = 0;
    PyObject *from_list = 0;
    int module_found;
    if (!qualname) {
        qualname = name;
    }
    module_found = __Pyx__Import_Lookup(qualname, imported_names, len_imported_names, &module);
    if (likely(module_found == 1)) {
        return module;
    } else if (unlikely(module_found == -1)) {
        return NULL;
    }
    empty_dict = PyDict_New();
    if (unlikely(!empty_dict))
        goto bad;
    if (imported_names) {
#if CYTHON_COMPILING_IN_CPYTHON
        from_list = __Pyx_PyList_FromArray(imported_names, len_imported_names);
        if (unlikely(!from_list))
            goto bad;
#else
        from_list = PyList_New(len_imported_names);
        if (unlikely(!from_list)) goto bad;
        for (Py_ssize_t i=0; i<len_imported_names; ++i) {
            if (PyList_SetItem(from_list, i, __Pyx_NewRef(imported_names[i])) < 0) goto bad;
        }
#endif
    }
    if (level == -1) {
        const char* package_sep = strchr(__Pyx_MODULE_NAME, '.');
        if (package_sep != (0)) {
            module = PyImport_ImportModuleLevelObject(
                name, moddict, empty_dict, from_list, 1);
            if (unlikely(!module)) {
                if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError)))
                    goto bad;
                PyErr_Clear();
            }
        }
        level = 0;
    }
    if (!module) {
        module = PyImport_ImportModuleLevelObject(
            name, moddict, empty_dict, from_list, level);
    }
bad:
    Py_XDECREF(from_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level) {
    return __Pyx__Import(name, imported_names, len_imported_names, qualname, __pyx_mstate_global->__pyx_d, level);
}

/* ImportFrom */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        const char* module_name_str = 0;
        PyObject* module_name = 0;
        PyObject* module_dot = 0;
        PyObject* full_name = 0;
        PyErr_Clear();
        module_name_str = PyModule_GetName(module);
        if (unlikely(!module_name_str)) { goto modbad; }
        module_name = PyUnicode_FromString(module_name_str);
        if (unlikely(!module_name)) { goto modbad; }
        module_dot = PyUnicode_Concat(module_name, __pyx_mstate_global->__pyx_kp_u__30);
        if (unlikely(!module_dot)) { goto modbad; }
        full_name = PyUnicode_Concat(module_dot, name);
        if (unlikely(!full_name)) { goto modbad; }
        #if (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM  < 0x07030400) ||\
                CYTHON_COMPILING_IN_GRAAL
        {
            PyObject *modules = PyImport_GetModuleDict();
            if (unlikely(!modules))
                goto modbad;
            value = PyObject_GetItem(modules, full_name);
        }
        #else
        value = PyImport_GetModule(full_name);
        #endif
      modbad:
        Py_XDECREF(full_name);
        Py_XDECREF(module_dot);
        Py_XDECREF(module_name);
    }
    if (unlikely(!value)) {
        PyErr_Format(PyExc_ImportError, "cannot import name %S", name);
    }
    return value;
}

/* pyfrozenset_new (used by py_set_discard_unhashable) */
static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it) {
    if (it) {
        PyObject* result;
#if CYTHON_COMPILING_IN_PYPY
        PyObject* args;
        args = PyTuple_Pack(1, it);
        if (unlikely(!args))
            return NULL;
        result = PyObject_Call((PyObject*)&PyFrozenSet_Type, args, NULL);
        Py_DECREF(args);
        return result;
#else
        if (PyFrozenSet_CheckExact(it)) {
            Py_INCREF(it);
            return it;
        }
        result = PyFrozenSet_New(it);
        if (unlikely(!result))
            return NULL;
        if ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
#if CYTHON_COMPILING_IN_LIMITED_API
            || __Pyx_get_runtime_version() >= 0x030A0000
#endif
            )
            return result;
        {
            Py_ssize_t size = __Pyx_PySet_GET_SIZE(result);
            if (likely(size > 0))
                return result;
#if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely(size < 0)) {
                Py_DECREF(result);
                return NULL;
            }
#endif
        }
        Py_DECREF(result);
#endif
    }
    return __Pyx_PyObject_CallNoArg((PyObject*) &PyFrozenSet_Type);
}

/* py_set_discard_unhashable (used by py_set_remove) */
static int __Pyx_PySet_DiscardUnhashable(PyObject *set, PyObject *key) {
    PyObject *tmpkey;
    int rv;
    if (likely(!PySet_Check(key) || !PyErr_ExceptionMatches(PyExc_TypeError)))
        return -1;
    PyErr_Clear();
    tmpkey = __Pyx_PyFrozenSet_New(key);
    if (tmpkey == NULL)
        return -1;
    rv = PySet_Discard(set, tmpkey);
    Py_DECREF(tmpkey);
    return rv;
}

/* py_set_remove */
static int __Pyx_PySet_RemoveNotFound(PyObject *set, PyObject *key, int found) {
    if (unlikely(found < 0)) {
        found = __Pyx_PySet_DiscardUnhashable(set, key);
    }
    if (likely(found == 0)) {
        PyObject *tup;
        tup = PyTuple_Pack(1, key);
        if (!tup)
            return -1;
        PyErr_SetObject(PyExc_KeyError, tup);
        Py_DECREF(tup);
        return -1;
    }
    return found;
}
static CYTHON_INLINE int __Pyx_PySet_Remove(PyObject *set, PyObject *key) {
    int found = PySet_Discard(set, key);
    if (unlikely(found != 1)) {
        return __Pyx_PySet_RemoveNotFound(set, key, found);
    }
    return 0;
}

/* py_dict_pop */
static CYTHON_INLINE PyObject *__Pyx_PyDict_Pop(PyObject *d, PyObject *key, PyObject *default_value) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop)
    PyObject *value;
    if (PyDict_Pop(d, key, &value) == 0) {
        if (default_value) {
            Py_INCREF(default_value);
        } else {
            PyErr_SetObject(PyExc_KeyError, key);
        }
        value = default_value;
    }
    return value;
#elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
    return _PyDict_Pop(d, key, default_value);
#else
    if (default_value) {
        return __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, d, key, default_value);
    } else {
        return __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, d, key);
    }
#endif
}

/* dict_getitem_default */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) {
    PyObject* value;
#if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (unlikely(PyErr_Occurred()))
            return NULL;
        value = default_value;
    }
    Py_INCREF(value);
    if ((1));
#else
    if (PyBytes_CheckExact(key) || PyUnicode_CheckExact(key) || PyLong_CheckExact(key)) {
        value = PyDict_GetItem(d, key);
        if (unlikely(!value)) {
            value = default_value;
        }
        Py_INCREF(value);
    }
#endif
    else {
        if (default_value == Py_None)
            value = __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_get, d, key);
        else
            value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_get, d, key, default_value);
    }
    return value;
}

/* set_iter */
static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set,
                                                  Py_ssize_t* p_orig_length, int* p_source_is_set) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
    is_set = is_set || likely(PySet_CheckExact(iterable) || PyFrozenSet_CheckExact(iterable));
    *p_source_is_set = is_set;
    if (likely(is_set)) {
        *p_orig_length = PySet_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
    }
#else
    CYTHON_UNUSED_VAR(is_set);
    *p_source_is_set = 0;
#endif
    *p_orig_length = 0;
    return PyObject_GetIter(iterable);
}
static CYTHON_INLINE int __Pyx_set_iter_next(
        PyObject* iter_obj, Py_ssize_t orig_length,
        Py_ssize_t* ppos, PyObject **value,
        int source_is_set) {
    if (!CYTHON_COMPILING_IN_CPYTHON || PY_VERSION_HEX >= 0x030d0000 || unlikely(!source_is_set)) {
        *value = PyIter_Next(iter_obj);
        if (unlikely(!*value)) {
            return __Pyx_IterFinish();
        }
        CYTHON_UNUSED_VAR(orig_length);
        CYTHON_UNUSED_VAR(ppos);
        return 1;
    }
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
    if (unlikely(PySet_GET_SIZE(iter_obj) != orig_length)) {
        PyErr_SetString(
            PyExc_RuntimeError,
            "set changed size during iteration");
        return -1;
    }
    {
        Py_hash_t hash;
        int ret = _PySet_NextEntry(iter_obj, ppos, value, &hash);
        assert (ret != -1);
        if (likely(ret)) {
            Py_INCREF(*value);
            return 1;
        }
    }
#endif
    return 0;
}

/* PySetContains */
static int __Pyx_PySet_ContainsUnhashable(PyObject *set, PyObject *key) {
    int result = -1;
    if (PySet_Check(key) && PyErr_ExceptionMatches(PyExc_TypeError)) {
        PyObject *tmpkey;
        PyErr_Clear();
        tmpkey = __Pyx_PyFrozenSet_New(key);
        if (tmpkey != NULL) {
            result = PySet_Contains(set, tmpkey);
            Py_DECREF(tmpkey);
        }
    }
    return result;
}
static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq) {
    int result = PySet_Contains(set, key);
    if (unlikely(result < 0)) {
        result = __Pyx_PySet_ContainsUnhashable(set, key);
    }
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* GetAttr3 */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    int res = PyObject_GetOptionalAttr(o, n, &r);
    return (res != 0) ? r : __Pyx_NewRef(d);
#else
  #if CYTHON_USE_TYPE_SLOTS
    if (likely(PyUnicode_Check(n))) {
        r = __Pyx_PyObject_GetAttrStrNoError(o, n);
        if (unlikely(!r) && likely(!PyErr_Occurred())) {
            r = __Pyx_NewRef(d);
        }
        return r;
    }
  #endif
    r = PyObject_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
#endif
}

/* pop */
static CYTHON_INLINE PyObject* __Pyx__PyObject_Pop(PyObject* L) {
    if (__Pyx_IS_TYPE(L, &PySet_Type)) {
        return PySet_Pop(L);
    }
    return __Pyx_PyObject_CallMethod0(L, __pyx_mstate_global->__pyx_n_u_pop);
}
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE PyObject* __Pyx_PyList_Pop(PyObject* L) {
    if (likely(PyList_GET_SIZE(L) > (((PyListObject*)L)->allocated >> 1))) {
        __Pyx_SET_SIZE(L, Py_SIZE(L) - 1);
        return PyList_GET_ITEM(L, PyList_GET_SIZE(L));
    }
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyList_Type_pop, L);
}
#endif

/* UnicodeAsUCS4 (used by object_ord) */
static void __Pyx_PyUnicode_AsPy_UCS4_error(Py_ssize_t length) {
    if (likely(length >= 0)) {
        PyErr_Format(PyExc_ValueError,
                     "only single character unicode strings can be converted to Py_UCS4, "
                     "got length %" CYTHON_FORMAT_SSIZE_T "d", length);
    }
}
static CYTHON_INLINE Py_UCS4 __Pyx_PyUnicode_AsPy_UCS4(PyObject* x) {
    Py_ssize_t length = __Pyx_PyUnicode_GET_LENGTH(x);
    if (unlikely(length != 1)) {
        __Pyx_PyUnicode_AsPy_UCS4_error(length);
        return (Py_UCS4)-1;
    }
    return __Pyx_PyUnicode_READ_CHAR(x, 0);
}

/* object_ord */
static long __Pyx__PyObject_Ord(PyObject* c) {
    Py_ssize_t size;
    if (PyBytes_Check(c)) {
        size = __Pyx_PyBytes_GET_SIZE(c);
        if (likely(size == 1)) {
#if CYTHON_ASSUME_SAFE_MACROS
            return (unsigned char) PyBytes_AS_STRING(c)[0];
#else
            char *data = PyBytes_AsString(c);
            if (unlikely(!data)) return -1;
            return (unsigned char) data[0];
#endif
        }
#if !CYTHON_ASSUME_SAFE_SIZE
        else if (unlikely(size < 0)) return -1;
#endif
    } else if (PyByteArray_Check(c)) {
        size = __Pyx_PyByteArray_GET_SIZE(c);
        if (likely(size == 1)) {
#if CYTHON_ASSUME_SAFE_MACROS
            return (unsigned char) PyByteArray_AS_STRING(c)[0];
#else
            char *data = PyByteArray_AsString(c);
            if (unlikely(!data)) return -1;
            return (unsigned char) data[0];
#endif
        }
#if !CYTHON_ASSUME_SAFE_SIZE
        else if (unlikely(size < 0)) return -1;
#endif
    } else {
        __Pyx_TypeName c_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(c));
        PyErr_Format(PyExc_TypeError,
            "ord() expected string of length 1, but " __Pyx_FMT_TYPENAME " found",
            c_type_name);
        __Pyx_DECREF_TypeName(c_type_name);
        return (long)(Py_UCS4)-1;
    }
    PyErr_Format(PyExc_TypeError,
        "ord() expected a character, but string of length %zd found", size);
    return (long)(Py_UCS4)-1;
}

/* pop_index */
static PyObject* __Pyx__PyObject_PopNewIndex(PyObject* L, PyObject* py_ix) {
    PyObject *r;
    if (unlikely(!py_ix)) return NULL;
    r = __Pyx__PyObject_PopIndex(L, py_ix);
    Py_DECREF(py_ix);
    return r;
}
static PyObject* __Pyx__PyObject_PopIndex(PyObject* L, PyObject* py_ix) {
    return __Pyx_PyObject_CallMethod1(L, __pyx_mstate_global->__pyx_n_u_pop, py_ix);
}
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t ix) {
    Py_ssize_t size = PyList_GET_SIZE(L);
    if (likely(size > (((PyListObject*)L)->allocated >> 1))) {
        Py_ssize_t cix = ix;
        if (cix < 0) {
            cix += size;
        }
        if (likely(__Pyx_is_valid_index(cix, size))) {
            PyObject* v = PyList_GET_ITEM(L, cix);
            __Pyx_SET_SIZE(L, Py_SIZE(L) - 1);
            size -= 1;
            memmove(&PyList_GET_ITEM(L, cix), &PyList_GET_ITEM(L, cix+1), (size_t)(size-cix)*sizeof(PyObject*));
            return v;
        }
    }
    if (py_ix == Py_None) {
        return __Pyx__PyObject_PopNewIndex(L, PyLong_FromSsize_t(ix));
    } else {
        return __Pyx__PyObject_PopIndex(L, py_ix);
    }
}
#endif

/* SliceTupleAndList */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_crop_slice(Py_ssize_t* _start, Py_ssize_t* _stop, Py_ssize_t* _length) {
    Py_ssize_t start = *_start, stop = *_stop, length = *_length;
    if (start < 0) {
        start += length;
        if (start < 0)
            start = 0;
    }
    if (stop < 0)
        stop += length;
    else if (stop > length)
        stop = length;
    *_length = stop - start;
    *_start = start;
    *_stop = stop;
}
static CYTHON_INLINE PyObject* __Pyx_PyTuple_GetSlice(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length = PyTuple_GET_SIZE(src);
    __Pyx_crop_slice(&start, &stop, &length);
    return __Pyx_PyTuple_FromArray(((PyTupleObject*)src)->ob_item + start, length);
}
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice_locked(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length = PyList_GET_SIZE(src);
    __Pyx_crop_slice(&start, &stop, &length);
    if (length <= 0) {
        return PyList_New(0);
    }
    return __Pyx_PyList_FromArray(((PyListObject*)src)->ob_item + start, length);
}
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(src);
    result = __Pyx_PyList_GetSlice_locked(src, start, stop);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
#endif // CYTHON_COMPILING_IN_CPYTHON

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_AddCObj(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_AddCObj(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long a = intval;
    long b;
    const PY_LONG_LONG lla = intval;
    PY_LONG_LONG llb;
    if (unlikely(__Pyx_PyLong_IsZero(op2))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op2);
    const digit* digits = __Pyx_PyLong_Digits(op2);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op2);
    if (likely(size == 1)) {
        b = (long) digits[0];
        if (!is_positive) b *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    b = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) b *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    llb = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) llb *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    b = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) b *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    llb = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) llb *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    b = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) b *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    llb = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) llb *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a + b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla + llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_AddCObj(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long a = intval;
    double b = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) + (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddCObj(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op2))) {
        return __Pyx_Unpacked___Pyx_PyLong_AddCObj(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op2)) {
        return __Pyx_Float___Pyx_PyLong_AddCObj(op2, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_AddCObj(op1, op2, inplace);
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_FloorDivideObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceFloorDivide : PyNumber_FloorDivide)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_FloorDivideObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_floor_divide(op1, op2);
    }
    calculate_long:
        {
            long q, r;
            q = a / b;
            r = a - q*b;
            q -= ((r != 0) & ((r ^ b) < 0));
            return PyLong_FromLong(q);
        }
    calculate_long_long:
        {
            PY_LONG_LONG q, r;
            q = lla / llb;
            r = lla - q*llb;
            q -= ((r != 0) & ((r ^ llb) < 0));
            return PyLong_FromLongLong(q);
        }
    
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyLong_FloorDivideObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_FloorDivideObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    return __Pyx_Fallback___Pyx_PyLong_FloorDivideObjC(op1, op2, inplace);
}
#endif

/* PyObjectLookupSpecial */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error) {
    PyObject *res;
    PyTypeObject *tp = Py_TYPE(obj);
    res = _PyType_Lookup(tp, attr_name);
    if (likely(res)) {
        descrgetfunc f = Py_TYPE(res)->tp_descr_get;
        if (!f) {
            Py_INCREF(res);
        } else {
            res = f(res, obj, (PyObject *)tp);
        }
    } else if (with_error) {
        PyErr_SetObject(PyExc_AttributeError, attr_name);
    }
    return res;
}
#endif

/* SetStringIndexingError (used by GetItemIntByteArray) */
static void __Pyx_SetStringIndexingError(const char* message, int has_gil) {
    if (!has_gil) {
        PyGILState_STATE gil_state = PyGILState_Ensure();
        PyErr_SetString(PyExc_IndexError, message);
        PyGILState_Release(gil_state);
    } else
        PyErr_SetString(PyExc_IndexError, message);
}

/* GetItemIntByteArray */
static CYTHON_INLINE int __Pyx_GetItemInt_ByteArray_Fast_Locked(PyObject* string, Py_ssize_t i,
                                                                int wraparound, int boundscheck, int has_gil) {
    Py_ssize_t length = __Pyx_PyByteArray_GET_SIZE(string);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(length < 0)) return -1;
    #endif
    if (wraparound & unlikely(i < 0)) i += length;
    if ((!boundscheck) || likely(__Pyx_is_valid_index(i, length))) {
        #if !CYTHON_ASSUME_SAFE_MACROS
        char *asString = PyByteArray_AsString(string);
        return likely(asString) ? (unsigned char) asString[i] : -1;
        #else
        return (unsigned char) (PyByteArray_AS_STRING(string)[i]);
        #endif
    } else {
        __Pyx_SetStringIndexingError("bytearray index out of range", has_gil);
        return -1;
    }
}
static CYTHON_INLINE int __Pyx_GetItemInt_ByteArray_Fast(PyObject* string, Py_ssize_t i,
                                                         int wraparound, int boundscheck, int has_gil, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    wraparound = wraparound && i<0;
#endif
    if (wraparound | boundscheck) {
        int result;
        __Pyx_PyCriticalSection cs;
        int lock = CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && has_gil && !__Pyx_IS_UNIQUELY_REFERENCED(string, unsafe_shared);
        if (lock) { __Pyx_PyCriticalSection_Begin(&cs, string); }
        result = __Pyx_GetItemInt_ByteArray_Fast_Locked(string, i, wraparound, boundscheck, has_gil);
        if (lock) { __Pyx_PyCriticalSection_End(&cs); }
        return result;
    } else {
        #if !CYTHON_ASSUME_SAFE_MACROS
        char *asString = PyByteArray_AsString(string);
        return likely(asString) ? (unsigned char) asString[i] : -1;
        #else
        return (unsigned char) (PyByteArray_AS_STRING(string)[i]);
        #endif
    }
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_RshiftObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceRshift : PyNumber_Rshift)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_RshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
#if (defined(__cplusplus) && __cplusplus >= 202002L)\
        || (defined(__GNUC__) || (defined(__clang__))) &&\
            (defined(__arm__) || defined(__x86_64__) || defined(__i386__))\
        || (defined(_MSC_VER) &&\
            (defined(_M_ARM) || defined(_M_AMD64) || defined(_M_IX86)))
    const int negative_shift_works = 1;
#else
    const int negative_shift_works = 0;
#endif
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_rshift(op1, op2);
    }
    calculate_long:
        if ((!negative_shift_works) && unlikely(a < 0)) goto fallback;
        {
            long x;
            if (unlikely(b >= (long) (sizeof(long)*8))) {
                x = (a < 0) ? -1 : 0;
            } else
            x = a >> b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        if ((!negative_shift_works) && unlikely(lla < 0)) goto fallback;
        {
            PY_LONG_LONG llx;
            if (unlikely(llb >= (long long) (sizeof(long long)*8))) {
                llx = (lla < 0) ? -1 : 0;
            } else
            llx = lla >> llb;
            return PyLong_FromLongLong(llx);
        }
    fallback:
        return __Pyx_Fallback___Pyx_PyLong_RshiftObjC(op1, op2, inplace);
    
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyLong_RshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_RshiftObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    return __Pyx_Fallback___Pyx_PyLong_RshiftObjC(op1, op2, inplace);
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_AndObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceAnd : PyNumber_And)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_AndObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    if ((intval & PyLong_MASK) == intval) {
        long last_digit = (long) __Pyx_PyLong_Digits(op1)[0];
        long result = intval & (likely(is_positive) ? last_digit : (PyLong_MASK - last_digit + 1));
        return PyLong_FromLong(result);
    }
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_and(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a & b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla & llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyLong_AndObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_AndObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    return __Pyx_Fallback___Pyx_PyLong_AndObjC(op1, op2, inplace);
}
#endif

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_LshiftObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceLshift : PyNumber_Lshift)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
#if __clang__ || __GNUC__
__attribute__((no_sanitize("shift")))
#endif
static PyObject* __Pyx_Unpacked___Pyx_PyLong_LshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
#if (defined(__cplusplus) && __cplusplus >= 202002L)\
        || (defined(__GNUC__) || (defined(__clang__))) &&\
            (defined(__arm__) || defined(__x86_64__) || defined(__i386__))\
        || (defined(_MSC_VER) &&\
            (defined(_M_ARM) || defined(_M_AMD64) || defined(_M_IX86)))
    const int negative_shift_works = 1;
#else
    const int negative_shift_works = 0;
#endif
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_lshift(op1, op2);
    }
    calculate_long:
        if ((!negative_shift_works) && unlikely(a < 0)) goto fallback;
        {
            long x;
            x = a << b;
            if (unlikely(!(b < (long) (sizeof(long)*8) && a == x >> b)) && a) {
                lla = a;
                goto calculate_long_long;
            }
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla << llb;
            if (unlikely(lla != llx >> llb)) goto fallback;
            return PyLong_FromLongLong(llx);
        }
    fallback:
        return __Pyx_Fallback___Pyx_PyLong_LshiftObjC(op1, op2, inplace);
    
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyLong_LshiftObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_LshiftObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    return __Pyx_Fallback___Pyx_PyLong_LshiftObjC(op1, op2, inplace);
}
#endif

/* PySequenceMultiply */
#if CYTHON_USE_TYPE_SLOTS
static PyObject* __Pyx_PySequence_Multiply_Generic(PyObject *seq, Py_ssize_t mul) {
    PyObject *result, *pymul = PyLong_FromSsize_t(mul);
    if (unlikely(!pymul))
        return NULL;
    result = PyNumber_Multiply(seq, pymul);
    Py_DECREF(pymul);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PySequence_Multiply(PyObject *seq, Py_ssize_t mul) {
    PyTypeObject *type = Py_TYPE(seq);
    if (likely(type->tp_as_sequence && type->tp_as_sequence->sq_repeat)) {
        return type->tp_as_sequence->sq_repeat(seq, mul);
    } else {
        return __Pyx_PySequence_Multiply_Generic(seq, mul);
    }
}
#endif

/* CIntToPyUnicode */
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_long(long value, Py_ssize_t width, char padding_char) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!(is_unsigned || value == 0 || value > 0) ||
                    !(sizeof(value) <= 2 || value & ~ (long) 0x01fffff || __Pyx_CheckUnicodeValue((int) value)))) {
        PyErr_SetString(PyExc_OverflowError, "%c arg not in range(0x110000)");
        return NULL;
    }
    if (width <= 1) {
        return PyUnicode_FromOrdinal((int) value);
    }
    return __Pyx_PyUnicode_FromOrdinal_Padded((int) value, width, padding_char);
}
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_long(long value, Py_ssize_t width, char padding_char, char format_char) {
    char digits[sizeof(long)*3+2];
    char *dpos, *end = digits + sizeof(long)*3+2;
    const char *hex_digits = DIGITS_HEX;
    Py_ssize_t length, ulength;
    int prepend_sign, last_one_off;
    long remaining;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (format_char == 'X') {
        hex_digits += 16;
        format_char = 'x';
    }
    remaining = value;
    last_one_off = 0;
    dpos = end;
    do {
        int digit_pos;
        switch (format_char) {
        case 'o':
            digit_pos = abs((int)(remaining % (8*8)));
            remaining = (long) (remaining / (8*8));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 8);
            break;
        case 'd':
            digit_pos = abs((int)(remaining % (10*10)));
            remaining = (long) (remaining / (10*10));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_10 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 10);
            break;
        case 'x':
            *(--dpos) = hex_digits[abs((int)(remaining % 16))];
            remaining = (long) (remaining / 16);
            break;
        default:
            assert(0);
            break;
        }
    } while (unlikely(remaining != 0));
    assert(!last_one_off || *dpos == '0');
    dpos += last_one_off;
    length = end - dpos;
    ulength = length;
    prepend_sign = 0;
    if (!is_unsigned && value <= neg_one) {
        if (padding_char == ' ' || width <= length + 1) {
            *(--dpos) = '-';
            ++length;
        } else {
            prepend_sign = 1;
        }
        ++ulength;
    }
    if (width > ulength) {
        ulength = width;
    }
    if (ulength == 1) {
        return PyUnicode_FromOrdinal(*dpos);
    }
    return __Pyx_PyUnicode_BuildFromAscii(ulength, dpos, (int) length, prepend_sign, padding_char);
}

/* AllocateExtensionType */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final) {
    if (is_final || likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
        allocfunc alloc_func = __Pyx_PyType_GetSlot(t, tp_alloc, allocfunc);
        return alloc_func(t, 0);
    } else {
        newfunc tp_new = __Pyx_PyType_TryGetSlot(&PyBaseObject_Type, tp_new, newfunc);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (!tp_new) {
            PyObject *new_str = PyUnicode_FromString("__new__");
            if (likely(new_str)) {
                PyObject *o = PyObject_CallMethodObjArgs((PyObject *)&PyBaseObject_Type, new_str, t, NULL);
                Py_DECREF(new_str);
                return o;
            } else
                return NULL;
        } else
    #endif
        return tp_new(t, __pyx_mstate_global->__pyx_empty_tuple, 0);
    }
}

/* ValidateBasesTuple (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) {
    Py_ssize_t i, n;
#if CYTHON_ASSUME_SAFE_SIZE
    n = PyTuple_GET_SIZE(bases);
#else
    n = PyTuple_Size(bases);
    if (unlikely(n < 0)) return -1;
#endif
    for (i = 1; i < n; i++)
    {
        PyTypeObject *b;
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *b0 = PySequence_GetItem(bases, i);
        if (!b0) return -1;
#elif CYTHON_ASSUME_SAFE_MACROS
        PyObject *b0 = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *b0 = PyTuple_GetItem(bases, i);
        if (!b0) return -1;
#endif
        b = (PyTypeObject*) b0;
        if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE))
        {
            __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
            PyErr_Format(PyExc_TypeError,
                "base class '" __Pyx_FMT_TYPENAME "' is not a heap type", b_name);
            __Pyx_DECREF_TypeName(b_name);
#if CYTHON_AVOID_BORROWED_REFS
            Py_DECREF(b0);
#endif
            return -1;
        }
        if (dictoffset == 0)
        {
            Py_ssize_t b_dictoffset = 0;
#if CYTHON_USE_TYPE_SLOTS
            b_dictoffset = b->tp_dictoffset;
#else
            PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__");
            if (!py_b_dictoffset) goto dictoffset_return;
            b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset);
            Py_DECREF(py_b_dictoffset);
            if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return;
#endif
            if (b_dictoffset) {
                {
                    __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
                    PyErr_Format(PyExc_TypeError,
                        "extension type '%.200s' has no __dict__ slot, "
                        "but base type '" __Pyx_FMT_TYPENAME "' has: "
                        "either add 'cdef dict __dict__' to the extension type "
                        "or add '__slots__ = [...]' to the base type",
                        type_name, b_name);
                    __Pyx_DECREF_TypeName(b_name);
                }
#if !CYTHON_USE_TYPE_SLOTS
              dictoffset_return:
#endif
#if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(b0);
#endif
                return -1;
            }
        }
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(b0);
#endif
    }
    return 0;
}
#endif

/* PyType_Ready */
CYTHON_UNUSED static int __Pyx_PyType_HasMultipleInheritance(PyTypeObject *t) {
    while (t) {
        PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
        if (bases) {
            return 1;
        }
        t = __Pyx_PyType_GetSlot(t, tp_base, PyTypeObject*);
    }
    return 0;
}
static int __Pyx_PyType_Ready(PyTypeObject *t) {
#if CYTHON_USE_TYPE_SPECS || !CYTHON_COMPILING_IN_CPYTHON || defined(PYSTON_MAJOR_VERSION)
    (void)__Pyx_PyObject_CallMethod0;
#if CYTHON_USE_TYPE_SPECS
    (void)__Pyx_validate_bases_tuple;
#endif
    return PyType_Ready(t);
#else
    int r;
    if (!__Pyx_PyType_HasMultipleInheritance(t)) {
        return PyType_Ready(t);
    }
    PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
    if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1))
        return -1;
#if !defined(PYSTON_MAJOR_VERSION)
    {
        int gc_was_enabled;
    #if PY_VERSION_HEX >= 0x030A00b1
        gc_was_enabled = PyGC_Disable();
        (void)__Pyx_PyObject_CallMethod0;
    #else
        PyObject *ret, *py_status;
        PyObject *gc = NULL;
        #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) &&\
                !CYTHON_COMPILING_IN_GRAAL
        gc = PyImport_GetModule(__pyx_mstate_global->__pyx_kp_u_gc);
        #endif
        if (unlikely(!gc)) gc = PyImport_Import(__pyx_mstate_global->__pyx_kp_u_gc);
        if (unlikely(!gc)) return -1;
        py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_isenabled);
        if (unlikely(!py_status)) {
            Py_DECREF(gc);
            return -1;
        }
        gc_was_enabled = __Pyx_PyObject_IsTrue(py_status);
        Py_DECREF(py_status);
        if (gc_was_enabled > 0) {
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_disable);
            if (unlikely(!ret)) {
                Py_DECREF(gc);
                return -1;
            }
            Py_DECREF(ret);
        } else if (unlikely(gc_was_enabled == -1)) {
            Py_DECREF(gc);
            return -1;
        }
    #endif
        t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#if PY_VERSION_HEX >= 0x030A0000
        t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE;
#endif
#else
        (void)__Pyx_PyObject_CallMethod0;
#endif
    r = PyType_Ready(t);
#if !defined(PYSTON_MAJOR_VERSION)
        t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
    #if PY_VERSION_HEX >= 0x030A00b1
        if (gc_was_enabled)
            PyGC_Enable();
    #else
        if (gc_was_enabled) {
            PyObject *tp, *v, *tb;
            PyErr_Fetch(&tp, &v, &tb);
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_enable);
            if (likely(ret || r == -1)) {
                Py_XDECREF(ret);
                PyErr_Restore(tp, v, tb);
            } else {
                Py_XDECREF(tp);
                Py_XDECREF(v);
                Py_XDECREF(tb);
                r = -1;
            }
        }
        Py_DECREF(gc);
    #endif
    }
#endif
    return r;
#endif
}

/* SetVTable */
static int __Pyx_SetVtable(PyTypeObject *type, void *vtable) {
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
    if (unlikely(!ob))
        goto bad;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(PyObject_SetAttr((PyObject *) type, __pyx_mstate_global->__pyx_n_u_pyx_vtable, ob) < 0))
#else
    if (unlikely(PyDict_SetItem(type->tp_dict, __pyx_mstate_global->__pyx_n_u_pyx_vtable, ob) < 0))
#endif
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* GetVTable (used by MergeVTables) */
static void* __Pyx_GetVtable(PyTypeObject *type) {
    void* ptr;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *ob = PyObject_GetAttr((PyObject *)type, __pyx_mstate_global->__pyx_n_u_pyx_vtable);
#else
    PyObject *ob = PyObject_GetItem(type->tp_dict, __pyx_mstate_global->__pyx_n_u_pyx_vtable);
#endif
    if (!ob)
        goto bad;
    ptr = PyCapsule_GetPointer(ob, 0);
    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;
}

/* MergeVTables */
static int __Pyx_MergeVtables(PyTypeObject *type) {
    int i=0;
    Py_ssize_t size;
    void** base_vtables;
    __Pyx_TypeName tp_base_name = NULL;
    __Pyx_TypeName base_name = NULL;
    void* unknown = (void*)-1;
    PyObject* bases = __Pyx_PyType_GetSlot(type, tp_bases, PyObject*);
    int base_depth = 0;
    {
        PyTypeObject* base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
        while (base) {
            base_depth += 1;
            base = __Pyx_PyType_GetSlot(base, tp_base, PyTypeObject*);
        }
    }
    base_vtables = (void**) PyMem_Malloc(sizeof(void*) * (size_t)(base_depth + 1));
    base_vtables[0] = unknown;
#if CYTHON_COMPILING_IN_LIMITED_API
    size = PyTuple_Size(bases);
    if (size < 0) goto other_failure;
#else
    size = PyTuple_GET_SIZE(bases);
#endif
    for (i = 1; i < size; i++) {
        PyObject *basei;
        void* base_vtable;
#if CYTHON_AVOID_BORROWED_REFS
        basei = PySequence_GetItem(bases, i);
        if (unlikely(!basei)) goto other_failure;
#elif !CYTHON_ASSUME_SAFE_MACROS
        basei = PyTuple_GetItem(bases, i);
        if (unlikely(!basei)) goto other_failure;
#else
        basei = PyTuple_GET_ITEM(bases, i);
#endif
        base_vtable = __Pyx_GetVtable((PyTypeObject*)basei);
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(basei);
#endif
        if (base_vtable != NULL) {
            int j;
            PyTypeObject* base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
            for (j = 0; j < base_depth; j++) {
                if (base_vtables[j] == unknown) {
                    base_vtables[j] = __Pyx_GetVtable(base);
                    base_vtables[j + 1] = unknown;
                }
                if (base_vtables[j] == base_vtable) {
                    break;
                } else if (base_vtables[j] == NULL) {
                    goto bad;
                }
                base = __Pyx_PyType_GetSlot(base, tp_base, PyTypeObject*);
            }
        }
    }
    PyErr_Clear();
    PyMem_Free(base_vtables);
    return 0;
bad:
    {
        PyTypeObject* basei = NULL;
        PyTypeObject* tp_base = __Pyx_PyType_GetSlot(type, tp_base, PyTypeObject*);
        tp_base_name = __Pyx_PyType_GetFullyQualifiedName(tp_base);
#if CYTHON_AVOID_BORROWED_REFS
        basei = (PyTypeObject*)PySequence_GetItem(bases, i);
        if (unlikely(!basei)) goto really_bad;
#elif !CYTHON_ASSUME_SAFE_MACROS
        basei = (PyTypeObject*)PyTuple_GetItem(bases, i);
        if (unlikely(!basei)) goto really_bad;
#else
        basei = (PyTypeObject*)PyTuple_GET_ITEM(bases, i);
#endif
        base_name = __Pyx_PyType_GetFullyQualifiedName(basei);
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(basei);
#endif
    }
    PyErr_Format(PyExc_TypeError,
        "multiple bases have vtable conflict: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'", tp_base_name, base_name);
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
really_bad: // bad has failed!
#endif
    __Pyx_DECREF_TypeName(tp_base_name);
    __Pyx_DECREF_TypeName(base_name);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
other_failure:
#endif
    PyMem_Free(base_vtables);
    return -1;
}

/* DelItemOnTypeDict (used by SetupReduce) */
static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_DelItem(tp_dict, k);
    if (likely(!result)) PyType_Modified(tp);
    return result;
}

/* SetupReduce */
static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStrNoError(meth, __pyx_mstate_global->__pyx_n_u_name_2);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_getstate = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
    PyObject *getstate = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_getstate);
#else
    getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_getstate);
    if (!getstate && PyErr_Occurred()) {
        goto __PYX_BAD;
    }
#endif
    if (getstate) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_getstate);
#else
        object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_getstate);
        if (!object_getstate && PyErr_Occurred()) {
            goto __PYX_BAD;
        }
#endif
        if (object_getstate != getstate) {
            goto __PYX_GOOD;
        }
    }
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_mstate_global->__pyx_n_u_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_mstate_global->__pyx_n_u_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_mstate_global->__pyx_n_u_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_mstate_global->__pyx_n_u_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_reduce_cython);
            if (likely(reduce_cython)) {
                ret = __Pyx_SetItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = __Pyx_DelItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            } else if (reduce == object_reduce || PyErr_Occurred()) {
                goto __PYX_BAD;
            }
            setstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_mstate_global->__pyx_n_u_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_mstate_global->__pyx_n_u_setstate_cython);
                if (likely(setstate_cython)) {
                    ret = __Pyx_SetItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                    ret = __Pyx_DelItemOnTypeDict((PyTypeObject*)type_obj, __pyx_mstate_global->__pyx_n_u_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                } else if (!setstate || PyErr_Occurred()) {
                    goto __PYX_BAD;
                }
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred()) {
        __Pyx_TypeName type_obj_name =
            __Pyx_PyType_GetFullyQualifiedName((PyTypeObject*)type_obj);
        PyErr_Format(PyExc_RuntimeError,
            "Unable to initialize pickling for " __Pyx_FMT_TYPENAME, type_obj_name);
        __Pyx_DECREF_TypeName(type_obj_name);
    }
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
    Py_XDECREF(object_getstate);
    Py_XDECREF(getstate);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* Py3UpdateBases */
static PyObject*
__Pyx_PEP560_update_bases(PyObject *bases)
{
    Py_ssize_t i, j, size_bases;
    PyObject *base = NULL, *meth, *new_base, *result, *new_bases = NULL;
#if CYTHON_ASSUME_SAFE_SIZE
    size_bases = PyTuple_GET_SIZE(bases);
#else
    size_bases = PyTuple_Size(bases);
    if (size_bases < 0) return NULL;
#endif
    for (i = 0; i < size_bases; i++) {
#if CYTHON_AVOID_BORROWED_REFS
        Py_CLEAR(base);
#endif
#if CYTHON_ASSUME_SAFE_MACROS
        base = PyTuple_GET_ITEM(bases, i);
#else
        base = PyTuple_GetItem(bases, i);
        if (!base) goto error;
#endif
#if CYTHON_AVOID_BORROWED_REFS
        Py_INCREF(base);
#endif
        if (PyType_Check(base)) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        meth = __Pyx_PyObject_GetAttrStrNoError(base, __pyx_mstate_global->__pyx_n_u_mro_entries);
        if (!meth && PyErr_Occurred()) {
            goto error;
        }
        if (!meth) {
            if (new_bases) {
                if (PyList_Append(new_bases, base) < 0) {
                    goto error;
                }
            }
            continue;
        }
        new_base = __Pyx_PyObject_CallOneArg(meth, bases);
        Py_DECREF(meth);
        if (!new_base) {
            goto error;
        }
        if (!PyTuple_Check(new_base)) {
            PyErr_SetString(PyExc_TypeError,
                            "__mro_entries__ must return a tuple");
            Py_DECREF(new_base);
            goto error;
        }
        if (!new_bases) {
            if (!(new_bases = PyList_New(i))) {
                goto error;
            }
            for (j = 0; j < i; j++) {
                PyObject *base_from_list;
#if CYTHON_ASSUME_SAFE_MACROS
                base_from_list = PyTuple_GET_ITEM(bases, j);
                PyList_SET_ITEM(new_bases, j, base_from_list);
                Py_INCREF(base_from_list);
#else
                base_from_list = PyTuple_GetItem(bases, j);
                if (!base_from_list) goto error;
                Py_INCREF(base_from_list);
                if (PyList_SetItem(new_bases, j, base_from_list) < 0) goto error;
#endif
            }
        }
#if CYTHON_ASSUME_SAFE_SIZE
        j = PyList_GET_SIZE(new_bases);
#else
        j = PyList_Size(new_bases);
        if (j < 0) goto error;
#endif
        if (PyList_SetSlice(new_bases, j, j, new_base) < 0) {
            goto error;
        }
        Py_DECREF(new_base);
    }
    if (!new_bases) {
        Py_INCREF(bases);
        return bases;
    }
    result = PyList_AsTuple(new_bases);
    Py_DECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return result;
error:
    Py_XDECREF(new_bases);
#if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(base);
#endif
    return NULL;
}

/* CalculateMetaclass */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases;
#if CYTHON_ASSUME_SAFE_SIZE
    nbases = PyTuple_GET_SIZE(bases);
#else
    nbases = PyTuple_Size(bases);
    if (nbases < 0) return NULL;
#endif
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
#if CYTHON_ASSUME_SAFE_MACROS
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *tmp = PyTuple_GetItem(bases, i);
        if (!tmp) return NULL;
#endif
        tmptype = Py_TYPE(tmp);
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
        metaclass = &PyType_Type;
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

/* Py3ClassCreate */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
    PyObject *ns;
    if (metaclass) {
        PyObject *prep = __Pyx_PyObject_GetAttrStrNoError(metaclass, __pyx_mstate_global->__pyx_n_u_prepare);
        if (prep) {
            PyObject *pargs[3] = {NULL, name, bases};
            ns = __Pyx_PyObject_FastCallDict(prep, pargs+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
            Py_DECREF(prep);
        } else {
            if (unlikely(PyErr_Occurred()))
                return NULL;
            ns = PyDict_New();
        }
    } else {
        ns = PyDict_New();
    }
    if (unlikely(!ns))
        return NULL;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_module, modname) < 0)) goto bad;
    if (unlikely(PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_qualname, qualname) < 0)) goto bad;
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_mstate_global->__pyx_n_u_doc, doc) < 0)) goto bad;
    return ns;
bad:
    Py_DECREF(ns);
    return NULL;
}
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
                                      PyObject *dict, PyObject *mkw,
                                      int calculate_metaclass, int allow_py2_metaclass) {
    PyObject *result;
    PyObject *owned_metaclass = NULL;
    PyObject *margs[4] = {NULL, name, bases, dict};
    if (allow_py2_metaclass) {
        owned_metaclass = PyObject_GetItem(dict, __pyx_mstate_global->__pyx_n_u_metaclass);
        if (owned_metaclass) {
            metaclass = owned_metaclass;
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
            PyErr_Clear();
        } else {
            return NULL;
        }
    }
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
        Py_XDECREF(owned_metaclass);
        if (unlikely(!metaclass))
            return NULL;
        owned_metaclass = metaclass;
    }
    result = __Pyx_PyObject_FastCallDict(metaclass, margs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
    Py_XDECREF(owned_metaclass);
    return result;
}

/* ListPack */
static PyObject *__Pyx_PyList_Pack(Py_ssize_t n, ...) {
    va_list va;
    PyObject *l = PyList_New(n);
    va_start(va, n);
    if (unlikely(!l)) goto end;
    for (Py_ssize_t i=0; i<n; ++i) {
        PyObject *arg = va_arg(va, PyObject*);
        Py_INCREF(arg);
        if (__Pyx_PyList_SET_ITEM(l, i, arg) != (0)) {
            Py_CLEAR(l);
            goto end;
        }
    }
    end:
    va_end(va);
    return l;
}

/* GetNameInClass */
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) {
    PyObject *result;
    PyObject *dict;
    assert(PyType_Check(nmspace));
#if CYTHON_USE_TYPE_SLOTS
    dict = ((PyTypeObject*)nmspace)->tp_dict;
    Py_XINCREF(dict);
#else
    dict = PyObject_GetAttr(nmspace, __pyx_mstate_global->__pyx_n_u_dict);
#endif
    if (likely(dict)) {
        result = PyObject_GetItem(dict, name);
        Py_DECREF(dict);
        if (result) {
            return result;
        }
    }
    PyErr_Clear();
    __Pyx_GetModuleGlobalNameUncached(result, name);
    return result;
}

/* ClassMethod */
static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
#if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM <= 0x05080000
    if (PyObject_TypeCheck(method, &PyWrapperDescr_Type)) {
        return PyClassMethod_New(method);
    }
#else
#if CYTHON_COMPILING_IN_PYPY
    if (PyMethodDescr_Check(method))
#else
    if (__Pyx_TypeCheck(method, &PyMethodDescr_Type))
#endif
    {
#if CYTHON_COMPILING_IN_LIMITED_API
        return PyErr_Format(
            PyExc_SystemError,
            "Cython cannot yet handle classmethod on a MethodDescriptorType (%S) in limited API mode. "
            "This is most likely a classmethod in a cdef class method with binding=False. "
            "Try setting 'binding' to True.",
            method);
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
        PyTypeObject *d_type = GraalPyDescrObject_GetType(method);
        return PyDescr_NewClassMethod(d_type, GraalPyMethodDescrObject_GetMethod(method));
#elif CYTHON_COMPILING_IN_GRAAL
        PyTypeObject *d_type = PyDescrObject_GetType(method);
        return PyDescr_NewClassMethod(d_type, PyMethodDescrObject_GetMethod(method));
#else
        PyMethodDescrObject *descr = (PyMethodDescrObject *)method;
        PyTypeObject *d_type = descr->d_common.d_type;
        return PyDescr_NewClassMethod(d_type, descr->d_method);
#endif
    }
#endif
#if !CYTHON_COMPILING_IN_LIMITED_API
    else if (PyMethod_Check(method)) {
        return PyClassMethod_New(PyMethod_GET_FUNCTION(method));
    }
    else {
        return PyClassMethod_New(method);
    }
#else
    {
        PyObject *func=NULL;
        PyObject *builtins, *classmethod, *classmethod_str, *result=NULL;
        if (__Pyx_TypeCheck(method, __pyx_mstate_global->__Pyx_CachedMethodType)) {
            func = PyObject_GetAttrString(method, "__func__");
            if (!func) goto bad;
        } else {
            func = method;
            Py_INCREF(func);
        }
        builtins = PyEval_GetBuiltins(); // borrowed
        if (unlikely(!builtins)) goto bad;
        classmethod_str = PyUnicode_FromString("classmethod");
        if (unlikely(!classmethod_str)) goto bad;
        classmethod = PyObject_GetItem(builtins, classmethod_str);
        Py_DECREF(classmethod_str);
        if (unlikely(!classmethod)) goto bad;
        result = PyObject_CallFunctionObjArgs(classmethod, func, NULL);
        Py_DECREF(classmethod);
        bad:
        Py_XDECREF(func);
        return result;
    }
#endif
}

/* CLineInTraceback (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o))
#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL);
#else
PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) {
    PyObject **dict_ptr = _PyObject_GetDictPtr(o);
    return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL;
}
#endif
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline = NULL;
    PyObject *ptype, *pvalue, *ptraceback;
    PyObject *cython_runtime_dict;
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
    cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, cython_runtime_dict,
            __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False))
    }
    if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    Py_XDECREF(use_cline);
    Py_XDECREF(cython_runtime_dict);
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache (used by AddTraceback) */
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 __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) {
    __Pyx_CachedCodeObjectType* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!code_cache->entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = code_cache->entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__find_code_object;
    return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count);
    if (old_count < 0) {
        __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
        return NULL;
    }
#endif
    __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
#endif
    return result;
#endif
}
static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object)
{
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            code_cache->entries = entries;
            code_cache->max_count = 64;
            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(code_cache->entries, code_cache->count, code_line);
    if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) {
        __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_INCREF(code_object);
        Py_DECREF(tmp);
        return;
    }
    if (code_cache->count == code_cache->max_count) {
        int new_max = code_cache->max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        code_cache->entries = entries;
        code_cache->max_count = new_max;
    }
    for (i=code_cache->count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    code_cache->count++;
    Py_INCREF(code_object);
}
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__insert_code_object;
    return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type expected = 0;
    if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) {
        return;
    }
#endif
    __pyx__insert_code_object(code_cache, code_line, code_object);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN);
#endif
#endif
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    PyErr_Clear();
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
    code_object = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!code_object) {
        code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
        if (unlikely(!code_object)) goto bad;
        py_py_line = PyLong_FromLong(py_line);
        if (unlikely(!py_py_line)) goto bad;
        if (c_line) {
            py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        } else {
            py_funcname = PyUnicode_FromString(funcname);
        }
        if (unlikely(!py_funcname)) goto bad;
        dict = PyDict_New();
        if (unlikely(!dict)) goto bad;
        {
            PyObject *old_code_object = code_object;
            code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
            Py_DECREF(old_code_object);
        }
        if (unlikely(!code_object)) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, code_object);
    } else {
        dict = PyDict_New();
    }
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    PyErr_Restore(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    if (c_line) {
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
    }
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    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;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_mstate_global->__pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* Declarations */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
  #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

/* Arithmetic */
#if CYTHON_CCOMPLEX && (1) && (!0 || __cplusplus)
#else
    static CYTHON_INLINE int __Pyx_c_eq_double(__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_double(__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_double(__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_double(__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;
    }
    #if 1
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else if (fabs(b.real) >= fabs(b.imag)) {
            if (b.real == 0 && b.imag == 0) {
                return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
            } else {
                double r = b.imag / b.real;
                double s = (double)(1.0) / (b.real + b.imag * r);
                return __pyx_t_double_complex_from_parts(
                    (a.real + a.imag * r) * s, (a.imag - a.real * r) * s);
            }
        } else {
            double r = b.real / b.imag;
            double s = (double)(1.0) / (b.imag + b.real * r);
            return __pyx_t_double_complex_from_parts(
                (a.real * r + a.imag) * s, (a.imag * r - a.real) * s);
        }
    }
    #else
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        if (b.imag == 0) {
            return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
        } else {
            double denom = b.real * b.real + b.imag * b.imag;
            return __pyx_t_double_complex_from_parts(
                (a.real * b.real + a.imag * b.imag) / denom,
                (a.imag * b.real - a.real * b.imag) / denom);
        }
    }
    #endif
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__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_double(__pyx_t_double_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__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_double(__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_double(__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:
                        return __Pyx_c_prod_double(a, a);
                    case 3:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(z, a);
                    case 4:
                        z = __Pyx_c_prod_double(a, a);
                        return __Pyx_c_prod_double(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                } else if ((b.imag == 0) && (a.real >= 0)) {
                    z.real = pow(a.real, b.real);
                    z.imag = 0;
                    return z;
                } else if (a.real > 0) {
                    r = a.real;
                    theta = 0;
                } else {
                    r = -a.real;
                    theta = atan2(0.0, -1.0);
                }
            } else {
                r = __Pyx_c_abs_double(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

/* CIntFromPyVerify */
#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;\
    }

/* CheckUnpickleChecksum */
static void __Pyx_RaiseUnpickleChecksumError(long checksum, long checksum1, long checksum2, long checksum3, const char *members) {
    PyObject *pickle_module = PyImport_ImportModule("pickle");
    if (unlikely(!pickle_module)) return;
    PyObject *pickle_error = PyObject_GetAttrString(pickle_module, "PickleError");
    Py_DECREF(pickle_module);
    if (unlikely(!pickle_error)) return;
    if (checksum2 == checksum1) {
        PyErr_Format(pickle_error, "Incompatible checksums (0x%x vs (0x%x) = (%s))",
            checksum, checksum1, members);
    } else if (checksum3 == checksum2) {
        PyErr_Format(pickle_error, "Incompatible checksums (0x%x vs (0x%x, 0x%x) = (%s))",
            checksum, checksum1, checksum2, members);
    } else {
        PyErr_Format(pickle_error, "Incompatible checksums (0x%x vs (0x%x, 0x%x, 0x%x) = (%s))",
            checksum, checksum1, checksum2, checksum3, members);
    }
    Py_DECREF(pickle_error);
}
static int __Pyx_CheckUnpickleChecksum(long checksum, long checksum1, long checksum2, long checksum3, const char *members) {
    int found = 0;
    found |= checksum1 == checksum;
    found |= checksum2 == checksum;
    found |= checksum3 == checksum;
    if (likely(found))
        return 0;
    __Pyx_RaiseUnpickleChecksumError(checksum, checksum1, checksum2, checksum3, members);
    return -1;
}

/* FromPy */
static __pyx_t_double_complex __Pyx_PyComplex_As___pyx_t_double_complex(PyObject* o) {
#if CYTHON_COMPILING_IN_LIMITED_API
    double real=-1.0, imag=-1.0;
    real = PyComplex_RealAsDouble(o);
    if (unlikely(real == -1.0 && PyErr_Occurred())) goto end;
    imag = PyComplex_ImagAsDouble(o);
  end:
    return __pyx_t_double_complex_from_parts(
        (double)real, (double)imag
    );
#else
    Py_complex cval;
#if !CYTHON_COMPILING_IN_PYPY && !CYTHON_COMPILING_IN_GRAAL
    if (PyComplex_CheckExact(o))
        cval = ((PyComplexObject *)o)->cval;
    else
#endif
        cval = PyComplex_AsCComplex(o);
    return __pyx_t_double_complex_from_parts(
               (double)cval.real,
               (double)cval.imag);
#endif
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_int(int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyLong_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                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 && PY_VERSION_HEX < 0x030C00A7
        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
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                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))
        }
    }
    {
        int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (int) -1;
        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;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_KLPStrandType(KLPStrandType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const KLPStrandType neg_one = (KLPStrandType) -1, const_zero = (KLPStrandType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(KLPStrandType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(KLPStrandType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(KLPStrandType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(KLPStrandType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(KLPStrandType) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(KLPStrandType),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(KLPStrandType));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_KLPCrossingType(KLPCrossingType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const KLPCrossingType neg_one = (KLPCrossingType) -1, const_zero = (KLPCrossingType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(KLPCrossingType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(KLPCrossingType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(KLPCrossingType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(KLPCrossingType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(KLPCrossingType) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(KLPCrossingType),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(KLPCrossingType));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyLong_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                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 && PY_VERSION_HEX < 0x030C00A7
        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
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                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))
        }
    }
    {
        long val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (long) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (long) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (long) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (long) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((long) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((long) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (long) -1;
        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;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Boolean(Boolean value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Boolean neg_one = (Boolean) -1, const_zero = (Boolean) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(Boolean) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Boolean) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(Boolean) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(Boolean) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Boolean) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(Boolean),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(Boolean));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE unsigned int __Pyx_PyLong_As_unsigned_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        unsigned int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned int) -1;
        val = __Pyx_PyLong_As_unsigned_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT)) {
                            return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT)) {
                            return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) >= 4 * PyLong_SHIFT)) {
                            return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (unsigned int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (unsigned int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (unsigned int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(unsigned int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((unsigned int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(unsigned int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned int) 1) << (sizeof(unsigned int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (unsigned int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned int");
    return (unsigned int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned int");
    return (unsigned int) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Orientability(Orientability value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Orientability neg_one = (Orientability) -1, const_zero = (Orientability) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(Orientability) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Orientability) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(Orientability) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(Orientability) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Orientability) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(Orientability),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(Orientability));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_FuncResult(FuncResult value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const FuncResult neg_one = (FuncResult) -1, const_zero = (FuncResult) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(FuncResult) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(FuncResult) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(FuncResult) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(FuncResult) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(FuncResult) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(FuncResult),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(FuncResult));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Permutation(Permutation value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Permutation neg_one = (Permutation) -1, const_zero = (Permutation) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(Permutation) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Permutation) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(Permutation) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(Permutation) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Permutation) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(Permutation),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(Permutation));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE Boolean __Pyx_PyLong_As_Boolean(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Boolean neg_one = (Boolean) -1, const_zero = (Boolean) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        Boolean val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (Boolean) -1;
        val = __Pyx_PyLong_As_Boolean(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(Boolean, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(Boolean) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Boolean) >= 2 * PyLong_SHIFT)) {
                            return (Boolean) (((((Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(Boolean) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Boolean) >= 3 * PyLong_SHIFT)) {
                            return (Boolean) (((((((Boolean)digits[2]) << PyLong_SHIFT) | (Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(Boolean) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, 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(Boolean) >= 4 * PyLong_SHIFT)) {
                            return (Boolean) (((((((((Boolean)digits[3]) << PyLong_SHIFT) | (Boolean)digits[2]) << PyLong_SHIFT) | (Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (Boolean) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(Boolean) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(Boolean, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(Boolean) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(Boolean, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(Boolean, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(Boolean) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Boolean) - 1 > 2 * PyLong_SHIFT)) {
                            return (Boolean) (((Boolean)-1)*(((((Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(Boolean) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Boolean) - 1 > 2 * PyLong_SHIFT)) {
                            return (Boolean) ((((((Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(Boolean) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Boolean) - 1 > 3 * PyLong_SHIFT)) {
                            return (Boolean) (((Boolean)-1)*(((((((Boolean)digits[2]) << PyLong_SHIFT) | (Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(Boolean) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Boolean) - 1 > 3 * PyLong_SHIFT)) {
                            return (Boolean) ((((((((Boolean)digits[2]) << PyLong_SHIFT) | (Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(Boolean) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, 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(Boolean) - 1 > 4 * PyLong_SHIFT)) {
                            return (Boolean) (((Boolean)-1)*(((((((((Boolean)digits[3]) << PyLong_SHIFT) | (Boolean)digits[2]) << PyLong_SHIFT) | (Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(Boolean) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Boolean, 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(Boolean) - 1 > 4 * PyLong_SHIFT)) {
                            return (Boolean) ((((((((((Boolean)digits[3]) << PyLong_SHIFT) | (Boolean)digits[2]) << PyLong_SHIFT) | (Boolean)digits[1]) << PyLong_SHIFT) | (Boolean)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(Boolean) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(Boolean, long, PyLong_AsLong(x))
        } else if ((sizeof(Boolean) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(Boolean, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        Boolean val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (Boolean) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (Boolean) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (Boolean) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (Boolean) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(Boolean) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((Boolean) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(Boolean) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((Boolean) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((Boolean) 1) << (sizeof(Boolean) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (Boolean) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to Boolean");
    return (Boolean) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to Boolean");
    return (Boolean) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_CuspTopology(CuspTopology value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const CuspTopology neg_one = (CuspTopology) -1, const_zero = (CuspTopology) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(CuspTopology) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(CuspTopology) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(CuspTopology) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(CuspTopology) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(CuspTopology) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(CuspTopology),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(CuspTopology));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE size_t __Pyx_PyLong_As_size_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const size_t neg_one = (size_t) -1, const_zero = (size_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        size_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (size_t) -1;
        val = __Pyx_PyLong_As_size_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(size_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(size_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) >= 2 * PyLong_SHIFT)) {
                            return (size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(size_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) >= 3 * PyLong_SHIFT)) {
                            return (size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(size_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) >= 4 * PyLong_SHIFT)) {
                            return (size_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
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (size_t) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(size_t) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(size_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(size_t) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(size_t) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                            return (size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(size_t) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                            return (size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (size_t) (((size_t)-1)*(((((((((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(size_t) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(size_t, 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(size_t) - 1 > 4 * PyLong_SHIFT)) {
                            return (size_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
        if ((sizeof(size_t) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x))
        } else if ((sizeof(size_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        size_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (size_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (size_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (size_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (size_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(size_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((size_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(size_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((size_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((size_t) 1) << (sizeof(size_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (size_t) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to size_t");
    return (size_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to size_t");
    return (size_t) -1;
}

/* CIntFromPy */
static CYTHON_INLINE VertexIndex __Pyx_PyLong_As_VertexIndex(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const VertexIndex neg_one = (VertexIndex) -1, const_zero = (VertexIndex) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        VertexIndex val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (VertexIndex) -1;
        val = __Pyx_PyLong_As_VertexIndex(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(VertexIndex, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(VertexIndex) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(VertexIndex) >= 2 * PyLong_SHIFT)) {
                            return (VertexIndex) (((((VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(VertexIndex) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(VertexIndex) >= 3 * PyLong_SHIFT)) {
                            return (VertexIndex) (((((((VertexIndex)digits[2]) << PyLong_SHIFT) | (VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(VertexIndex) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, 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(VertexIndex) >= 4 * PyLong_SHIFT)) {
                            return (VertexIndex) (((((((((VertexIndex)digits[3]) << PyLong_SHIFT) | (VertexIndex)digits[2]) << PyLong_SHIFT) | (VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (VertexIndex) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(VertexIndex) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(VertexIndex, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(VertexIndex) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(VertexIndex, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(VertexIndex, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(VertexIndex) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(VertexIndex) - 1 > 2 * PyLong_SHIFT)) {
                            return (VertexIndex) (((VertexIndex)-1)*(((((VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(VertexIndex) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(VertexIndex) - 1 > 2 * PyLong_SHIFT)) {
                            return (VertexIndex) ((((((VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(VertexIndex) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(VertexIndex) - 1 > 3 * PyLong_SHIFT)) {
                            return (VertexIndex) (((VertexIndex)-1)*(((((((VertexIndex)digits[2]) << PyLong_SHIFT) | (VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(VertexIndex) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(VertexIndex) - 1 > 3 * PyLong_SHIFT)) {
                            return (VertexIndex) ((((((((VertexIndex)digits[2]) << PyLong_SHIFT) | (VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(VertexIndex) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, 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(VertexIndex) - 1 > 4 * PyLong_SHIFT)) {
                            return (VertexIndex) (((VertexIndex)-1)*(((((((((VertexIndex)digits[3]) << PyLong_SHIFT) | (VertexIndex)digits[2]) << PyLong_SHIFT) | (VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(VertexIndex) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(VertexIndex, 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(VertexIndex) - 1 > 4 * PyLong_SHIFT)) {
                            return (VertexIndex) ((((((((((VertexIndex)digits[3]) << PyLong_SHIFT) | (VertexIndex)digits[2]) << PyLong_SHIFT) | (VertexIndex)digits[1]) << PyLong_SHIFT) | (VertexIndex)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(VertexIndex) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(VertexIndex, long, PyLong_AsLong(x))
        } else if ((sizeof(VertexIndex) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(VertexIndex, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        VertexIndex val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (VertexIndex) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (VertexIndex) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (VertexIndex) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (VertexIndex) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(VertexIndex) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((VertexIndex) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(VertexIndex) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((VertexIndex) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((VertexIndex) 1) << (sizeof(VertexIndex) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (VertexIndex) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to VertexIndex");
    return (VertexIndex) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to VertexIndex");
    return (VertexIndex) -1;
}

/* CIntFromPy */
static CYTHON_INLINE FaceIndex __Pyx_PyLong_As_FaceIndex(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const FaceIndex neg_one = (FaceIndex) -1, const_zero = (FaceIndex) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        FaceIndex val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (FaceIndex) -1;
        val = __Pyx_PyLong_As_FaceIndex(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(FaceIndex, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(FaceIndex) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(FaceIndex) >= 2 * PyLong_SHIFT)) {
                            return (FaceIndex) (((((FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(FaceIndex) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(FaceIndex) >= 3 * PyLong_SHIFT)) {
                            return (FaceIndex) (((((((FaceIndex)digits[2]) << PyLong_SHIFT) | (FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(FaceIndex) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, 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(FaceIndex) >= 4 * PyLong_SHIFT)) {
                            return (FaceIndex) (((((((((FaceIndex)digits[3]) << PyLong_SHIFT) | (FaceIndex)digits[2]) << PyLong_SHIFT) | (FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (FaceIndex) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(FaceIndex) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(FaceIndex, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(FaceIndex) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(FaceIndex, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(FaceIndex, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(FaceIndex) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(FaceIndex) - 1 > 2 * PyLong_SHIFT)) {
                            return (FaceIndex) (((FaceIndex)-1)*(((((FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(FaceIndex) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(FaceIndex) - 1 > 2 * PyLong_SHIFT)) {
                            return (FaceIndex) ((((((FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(FaceIndex) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(FaceIndex) - 1 > 3 * PyLong_SHIFT)) {
                            return (FaceIndex) (((FaceIndex)-1)*(((((((FaceIndex)digits[2]) << PyLong_SHIFT) | (FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(FaceIndex) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(FaceIndex) - 1 > 3 * PyLong_SHIFT)) {
                            return (FaceIndex) ((((((((FaceIndex)digits[2]) << PyLong_SHIFT) | (FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(FaceIndex) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, 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(FaceIndex) - 1 > 4 * PyLong_SHIFT)) {
                            return (FaceIndex) (((FaceIndex)-1)*(((((((((FaceIndex)digits[3]) << PyLong_SHIFT) | (FaceIndex)digits[2]) << PyLong_SHIFT) | (FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(FaceIndex) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(FaceIndex, 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(FaceIndex) - 1 > 4 * PyLong_SHIFT)) {
                            return (FaceIndex) ((((((((((FaceIndex)digits[3]) << PyLong_SHIFT) | (FaceIndex)digits[2]) << PyLong_SHIFT) | (FaceIndex)digits[1]) << PyLong_SHIFT) | (FaceIndex)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(FaceIndex) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(FaceIndex, long, PyLong_AsLong(x))
        } else if ((sizeof(FaceIndex) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(FaceIndex, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        FaceIndex val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (FaceIndex) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (FaceIndex) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (FaceIndex) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (FaceIndex) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(FaceIndex) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((FaceIndex) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(FaceIndex) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((FaceIndex) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((FaceIndex) 1) << (sizeof(FaceIndex) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (FaceIndex) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to FaceIndex");
    return (FaceIndex) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to FaceIndex");
    return (FaceIndex) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Orientation(Orientation value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Orientation neg_one = (Orientation) -1, const_zero = (Orientation) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(Orientation) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Orientation) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(Orientation) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(Orientation) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Orientation) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(Orientation),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(Orientation));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE Orientation __Pyx_PyLong_As_Orientation(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Orientation neg_one = (Orientation) -1, const_zero = (Orientation) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        Orientation val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (Orientation) -1;
        val = __Pyx_PyLong_As_Orientation(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(Orientation, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(Orientation) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientation) >= 2 * PyLong_SHIFT)) {
                            return (Orientation) (((((Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(Orientation) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientation) >= 3 * PyLong_SHIFT)) {
                            return (Orientation) (((((((Orientation)digits[2]) << PyLong_SHIFT) | (Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(Orientation) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, 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(Orientation) >= 4 * PyLong_SHIFT)) {
                            return (Orientation) (((((((((Orientation)digits[3]) << PyLong_SHIFT) | (Orientation)digits[2]) << PyLong_SHIFT) | (Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (Orientation) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(Orientation) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(Orientation, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(Orientation) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(Orientation, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(Orientation, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(Orientation) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientation) - 1 > 2 * PyLong_SHIFT)) {
                            return (Orientation) (((Orientation)-1)*(((((Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(Orientation) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientation) - 1 > 2 * PyLong_SHIFT)) {
                            return (Orientation) ((((((Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(Orientation) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientation) - 1 > 3 * PyLong_SHIFT)) {
                            return (Orientation) (((Orientation)-1)*(((((((Orientation)digits[2]) << PyLong_SHIFT) | (Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(Orientation) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientation) - 1 > 3 * PyLong_SHIFT)) {
                            return (Orientation) ((((((((Orientation)digits[2]) << PyLong_SHIFT) | (Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(Orientation) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, 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(Orientation) - 1 > 4 * PyLong_SHIFT)) {
                            return (Orientation) (((Orientation)-1)*(((((((((Orientation)digits[3]) << PyLong_SHIFT) | (Orientation)digits[2]) << PyLong_SHIFT) | (Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(Orientation) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientation, 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(Orientation) - 1 > 4 * PyLong_SHIFT)) {
                            return (Orientation) ((((((((((Orientation)digits[3]) << PyLong_SHIFT) | (Orientation)digits[2]) << PyLong_SHIFT) | (Orientation)digits[1]) << PyLong_SHIFT) | (Orientation)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(Orientation) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(Orientation, long, PyLong_AsLong(x))
        } else if ((sizeof(Orientation) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(Orientation, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        Orientation val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (Orientation) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (Orientation) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (Orientation) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (Orientation) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(Orientation) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((Orientation) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(Orientation) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((Orientation) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((Orientation) 1) << (sizeof(Orientation) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (Orientation) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to Orientation");
    return (Orientation) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to Orientation");
    return (Orientation) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_MatrixEntry(MatrixEntry value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const MatrixEntry neg_one = (MatrixEntry) -1, const_zero = (MatrixEntry) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(MatrixEntry) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(MatrixEntry) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(MatrixEntry) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(MatrixEntry) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(MatrixEntry) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(MatrixEntry),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(MatrixEntry));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_CoveringType(CoveringType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const CoveringType neg_one = (CoveringType) -1, const_zero = (CoveringType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(CoveringType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(CoveringType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(CoveringType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(CoveringType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(CoveringType) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(CoveringType),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(CoveringType));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_SolutionType(SolutionType value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const SolutionType neg_one = (SolutionType) -1, const_zero = (SolutionType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(SolutionType) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(SolutionType) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(SolutionType) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(SolutionType) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(SolutionType) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(SolutionType),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(SolutionType));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_MatrixParity(MatrixParity value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const MatrixParity neg_one = (MatrixParity) -1, const_zero = (MatrixParity) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(MatrixParity) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(MatrixParity) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(MatrixParity) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(MatrixParity) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(MatrixParity) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(MatrixParity),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(MatrixParity));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_Orbifold1(Orbifold1 value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Orbifold1 neg_one = (Orbifold1) -1, const_zero = (Orbifold1) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(Orbifold1) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Orbifold1) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(Orbifold1) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(Orbifold1) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(Orbifold1) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(Orbifold1),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(Orbifold1));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_unsigned_char(unsigned char value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned char neg_one = (unsigned char) -1, const_zero = (unsigned char) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(unsigned char) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned char) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(unsigned char) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned char) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(unsigned char) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(unsigned char),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(unsigned char));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE Permutation __Pyx_PyLong_As_Permutation(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Permutation neg_one = (Permutation) -1, const_zero = (Permutation) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        Permutation val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (Permutation) -1;
        val = __Pyx_PyLong_As_Permutation(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(Permutation, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(Permutation) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Permutation) >= 2 * PyLong_SHIFT)) {
                            return (Permutation) (((((Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(Permutation) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Permutation) >= 3 * PyLong_SHIFT)) {
                            return (Permutation) (((((((Permutation)digits[2]) << PyLong_SHIFT) | (Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(Permutation) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, 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(Permutation) >= 4 * PyLong_SHIFT)) {
                            return (Permutation) (((((((((Permutation)digits[3]) << PyLong_SHIFT) | (Permutation)digits[2]) << PyLong_SHIFT) | (Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (Permutation) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(Permutation) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(Permutation, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(Permutation) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(Permutation, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(Permutation, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(Permutation) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Permutation) - 1 > 2 * PyLong_SHIFT)) {
                            return (Permutation) (((Permutation)-1)*(((((Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(Permutation) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Permutation) - 1 > 2 * PyLong_SHIFT)) {
                            return (Permutation) ((((((Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(Permutation) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Permutation) - 1 > 3 * PyLong_SHIFT)) {
                            return (Permutation) (((Permutation)-1)*(((((((Permutation)digits[2]) << PyLong_SHIFT) | (Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(Permutation) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Permutation) - 1 > 3 * PyLong_SHIFT)) {
                            return (Permutation) ((((((((Permutation)digits[2]) << PyLong_SHIFT) | (Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(Permutation) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, 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(Permutation) - 1 > 4 * PyLong_SHIFT)) {
                            return (Permutation) (((Permutation)-1)*(((((((((Permutation)digits[3]) << PyLong_SHIFT) | (Permutation)digits[2]) << PyLong_SHIFT) | (Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(Permutation) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Permutation, 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(Permutation) - 1 > 4 * PyLong_SHIFT)) {
                            return (Permutation) ((((((((((Permutation)digits[3]) << PyLong_SHIFT) | (Permutation)digits[2]) << PyLong_SHIFT) | (Permutation)digits[1]) << PyLong_SHIFT) | (Permutation)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(Permutation) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(Permutation, long, PyLong_AsLong(x))
        } else if ((sizeof(Permutation) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(Permutation, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        Permutation val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (Permutation) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (Permutation) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (Permutation) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (Permutation) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(Permutation) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((Permutation) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(Permutation) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((Permutation) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((Permutation) 1) << (sizeof(Permutation) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (Permutation) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to Permutation");
    return (Permutation) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to Permutation");
    return (Permutation) -1;
}

/* CIntFromPy */
static CYTHON_INLINE Orientability __Pyx_PyLong_As_Orientability(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const Orientability neg_one = (Orientability) -1, const_zero = (Orientability) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        Orientability val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (Orientability) -1;
        val = __Pyx_PyLong_As_Orientability(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(Orientability, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(Orientability) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientability) >= 2 * PyLong_SHIFT)) {
                            return (Orientability) (((((Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(Orientability) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientability) >= 3 * PyLong_SHIFT)) {
                            return (Orientability) (((((((Orientability)digits[2]) << PyLong_SHIFT) | (Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(Orientability) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, 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(Orientability) >= 4 * PyLong_SHIFT)) {
                            return (Orientability) (((((((((Orientability)digits[3]) << PyLong_SHIFT) | (Orientability)digits[2]) << PyLong_SHIFT) | (Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (Orientability) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(Orientability) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(Orientability, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(Orientability) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(Orientability, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(Orientability, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(Orientability) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientability) - 1 > 2 * PyLong_SHIFT)) {
                            return (Orientability) (((Orientability)-1)*(((((Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(Orientability) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientability) - 1 > 2 * PyLong_SHIFT)) {
                            return (Orientability) ((((((Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(Orientability) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientability) - 1 > 3 * PyLong_SHIFT)) {
                            return (Orientability) (((Orientability)-1)*(((((((Orientability)digits[2]) << PyLong_SHIFT) | (Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(Orientability) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(Orientability) - 1 > 3 * PyLong_SHIFT)) {
                            return (Orientability) ((((((((Orientability)digits[2]) << PyLong_SHIFT) | (Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(Orientability) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, 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(Orientability) - 1 > 4 * PyLong_SHIFT)) {
                            return (Orientability) (((Orientability)-1)*(((((((((Orientability)digits[3]) << PyLong_SHIFT) | (Orientability)digits[2]) << PyLong_SHIFT) | (Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(Orientability) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(Orientability, 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(Orientability) - 1 > 4 * PyLong_SHIFT)) {
                            return (Orientability) ((((((((((Orientability)digits[3]) << PyLong_SHIFT) | (Orientability)digits[2]) << PyLong_SHIFT) | (Orientability)digits[1]) << PyLong_SHIFT) | (Orientability)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(Orientability) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(Orientability, long, PyLong_AsLong(x))
        } else if ((sizeof(Orientability) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(Orientability, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        Orientability val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (Orientability) -1;
#endif
        if (unlikely(ret))
            return (Orientability) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to Orientability");
    return (Orientability) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to Orientability");
    return (Orientability) -1;
}

/* CIntFromPy */
static CYTHON_INLINE KLPStrandType __Pyx_PyLong_As_KLPStrandType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const KLPStrandType neg_one = (KLPStrandType) -1, const_zero = (KLPStrandType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        KLPStrandType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (KLPStrandType) -1;
        val = __Pyx_PyLong_As_KLPStrandType(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(KLPStrandType, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(KLPStrandType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPStrandType) >= 2 * PyLong_SHIFT)) {
                            return (KLPStrandType) (((((KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(KLPStrandType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPStrandType) >= 3 * PyLong_SHIFT)) {
                            return (KLPStrandType) (((((((KLPStrandType)digits[2]) << PyLong_SHIFT) | (KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(KLPStrandType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, 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(KLPStrandType) >= 4 * PyLong_SHIFT)) {
                            return (KLPStrandType) (((((((((KLPStrandType)digits[3]) << PyLong_SHIFT) | (KLPStrandType)digits[2]) << PyLong_SHIFT) | (KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (KLPStrandType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(KLPStrandType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(KLPStrandType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(KLPStrandType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(KLPStrandType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(KLPStrandType, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(KLPStrandType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPStrandType) - 1 > 2 * PyLong_SHIFT)) {
                            return (KLPStrandType) (((KLPStrandType)-1)*(((((KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(KLPStrandType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPStrandType) - 1 > 2 * PyLong_SHIFT)) {
                            return (KLPStrandType) ((((((KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(KLPStrandType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPStrandType) - 1 > 3 * PyLong_SHIFT)) {
                            return (KLPStrandType) (((KLPStrandType)-1)*(((((((KLPStrandType)digits[2]) << PyLong_SHIFT) | (KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(KLPStrandType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPStrandType) - 1 > 3 * PyLong_SHIFT)) {
                            return (KLPStrandType) ((((((((KLPStrandType)digits[2]) << PyLong_SHIFT) | (KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(KLPStrandType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, 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(KLPStrandType) - 1 > 4 * PyLong_SHIFT)) {
                            return (KLPStrandType) (((KLPStrandType)-1)*(((((((((KLPStrandType)digits[3]) << PyLong_SHIFT) | (KLPStrandType)digits[2]) << PyLong_SHIFT) | (KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(KLPStrandType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPStrandType, 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(KLPStrandType) - 1 > 4 * PyLong_SHIFT)) {
                            return (KLPStrandType) ((((((((((KLPStrandType)digits[3]) << PyLong_SHIFT) | (KLPStrandType)digits[2]) << PyLong_SHIFT) | (KLPStrandType)digits[1]) << PyLong_SHIFT) | (KLPStrandType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(KLPStrandType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(KLPStrandType, long, PyLong_AsLong(x))
        } else if ((sizeof(KLPStrandType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(KLPStrandType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        KLPStrandType val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (KLPStrandType) -1;
#endif
        if (unlikely(ret))
            return (KLPStrandType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to KLPStrandType");
    return (KLPStrandType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to KLPStrandType");
    return (KLPStrandType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE KLPCrossingType __Pyx_PyLong_As_KLPCrossingType(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const KLPCrossingType neg_one = (KLPCrossingType) -1, const_zero = (KLPCrossingType) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        KLPCrossingType val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (KLPCrossingType) -1;
        val = __Pyx_PyLong_As_KLPCrossingType(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(KLPCrossingType, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(KLPCrossingType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPCrossingType) >= 2 * PyLong_SHIFT)) {
                            return (KLPCrossingType) (((((KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(KLPCrossingType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPCrossingType) >= 3 * PyLong_SHIFT)) {
                            return (KLPCrossingType) (((((((KLPCrossingType)digits[2]) << PyLong_SHIFT) | (KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(KLPCrossingType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, 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(KLPCrossingType) >= 4 * PyLong_SHIFT)) {
                            return (KLPCrossingType) (((((((((KLPCrossingType)digits[3]) << PyLong_SHIFT) | (KLPCrossingType)digits[2]) << PyLong_SHIFT) | (KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (KLPCrossingType) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(KLPCrossingType) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(KLPCrossingType, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(KLPCrossingType) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(KLPCrossingType, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(KLPCrossingType, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(KLPCrossingType) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPCrossingType) - 1 > 2 * PyLong_SHIFT)) {
                            return (KLPCrossingType) (((KLPCrossingType)-1)*(((((KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(KLPCrossingType) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPCrossingType) - 1 > 2 * PyLong_SHIFT)) {
                            return (KLPCrossingType) ((((((KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(KLPCrossingType) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPCrossingType) - 1 > 3 * PyLong_SHIFT)) {
                            return (KLPCrossingType) (((KLPCrossingType)-1)*(((((((KLPCrossingType)digits[2]) << PyLong_SHIFT) | (KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(KLPCrossingType) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(KLPCrossingType) - 1 > 3 * PyLong_SHIFT)) {
                            return (KLPCrossingType) ((((((((KLPCrossingType)digits[2]) << PyLong_SHIFT) | (KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(KLPCrossingType) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, 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(KLPCrossingType) - 1 > 4 * PyLong_SHIFT)) {
                            return (KLPCrossingType) (((KLPCrossingType)-1)*(((((((((KLPCrossingType)digits[3]) << PyLong_SHIFT) | (KLPCrossingType)digits[2]) << PyLong_SHIFT) | (KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(KLPCrossingType) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(KLPCrossingType, 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(KLPCrossingType) - 1 > 4 * PyLong_SHIFT)) {
                            return (KLPCrossingType) ((((((((((KLPCrossingType)digits[3]) << PyLong_SHIFT) | (KLPCrossingType)digits[2]) << PyLong_SHIFT) | (KLPCrossingType)digits[1]) << PyLong_SHIFT) | (KLPCrossingType)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(KLPCrossingType) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(KLPCrossingType, long, PyLong_AsLong(x))
        } else if ((sizeof(KLPCrossingType) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(KLPCrossingType, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        KLPCrossingType val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyErr_SetString(PyExc_RuntimeError,
                        "_PyLong_AsByteArray() or PyLong_AsNativeBytes() not available, cannot convert large enums");
        val = (KLPCrossingType) -1;
#endif
        if (unlikely(ret))
            return (KLPCrossingType) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to KLPCrossingType");
    return (KLPCrossingType) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to KLPCrossingType");
    return (KLPCrossingType) -1;
}

/* CIntFromPy */
static CYTHON_INLINE unsigned char __Pyx_PyLong_As_unsigned_char(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned char neg_one = (unsigned char) -1, const_zero = (unsigned char) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        unsigned char val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned char) -1;
        val = __Pyx_PyLong_As_unsigned_char(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned char, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(unsigned char) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) >= 2 * PyLong_SHIFT)) {
                            return (unsigned char) (((((unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned char) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) >= 3 * PyLong_SHIFT)) {
                            return (unsigned char) (((((((unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned char) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, 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(unsigned char) >= 4 * PyLong_SHIFT)) {
                            return (unsigned char) (((((((((unsigned char)digits[3]) << PyLong_SHIFT) | (unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (unsigned char) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned char) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned char, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned char) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned char, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned char, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(unsigned char) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned char) (((unsigned char)-1)*(((((unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned char) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned char) ((((((unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned char) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned char) (((unsigned char)-1)*(((((((unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned char) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned char) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned char) ((((((((unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned char) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, 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(unsigned char) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned char) (((unsigned char)-1)*(((((((((unsigned char)digits[3]) << PyLong_SHIFT) | (unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned char) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned char, 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(unsigned char) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned char) ((((((((((unsigned char)digits[3]) << PyLong_SHIFT) | (unsigned char)digits[2]) << PyLong_SHIFT) | (unsigned char)digits[1]) << PyLong_SHIFT) | (unsigned char)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned char) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned char, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned char) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned char, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned char val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (unsigned char) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned char) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (unsigned char) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned char) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(unsigned char) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((unsigned char) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(unsigned char) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned char) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned char) 1) << (sizeof(unsigned char) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (unsigned char) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned char");
    return (unsigned char) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned char");
    return (unsigned char) -1;
}

/* Globals */
static PyObject* __Pyx_Globals(void) {
    return __Pyx_NewRef(__pyx_mstate_global->__pyx_d);
}

/* UpdateUnpickledDict */
static int __Pyx__UpdateUnpickledDict(PyObject *obj, PyObject *state, Py_ssize_t index) {
    PyObject *state_dict = __Pyx_PySequence_ITEM(state, index);
    if (unlikely(!state_dict)) {
        return -1;
    }
    int non_empty = PyObject_IsTrue(state_dict);
    if (non_empty == 0) {
        Py_DECREF(state_dict);
        return 0;
    } else if (unlikely(non_empty == -1)) {
        return -1;
    }
    PyObject *dict;
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    dict = PyObject_GetAttrString(obj, "__dict__");
    #else
    dict = PyObject_GenericGetDict(obj, NULL);
    #endif
    if (unlikely(!dict)) {
        Py_DECREF(state_dict);
        return -1;
    }
    int result;
    if (likely(PyDict_CheckExact(dict))) {
        result = PyDict_Update(dict, state_dict);
    } else {
        PyObject *obj_result = __Pyx_PyObject_CallMethod1(dict, __pyx_mstate_global->__pyx_n_u_update, state_dict);
        if (likely(obj_result)) {
            Py_DECREF(obj_result);
            result = 0;
        } else {
            result = -1;
        }
    }
    Py_DECREF(state_dict);
    Py_DECREF(dict);
    return result;
}
static int __Pyx_UpdateUnpickledDict(PyObject *obj, PyObject *state, Py_ssize_t index) {
    Py_ssize_t state_size = __Pyx_PyTuple_GET_SIZE(state);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(state_size == -1)) return -1;
    #endif
    if (state_size <= index) {
        return 0;
    }
    return __Pyx__UpdateUnpickledDict(obj, state, index);
}

/* FormatTypeName */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
static __Pyx_TypeName
__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp)
{
    PyObject *module = NULL, *name = NULL, *result = NULL;
    #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
    name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_qualname);
    #else
    name = PyType_GetQualName(tp);
    #endif
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad;
    module = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_module);
    if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad;
    if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) {
        result = name;
        name = NULL;
        goto done;
    }
    result = PyUnicode_FromFormat("%U.%U", module, name);
    if (unlikely(result == NULL)) goto bad;
  done:
    Py_XDECREF(name);
    Py_XDECREF(module);
    return result;
  bad:
    PyErr_Clear();
    if (name) {
        result = name;
        name = NULL;
    } else {
        result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u__41);
    }
    goto done;
}
#endif

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* GetRuntimeVersion */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
void __Pyx_init_runtime_version(void) {
    if (__Pyx_cached_runtime_version == 0) {
        const char* rt_version = Py_GetVersion();
        unsigned long version = 0;
        unsigned long factor = 0x01000000UL;
        unsigned int digit = 0;
        int i = 0;
        while (factor) {
            while ('0' <= rt_version[i] && rt_version[i] <= '9') {
                digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
                ++i;
            }
            version += factor * digit;
            if (rt_version[i] != '.')
                break;
            digit = 0;
            factor >>= 8;
            ++i;
        }
        __Pyx_cached_runtime_version = version;
    }
}
#endif
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    return Py_Version & ~0xFFUL;
#else
    return __Pyx_cached_runtime_version;
#endif
}

/* IterNextPlain (used by CoroutineBase) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void) {
    if (unlikely(!__pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache))
        __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache = __Pyx_GetBuiltinName(__pyx_mstate_global->__pyx_n_u_next);
    return __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator) {
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    PyObject *result;
    PyObject *next = __Pyx_GetBuiltinNext_LimitedAPI();
    if (unlikely(!next)) return NULL;
    result = PyObject_CallFunctionObjArgs(next, iterator, NULL);
    return result;
#else
    (void)__Pyx_GetBuiltinName; // only for early limited API
    iternextfunc iternext = __Pyx_PyObject_GetIterNextFunc(iterator);
    assert(iternext);
    return iternext(iterator);
#endif
}

/* ReturnWithStopIteration (used by CoroutineBase) */
static void __Pyx__ReturnWithStopIteration(PyObject* value, int async);
static CYTHON_INLINE void __Pyx_ReturnWithStopIteration(PyObject* value, int async, int iternext) {
    if (value == Py_None) {
        if (async || !iternext)
            PyErr_SetNone(async ? PyExc_StopAsyncIteration : PyExc_StopIteration);
        return;
    }
    __Pyx__ReturnWithStopIteration(value, async);
}
static void __Pyx__ReturnWithStopIteration(PyObject* value, int async) {
#if CYTHON_COMPILING_IN_CPYTHON
    __Pyx_PyThreadState_declare
#endif
    PyObject *exc;
    PyObject *exc_type = async ? PyExc_StopAsyncIteration : PyExc_StopIteration;
#if CYTHON_COMPILING_IN_CPYTHON
    if ((PY_VERSION_HEX >= (0x030C00A6)) || unlikely(PyTuple_Check(value) || PyExceptionInstance_Check(value))) {
        if (PY_VERSION_HEX >= (0x030e00A1)) {
            exc = __Pyx_PyObject_CallOneArg(exc_type, value);
        } else {
            PyObject *args_tuple = PyTuple_New(1);
            if (unlikely(!args_tuple)) return;
            Py_INCREF(value);
            PyTuple_SET_ITEM(args_tuple, 0, value);
            exc = PyObject_Call(exc_type, args_tuple, NULL);
            Py_DECREF(args_tuple);
        }
        if (unlikely(!exc)) return;
    } else {
        Py_INCREF(value);
        exc = value;
    }
    #if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    #if CYTHON_USE_EXC_INFO_STACK
    if (!__pyx_tstate->exc_info->exc_value)
    #else
    if (!__pyx_tstate->exc_type)
    #endif
    {
        Py_INCREF(exc_type);
        __Pyx_ErrRestore(exc_type, exc, NULL);
        return;
    }
    #endif
#else
    exc = __Pyx_PyObject_CallOneArg(exc_type, value);
    if (unlikely(!exc)) return;
#endif
    PyErr_SetObject(exc_type, exc);
    Py_DECREF(exc);
}

/* CoroutineBase (used by Generator) */
#if !CYTHON_COMPILING_IN_LIMITED_API
#include <frameobject.h>
#if PY_VERSION_HEX >= 0x030b00a6 && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#endif // CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE void
__Pyx_Coroutine_Undelegate(__pyx_CoroutineObject *gen) {
#if CYTHON_USE_AM_SEND
    gen->yieldfrom_am_send = NULL;
#endif
    Py_CLEAR(gen->yieldfrom);
}
static int __Pyx_PyGen__FetchStopIterationValue(PyThreadState *__pyx_tstate, PyObject **pvalue) {
    PyObject *et, *ev, *tb;
    PyObject *value = NULL;
    CYTHON_UNUSED_VAR(__pyx_tstate);
    __Pyx_ErrFetch(&et, &ev, &tb);
    if (!et) {
        Py_XDECREF(tb);
        Py_XDECREF(ev);
        Py_INCREF(Py_None);
        *pvalue = Py_None;
        return 0;
    }
    if (likely(et == PyExc_StopIteration)) {
        if (!ev) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
        else if (likely(__Pyx_IS_TYPE(ev, (PyTypeObject*)PyExc_StopIteration))) {
            #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
            value = PyObject_GetAttr(ev, __pyx_mstate_global->__pyx_n_u_value);
            if (unlikely(!value)) goto limited_api_failure;
            #else
            value = ((PyStopIterationObject *)ev)->value;
            Py_INCREF(value);
            #endif
            Py_DECREF(ev);
        }
        else if (unlikely(PyTuple_Check(ev))) {
            Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(ev);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely(tuple_size < 0)) {
                Py_XDECREF(tb);
                Py_DECREF(ev);
                Py_DECREF(et);
                return -1;
            }
            #endif
            if (tuple_size >= 1) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                value = PyTuple_GET_ITEM(ev, 0);
                Py_INCREF(value);
#elif CYTHON_ASSUME_SAFE_MACROS
                value = PySequence_ITEM(ev, 0);
#else
                value = PySequence_GetItem(ev, 0);
                if (!value) goto limited_api_failure;
#endif
            } else {
                Py_INCREF(Py_None);
                value = Py_None;
            }
            Py_DECREF(ev);
        }
        else if (!__Pyx_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration)) {
            value = ev;
        }
        if (likely(value)) {
            Py_XDECREF(tb);
            Py_DECREF(et);
            *pvalue = value;
            return 0;
        }
    } else if (!__Pyx_PyErr_GivenExceptionMatches(et, PyExc_StopIteration)) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    PyErr_NormalizeException(&et, &ev, &tb);
    if (unlikely(!PyObject_TypeCheck(ev, (PyTypeObject*)PyExc_StopIteration))) {
        __Pyx_ErrRestore(et, ev, tb);
        return -1;
    }
    Py_XDECREF(tb);
    Py_DECREF(et);
#if CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_GetAttr(ev, __pyx_mstate_global->__pyx_n_u_value);
#else
    value = ((PyStopIterationObject *)ev)->value;
    Py_INCREF(value);
#endif
    Py_DECREF(ev);
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!value)) return -1;
#endif
    *pvalue = value;
    return 0;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL || !CYTHON_ASSUME_SAFE_MACROS
  limited_api_failure:
    Py_XDECREF(et);
    Py_XDECREF(tb);
    Py_XDECREF(ev);
    return -1;
#endif
}
static CYTHON_INLINE
__Pyx_PySendResult __Pyx_Coroutine_status_from_result(PyObject **retval) {
    if (*retval) {
        return PYGEN_NEXT;
    } else if (likely(__Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, retval) == 0)) {
        return PYGEN_RETURN;
    } else {
        return PYGEN_ERROR;
    }
}
static CYTHON_INLINE
void __Pyx_Coroutine_ExceptionClear(__Pyx_ExcInfoStruct *exc_state) {
#if PY_VERSION_HEX >= 0x030B00a4
    Py_CLEAR(exc_state->exc_value);
#else
    PyObject *t, *v, *tb;
    t = exc_state->exc_type;
    v = exc_state->exc_value;
    tb = exc_state->exc_traceback;
    exc_state->exc_type = NULL;
    exc_state->exc_value = NULL;
    exc_state->exc_traceback = NULL;
    Py_XDECREF(t);
    Py_XDECREF(v);
    Py_XDECREF(tb);
#endif
}
#define __Pyx_Coroutine_AlreadyRunningError(gen)  (__Pyx__Coroutine_AlreadyRunningError(gen), (PyObject*)NULL)
static void __Pyx__Coroutine_AlreadyRunningError(__pyx_CoroutineObject *gen) {
    const char *msg;
    CYTHON_MAYBE_UNUSED_VAR(gen);
    if ((0)) {
    #ifdef __Pyx_Coroutine_USED
    } else if (__Pyx_Coroutine_Check((PyObject*)gen)) {
        msg = "coroutine already executing";
    #endif
    #ifdef __Pyx_AsyncGen_USED
    } else if (__Pyx_AsyncGen_CheckExact((PyObject*)gen)) {
        msg = "async generator already executing";
    #endif
    } else {
        msg = "generator already executing";
    }
    PyErr_SetString(PyExc_ValueError, msg);
}
static void __Pyx_Coroutine_AlreadyTerminatedError(PyObject *gen, PyObject *value, int closing) {
    CYTHON_MAYBE_UNUSED_VAR(gen);
    CYTHON_MAYBE_UNUSED_VAR(closing);
    #ifdef __Pyx_Coroutine_USED
    if (!closing && __Pyx_Coroutine_Check(gen)) {
        PyErr_SetString(PyExc_RuntimeError, "cannot reuse already awaited coroutine");
    } else
    #endif
    if (value) {
        #ifdef __Pyx_AsyncGen_USED
        if (__Pyx_AsyncGen_CheckExact(gen))
            PyErr_SetNone(PyExc_StopAsyncIteration);
        else
        #endif
        PyErr_SetNone(PyExc_StopIteration);
    }
}
static
__Pyx_PySendResult __Pyx_Coroutine_SendEx(__pyx_CoroutineObject *self, PyObject *value, PyObject **result, int closing) {
    __Pyx_PyThreadState_declare
    PyThreadState *tstate;
    __Pyx_ExcInfoStruct *exc_state;
    PyObject *retval;
    assert(__Pyx_Coroutine_get_is_running(self));  // Callers should ensure is_running
    if (unlikely(self->resume_label == -1)) {
        __Pyx_Coroutine_AlreadyTerminatedError((PyObject*)self, value, closing);
        return PYGEN_ERROR;
    }
#if CYTHON_FAST_THREAD_STATE
    __Pyx_PyThreadState_assign
    tstate = __pyx_tstate;
#else
    tstate = __Pyx_PyThreadState_Current;
#endif
    exc_state = &self->gi_exc_state;
    if (exc_state->exc_value) {
        #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        #else
        PyObject *exc_tb;
        #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON
        exc_tb = PyException_GetTraceback(exc_state->exc_value);
        #elif PY_VERSION_HEX >= 0x030B00a4
        exc_tb = ((PyBaseExceptionObject*) exc_state->exc_value)->traceback;
        #else
        exc_tb = exc_state->exc_traceback;
        #endif
        if (exc_tb) {
            PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
            PyFrameObject *f = tb->tb_frame;
            assert(f->f_back == NULL);
            #if PY_VERSION_HEX >= 0x030B00A1
            f->f_back = PyThreadState_GetFrame(tstate);
            #else
            Py_XINCREF(tstate->frame);
            f->f_back = tstate->frame;
            #endif
            #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_CPYTHON
            Py_DECREF(exc_tb);
            #endif
        }
        #endif
    }
#if CYTHON_USE_EXC_INFO_STACK
    exc_state->previous_item = tstate->exc_info;
    tstate->exc_info = exc_state;
#else
    if (exc_state->exc_type) {
        __Pyx_ExceptionSwap(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    } else {
        __Pyx_Coroutine_ExceptionClear(exc_state);
        __Pyx_ExceptionSave(&exc_state->exc_type, &exc_state->exc_value, &exc_state->exc_traceback);
    }
#endif
    retval = self->body(self, tstate, value);
#if CYTHON_USE_EXC_INFO_STACK
    exc_state = &self->gi_exc_state;
    tstate->exc_info = exc_state->previous_item;
    exc_state->previous_item = NULL;
    __Pyx_Coroutine_ResetFrameBackpointer(exc_state);
#endif
    *result = retval;
    if (self->resume_label == -1) {
        return likely(retval) ? PYGEN_RETURN : PYGEN_ERROR;
    }
    return PYGEN_NEXT;
}
static CYTHON_INLINE void __Pyx_Coroutine_ResetFrameBackpointer(__Pyx_ExcInfoStruct *exc_state) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED_VAR(exc_state);
#else
    PyObject *exc_tb;
    #if PY_VERSION_HEX >= 0x030B00a4
    if (!exc_state->exc_value) return;
    exc_tb = PyException_GetTraceback(exc_state->exc_value);
    #else
    exc_tb = exc_state->exc_traceback;
    #endif
    if (likely(exc_tb)) {
        PyTracebackObject *tb = (PyTracebackObject *) exc_tb;
        PyFrameObject *f = tb->tb_frame;
        Py_CLEAR(f->f_back);
        #if PY_VERSION_HEX >= 0x030B00a4
        Py_DECREF(exc_tb);
        #endif
    }
#endif
}
#define __Pyx_Coroutine_MethodReturnFromResult(gen, result, retval, iternext)\
    ((result) == PYGEN_NEXT ? (retval) : __Pyx__Coroutine_MethodReturnFromResult(gen, result, retval, iternext))
static PyObject *
__Pyx__Coroutine_MethodReturnFromResult(PyObject* gen, __Pyx_PySendResult result, PyObject *retval, int iternext) {
    CYTHON_MAYBE_UNUSED_VAR(gen);
    if (likely(result == PYGEN_RETURN)) {
        int is_async = 0;
        #ifdef __Pyx_AsyncGen_USED
        is_async = __Pyx_AsyncGen_CheckExact(gen);
        #endif
        __Pyx_ReturnWithStopIteration(retval, is_async, iternext);
        Py_XDECREF(retval);
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE
PyObject *__Pyx_PyGen_Send(PyGenObject *gen, PyObject *arg) {
#if PY_VERSION_HEX <= 0x030A00A1
    return _PyGen_Send(gen, arg);
#else
    PyObject *result;
    if (PyIter_Send((PyObject*)gen, arg ? arg : Py_None, &result) == PYGEN_RETURN) {
        if (PyAsyncGen_CheckExact(gen)) {
            assert(result == Py_None);
            PyErr_SetNone(PyExc_StopAsyncIteration);
        }
        else if (result == Py_None) {
            PyErr_SetNone(PyExc_StopIteration);
        }
        else {
#if PY_VERSION_HEX < 0x030d00A1
            _PyGen_SetStopIterationValue(result);
#else
            if (!PyTuple_Check(result) && !PyExceptionInstance_Check(result)) {
                PyErr_SetObject(PyExc_StopIteration, result);
            } else {
                PyObject *exc = __Pyx_PyObject_CallOneArg(PyExc_StopIteration, result);
                if (likely(exc != NULL)) {
                    PyErr_SetObject(PyExc_StopIteration, exc);
                    Py_DECREF(exc);
                }
            }
#endif
        }
        Py_DECREF(result);
        result = NULL;
    }
    return result;
#endif
}
#endif
static CYTHON_INLINE __Pyx_PySendResult
__Pyx_Coroutine_FinishDelegation(__pyx_CoroutineObject *gen, PyObject** retval) {
    __Pyx_PySendResult result;
    PyObject *val = NULL;
    assert(__Pyx_Coroutine_get_is_running(gen));
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_PyGen__FetchStopIterationValue(__Pyx_PyThreadState_Current, &val);
    result = __Pyx_Coroutine_SendEx(gen, val, retval, 0);
    Py_XDECREF(val);
    return result;
}
#if CYTHON_USE_AM_SEND
static __Pyx_PySendResult
__Pyx_Coroutine_SendToDelegate(__pyx_CoroutineObject *gen, __Pyx_pyiter_sendfunc gen_am_send, PyObject *value, PyObject **retval) {
    PyObject *ret = NULL;
    __Pyx_PySendResult delegate_result, result;
    assert(__Pyx_Coroutine_get_is_running(gen));
    delegate_result = gen_am_send(gen->yieldfrom, value, &ret);
    if (delegate_result == PYGEN_NEXT) {
        assert (ret != NULL);
        *retval = ret;
        return PYGEN_NEXT;
    }
    assert (delegate_result != PYGEN_ERROR || ret == NULL);
    __Pyx_Coroutine_Undelegate(gen);
    result = __Pyx_Coroutine_SendEx(gen, ret, retval, 0);
    Py_XDECREF(ret);
    return result;
}
#endif
static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
    PyObject *retval = NULL;
    __Pyx_PySendResult result = __Pyx_Coroutine_AmSend(self, value, &retval);
    return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 0);
}
static __Pyx_PySendResult
__Pyx_Coroutine_AmSend(PyObject *self, PyObject *value, PyObject **retval) {
    __Pyx_PySendResult result;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        *retval = __Pyx_Coroutine_AlreadyRunningError(gen);
        return PYGEN_ERROR;
    }
    #if CYTHON_USE_AM_SEND
    if (gen->yieldfrom_am_send) {
        result = __Pyx_Coroutine_SendToDelegate(gen, gen->yieldfrom_am_send, value, retval);
    } else
    #endif
    if (gen->yieldfrom) {
        PyObject *yf = gen->yieldfrom;
        PyObject *ret;
      #if !CYTHON_USE_AM_SEND
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_Check(yf)) {
            ret = __Pyx_Coroutine_Send(yf, value);
        } else
        #endif
        #ifdef __Pyx_AsyncGen_USED
        if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
            ret = __Pyx_async_gen_asend_send(yf, value);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        if (PyCoro_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
        } else
        #endif
      #endif
        {
            #if !CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x03080000
            if (value == Py_None && PyIter_Check(yf))
                ret = __Pyx_PyIter_Next_Plain(yf);
            else
            #endif
                ret = __Pyx_PyObject_CallMethod1(yf, __pyx_mstate_global->__pyx_n_u_send, value);
        }
        if (likely(ret)) {
            __Pyx_Coroutine_unset_is_running(gen);
            *retval = ret;
            return PYGEN_NEXT;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, retval);
    } else {
        result = __Pyx_Coroutine_SendEx(gen, value, retval, 0);
    }
    __Pyx_Coroutine_unset_is_running(gen);
    return result;
}
static int __Pyx_Coroutine_CloseIter(__pyx_CoroutineObject *gen, PyObject *yf) {
    __Pyx_PySendResult result;
    PyObject *retval = NULL;
    CYTHON_UNUSED_VAR(gen);
    assert(__Pyx_Coroutine_get_is_running(gen));
    #ifdef __Pyx_Generator_USED
    if (__Pyx_Generator_CheckExact(yf)) {
        result = __Pyx_Coroutine_Close(yf, &retval);
    } else
    #endif
    #ifdef __Pyx_Coroutine_USED
    if (__Pyx_Coroutine_Check(yf)) {
        result = __Pyx_Coroutine_Close(yf, &retval);
    } else
    if (__Pyx_CoroutineAwait_CheckExact(yf)) {
        result = __Pyx_CoroutineAwait_Close((__pyx_CoroutineAwaitObject*)yf);
    } else
    #endif
    #ifdef __Pyx_AsyncGen_USED
    if (__pyx_PyAsyncGenASend_CheckExact(yf)) {
        retval = __Pyx_async_gen_asend_close(yf, NULL);
        result = PYGEN_RETURN;
    } else
    if (__pyx_PyAsyncGenAThrow_CheckExact(yf)) {
        retval = __Pyx_async_gen_athrow_close(yf, NULL);
        result = PYGEN_RETURN;
    } else
    #endif
    {
        PyObject *meth;
        result = PYGEN_RETURN;
        meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_mstate_global->__pyx_n_u_close);
        if (unlikely(!meth)) {
            if (unlikely(PyErr_Occurred())) {
                PyErr_WriteUnraisable(yf);
            }
        } else {
            retval = __Pyx_PyObject_CallNoArg(meth);
            Py_DECREF(meth);
            if (unlikely(!retval)) {
                result = PYGEN_ERROR;
            }
        }
    }
    Py_XDECREF(retval);
    return result == PYGEN_ERROR ? -1 : 0;
}
static PyObject *__Pyx_Generator_Next(PyObject *self) {
    __Pyx_PySendResult result;
    PyObject *retval = NULL;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    }
    #if CYTHON_USE_AM_SEND
    if (gen->yieldfrom_am_send) {
        result = __Pyx_Coroutine_SendToDelegate(gen, gen->yieldfrom_am_send, Py_None, &retval);
    } else
    #endif
    if (gen->yieldfrom) {
        PyObject *yf = gen->yieldfrom;
        PyObject *ret;
        #ifdef __Pyx_Generator_USED
        if (__Pyx_Generator_CheckExact(yf)) {
            ret = __Pyx_Generator_Next(yf);
        } else
        #endif
        #ifdef __Pyx_Coroutine_USED
        if (__Pyx_Coroutine_CheckExact(yf)) {
            ret = __Pyx_Coroutine_Send(yf, Py_None);
        } else
        #endif
        #if CYTHON_COMPILING_IN_CPYTHON && (PY_VERSION_HEX < 0x030A00A3 || !CYTHON_USE_AM_SEND)
        if (PyGen_CheckExact(yf)) {
            ret = __Pyx_PyGen_Send((PyGenObject*)yf, NULL);
        } else
        #endif
            ret = __Pyx_PyIter_Next_Plain(yf);
        if (likely(ret)) {
            __Pyx_Coroutine_unset_is_running(gen);
            return ret;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, &retval);
    } else {
        result = __Pyx_Coroutine_SendEx(gen, Py_None, &retval, 0);
    }
    __Pyx_Coroutine_unset_is_running(gen);
    return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 1);
}
static PyObject *__Pyx_Coroutine_Close_Method(PyObject *self, PyObject *arg) {
    PyObject *retval = NULL;
    __Pyx_PySendResult result;
    CYTHON_UNUSED_VAR(arg);
    result = __Pyx_Coroutine_Close(self, &retval);
    if (unlikely(result == PYGEN_ERROR))
        return NULL;
    Py_XDECREF(retval);
    Py_RETURN_NONE;
}
static __Pyx_PySendResult
__Pyx_Coroutine_Close(PyObject *self, PyObject **retval) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PySendResult result;
    PyObject *yf;
    int err = 0;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        *retval = __Pyx_Coroutine_AlreadyRunningError(gen);
        return PYGEN_ERROR;
    }
    yf = gen->yieldfrom;
    if (yf) {
        Py_INCREF(yf);
        err = __Pyx_Coroutine_CloseIter(gen, yf);
        __Pyx_Coroutine_Undelegate(gen);
        Py_DECREF(yf);
    }
    if (err == 0)
        PyErr_SetNone(PyExc_GeneratorExit);
    result = __Pyx_Coroutine_SendEx(gen, NULL, retval, 1);
    if (result == PYGEN_ERROR) {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_Coroutine_unset_is_running(gen);
        if (!__Pyx_PyErr_Occurred()) {
            return PYGEN_RETURN;
        } else if (likely(__Pyx_PyErr_ExceptionMatches2(PyExc_GeneratorExit, PyExc_StopIteration))) {
            __Pyx_PyErr_Clear();
            return PYGEN_RETURN;
        }
        return PYGEN_ERROR;
    } else if (likely(result == PYGEN_RETURN && *retval == Py_None)) {
        __Pyx_Coroutine_unset_is_running(gen);
        return PYGEN_RETURN;
    } else {
        const char *msg;
        Py_DECREF(*retval);
        *retval = NULL;
        if ((0)) {
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_Coroutine_Check(self)) {
            msg = "coroutine ignored GeneratorExit";
        #endif
        #ifdef __Pyx_AsyncGen_USED
        } else if (__Pyx_AsyncGen_CheckExact(self)) {
            msg = "async generator ignored GeneratorExit";
        #endif
        } else {
            msg = "generator ignored GeneratorExit";
        }
        PyErr_SetString(PyExc_RuntimeError, msg);
        __Pyx_Coroutine_unset_is_running(gen);
        return PYGEN_ERROR;
    }
}
static PyObject *__Pyx__Coroutine_Throw(PyObject *self, PyObject *typ, PyObject *val, PyObject *tb,
                                        PyObject *args, int close_on_genexit) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject *yf;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen)))
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    yf = gen->yieldfrom;
    if (yf) {
        __Pyx_PySendResult result;
        PyObject *ret;
        Py_INCREF(yf);
        if (__Pyx_PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit) && close_on_genexit) {
            int err = __Pyx_Coroutine_CloseIter(gen, yf);
            Py_DECREF(yf);
            __Pyx_Coroutine_Undelegate(gen);
            if (err < 0)
                goto propagate_exception;
            goto throw_here;
        }
        if (0
        #ifdef __Pyx_Generator_USED
            || __Pyx_Generator_CheckExact(yf)
        #endif
        #ifdef __Pyx_Coroutine_USED
            || __Pyx_Coroutine_Check(yf)
        #endif
            ) {
            ret = __Pyx__Coroutine_Throw(yf, typ, val, tb, args, close_on_genexit);
        #ifdef __Pyx_Coroutine_USED
        } else if (__Pyx_CoroutineAwait_CheckExact(yf)) {
            ret = __Pyx__Coroutine_Throw(((__pyx_CoroutineAwaitObject*)yf)->coroutine, typ, val, tb, args, close_on_genexit);
        #endif
        } else {
            PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(yf, __pyx_mstate_global->__pyx_n_u_throw);
            if (unlikely(!meth)) {
                Py_DECREF(yf);
                if (unlikely(PyErr_Occurred())) {
                    __Pyx_Coroutine_unset_is_running(gen);
                    return NULL;
                }
                __Pyx_Coroutine_Undelegate(gen);
                goto throw_here;
            }
            if (likely(args)) {
                ret = __Pyx_PyObject_Call(meth, args, NULL);
            } else {
                PyObject *cargs[4] = {NULL, typ, val, tb};
                size_t nargs = 1U + (val != NULL) + (tb != NULL);
                ret = __Pyx_PyObject_FastCall(meth, cargs+1, nargs | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
            }
            Py_DECREF(meth);
        }
        Py_DECREF(yf);
        if (ret) {
            __Pyx_Coroutine_unset_is_running(gen);
            return ret;
        }
        result = __Pyx_Coroutine_FinishDelegation(gen, &ret);
        __Pyx_Coroutine_unset_is_running(gen);
        return __Pyx_Coroutine_MethodReturnFromResult(self, result, ret, 0);
    }
throw_here:
    __Pyx_Raise(typ, val, tb, NULL);
propagate_exception:
    {
        PyObject *retval = NULL;
        __Pyx_PySendResult result = __Pyx_Coroutine_SendEx(gen, NULL, &retval, 0);
        __Pyx_Coroutine_unset_is_running(gen);
        return __Pyx_Coroutine_MethodReturnFromResult(self, result, retval, 0);
    }
}
static PyObject *__Pyx_Coroutine_Throw(PyObject *self, PyObject *args) {
    PyObject *typ;
    PyObject *val = NULL;
    PyObject *tb = NULL;
    if (unlikely(!PyArg_UnpackTuple(args, "throw", 1, 3, &typ, &val, &tb)))
        return NULL;
    return __Pyx__Coroutine_Throw(self, typ, val, tb, args, 1);
}
static CYTHON_INLINE int __Pyx_Coroutine_traverse_excstate(__Pyx_ExcInfoStruct *exc_state, visitproc visit, void *arg) {
#if PY_VERSION_HEX >= 0x030B00a4
    Py_VISIT(exc_state->exc_value);
#else
    Py_VISIT(exc_state->exc_type);
    Py_VISIT(exc_state->exc_value);
    Py_VISIT(exc_state->exc_traceback);
#endif
    return 0;
}
static int __Pyx_Coroutine_traverse(__pyx_CoroutineObject *gen, visitproc visit, void *arg) {
    {
        int e = __Pyx_call_type_traverse((PyObject*)gen, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(gen->closure);
    Py_VISIT(gen->classobj);
    Py_VISIT(gen->yieldfrom);
    return __Pyx_Coroutine_traverse_excstate(&gen->gi_exc_state, visit, arg);
}
static int __Pyx_Coroutine_clear(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    Py_CLEAR(gen->closure);
    Py_CLEAR(gen->classobj);
    __Pyx_Coroutine_Undelegate(gen);
    __Pyx_Coroutine_ExceptionClear(&gen->gi_exc_state);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        Py_CLEAR(((__pyx_PyAsyncGenObject*)gen)->ag_finalizer);
    }
#endif
    Py_CLEAR(gen->gi_code);
    Py_CLEAR(gen->gi_frame);
    Py_CLEAR(gen->gi_name);
    Py_CLEAR(gen->gi_qualname);
    Py_CLEAR(gen->gi_modulename);
    return 0;
}
static void __Pyx_Coroutine_dealloc(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    PyObject_GC_UnTrack(gen);
    #if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    if (gen->gi_weakreflist != NULL)
    #endif
        PyObject_ClearWeakRefs(self);
    if (gen->resume_label >= 0) {
        PyObject_GC_Track(self);
#if CYTHON_USE_TP_FINALIZE
        if (unlikely(PyObject_CallFinalizerFromDealloc(self)))
#else
        {
            destructor del = __Pyx_PyObject_GetSlot(gen, tp_del, destructor);
            if (del) del(self);
        }
        if (unlikely(Py_REFCNT(self) > 0))
#endif
        {
            return;
        }
        PyObject_GC_UnTrack(self);
    }
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        /* We have to handle this case for asynchronous generators
           right here, because this code has to be between UNTRACK
           and GC_Del. */
        Py_CLEAR(((__pyx_PyAsyncGenObject*)self)->ag_finalizer);
    }
#endif
    __Pyx_Coroutine_clear(self);
    __Pyx_PyHeapTypeObject_GC_Del(gen);
}
#if CYTHON_USE_TP_FINALIZE
static void __Pyx_Coroutine_del(PyObject *self) {
    PyObject *error_type, *error_value, *error_traceback;
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject *) self;
    __Pyx_PyThreadState_declare
    if (gen->resume_label < 0) {
        return;
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&error_type, &error_value, &error_traceback);
#ifdef __Pyx_AsyncGen_USED
    if (__Pyx_AsyncGen_CheckExact(self)) {
        __pyx_PyAsyncGenObject *agen = (__pyx_PyAsyncGenObject*)self;
        PyObject *finalizer = agen->ag_finalizer;
        if (finalizer && !agen->ag_closed) {
            PyObject *res = __Pyx_PyObject_CallOneArg(finalizer, self);
            if (unlikely(!res)) {
                PyErr_WriteUnraisable(self);
            } else {
                Py_DECREF(res);
            }
            __Pyx_ErrRestore(error_type, error_value, error_traceback);
            return;
        }
    }
#endif
    if (unlikely(gen->resume_label == 0 && !error_value)) {
#ifdef __Pyx_Coroutine_USED
#ifdef __Pyx_Generator_USED
    if (!__Pyx_Generator_CheckExact(self))
#endif
        {
        PyObject_GC_UnTrack(self);
        if (unlikely(PyErr_WarnFormat(PyExc_RuntimeWarning, 1, "coroutine '%.50S' was never awaited", gen->gi_qualname) < 0))
            PyErr_WriteUnraisable(self);
        PyObject_GC_Track(self);
        }
#endif
    } else {
        PyObject *retval = NULL;
        __Pyx_PySendResult result = __Pyx_Coroutine_Close(self, &retval);
        if (result == PYGEN_ERROR) {
            PyErr_WriteUnraisable(self);
        } else {
            Py_XDECREF(retval);
        }
    }
    __Pyx_ErrRestore(error_type, error_value, error_traceback);
}
#endif
static PyObject *
__Pyx_Coroutine_get_name(__pyx_CoroutineObject *self, void *context)
{
    PyObject *name = self->gi_name;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_name(__pyx_CoroutineObject *self, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(self->gi_name, value);
    return 0;
}
static PyObject *
__Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self, void *context)
{
    PyObject *name = self->gi_qualname;
    CYTHON_UNUSED_VAR(context);
    if (unlikely(!name)) name = Py_None;
    Py_INCREF(name);
    return name;
}
static int
__Pyx_Coroutine_set_qualname(__pyx_CoroutineObject *self, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(self->gi_qualname, value);
    return 0;
}
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx__Coroutine_get_frame_locked(__pyx_CoroutineObject *self) {
    PyObject *frame;
    frame = self->gi_frame;
    if (!frame) {
        if (unlikely(!self->gi_code)) {
            Py_RETURN_NONE;
        }
        PyObject *globals = PyDict_New();
        if (unlikely(!globals)) return NULL;
        frame = (PyObject *) PyFrame_New(
            PyThreadState_Get(),            /*PyThreadState *tstate,*/
            (PyCodeObject*) self->gi_code,  /*PyCodeObject *code,*/
            globals,                        /*PyObject *globals,*/
            0                               /*PyObject *locals*/
        );
        Py_DECREF(globals);
        if (unlikely(!frame))
            return NULL;
        if (unlikely(self->gi_frame)) {
            Py_DECREF(frame);
            frame = self->gi_frame;
        } else {
            self->gi_frame = frame;
        }
    }
    Py_INCREF(frame);
    return frame;
}
#endif
static PyObject *
__Pyx__Coroutine_get_frame(__pyx_CoroutineObject *self)
{
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyObject *frame;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)self);
    frame = __Pyx__Coroutine_get_frame_locked(self);
    __Pyx_END_CRITICAL_SECTION();
    return frame;
#else
    CYTHON_UNUSED_VAR(self);
    Py_RETURN_NONE;
#endif
}
static PyObject *
__Pyx_Coroutine_get_frame(__pyx_CoroutineObject *self, void *context) {
    CYTHON_UNUSED_VAR(context);
    PyObject *frame = self->gi_frame;
    if (frame)
        return __Pyx_NewRef(frame);
    return __Pyx__Coroutine_get_frame(self);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_New(
            PyTypeObject* type, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    __pyx_CoroutineObject *gen = PyObject_GC_New(__pyx_CoroutineObject, type);
    if (unlikely(!gen))
        return NULL;
    return __Pyx__Coroutine_NewInit(gen, body, code, closure, name, qualname, module_name);
}
static __pyx_CoroutineObject *__Pyx__Coroutine_NewInit(
            __pyx_CoroutineObject *gen, __pyx_coroutine_body_t body, PyObject *code, PyObject *closure,
            PyObject *name, PyObject *qualname, PyObject *module_name) {
    gen->body = body;
    gen->closure = closure;
    Py_XINCREF(closure);
    gen->is_running = 0;
    gen->resume_label = 0;
    gen->classobj = NULL;
    gen->yieldfrom = NULL;
    gen->yieldfrom_am_send = NULL;
    #if PY_VERSION_HEX >= 0x030B00a4 && !CYTHON_COMPILING_IN_LIMITED_API
    gen->gi_exc_state.exc_value = NULL;
    #else
    gen->gi_exc_state.exc_type = NULL;
    gen->gi_exc_state.exc_value = NULL;
    gen->gi_exc_state.exc_traceback = NULL;
    #endif
#if CYTHON_USE_EXC_INFO_STACK
    gen->gi_exc_state.previous_item = NULL;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    gen->gi_weakreflist = NULL;
#endif
    Py_XINCREF(qualname);
    gen->gi_qualname = qualname;
    Py_XINCREF(name);
    gen->gi_name = name;
    Py_XINCREF(module_name);
    gen->gi_modulename = module_name;
    Py_XINCREF(code);
    gen->gi_code = code;
    gen->gi_frame = NULL;
#if CYTHON_USE_SYS_MONITORING && (CYTHON_PROFILE || CYTHON_TRACE)
    memset(gen->__pyx_pymonitoring_state, 0, sizeof(gen->__pyx_pymonitoring_state));
    gen->__pyx_pymonitoring_version = 0;
#endif
    PyObject_GC_Track(gen);
    return gen;
}
static char __Pyx_Coroutine_test_and_set_is_running(__pyx_CoroutineObject *gen) {
    char result;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    result = gen->is_running;
    gen->is_running = 1;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_Coroutine_unset_is_running(__pyx_CoroutineObject *gen) {
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    assert(gen->is_running);
    gen->is_running = 0;
    __Pyx_END_CRITICAL_SECTION();
}
static char __Pyx_Coroutine_get_is_running(__pyx_CoroutineObject *gen) {
    char result;
    __Pyx_BEGIN_CRITICAL_SECTION((PyObject*)gen);
    result = gen->is_running;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *__Pyx_Coroutine_get_is_running_getter(PyObject *gen, void *closure) {
    CYTHON_UNUSED_VAR(closure);
    char result = __Pyx_Coroutine_get_is_running((__pyx_CoroutineObject*)gen);
    if (result) Py_RETURN_TRUE;
    else Py_RETURN_FALSE;
}
#if __PYX_HAS_PY_AM_SEND == 2
static void __Pyx_SetBackportTypeAmSend(PyTypeObject *type, __Pyx_PyAsyncMethodsStruct *static_amsend_methods, __Pyx_pyiter_sendfunc am_send) {
    Py_ssize_t ptr_offset = (char*)(type->tp_as_async) - (char*)type;
    if (ptr_offset < 0 || ptr_offset > type->tp_basicsize) {
        return;
    }
    memcpy((void*)static_amsend_methods, (void*)(type->tp_as_async), sizeof(*type->tp_as_async));
    static_amsend_methods->am_send = am_send;
    type->tp_as_async = __Pyx_SlotTpAsAsync(static_amsend_methods);
}
#endif
static PyObject *__Pyx_Coroutine_fail_reduce_ex(PyObject *self, PyObject *arg) {
    CYTHON_UNUSED_VAR(arg);
    __Pyx_TypeName self_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE((PyObject*)self));
    PyErr_Format(PyExc_TypeError, "cannot pickle '" __Pyx_FMT_TYPENAME "' object",
                         self_type_name);
    __Pyx_DECREF_TypeName(self_type_name);
    return NULL;
}

/* Generator */
static PyMethodDef __pyx_Generator_methods[] = {
    {"send", (PyCFunction) __Pyx_Coroutine_Send, METH_O,
     PyDoc_STR("send(arg) -> send 'arg' into generator,\nreturn next yielded value or raise StopIteration.")},
    {"throw", (PyCFunction) __Pyx_Coroutine_Throw, METH_VARARGS,
     PyDoc_STR("throw(typ[,val[,tb]]) -> raise exception in generator,\nreturn next yielded value or raise StopIteration.")},
    {"close", (PyCFunction) __Pyx_Coroutine_Close_Method, METH_NOARGS,
     PyDoc_STR("close() -> raise GeneratorExit inside generator.")},
    {"__reduce_ex__", (PyCFunction) __Pyx_Coroutine_fail_reduce_ex, METH_O, 0},
    {"__reduce__", (PyCFunction) __Pyx_Coroutine_fail_reduce_ex, METH_NOARGS, 0},
    {0, 0, 0, 0}
};
static PyMemberDef __pyx_Generator_memberlist[] = {
    {"gi_yieldfrom", T_OBJECT, offsetof(__pyx_CoroutineObject, yieldfrom), READONLY,
     PyDoc_STR("object being iterated by 'yield from', or None")},
    {"gi_code", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_code), READONLY, NULL},
    {"__module__", T_OBJECT, offsetof(__pyx_CoroutineObject, gi_modulename), 0, 0},
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CoroutineObject, gi_weakreflist), READONLY, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyGetSetDef __pyx_Generator_getsets[] = {
    {"__name__", (getter)__Pyx_Coroutine_get_name, (setter)__Pyx_Coroutine_set_name,
     PyDoc_STR("name of the generator"), 0},
    {"__qualname__", (getter)__Pyx_Coroutine_get_qualname, (setter)__Pyx_Coroutine_set_qualname,
     PyDoc_STR("qualified name of the generator"), 0},
    {"gi_frame", (getter)__Pyx_Coroutine_get_frame, NULL,
     PyDoc_STR("Frame of the generator"), 0},
    {"gi_running", __Pyx_Coroutine_get_is_running_getter, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_GeneratorType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_Coroutine_dealloc},
    {Py_tp_traverse, (void *)__Pyx_Coroutine_traverse},
    {Py_tp_iter, (void *)PyObject_SelfIter},
    {Py_tp_iternext, (void *)__Pyx_Generator_Next},
    {Py_tp_methods, (void *)__pyx_Generator_methods},
    {Py_tp_members, (void *)__pyx_Generator_memberlist},
    {Py_tp_getset, (void *)__pyx_Generator_getsets},
    {Py_tp_getattro, (void *) PyObject_GenericGetAttr},
#if CYTHON_USE_TP_FINALIZE
    {Py_tp_finalize, (void *)__Pyx_Coroutine_del},
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    {Py_am_send, (void *)__Pyx_Coroutine_AmSend},
#endif
    {0, 0},
};
static PyType_Spec __pyx_GeneratorType_spec = {
    __PYX_TYPE_MODULE_PREFIX "generator",
    sizeof(__pyx_CoroutineObject),
    0,
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_WEAKREF |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | __Pyx_TPFLAGS_HAVE_AM_SEND,
    __pyx_GeneratorType_slots
};
#if __PYX_HAS_PY_AM_SEND == 2
static __Pyx_PyAsyncMethodsStruct __pyx_Generator_as_async;
#endif
static int __pyx_Generator_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_GeneratorType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_GeneratorType_spec, NULL);
    if (unlikely(!mstate->__pyx_GeneratorType)) {
        return -1;
    }
#if __PYX_HAS_PY_AM_SEND == 2
    __Pyx_SetBackportTypeAmSend(mstate->__pyx_GeneratorType, &__pyx_Generator_as_async, &__Pyx_Coroutine_AmSend);
#endif
    return 0;
}
static PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self) {
    __pyx_CoroutineObject *gen = (__pyx_CoroutineObject*) self;
    PyObject *retval = NULL;
    if (unlikely(__Pyx_Coroutine_test_and_set_is_running(gen))) {
        return __Pyx_Coroutine_AlreadyRunningError(gen);
    }
    __Pyx_PySendResult result = __Pyx_Coroutine_SendEx(gen, Py_None, &retval, 0);
    __Pyx_Coroutine_unset_is_running(gen);
    (void) result;
    assert (result == PYGEN_RETURN || result == PYGEN_ERROR);
    assert ((result == PYGEN_RETURN && retval != NULL) || (result == PYGEN_ERROR && retval == NULL));
    return retval;
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* NewCodeObj */
#if CYTHON_COMPILING_IN_LIMITED_API
    static PyObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                       PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                       PyObject *fv, PyObject *cell, PyObject* fn,
                                       PyObject *name, int fline, PyObject *lnos) {
        PyObject *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 7) {
            (void)p;
            result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOOO", a, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return result;
    }
#elif PY_VERSION_HEX >= 0x030B0000
  static PyCodeObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                         PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                         PyObject *fv, PyObject *cell, PyObject* fn,
                                         PyObject *name, int fline, PyObject *lnos) {
    PyCodeObject *result;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
    if (likely(result))
        result->_co_firsttraceable = 0;
    #endif
    return result;
  }
#elif !CYTHON_COMPILING_IN_PYPY
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx__PyCode_New(a, p, 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)
#endif
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
) {
    PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL;
    Py_ssize_t var_count = (Py_ssize_t) descr.nlocals;
    PyObject *varnames_tuple = PyTuple_New(var_count);
    if (unlikely(!varnames_tuple)) return NULL;
    for (Py_ssize_t i=0; i < var_count; i++) {
        Py_INCREF(varnames[i]);
        if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done;
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple);
    if (!varnames_tuple_dedup) {
        if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done;
        varnames_tuple_dedup = varnames_tuple;
    }
    #else
    varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple);
    if (unlikely(!varnames_tuple_dedup)) goto done;
    #endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(varnames_tuple_dedup);
    #endif
    if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) {
        Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(line_table_length == -1)) goto done;
        #endif
        Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL;
        code_bytes = PyBytes_FromStringAndSize(NULL, code_len);
        if (unlikely(!code_bytes)) goto done;
        char* c_code_bytes = PyBytes_AsString(code_bytes);
        if (unlikely(!c_code_bytes)) goto done;
        memset(c_code_bytes, 0, (size_t) code_len);
    }
    code_obj = (PyObject*) __Pyx__PyCode_New(
        (int) descr.argcount,
        (int) descr.num_posonly_args,
        (int) descr.num_kwonly_args,
        (int) descr.nlocals,
        0,
        (int) descr.flags,
        code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        varnames_tuple_dedup,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        filename,
        funcname,
        (int) descr.first_line,
        (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes
    );
done:
    Py_XDECREF(code_bytes);
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(varnames_tuple_dedup);
    #endif
    Py_DECREF(varnames_tuple);
    return code_obj;
}

/* DecompressString */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) {
    PyObject *module = NULL, *decompress, *compressed_bytes, *decompressed;
    const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib";
    PyObject *methodname = PyUnicode_FromString("decompress");
    if (unlikely(!methodname)) return NULL;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    if (algo == 3) {
        PyObject *fromlist = Py_BuildValue("[O]", methodname);
        if (unlikely(!fromlist)) goto bad;
        module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
    } else
    #endif
        module = PyImport_ImportModule(module_name);
    if (unlikely(!module)) goto import_failed;
    decompress = PyObject_GetAttr(module, methodname);
    if (unlikely(!decompress)) goto import_failed;
    {
        #ifdef __cplusplus
            char *memview_bytes = const_cast<char*>(s);
        #else
            #if defined(__clang__)
              #pragma clang diagnostic push
              #pragma clang diagnostic ignored "-Wcast-qual"
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic push
              #pragma GCC diagnostic ignored "-Wcast-qual"
            #endif
            char *memview_bytes = (char*) s;
            #if defined(__clang__)
              #pragma clang diagnostic pop
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic pop
            #endif
        #endif
        #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ)
        int memview_flags = 0x100;
        #else
        int memview_flags = PyBUF_READ;
        #endif
        compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags);
    }
    if (unlikely(!compressed_bytes)) {
        Py_DECREF(decompress);
        goto bad;
    }
    decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL);
    Py_DECREF(compressed_bytes);
    Py_DECREF(decompress);
    Py_DECREF(module);
    Py_DECREF(methodname);
    return decompressed;
import_failed:
    PyErr_Format(PyExc_ImportError,
        "Failed to import '%.20s.decompress' - cannot initialise module strings. "
        "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.",
        module_name, algo);
bad:
    Py_XDECREF(module);
    Py_DECREF(methodname);
    return NULL;
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    {
        const char* result;
        Py_ssize_t unicode_length;
        CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL;
        #else
        result = PyUnicode_AsUTF8AndSize(o, length);
        #endif
        #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        unicode_length = PyUnicode_GetLength(o);
        if (unlikely(unicode_length < 0)) return NULL;
        if (unlikely(unicode_length != *length)) {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
        #endif
        return result;
    }
#else
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(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
}
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
    if (PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
    if (PyByteArray_Check(o)) {
#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)))
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
#else
        *length = PyByteArray_Size(o);
        if (*length == -1) return NULL;
        return PyByteArray_AsString(o);
#endif
    } else
    {
        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 int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_LongWrongResultType(PyObject* result) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result));
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
    PyErr_Format(PyExc_TypeError,
                 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")",
                 result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  PyObject *res = NULL;
  if (likely(PyLong_Check(x)))
      return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  if (likely(m && m->nb_int)) {
      res = m->nb_int(x);
  }
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
      res = PyNumber_Long(x);
  }
#endif
  if (likely(res)) {
      if (unlikely(!PyLong_CheckExact(res))) {
          return __Pyx_PyNumber_LongWrongResultType(res);
      }
  }
  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 (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(__Pyx_PyLong_IsCompact(b))) {
        return __Pyx_PyLong_CompactValue(b);
    } else {
      const digit* digits = __Pyx_PyLong_Digits(b);
      const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
      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 = PyLong_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyLong_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) {
    CYTHON_UNUSED_VAR(b);
    return __Pyx_NewRef(Py_None);
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return __Pyx_NewRef(b ? Py_True: Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
    return PyLong_FromSize_t(ival);
}


/* MultiPhaseInitModuleState */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000)
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1
#else
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0
#endif
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS
#error "Module state with PEP489 requires atomics. Currently that's one of\
 C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics"
#endif
#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#define __Pyx_ModuleStateLookup_Lock()
#define __Pyx_ModuleStateLookup_Unlock()
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
static PyMutex __Pyx_ModuleStateLookup_mutex = {0};
#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(__cplusplus) && __cplusplus >= 201103L
#include <mutex>
static std::mutex __Pyx_ModuleStateLookup_mutex;
#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock()
#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock()
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__)
#include <threads.h>
static mtx_t __Pyx_ModuleStateLookup_mutex;
static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT;
static void __Pyx_ModuleStateLookup_initialize_mutex(void) {
    mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain);
}
#define __Pyx_ModuleStateLookup_Lock()\
  call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\
  mtx_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER;
#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(_WIN32)
#include <Windows.h>  // synchapi.h on its own doesn't work
static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT;
#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#else
#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\
 Requires C standard >= C11, or C++ standard >= C++11,\
 or pthreads, or the Windows 32 API, or Python >= 3.13."
#endif
typedef struct {
    int64_t id;
    PyObject *module;
} __Pyx_InterpreterIdAndModule;
typedef struct {
    char interpreter_id_as_index;
    Py_ssize_t count;
    Py_ssize_t allocated;
    __Pyx_InterpreterIdAndModule table[1];
} __Pyx_ModuleStateLookupData;
#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0;
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0;
#else
static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL;
#endif
static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound(
        __Pyx_InterpreterIdAndModule* table,
        Py_ssize_t count,
        int64_t interpreterId) {
    __Pyx_InterpreterIdAndModule* begin = table;
    __Pyx_InterpreterIdAndModule* end = begin + count;
    if (begin->id == interpreterId) {
        return begin;
    }
    while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
        __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2;
        if (halfway->id == interpreterId) {
            return halfway;
        }
        if (halfway->id < interpreterId) {
            begin = halfway;
        } else {
            end = halfway;
        }
    }
    for (; begin < end; ++begin) {
        if (begin->id >= interpreterId) return begin;
    }
    return begin;
}
static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return NULL;
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
    {
        __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        if (likely(data)) {
            __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data);
            if (likely(data == new_data)) {
                goto read_finished;
            }
        }
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        __Pyx_ModuleStateLookup_Lock();
        __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter);
        data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
        __Pyx_ModuleStateLookup_Unlock();
    }
  read_finished:;
#else
    __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_InterpreterIdAndModule* found = NULL;
    if (unlikely(!data)) goto end;
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            found = data->table+interpreter_id;
        }
    } else {
        found = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
    }
  end:
    {
        PyObject *result=NULL;
        if (found && found->id == interpreter_id) {
            result = found->module;
        }
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
#endif
        return result;
    }
}
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) {
    while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0);
}
#else
#define __Pyx_ModuleStateLookup_wait_until_no_readers()
#endif
static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) {
    Py_ssize_t to_allocate = (*old_data)->allocated;
    while (to_allocate <= interpreter_id) {
        if (to_allocate == 0) to_allocate = 1;
        else to_allocate *= 2;
    }
    __Pyx_ModuleStateLookupData *new_data = *old_data;
    if (to_allocate != (*old_data)->allocated) {
         new_data = (__Pyx_ModuleStateLookupData *)realloc(
            *old_data,
            sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
        if (!new_data) {
            PyErr_NoMemory();
            return -1;
        }
        for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) {
            new_data->table[i].id = i;
            new_data->table[i].module = NULL;
        }
        new_data->allocated = to_allocate;
    }
    new_data->table[interpreter_id].module = module;
    if (new_data->count < interpreter_id+1) {
        new_data->count = interpreter_id+1;
    }
    *old_data = new_data;
    return 0;
}
static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) {
    __Pyx_InterpreterIdAndModule *read = data->table;
    __Pyx_InterpreterIdAndModule *write = data->table;
    __Pyx_InterpreterIdAndModule *end = read + data->count;
    for (; read<end; ++read) {
        if (read->module) {
            write->id = read->id;
            write->module = read->module;
            ++write;
        }
    }
    data->count = write - data->table;
    for (; write<end; ++write) {
        write->id = 0;
        write->module = NULL;
    }
    data->interpreter_id_as_index = 0;
}
static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    int result = 0;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_ModuleStateLookupData *new_data = old_data;
    if (!new_data) {
        new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData));
        if (!new_data) {
            result = -1;
            PyErr_NoMemory();
            goto end;
        }
        new_data->allocated = 1;
        new_data->interpreter_id_as_index = 1;
    }
    __Pyx_ModuleStateLookup_wait_until_no_readers();
    if (new_data->interpreter_id_as_index) {
        if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
            result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id);
            goto end;
        }
        __Pyx_State_ConvertFromInterpIdAsIndex(new_data);
    }
    {
        Py_ssize_t insert_at = 0;
        {
            __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
                new_data->table, new_data->count, interpreter_id);
            assert(lower_bound);
            insert_at = lower_bound - new_data->table;
            if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) {
                lower_bound->module = module;
                goto end;  // already in table, nothing more to do
            }
        }
        if (new_data->count+1 >= new_data->allocated) {
            Py_ssize_t to_allocate = (new_data->count+1)*2;
            new_data =
                (__Pyx_ModuleStateLookupData*)realloc(
                    new_data,
                    sizeof(__Pyx_ModuleStateLookupData) +
                    (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
            if (!new_data) {
                result = -1;
                new_data = old_data;
                PyErr_NoMemory();
                goto end;
            }
            new_data->allocated = to_allocate;
        }
        ++new_data->count;
        int64_t last_id = interpreter_id;
        PyObject *last_module = module;
        for (Py_ssize_t i=insert_at; i<new_data->count; ++i) {
            int64_t current_id = new_data->table[i].id;
            new_data->table[i].id = last_id;
            last_id = current_id;
            PyObject *current_module = new_data->table[i].module;
            new_data->table[i].module = last_module;
            last_module = current_module;
        }
    }
  end:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data);
#else
    __Pyx_ModuleStateLookup_data = new_data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return result;
}
static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data;
#endif
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            data->table[interpreter_id].module = NULL;
        }
        goto done;
    }
    {
        __Pyx_ModuleStateLookup_wait_until_no_readers();
        __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
        if (!lower_bound) goto done;
        if (lower_bound->id != interpreter_id) goto done;
        __Pyx_InterpreterIdAndModule *end = data->table+data->count;
        for (;lower_bound<end-1; ++lower_bound) {
            lower_bound->id = (lower_bound+1)->id;
            lower_bound->module = (lower_bound+1)->module;
        }
    }
    --data->count;
    if (data->count == 0) {
        free(data);
        data = NULL;
    }
  done:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data);
#else
    __Pyx_ModuleStateLookup_data = data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return 0;
}
#endif

/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
